config/
[official-gcc.git] / gcc / configure
blobc9bbd653e52eb771f031d00ab721d589ef3fa061
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_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
746 BISON
747 FLEX
748 GENERATED_MANPAGES
749 BUILD_INFO
750 MAKEINFO
751 have_mktemp_command
752 make_compare_target
753 INSTALL_DATA
754 INSTALL_PROGRAM
755 INSTALL
756 ranlib_flags
757 RANLIB
759 LN_S
761 SET_MAKE
762 REPORT_BUGS_TEXI
763 REPORT_BUGS_TO
764 PKGVERSION
765 CONFIGURE_SPECS
766 CROSS_SYSTEM_HEADER_DIR
767 TARGET_SYSTEM_ROOT_DEFINE
768 TARGET_SYSTEM_ROOT
769 SYSROOT_CFLAGS_FOR_TARGET
770 enable_shared
771 enable_fixed_point
772 enable_decimal_float
773 with_float
774 with_cpu
775 enable_multiarch
776 enable_multilib
777 coverage_flags
778 valgrind_command
779 valgrind_path_defines
780 valgrind_path
781 TREECHECKING
782 TREEBROWSER
783 nocommon_flag
784 noexception_flags
785 warn_cxxflags
786 warn_cflags
787 c_strict_warn
788 strict_warn
789 c_loose_warn
790 loose_warn
791 EGREP
792 GREP
794 PICFLAG_FOR_TARGET
795 GNATMAKE
796 GNATBIND
797 ac_ct_CXX
798 CXXFLAGS
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
807 GENINSRC
808 target_subdir
809 host_subdir
810 build_subdir
811 build_libsubdir
812 target_noncanonical
813 target_os
814 target_vendor
815 target_cpu
816 target
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL'
863 ac_subst_files='option_includes
864 language_hooks'
865 ac_user_opts='
866 enable_option_checking
867 with_build_libsubdir
868 with_local_prefix
869 with_gxx_include_dir
870 with_cpp_install_dir
871 enable_generated_files_in_srcdir
872 with_gnu_ld
873 with_ld
874 with_demangler_in_ld
875 with_gnu_as
876 with_as
877 enable_largefile
878 enable_build_format_warnings
879 enable_werror_always
880 enable_checking
881 enable_coverage
882 enable_gather_detailed_mem_stats
883 with_stabs
884 enable_multilib
885 enable_multiarch
886 enable___cxa_atexit
887 enable_decimal_float
888 enable_fixed_point
889 enable_threads
890 enable_tls
891 enable_objc_gc
892 with_dwarf2
893 enable_shared
894 with_native_system_header_dir
895 with_build_sysroot
896 with_sysroot
897 with_specs
898 with_pkgversion
899 with_bugurl
900 enable_languages
901 with_multilib_list
902 enable_rpath
903 with_libiconv_prefix
904 enable_sjlj_exceptions
905 enable_secureplt
906 enable_leading_mingw64_underscores
907 enable_cld
908 enable_frame_pointer
909 enable_win32_registry
910 enable_static
911 with_pic
912 enable_fast_install
913 enable_libtool_lock
914 with_plugin_ld
915 enable_gnu_indirect_function
916 enable_initfini_array
917 enable_comdat
918 with_glibc_version
919 enable_gnu_unique_object
920 enable_linker_build_id
921 with_long_double_128
922 with_gc
923 with_system_zlib
924 enable_maintainer_mode
925 enable_link_mutex
926 enable_version_specific_runtime_libs
927 enable_plugin
928 enable_host_shared
929 enable_libquadmath_support
930 with_linker_hash_style
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
941 CXXFLAGS
944 CXXCPP
945 GMPLIBS
946 GMPINC
947 ISLLIBS
948 ISLINC
949 CLOOGLIBS
950 CLOOGINC'
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1444 /^X\(\/\/\)$/{
1445 s//\1/
1448 /^X\(\/\).*/{
1449 s//\1/
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1457 else
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1547 cat <<\_ACEOF
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 --target=TARGET configure for building compilers for TARGET [HOST]
1558 _ACEOF
1561 if test -n "$ac_init_help"; then
1563 cat <<\_ACEOF
1565 Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-generated-files-in-srcdir
1570 put copies of generated files in source dir intended
1571 for creating source tarballs for users without
1572 texinfo bison or flex
1573 --disable-largefile omit support for large files
1574 --disable-build-format-warnings
1575 don't use -Wformat while building GCC
1576 --enable-werror-always enable -Werror despite compiler version
1577 --enable-checking[=LIST]
1578 enable expensive run-time checks. With LIST, enable
1579 only specific categories of checks. Categories are:
1580 yes,no,all,none,release. Flags are:
1581 assert,df,fold,gc,gcac,gimple,misc,
1582 rtlflag,rtl,runtime,tree,valgrind,types
1583 --enable-coverage[=LEVEL]
1584 enable compiler's code coverage collection. Use to
1585 measure compiler performance and locate unused parts
1586 of the compiler. With LEVEL, specify optimization.
1587 Values are opt, noopt, default is noopt
1588 --enable-gather-detailed-mem-stats
1589 enable detailed memory allocation stats gathering
1590 --enable-multilib enable library support for multiple ABIs
1591 --enable-multiarch enable support for multiarch paths
1592 --enable-__cxa_atexit enable __cxa_atexit for C++
1593 --enable-decimal-float={no,yes,bid,dpd}
1594 enable decimal float extension to C. Selecting 'bid'
1595 or 'dpd' choses which decimal floating point format
1596 to use
1597 --enable-fixed-point enable fixed-point arithmetic extension to C
1598 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1599 package
1600 --enable-tls enable or disable generation of tls code overriding
1601 the assembler check for tls support
1602 --enable-objc-gc enable the use of Boehm's garbage collector with the
1603 GNU Objective-C runtime
1604 --disable-shared don't provide a shared libgcc
1605 --enable-languages=LIST specify which front-ends to build
1606 --disable-rpath do not hardcode runtime library paths
1607 --enable-sjlj-exceptions
1608 arrange to use setjmp/longjmp exception handling
1609 --enable-secureplt enable -msecure-plt by default for PowerPC
1610 --enable-leading-mingw64-underscores
1611 enable leading underscores on 64 bit mingw targets
1612 --enable-cld enable -mcld by default for 32bit x86
1613 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1615 --disable-win32-registry
1616 disable lookup of installation paths in the Registry
1617 on Windows hosts
1618 --enable-win32-registry enable registry lookup (default)
1619 --enable-win32-registry=KEY
1620 use KEY instead of GCC version as the last portion
1621 of the registry key
1622 --enable-shared[=PKGS] build shared libraries [default=yes]
1623 --enable-static[=PKGS] build static libraries [default=yes]
1624 --enable-fast-install[=PKGS]
1625 optimize for fast installation [default=yes]
1626 --disable-libtool-lock avoid locking (might break parallel builds)
1627 --enable-gnu-indirect-function
1628 enable the use of the @gnu_indirect_function to
1629 glibc systems
1630 --enable-initfini-array use .init_array/.fini_array sections
1631 --enable-comdat enable COMDAT group support
1632 --enable-gnu-unique-object
1633 enable the use of the @gnu_unique_object ELF
1634 extension on glibc systems
1635 --enable-linker-build-id
1636 compiler will always pass --build-id to linker
1637 --enable-maintainer-mode
1638 enable make rules and dependencies not useful (and
1639 sometimes confusing) to the casual installer
1640 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1641 thrashing on the build machine
1642 --enable-version-specific-runtime-libs
1643 specify that runtime libraries should be installed
1644 in a compiler-specific directory
1645 --enable-plugin enable plugin support
1646 --enable-host-shared build host code as shared libraries
1647 --disable-libquadmath-support
1648 disable libquadmath support for Fortran
1650 Optional Packages:
1651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1653 --with-build-libsubdir=DIR Directory where to find libraries for build system
1654 --with-local-prefix=DIR specifies directory to put local include
1655 --with-gxx-include-dir=DIR
1656 specifies directory to put g++ header files
1657 --with-cpp-install-dir=DIR
1658 install the user visible C preprocessor in DIR
1659 (relative to PREFIX) as well as PREFIX/bin
1660 --with-gnu-ld arrange to work with GNU ld
1661 --with-ld arrange to use the specified ld (full pathname)
1662 --with-demangler-in-ld try to use demangler in GNU ld
1663 --with-gnu-as arrange to work with GNU as
1664 --with-as arrange to use the specified as (full pathname)
1665 --with-stabs arrange to use stabs instead of host debug format
1666 --with-dwarf2 force the default debug format to be DWARF 2
1667 --with-native-system-header-dir=dir
1668 use dir as the directory to look for standard
1669 system header files in. Defaults to /usr/include.
1670 --with-build-sysroot=sysroot
1671 use sysroot as the system root during the build
1672 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1673 --with-specs=SPECS add SPECS to driver command-line processing
1674 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1675 --with-bugurl=URL Direct users to URL to report a bug
1676 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1677 --with-gnu-ld assume the C compiler uses GNU ld default=no
1678 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1679 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1680 --with-pic try to use only PIC/non-PIC objects [default=use
1681 both]
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-plugin-ld=[ARG] specify the plugin linker
1684 --with-glibc-version=M.N
1685 assume GCC used with glibc version M.N or later
1686 --with-long-double-128 use 128-bit long double by default
1687 --with-gc={page,zone} this option is not supported anymore. It used to
1688 choose the garbage collection mechanism to use with
1689 the compiler
1690 --with-system-zlib use installed libz
1691 --with-linker-hash-style={sysv,gnu,both}
1692 specify the linker hash style
1694 Some influential environment variables:
1695 CC C compiler command
1696 CFLAGS C compiler flags
1697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1698 nonstandard directory <lib dir>
1699 LIBS libraries to pass to the linker, e.g. -l<library>
1700 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1701 you have headers in a nonstandard directory <include dir>
1702 CXX C++ compiler command
1703 CXXFLAGS C++ compiler flags
1704 CPP C preprocessor
1705 CXXCPP C++ preprocessor
1706 GMPLIBS How to link GMP
1707 GMPINC How to find GMP include files
1708 ISLLIBS How to link ISL
1709 ISLINC How to find ISL include files
1710 CLOOGLIBS How to link CLOOG
1711 CLOOGINC How to find CLOOG include files
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1717 _ACEOF
1718 ac_status=$?
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 configure
1780 generated by GNU Autoconf 2.64
1782 Copyright (C) 2009 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev/null && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 return $ac_retval
1904 } # ac_fn_c_try_cpp
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 else
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1934 else
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1950 else
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 yes:no: )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 no:yes:* )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=\$ac_header_compiler"
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1997 ac_fn_c_try_run ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2018 ac_status=$?
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2033 } # ac_fn_c_try_run
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2201 main ()
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2214 else
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2242 } # ac_fn_c_compute_int
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 eval "$3=no"
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 main ()
2263 if (sizeof ($2))
2264 return 0;
2266 return 0;
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2274 main ()
2276 if (sizeof (($2)))
2277 return 0;
2279 return 0;
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2284 else
2285 eval "$3=yes"
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296 } # ac_fn_c_check_type
2298 # ac_fn_c_find_intX_t LINENO BITS VAR
2299 # -----------------------------------
2300 # Finds a signed integer type with width BITS, setting cache variable VAR
2301 # accordingly.
2302 ac_fn_c_find_intX_t ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2306 $as_echo_n "checking for int$2_t... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 eval "$3=no"
2311 for ac_type in int$2_t 'int' 'long int' \
2312 'long long int' 'short int' 'signed char'; do
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $ac_includes_default
2317 main ()
2319 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2320 test_array [0] = 0
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 $ac_includes_default
2331 main ()
2333 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2334 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2335 test_array [0] = 0
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2343 else
2344 case $ac_type in #(
2345 int$2_t) :
2346 eval "$3=yes" ;; #(
2347 *) :
2348 eval "$3=\$ac_type" ;;
2349 esac
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 eval as_val=\$$3
2355 if test "x$as_val" = x""no; then :
2357 else
2358 break
2360 done
2362 eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 } # ac_fn_c_find_intX_t
2369 # ac_fn_c_try_link LINENO
2370 # -----------------------
2371 # Try to link conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_c_try_link ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext conftest$ac_exeext
2376 if { { ac_try="$ac_link"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_link") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_c_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest$ac_exeext && {
2395 test "$cross_compiling" = yes ||
2396 $as_test_x conftest$ac_exeext
2397 }; then :
2398 ac_retval=0
2399 else
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 ac_retval=1
2405 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2406 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2407 # interfere with the next link command; also delete a directory that is
2408 # left behind by Apple's compiler. We do this before executing the actions.
2409 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 return $ac_retval
2413 } # ac_fn_c_try_link
2415 # ac_fn_c_find_uintX_t LINENO BITS VAR
2416 # ------------------------------------
2417 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2418 # accordingly.
2419 ac_fn_c_find_uintX_t ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2423 $as_echo_n "checking for uint$2_t... " >&6; }
2424 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 eval "$3=no"
2428 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2429 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $ac_includes_default
2434 main ()
2436 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2437 test_array [0] = 0
2440 return 0;
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 case $ac_type in #(
2445 uint$2_t) :
2446 eval "$3=yes" ;; #(
2447 *) :
2448 eval "$3=\$ac_type" ;;
2449 esac
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval as_val=\$$3
2453 if test "x$as_val" = x""no; then :
2455 else
2456 break
2458 done
2460 eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465 } # ac_fn_c_find_uintX_t
2467 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2468 # ----------------------------------------------
2469 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2470 ac_fn_c_check_header_preproc ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_c_try_cpp "$LINENO"; then :
2483 eval "$3=yes"
2484 else
2485 eval "$3=no"
2487 rm -f conftest.err conftest.$ac_ext
2489 eval ac_res=\$$3
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 } # ac_fn_c_check_header_preproc
2496 # ac_fn_cxx_try_cpp LINENO
2497 # ------------------------
2498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2499 ac_fn_cxx_try_cpp ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if { { ac_try="$ac_cpp conftest.$ac_ext"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2510 ac_status=$?
2511 if test -s conftest.err; then
2512 grep -v '^ *+' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 mv -f conftest.er1 conftest.err
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } >/dev/null && {
2518 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2519 test ! -s conftest.err
2520 }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_retval=1
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529 return $ac_retval
2531 } # ac_fn_cxx_try_cpp
2533 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2534 # ------------------------------------------------
2535 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2536 ac_fn_cxx_check_header_preproc ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 #include <$2>
2547 _ACEOF
2548 if ac_fn_cxx_try_cpp "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2553 rm -f conftest.err conftest.$ac_ext
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 } # ac_fn_cxx_check_header_preproc
2562 # ac_fn_c_check_func LINENO FUNC VAR
2563 # ----------------------------------
2564 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2565 ac_fn_c_check_func ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2577 #define $2 innocuous_$2
2579 /* System header to define __stub macros and hopefully few prototypes,
2580 which can conflict with char $2 (); below.
2581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 <limits.h> exists even on freestanding compilers. */
2584 #ifdef __STDC__
2585 # include <limits.h>
2586 #else
2587 # include <assert.h>
2588 #endif
2590 #undef $2
2592 /* Override any GCC internal prototype to avoid an error.
2593 Use char because int might match the return type of a GCC
2594 builtin and then its argument prototype would still apply. */
2595 #ifdef __cplusplus
2596 extern "C"
2597 #endif
2598 char $2 ();
2599 /* The GNU C library defines this for functions which it implements
2600 to always fail with ENOSYS. Some functions are actually named
2601 something starting with __ and the normal name is an alias. */
2602 #if defined __stub_$2 || defined __stub___$2
2603 choke me
2604 #endif
2607 main ()
2609 return $2 ();
2611 return 0;
2613 _ACEOF
2614 if ac_fn_c_try_link "$LINENO"; then :
2615 eval "$3=yes"
2616 else
2617 eval "$3=no"
2619 rm -f core conftest.err conftest.$ac_objext \
2620 conftest$ac_exeext conftest.$ac_ext
2622 eval ac_res=\$$3
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2627 } # ac_fn_c_check_func
2629 # ac_fn_cxx_try_link LINENO
2630 # -------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded.
2632 ac_fn_cxx_try_link ()
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2644 ac_status=$?
2645 if test -s conftest.err; then
2646 grep -v '^ *+' conftest.err >conftest.er1
2647 cat conftest.er1 >&5
2648 mv -f conftest.er1 conftest.err
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_cxx_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest$ac_exeext && {
2655 test "$cross_compiling" = yes ||
2656 $as_test_x conftest$ac_exeext
2657 }; then :
2658 ac_retval=0
2659 else
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 ac_retval=1
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671 return $ac_retval
2673 } # ac_fn_cxx_try_link
2674 cat >config.log <<_ACEOF
2675 This file contains any messages produced by compilers while
2676 running configure, to aid debugging if configure makes a mistake.
2678 It was created by $as_me, which was
2679 generated by GNU Autoconf 2.64. Invocation command line was
2681 $ $0 $@
2683 _ACEOF
2684 exec 5>>config.log
2686 cat <<_ASUNAME
2687 ## --------- ##
2688 ## Platform. ##
2689 ## --------- ##
2691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2708 _ASUNAME
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 $as_echo "PATH: $as_dir"
2716 done
2717 IFS=$as_save_IFS
2719 } >&5
2721 cat >&5 <<_ACEOF
2724 ## ----------- ##
2725 ## Core tests. ##
2726 ## ----------- ##
2728 _ACEOF
2731 # Keep a trace of the command line.
2732 # Strip out --no-create and --no-recursion so they do not pile up.
2733 # Strip out --silent because we don't want to record it for future runs.
2734 # Also quote any args containing shell meta-characters.
2735 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_configure_args=
2737 ac_configure_args0=
2738 ac_configure_args1=
2739 ac_must_keep_next=false
2740 for ac_pass in 1 2
2742 for ac_arg
2744 case $ac_arg in
2745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2747 | -silent | --silent | --silen | --sile | --sil)
2748 continue ;;
2749 *\'*)
2750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2751 esac
2752 case $ac_pass in
2753 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2755 as_fn_append ac_configure_args1 " '$ac_arg'"
2756 if test $ac_must_keep_next = true; then
2757 ac_must_keep_next=false # Got value, back to normal.
2758 else
2759 case $ac_arg in
2760 *=* | --config-cache | -C | -disable-* | --disable-* \
2761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2763 | -with-* | --with-* | -without-* | --without-* | --x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2766 esac
2768 -* ) ac_must_keep_next=true ;;
2769 esac
2771 as_fn_append ac_configure_args " '$ac_arg'"
2773 esac
2774 done
2775 done
2776 { ac_configure_args0=; unset ac_configure_args0;}
2777 { ac_configure_args1=; unset ac_configure_args1;}
2779 # When interrupted or exit'd, cleanup temporary files, and complete
2780 # config.log. We remove comments because anyway the quotes in there
2781 # would cause problems or look ugly.
2782 # WARNING: Use '\'' to represent an apostrophe within the trap.
2783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784 trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2787 echo
2789 cat <<\_ASBOX
2790 ## ---------------- ##
2791 ## Cache variables. ##
2792 ## ---------------- ##
2793 _ASBOX
2794 echo
2795 # The following way of writing the cache mishandles newlines in values,
2797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2798 eval ac_val=\$$ac_var
2799 case $ac_val in #(
2800 *${as_nl}*)
2801 case $ac_var in #(
2802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2804 esac
2805 case $ac_var in #(
2806 _ | IFS | as_nl) ;; #(
2807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2808 *) { eval $ac_var=; unset $ac_var;} ;;
2809 esac ;;
2810 esac
2811 done
2812 (set) 2>&1 |
2813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2814 *${as_nl}ac_space=\ *)
2815 sed -n \
2816 "s/'\''/'\''\\\\'\'''\''/g;
2817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2818 ;; #(
2820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 esac |
2823 sort
2825 echo
2827 cat <<\_ASBOX
2828 ## ----------------- ##
2829 ## Output variables. ##
2830 ## ----------------- ##
2831 _ASBOX
2832 echo
2833 for ac_var in $ac_subst_vars
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2843 if test -n "$ac_subst_files"; then
2844 cat <<\_ASBOX
2845 ## ------------------- ##
2846 ## File substitutions. ##
2847 ## ------------------- ##
2848 _ASBOX
2849 echo
2850 for ac_var in $ac_subst_files
2852 eval ac_val=\$$ac_var
2853 case $ac_val in
2854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2855 esac
2856 $as_echo "$ac_var='\''$ac_val'\''"
2857 done | sort
2858 echo
2861 if test -s confdefs.h; then
2862 cat <<\_ASBOX
2863 ## ----------- ##
2864 ## confdefs.h. ##
2865 ## ----------- ##
2866 _ASBOX
2867 echo
2868 cat confdefs.h
2869 echo
2871 test "$ac_signal" != 0 &&
2872 $as_echo "$as_me: caught signal $ac_signal"
2873 $as_echo "$as_me: exit $exit_status"
2874 } >&5
2875 rm -f core *.core core.conftest.* &&
2876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2877 exit $exit_status
2879 for ac_signal in 1 2 13 15; do
2880 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 done
2882 ac_signal=0
2884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2885 rm -f -r conftest* confdefs.h
2887 $as_echo "/* confdefs.h */" > confdefs.h
2889 # Predefined preprocessor variables.
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_NAME "$PACKAGE_NAME"
2893 _ACEOF
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2897 _ACEOF
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2901 _ACEOF
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_STRING "$PACKAGE_STRING"
2905 _ACEOF
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2909 _ACEOF
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE_URL "$PACKAGE_URL"
2913 _ACEOF
2916 # Let the site file select an alternate cache file if it wants to.
2917 # Prefer an explicitly selected file to automatically selected ones.
2918 ac_site_file1=NONE
2919 ac_site_file2=NONE
2920 if test -n "$CONFIG_SITE"; then
2921 ac_site_file1=$CONFIG_SITE
2922 elif test "x$prefix" != xNONE; then
2923 ac_site_file1=$prefix/share/config.site
2924 ac_site_file2=$prefix/etc/config.site
2925 else
2926 ac_site_file1=$ac_default_prefix/share/config.site
2927 ac_site_file2=$ac_default_prefix/etc/config.site
2929 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2931 test "x$ac_site_file" = xNONE && continue
2932 if test -r "$ac_site_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2934 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2935 sed 's/^/| /' "$ac_site_file" >&5
2936 . "$ac_site_file"
2938 done
2940 if test -r "$cache_file"; then
2941 # Some versions of bash will fail to source /dev/null (special
2942 # files actually), so we avoid doing that.
2943 if test -f "$cache_file"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2945 $as_echo "$as_me: loading cache $cache_file" >&6;}
2946 case $cache_file in
2947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2948 *) . "./$cache_file";;
2949 esac
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2953 $as_echo "$as_me: creating cache $cache_file" >&6;}
2954 >$cache_file
2957 # Check that the precious variables saved in the cache have kept the same
2958 # value.
2959 ac_cache_corrupted=false
2960 for ac_var in $ac_precious_vars; do
2961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2962 eval ac_new_set=\$ac_env_${ac_var}_set
2963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2964 eval ac_new_val=\$ac_env_${ac_var}_value
2965 case $ac_old_set,$ac_new_set in
2966 set,)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2968 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2970 ,set)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2972 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973 ac_cache_corrupted=: ;;
2974 ,);;
2976 if test "x$ac_old_val" != "x$ac_new_val"; then
2977 # differences in whitespace do not lead to failure.
2978 ac_old_val_w=`echo x $ac_old_val`
2979 ac_new_val_w=`echo x $ac_new_val`
2980 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2982 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983 ac_cache_corrupted=:
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2986 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987 eval $ac_var=\$ac_old_val
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2990 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2992 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2993 fi;;
2994 esac
2995 # Pass precious variables to config.status.
2996 if test "$ac_new_set" = set; then
2997 case $ac_new_val in
2998 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2999 *) ac_arg=$ac_var=$ac_new_val ;;
3000 esac
3001 case " $ac_configure_args " in
3002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3003 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004 esac
3006 done
3007 if $ac_cache_corrupted; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3011 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3012 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3014 ## -------------------- ##
3015 ## Main body of script. ##
3016 ## -------------------- ##
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3032 gcc_version=`cat $srcdir/BASE-VER`
3034 # Determine the host, build, and target systems
3035 ac_aux_dir=
3036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3037 for ac_t in install-sh install.sh shtool; do
3038 if test -f "$ac_dir/$ac_t"; then
3039 ac_aux_dir=$ac_dir
3040 ac_install_sh="$ac_aux_dir/$ac_t -c"
3041 break 2
3043 done
3044 done
3045 if test -z "$ac_aux_dir"; then
3046 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3049 # These three variables are undocumented and unsupported,
3050 # and are intended to be withdrawn in a future Autoconf release.
3051 # They can cause serious problems if a builder's source tree is in a directory
3052 # whose full name contains unusual characters.
3053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3058 # Make sure we can run config.sub.
3059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3060 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3063 $as_echo_n "checking build system type... " >&6; }
3064 if test "${ac_cv_build+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 ac_build_alias=$build_alias
3068 test "x$ac_build_alias" = x &&
3069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3070 test "x$ac_build_alias" = x &&
3071 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3073 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3077 $as_echo "$ac_cv_build" >&6; }
3078 case $ac_cv_build in
3079 *-*-*) ;;
3080 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3081 esac
3082 build=$ac_cv_build
3083 ac_save_IFS=$IFS; IFS='-'
3084 set x $ac_cv_build
3085 shift
3086 build_cpu=$1
3087 build_vendor=$2
3088 shift; shift
3089 # Remember, the first character of IFS is used to create $*,
3090 # except with old shells:
3091 build_os=$*
3092 IFS=$ac_save_IFS
3093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3097 $as_echo_n "checking host system type... " >&6; }
3098 if test "${ac_cv_host+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test "x$host_alias" = x; then
3102 ac_cv_host=$ac_cv_build
3103 else
3104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3105 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3110 $as_echo "$ac_cv_host" >&6; }
3111 case $ac_cv_host in
3112 *-*-*) ;;
3113 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3114 esac
3115 host=$ac_cv_host
3116 ac_save_IFS=$IFS; IFS='-'
3117 set x $ac_cv_host
3118 shift
3119 host_cpu=$1
3120 host_vendor=$2
3121 shift; shift
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3124 host_os=$*
3125 IFS=$ac_save_IFS
3126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3130 $as_echo_n "checking target system type... " >&6; }
3131 if test "${ac_cv_target+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test "x$target_alias" = x; then
3135 ac_cv_target=$ac_cv_host
3136 else
3137 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3138 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3143 $as_echo "$ac_cv_target" >&6; }
3144 case $ac_cv_target in
3145 *-*-*) ;;
3146 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3147 esac
3148 target=$ac_cv_target
3149 ac_save_IFS=$IFS; IFS='-'
3150 set x $ac_cv_target
3151 shift
3152 target_cpu=$1
3153 target_vendor=$2
3154 shift; shift
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3157 target_os=$*
3158 IFS=$ac_save_IFS
3159 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3162 # The aliases save the names the user supplied, while $host etc.
3163 # will get canonicalized.
3164 test -n "$target_alias" &&
3165 test "$program_prefix$program_suffix$program_transform_name" = \
3166 NONENONEs,x,x, &&
3167 program_prefix=${target_alias}-
3169 # Determine the noncanonical target name, for directory use.
3170 case ${build_alias} in
3171 "") build_noncanonical=${build} ;;
3172 *) build_noncanonical=${build_alias} ;;
3173 esac
3175 case ${host_alias} in
3176 "") host_noncanonical=${build_noncanonical} ;;
3177 *) host_noncanonical=${host_alias} ;;
3178 esac
3180 case ${target_alias} in
3181 "") target_noncanonical=${host_noncanonical} ;;
3182 *) target_noncanonical=${target_alias} ;;
3183 esac
3188 # Determine the target- and build-specific subdirectories
3190 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3191 # have matching libraries, they should use host libraries: Makefile.tpl
3192 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3193 # However, they still use the build modules, because the corresponding
3194 # host modules (e.g. bison) are only built for the host when bootstrap
3195 # finishes. So:
3196 # - build_subdir is where we find build modules, and never changes.
3197 # - build_libsubdir is where we find build libraries, and can be overridden.
3199 # Prefix 'build-' so this never conflicts with target_subdir.
3200 build_subdir="build-${build_noncanonical}"
3202 # Check whether --with-build-libsubdir was given.
3203 if test "${with_build_libsubdir+set}" = set; then :
3204 withval=$with_build_libsubdir; build_libsubdir="$withval"
3205 else
3206 build_libsubdir="$build_subdir"
3209 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3210 if ( test $srcdir = . && test -d gcc ) \
3211 || test -d $srcdir/../host-${host_noncanonical}; then
3212 host_subdir="host-${host_noncanonical}"
3213 else
3214 host_subdir=.
3216 # No prefix.
3217 target_subdir=${target_noncanonical}
3220 # Set program_transform_name
3221 test "$program_prefix" != NONE &&
3222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3223 # Use a double $ so make ignores it.
3224 test "$program_suffix" != NONE &&
3225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3226 # Double any \ or $.
3227 # By default was `s,x,x', remove it if useless.
3228 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3229 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3232 # Check for bogus environment variables.
3233 # Test if LIBRARY_PATH contains the notation for the current directory
3234 # since this would lead to problems installing/building glibc.
3235 # LIBRARY_PATH contains the current directory if one of the following
3236 # is true:
3237 # - one of the terminals (":" and ";") is the first or last sign
3238 # - two terminals occur directly after each other
3239 # - the path contains an element with a dot in it
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3241 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3242 case ${LIBRARY_PATH} in
3243 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3244 library_path_setting="contains current directory"
3247 library_path_setting="ok"
3249 esac
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3251 $as_echo "$library_path_setting" >&6; }
3252 if test "$library_path_setting" != "ok"; then
3253 as_fn_error "
3254 *** LIBRARY_PATH shouldn't contain the current directory when
3255 *** building gcc. Please change the environment variable
3256 *** and run configure again." "$LINENO" 5
3259 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # GCC_EXEC_PREFIX contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3267 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3268 case ${GCC_EXEC_PREFIX} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 gcc_exec_prefix_setting="contains current directory"
3273 gcc_exec_prefix_setting="ok"
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3277 $as_echo "$gcc_exec_prefix_setting" >&6; }
3278 if test "$gcc_exec_prefix_setting" != "ok"; then
3279 as_fn_error "
3280 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # -----------
3286 # Directories
3287 # -----------
3289 # Specify the local prefix
3290 local_prefix=
3292 # Check whether --with-local-prefix was given.
3293 if test "${with_local_prefix+set}" = set; then :
3294 withval=$with_local_prefix; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3296 no) ;;
3297 *) local_prefix=$with_local_prefix ;;
3298 esac
3302 # Default local prefix if it is empty
3303 if test x$local_prefix = x; then
3304 local_prefix=/usr/local
3307 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3308 # passed in by the toplevel make and thus we'd get different behavior
3309 # depending on where we built the sources.
3310 gcc_gxx_include_dir=
3311 # Specify the g++ header file directory
3313 # Check whether --with-gxx-include-dir was given.
3314 if test "${with_gxx_include_dir+set}" = set; then :
3315 withval=$with_gxx_include_dir; case "${withval}" in
3316 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3317 no) ;;
3318 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3319 esac
3323 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3324 if test x${gcc_gxx_include_dir} = x; then
3325 if test x${enable_version_specific_runtime_libs} = xyes; then
3326 gcc_gxx_include_dir='${libsubdir}/include/c++'
3327 else
3328 libstdcxx_incdir='include/c++/$(version)'
3329 if test x$host != x$target; then
3330 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3332 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3336 gcc_gxx_include_dir_add_sysroot=0
3337 if test "${with_sysroot+set}" = set; then
3338 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3339 if test "${gcc_gxx_without_sysroot}"; then
3340 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3341 gcc_gxx_include_dir_add_sysroot=1
3346 # Check whether --with-cpp_install_dir was given.
3347 if test "${with_cpp_install_dir+set}" = set; then :
3348 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3349 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3350 elif test x$withval != xno; then
3351 cpp_install_dir=$withval
3356 # We would like to our source tree to be readonly. However when releases or
3357 # pre-releases are generated, the flex/bison generated files as well as the
3358 # various formats of manuals need to be included along with the rest of the
3359 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3360 # just that.
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3363 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3364 # Check whether --enable-generated-files-in-srcdir was given.
3365 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3366 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3367 else
3368 generated_files_in_srcdir=no
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3373 $as_echo "$generated_files_in_srcdir" >&6; }
3375 if test "$generated_files_in_srcdir" = "yes"; then
3376 GENINSRC=''
3377 else
3378 GENINSRC='#'
3382 # -------------------
3383 # Find default linker
3384 # -------------------
3386 # With GNU ld
3388 # Check whether --with-gnu-ld was given.
3389 if test "${with_gnu_ld+set}" = set; then :
3390 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3391 else
3392 gnu_ld_flag=no
3396 # With pre-defined ld
3398 # Check whether --with-ld was given.
3399 if test "${with_ld+set}" = set; then :
3400 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test ! -x "$DEFAULT_LINKER"; then
3405 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3406 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407 gnu_ld_flag=yes
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3412 _ACEOF
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3417 $as_echo_n "checking whether a default linker was specified... " >&6; }
3418 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3419 if test x"$gnu_ld_flag" = x"no"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3424 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3431 # With demangler in GNU ld
3433 # Check whether --with-demangler-in-ld was given.
3434 if test "${with_demangler_in_ld+set}" = set; then :
3435 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3436 else
3437 demangler_in_ld=yes
3441 # ----------------------
3442 # Find default assembler
3443 # ----------------------
3445 # With GNU as
3447 # Check whether --with-gnu-as was given.
3448 if test "${with_gnu_as+set}" = set; then :
3449 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3450 else
3451 gas_flag=no
3456 # Check whether --with-as was given.
3457 if test "${with_as+set}" = set; then :
3458 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test ! -x "$DEFAULT_ASSEMBLER"; then
3463 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3464 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3465 gas_flag=yes
3468 cat >>confdefs.h <<_ACEOF
3469 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3470 _ACEOF
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3475 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3476 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3477 if test x"$gas_flag" = x"no"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3482 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3489 # ---------------
3490 # Find C compiler
3491 # ---------------
3493 # If a non-executable a.out is present (e.g. created by GNU as above even if
3494 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3495 # file, even when creating an executable, so an execution test fails.
3496 # Remove possible default executable files to avoid this.
3498 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3499 # Autoconf includes it.
3500 rm -f a.out a.exe b.out
3502 # Find the native compiler
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3530 done
3531 done
3532 IFS=$as_save_IFS
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3547 if test -z "$ac_cv_prog_CC"; then
3548 ac_ct_CC=$CC
3549 # Extract the first word of "gcc", so it can be a program name with args.
3550 set dummy gcc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$ac_ct_CC"; then
3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_ac_ct_CC="gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3572 IFS=$as_save_IFS
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 $as_echo "$ac_ct_CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3596 else
3597 CC="$ac_cv_prog_CC"
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}cc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_CC="${ac_tool_prefix}cc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3623 done
3624 done
3625 IFS=$as_save_IFS
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3641 if test -z "$CC"; then
3642 # Extract the first word of "cc", so it can be a program name with args.
3643 set dummy cc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 ac_prog_rejected=no
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3661 ac_prog_rejected=yes
3662 continue
3664 ac_cv_prog_CC="cc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3668 done
3669 done
3670 IFS=$as_save_IFS
3672 if test $ac_prog_rejected = yes; then
3673 # We found a bogon in the path, so make sure we never use it.
3674 set dummy $ac_cv_prog_CC
3675 shift
3676 if test $# != 0; then
3677 # We chose a different compiler from the bogus one.
3678 # However, it has the same basename, so the bogon will be chosen
3679 # first if we set CC to just the basename; use the full file name.
3680 shift
3681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3686 CC=$ac_cv_prog_CC
3687 if test -n "$CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689 $as_echo "$CC" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3697 if test -z "$CC"; then
3698 if test -n "$ac_tool_prefix"; then
3699 for ac_prog in cl.exe
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3738 test -n "$CC" && break
3739 done
3741 if test -z "$CC"; then
3742 ac_ct_CC=$CC
3743 for ac_prog in cl.exe
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$ac_ct_CC"; then
3753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_ac_ct_CC="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3773 if test -n "$ac_ct_CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3775 $as_echo "$ac_ct_CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$ac_ct_CC" && break
3783 done
3785 if test "x$ac_ct_CC" = x; then
3786 CC=""
3787 else
3788 case $cross_compiling:$ac_tool_warned in
3789 yes:)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned=yes ;;
3793 esac
3794 CC=$ac_ct_CC
3801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error "no acceptable C compiler found in \$PATH
3804 See \`config.log' for more details." "$LINENO" 5; }
3806 # Provide some information about the compiler.
3807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3808 set X $ac_compile
3809 ac_compiler=$2
3810 for ac_option in --version -v -V -qversion; do
3811 { { ac_try="$ac_compiler $ac_option >&5"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 ac_status=$?
3820 if test -s conftest.err; then
3821 sed '10a\
3822 ... rest of stderr output deleted ...
3823 10q' conftest.err >conftest.er1
3824 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3829 done
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3835 main ()
3839 return 0;
3841 _ACEOF
3842 ac_clean_files_save=$ac_clean_files
3843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3844 # Try to create an executable without -o first, disregard a.out.
3845 # It will help us diagnose broken compilers, and finding out an intuition
3846 # of exeext.
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3848 $as_echo_n "checking for C compiler default output file name... " >&6; }
3849 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3851 # The possible output files:
3852 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854 ac_rmfiles=
3855 for ac_file in $ac_files
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3860 esac
3861 done
3862 rm -f $ac_rmfiles
3864 if { { ac_try="$ac_link_default"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link_default") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3876 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3877 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3878 # so that the user can short-circuit this test for compilers unknown to
3879 # Autoconf.
3880 for ac_file in $ac_files ''
3882 test -f "$ac_file" || continue
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886 [ab].out )
3887 # We found the default executable, but exeext='' is most
3888 # certainly right.
3889 break;;
3890 *.* )
3891 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3892 then :; else
3893 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895 # We set ac_cv_exeext here because the later test for it is not
3896 # safe: cross compilers may not add the suffix if given an `-o'
3897 # argument, so we may need to know it at that point already.
3898 # Even if this section looks crufty: it has the advantage of
3899 # actually working.
3900 break;;
3902 break;;
3903 esac
3904 done
3905 test "$ac_cv_exeext" = no && ac_cv_exeext=
3907 else
3908 ac_file=''
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3911 $as_echo "$ac_file" >&6; }
3912 if test -z "$ac_file"; then :
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 { as_fn_set_status 77
3919 as_fn_error "C compiler cannot create executables
3920 See \`config.log' for more details." "$LINENO" 5; }; }
3922 ac_exeext=$ac_cv_exeext
3924 # Check that the compiler produces executables we can run. If not, either
3925 # the compiler is broken, or we cross compile.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3927 $as_echo_n "checking whether the C compiler works... " >&6; }
3928 # If not cross compiling, check that we can run a simple program.
3929 if test "$cross_compiling" != yes; then
3930 if { ac_try='./$ac_file'
3931 { { case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_try") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; }; then
3941 cross_compiling=no
3942 else
3943 if test "$cross_compiling" = maybe; then
3944 cross_compiling=yes
3945 else
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot run C compiled programs.
3949 If you meant to cross compile, use \`--host'.
3950 See \`config.log' for more details." "$LINENO" 5; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3958 ac_clean_files=$ac_clean_files_save
3959 # Check that the compiler produces executables we can run. If not, either
3960 # the compiler is broken, or we cross compile.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3962 $as_echo_n "checking whether we are cross compiling... " >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3964 $as_echo "$cross_compiling" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3967 $as_echo_n "checking for suffix of executables... " >&6; }
3968 if { { ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_link") 2>&5
3976 ac_status=$?
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; then :
3979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3981 # work properly (i.e., refer to `conftest.exe'), while it won't with
3982 # `rm'.
3983 for ac_file in conftest.exe conftest conftest.*; do
3984 test -f "$ac_file" || continue
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 break;;
3989 * ) break;;
3990 esac
3991 done
3992 else
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error "cannot compute suffix of executables: cannot compile and link
3996 See \`config.log' for more details." "$LINENO" 5; }
3998 rm -f conftest$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4000 $as_echo "$ac_cv_exeext" >&6; }
4002 rm -f conftest.$ac_ext
4003 EXEEXT=$ac_cv_exeext
4004 ac_exeext=$EXEEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4006 $as_echo_n "checking for suffix of object files... " >&6; }
4007 if test "${ac_cv_objext+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4014 main ()
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.o conftest.obj
4022 if { { ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compile") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 for ac_file in conftest.o conftest.obj conftest.*; do
4034 test -f "$ac_file" || continue;
4035 case $ac_file in
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4038 break;;
4039 esac
4040 done
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error "cannot compute suffix of object files: cannot compile
4048 See \`config.log' for more details." "$LINENO" 5; }
4050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4053 $as_echo "$ac_cv_objext" >&6; }
4054 OBJEXT=$ac_cv_objext
4055 ac_objext=$OBJEXT
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4058 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 main ()
4067 #ifndef __GNUC__
4068 choke me
4069 #endif
4072 return 0;
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_compiler_gnu=yes
4077 else
4078 ac_compiler_gnu=no
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4087 GCC=yes
4088 else
4089 GCC=
4091 ac_test_CFLAGS=${CFLAGS+set}
4092 ac_save_CFLAGS=$CFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4095 if test "${ac_cv_prog_cc_g+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_save_c_werror_flag=$ac_c_werror_flag
4099 ac_c_werror_flag=yes
4100 ac_cv_prog_cc_g=no
4101 CFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_g=yes
4115 else
4116 CFLAGS=""
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4125 return 0;
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4130 else
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4155 $as_echo "$ac_cv_prog_cc_g" >&6; }
4156 if test "$ac_test_CFLAGS" = set; then
4157 CFLAGS=$ac_save_CFLAGS
4158 elif test $ac_cv_prog_cc_g = yes; then
4159 if test "$GCC" = yes; then
4160 CFLAGS="-g -O2"
4161 else
4162 CFLAGS="-g"
4164 else
4165 if test "$GCC" = yes; then
4166 CFLAGS="-O2"
4167 else
4168 CFLAGS=
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4173 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_cv_prog_cc_c89=no
4177 ac_save_CC=$CC
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <stdarg.h>
4181 #include <stdio.h>
4182 #include <sys/types.h>
4183 #include <sys/stat.h>
4184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185 struct buf { int x; };
4186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187 static char *e (p, i)
4188 char **p;
4189 int i;
4191 return p[i];
4193 static char *f (char * (*g) (char **, int), char **p, ...)
4195 char *s;
4196 va_list v;
4197 va_start (v,p);
4198 s = g (p, va_arg (v,int));
4199 va_end (v);
4200 return s;
4203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4214 #define FOO(x) 'x'
4215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4217 int test (int i, double x);
4218 struct s1 {int (*f) (int a);};
4219 struct s2 {int (*f) (double a);};
4220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4221 int argc;
4222 char **argv;
4224 main ()
4226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 return 0;
4230 _ACEOF
4231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4238 rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240 done
4241 rm -f conftest.$ac_ext
4242 CC=$ac_save_CC
4245 # AC_CACHE_VAL
4246 case "x$ac_cv_prog_cc_c89" in
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249 $as_echo "none needed" >&6; } ;;
4250 xno)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;;
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4257 esac
4258 if test "x$ac_cv_prog_cc_c89" != xno; then :
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 ac_ext=cpp
4269 ac_cpp='$CXXCPP $CPPFLAGS'
4270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4273 if test -z "$CXX"; then
4274 if test -n "$CCC"; then
4275 CXX=$CCC
4276 else
4277 if test -n "$ac_tool_prefix"; then
4278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_CXX+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$CXX"; then
4288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4307 CXX=$ac_cv_prog_CXX
4308 if test -n "$CXX"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4310 $as_echo "$CXX" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4317 test -n "$CXX" && break
4318 done
4320 if test -z "$CXX"; then
4321 ac_ct_CXX=$CXX
4322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_CXX"; then
4332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_CXX="$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4352 if test -n "$ac_ct_CXX"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4354 $as_echo "$ac_ct_CXX" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$ac_ct_CXX" && break
4362 done
4364 if test "x$ac_ct_CXX" = x; then
4365 CXX="g++"
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373 CXX=$ac_ct_CXX
4379 # Provide some information about the compiler.
4380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4381 set X $ac_compile
4382 ac_compiler=$2
4383 for ac_option in --version -v -V -qversion; do
4384 { { ac_try="$ac_compiler $ac_option >&5"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4392 ac_status=$?
4393 if test -s conftest.err; then
4394 sed '10a\
4395 ... rest of stderr output deleted ...
4396 10q' conftest.err >conftest.er1
4397 cat conftest.er1 >&5
4398 rm -f conftest.er1 conftest.err
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }
4402 done
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4413 main ()
4415 #ifndef __GNUC__
4416 choke me
4417 #endif
4420 return 0;
4422 _ACEOF
4423 if ac_fn_cxx_try_compile "$LINENO"; then :
4424 ac_compiler_gnu=yes
4425 else
4426 ac_compiler_gnu=no
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4434 if test $ac_compiler_gnu = yes; then
4435 GXX=yes
4436 else
4437 GXX=
4439 ac_test_CXXFLAGS=${CXXFLAGS+set}
4440 ac_save_CXXFLAGS=$CXXFLAGS
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4443 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4447 ac_cxx_werror_flag=yes
4448 ac_cv_prog_cxx_g=no
4449 CXXFLAGS="-g"
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4454 main ()
4458 return 0;
4460 _ACEOF
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4462 ac_cv_prog_cxx_g=yes
4463 else
4464 CXXFLAGS=""
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4469 main ()
4473 return 0;
4475 _ACEOF
4476 if ac_fn_cxx_try_compile "$LINENO"; then :
4478 else
4479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4480 CXXFLAGS="-g"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4489 return 0;
4491 _ACEOF
4492 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 ac_cv_prog_cxx_g=yes
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4504 if test "$ac_test_CXXFLAGS" = set; then
4505 CXXFLAGS=$ac_save_CXXFLAGS
4506 elif test $ac_cv_prog_cxx_g = yes; then
4507 if test "$GXX" = yes; then
4508 CXXFLAGS="-g -O2"
4509 else
4510 CXXFLAGS="-g"
4512 else
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-O2"
4515 else
4516 CXXFLAGS=
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$GNATBIND"; then
4537 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4556 GNATBIND=$ac_cv_prog_GNATBIND
4557 if test -n "$GNATBIND"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4559 $as_echo "$GNATBIND" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4567 if test -z "$ac_cv_prog_GNATBIND"; then
4568 ac_ct_GNATBIND=$GNATBIND
4569 # Extract the first word of "gnatbind", so it can be a program name with args.
4570 set dummy gnatbind; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_GNATBIND"; then
4577 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4597 if test -n "$ac_ct_GNATBIND"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4599 $as_echo "$ac_ct_GNATBIND" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4605 if test "x$ac_ct_GNATBIND" = x; then
4606 GNATBIND="no"
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609 yes:)
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612 ac_tool_warned=yes ;;
4613 esac
4614 GNATBIND=$ac_ct_GNATBIND
4616 else
4617 GNATBIND="$ac_cv_prog_GNATBIND"
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$GNATMAKE"; then
4629 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 GNATMAKE=$ac_cv_prog_GNATMAKE
4649 if test -n "$GNATMAKE"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4651 $as_echo "$GNATMAKE" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4659 if test -z "$ac_cv_prog_GNATMAKE"; then
4660 ac_ct_GNATMAKE=$GNATMAKE
4661 # Extract the first word of "gnatmake", so it can be a program name with args.
4662 set dummy gnatmake; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$ac_ct_GNATMAKE"; then
4669 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4689 if test -n "$ac_ct_GNATMAKE"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4691 $as_echo "$ac_ct_GNATMAKE" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4697 if test "x$ac_ct_GNATMAKE" = x; then
4698 GNATMAKE="no"
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4705 esac
4706 GNATMAKE=$ac_ct_GNATMAKE
4708 else
4709 GNATMAKE="$ac_cv_prog_GNATMAKE"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4713 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4714 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 cat >conftest.adb <<EOF
4718 procedure conftest is begin null; end conftest;
4720 acx_cv_cc_gcc_supports_ada=no
4721 # There is a bug in old released versions of GCC which causes the
4722 # driver to exit successfully when the appropriate language module
4723 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4724 # Therefore we must check for the error message as well as an
4725 # unsuccessful exit.
4726 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4727 # given a .adb file, but produce no object file. So we must check
4728 # if an object file was really produced to guard against this.
4729 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4730 if test x"$errors" = x && test -f conftest.$ac_objext; then
4731 acx_cv_cc_gcc_supports_ada=yes
4733 rm -f conftest.*
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4736 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4738 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4739 have_gnat=yes
4740 else
4741 have_gnat=no
4745 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4746 # optimizations to be activated explicitly by the toplevel.
4747 case "$CC" in
4748 */prev-gcc/xgcc*) ;;
4749 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4750 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4751 esac
4755 # Determine PICFLAG for target gnatlib.
4760 case "${target}" in
4761 # PIC is the default on some targets or must not be used.
4762 *-*-darwin*)
4763 # PIC is the default on this platform
4764 # Common symbols not allowed in MH_DYLIB files
4765 PICFLAG_FOR_TARGET=-fno-common
4767 alpha*-dec-osf5*)
4768 # PIC is the default.
4770 hppa*64*-*-hpux*)
4771 # PIC is the default for 64-bit PA HP-UX.
4773 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4775 i[34567]86-*-mingw* | x86_64-*-mingw*)
4777 i[34567]86-*-interix[3-9]*)
4778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4779 # Instead, we relocate shared libraries at runtime.
4781 i[34567]86-*-nto-qnx*)
4782 # QNX uses GNU C++, but need to define -shared option too, otherwise
4783 # it will coredump.
4784 PICFLAG_FOR_TARGET='-fPIC -shared'
4786 i[34567]86-pc-msdosdjgpp*)
4787 # DJGPP does not support shared libraries at all.
4789 ia64*-*-hpux*)
4790 # On IA64 HP-UX, PIC is the default but the pic flag
4791 # sets the default TLS model and affects inlining.
4792 PICFLAG_FOR_TARGET=-fPIC
4794 mips-sgi-irix6*)
4795 # PIC is the default.
4797 rs6000-ibm-aix* | powerpc-ibm-aix*)
4798 # All AIX code is PIC.
4801 # Some targets support both -fPIC and -fpic, but prefer the latter.
4802 # FIXME: Why?
4803 i[34567]86-*-* | x86_64-*-*)
4804 PICFLAG_FOR_TARGET=-fpic
4806 # FIXME: Override -fPIC default in libgcc only?
4807 sh-*-linux* | sh[2346lbe]*-*-linux*)
4808 PICFLAG_FOR_TARGET=-fpic
4810 # FIXME: Simplify to sh*-*-netbsd*?
4811 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4812 sh64-*-netbsd* | sh64l*-*-netbsd*)
4813 PICFLAG_FOR_TARGET=-fpic
4815 # Default to -fPIC unless specified otherwise.
4817 PICFLAG_FOR_TARGET=-fPIC
4819 esac
4821 # If the user explicitly uses -fpic/-fPIC, keep that.
4822 case "${CFLAGS_FOR_TARGET}" in
4823 *-fpic*)
4824 PICFLAG_FOR_TARGET=-fpic
4826 *-fPIC*)
4827 PICFLAG_FOR_TARGET=-fPIC
4829 esac
4833 # -------------------------
4834 # Check C compiler features
4835 # -------------------------
4838 ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4845 # On Suns, sometimes $CPP names a directory.
4846 if test -n "$CPP" && test -d "$CPP"; then
4847 CPP=
4849 if test -z "$CPP"; then
4850 if test "${ac_cv_prog_CPP+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 # Double quotes because CPP needs to be expanded
4854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4856 ac_preproc_ok=false
4857 for ac_c_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 #ifdef __STDC__
4868 # include <limits.h>
4869 #else
4870 # include <assert.h>
4871 #endif
4872 Syntax error
4873 _ACEOF
4874 if ac_fn_c_try_cpp "$LINENO"; then :
4876 else
4877 # Broken: fails on valid input.
4878 continue
4880 rm -f conftest.err conftest.$ac_ext
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4887 _ACEOF
4888 if ac_fn_c_try_cpp "$LINENO"; then :
4889 # Broken: success on invalid input.
4890 continue
4891 else
4892 # Passes both tests.
4893 ac_preproc_ok=:
4894 break
4896 rm -f conftest.err conftest.$ac_ext
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then :
4902 break
4905 done
4906 ac_cv_prog_CPP=$CPP
4909 CPP=$ac_cv_prog_CPP
4910 else
4911 ac_cv_prog_CPP=$CPP
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4914 $as_echo "$CPP" >&6; }
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #ifdef __STDC__
4927 # include <limits.h>
4928 #else
4929 # include <assert.h>
4930 #endif
4931 Syntax error
4932 _ACEOF
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4935 else
4936 # Broken: fails on valid input.
4937 continue
4939 rm -f conftest.err conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4946 _ACEOF
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948 # Broken: success on invalid input.
4949 continue
4950 else
4951 # Passes both tests.
4952 ac_preproc_ok=:
4953 break
4955 rm -f conftest.err conftest.$ac_ext
4957 done
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then :
4962 else
4963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4966 See \`config.log' for more details." "$LINENO" 5; }
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4978 if test "${ac_cv_path_GREP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -z "$GREP"; then
4982 ac_path_GREP_found=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_prog in grep ggrep; do
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4993 # Check for GNU ac_path_GREP and select it if it is found.
4994 # Check for GNU $ac_path_GREP
4995 case `"$ac_path_GREP" --version 2>&1` in
4996 *GNU*)
4997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4999 ac_count=0
5000 $as_echo_n 0123456789 >"conftest.in"
5001 while :
5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
5004 mv "conftest.tmp" "conftest.in"
5005 cp "conftest.in" "conftest.nl"
5006 $as_echo 'GREP' >> "conftest.nl"
5007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
5010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5011 # Best one so far, save it but keep looking for a better one
5012 ac_cv_path_GREP="$ac_path_GREP"
5013 ac_path_GREP_max=$ac_count
5015 # 10*(2^10) chars as input seems more than enough
5016 test $ac_count -gt 10 && break
5017 done
5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019 esac
5021 $ac_path_GREP_found && break 3
5022 done
5023 done
5024 done
5025 IFS=$as_save_IFS
5026 if test -z "$ac_cv_path_GREP"; then
5027 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029 else
5030 ac_cv_path_GREP=$GREP
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5035 $as_echo "$ac_cv_path_GREP" >&6; }
5036 GREP="$ac_cv_path_GREP"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5040 $as_echo_n "checking for egrep... " >&6; }
5041 if test "${ac_cv_path_EGREP+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5045 then ac_cv_path_EGREP="$GREP -E"
5046 else
5047 if test -z "$EGREP"; then
5048 ac_path_EGREP_found=false
5049 # Loop through the user's path and test for each of PROGNAME-LIST
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_prog in egrep; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5059 # Check for GNU ac_path_EGREP and select it if it is found.
5060 # Check for GNU $ac_path_EGREP
5061 case `"$ac_path_EGREP" --version 2>&1` in
5062 *GNU*)
5063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5065 ac_count=0
5066 $as_echo_n 0123456789 >"conftest.in"
5067 while :
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 $as_echo 'EGREP' >> "conftest.nl"
5073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075 as_fn_arith $ac_count + 1 && ac_count=$as_val
5076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_EGREP="$ac_path_EGREP"
5079 ac_path_EGREP_max=$ac_count
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5083 done
5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5087 $ac_path_EGREP_found && break 3
5088 done
5089 done
5090 done
5091 IFS=$as_save_IFS
5092 if test -z "$ac_cv_path_EGREP"; then
5093 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5095 else
5096 ac_cv_path_EGREP=$EGREP
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5102 $as_echo "$ac_cv_path_EGREP" >&6; }
5103 EGREP="$ac_cv_path_EGREP"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5107 $as_echo_n "checking for ANSI C header files... " >&6; }
5108 if test "${ac_cv_header_stdc+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <stdlib.h>
5114 #include <stdarg.h>
5115 #include <string.h>
5116 #include <float.h>
5119 main ()
5123 return 0;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_header_stdc=yes
5128 else
5129 ac_cv_header_stdc=no
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 if test $ac_cv_header_stdc = yes; then
5134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <string.h>
5139 _ACEOF
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 $EGREP "memchr" >/dev/null 2>&1; then :
5143 else
5144 ac_cv_header_stdc=no
5146 rm -f conftest*
5150 if test $ac_cv_header_stdc = yes; then
5151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <stdlib.h>
5156 _ACEOF
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "free" >/dev/null 2>&1; then :
5160 else
5161 ac_cv_header_stdc=no
5163 rm -f conftest*
5167 if test $ac_cv_header_stdc = yes; then
5168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5169 if test "$cross_compiling" = yes; then :
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #include <ctype.h>
5175 #include <stdlib.h>
5176 #if ((' ' & 0x0FF) == 0x020)
5177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5179 #else
5180 # define ISLOWER(c) \
5181 (('a' <= (c) && (c) <= 'i') \
5182 || ('j' <= (c) && (c) <= 'r') \
5183 || ('s' <= (c) && (c) <= 'z'))
5184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5185 #endif
5187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189 main ()
5191 int i;
5192 for (i = 0; i < 256; i++)
5193 if (XOR (islower (i), ISLOWER (i))
5194 || toupper (i) != TOUPPER (i))
5195 return 2;
5196 return 0;
5198 _ACEOF
5199 if ac_fn_c_try_run "$LINENO"; then :
5201 else
5202 ac_cv_header_stdc=no
5204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5205 conftest.$ac_objext conftest.beam conftest.$ac_ext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5211 $as_echo "$ac_cv_header_stdc" >&6; }
5212 if test $ac_cv_header_stdc = yes; then
5214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5220 inttypes.h stdint.h unistd.h
5221 do :
5222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5225 eval as_val=\$$as_ac_Header
5226 if test "x$as_val" = x""yes; then :
5227 cat >>confdefs.h <<_ACEOF
5228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229 _ACEOF
5233 done
5237 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5239 MINIX=yes
5240 else
5241 MINIX=
5245 if test "$MINIX" = yes; then
5247 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5250 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5253 $as_echo "#define _MINIX 1" >>confdefs.h
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5259 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5260 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 # define __EXTENSIONS__ 1
5267 $ac_includes_default
5269 main ()
5273 return 0;
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277 ac_cv_safe_to_define___extensions__=yes
5278 else
5279 ac_cv_safe_to_define___extensions__=no
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5284 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5285 test $ac_cv_safe_to_define___extensions__ = yes &&
5286 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5288 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5290 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5292 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5294 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5297 ac_ext=c
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5304 # On Suns, sometimes $CPP names a directory.
5305 if test -n "$CPP" && test -d "$CPP"; then
5306 CPP=
5308 if test -z "$CPP"; then
5309 if test "${ac_cv_prog_CPP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 # Double quotes because CPP needs to be expanded
5313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5315 ac_preproc_ok=false
5316 for ac_c_preproc_warn_flag in '' yes
5318 # Use a header file that comes with gcc, so configuring glibc
5319 # with a fresh cross-compiler works.
5320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321 # <limits.h> exists even on freestanding compilers.
5322 # On the NeXT, cc -E runs the code through the compiler's parser,
5323 # not just through cpp. "Syntax error" is here to catch this case.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #ifdef __STDC__
5327 # include <limits.h>
5328 #else
5329 # include <assert.h>
5330 #endif
5331 Syntax error
5332 _ACEOF
5333 if ac_fn_c_try_cpp "$LINENO"; then :
5335 else
5336 # Broken: fails on valid input.
5337 continue
5339 rm -f conftest.err conftest.$ac_ext
5341 # OK, works on sane cases. Now check whether nonexistent headers
5342 # can be detected and how.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <ac_nonexistent.h>
5346 _ACEOF
5347 if ac_fn_c_try_cpp "$LINENO"; then :
5348 # Broken: success on invalid input.
5349 continue
5350 else
5351 # Passes both tests.
5352 ac_preproc_ok=:
5353 break
5355 rm -f conftest.err conftest.$ac_ext
5357 done
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.$ac_ext
5360 if $ac_preproc_ok; then :
5361 break
5364 done
5365 ac_cv_prog_CPP=$CPP
5368 CPP=$ac_cv_prog_CPP
5369 else
5370 ac_cv_prog_CPP=$CPP
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5373 $as_echo "$CPP" >&6; }
5374 ac_preproc_ok=false
5375 for ac_c_preproc_warn_flag in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390 Syntax error
5391 _ACEOF
5392 if ac_fn_c_try_cpp "$LINENO"; then :
5394 else
5395 # Broken: fails on valid input.
5396 continue
5398 rm -f conftest.err conftest.$ac_ext
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <ac_nonexistent.h>
5405 _ACEOF
5406 if ac_fn_c_try_cpp "$LINENO"; then :
5407 # Broken: success on invalid input.
5408 continue
5409 else
5410 # Passes both tests.
5411 ac_preproc_ok=:
5412 break
5414 rm -f conftest.err conftest.$ac_ext
5416 done
5417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5418 rm -f conftest.err conftest.$ac_ext
5419 if $ac_preproc_ok; then :
5421 else
5422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5424 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5425 See \`config.log' for more details." "$LINENO" 5; }
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5435 $as_echo_n "checking for inline... " >&6; }
5436 if test "${ac_cv_c_inline+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 ac_cv_c_inline=no
5440 for ac_kw in inline __inline__ __inline; do
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #ifndef __cplusplus
5444 typedef int foo_t;
5445 static $ac_kw foo_t static_foo () {return 0; }
5446 $ac_kw foo_t foo () {return 0; }
5447 #endif
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 ac_cv_c_inline=$ac_kw
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 test "$ac_cv_c_inline" != no && break
5455 done
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5459 $as_echo "$ac_cv_c_inline" >&6; }
5461 case $ac_cv_c_inline in
5462 inline | yes) ;;
5464 case $ac_cv_c_inline in
5465 no) ac_val=;;
5466 *) ac_val=$ac_cv_c_inline;;
5467 esac
5468 cat >>confdefs.h <<_ACEOF
5469 #ifndef __cplusplus
5470 #define inline $ac_val
5471 #endif
5472 _ACEOF
5474 esac
5477 # Check whether --enable-largefile was given.
5478 if test "${enable_largefile+set}" = set; then :
5479 enableval=$enable_largefile;
5482 if test "$enable_largefile" != no; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5485 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5486 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 ac_cv_sys_largefile_CC=no
5490 if test "$GCC" != yes; then
5491 ac_save_CC=$CC
5492 while :; do
5493 # IRIX 6.2 and later do not support large files by default,
5494 # so use the C compiler's -n32 option if that helps.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <sys/types.h>
5498 /* Check that off_t can represent 2**63 - 1 correctly.
5499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5500 since some C++ compilers masquerading as C compilers
5501 incorrectly reject 9223372036854775807. */
5502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5504 && LARGE_OFF_T % 2147483647 == 1)
5505 ? 1 : -1];
5507 main ()
5511 return 0;
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"; then :
5515 break
5517 rm -f core conftest.err conftest.$ac_objext
5518 CC="$CC -n32"
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 ac_cv_sys_largefile_CC=' -n32'; break
5522 rm -f core conftest.err conftest.$ac_objext
5523 break
5524 done
5525 CC=$ac_save_CC
5526 rm -f conftest.$ac_ext
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5530 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5531 if test "$ac_cv_sys_largefile_CC" != no; then
5532 CC=$CC$ac_cv_sys_largefile_CC
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5536 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 while :; do
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <sys/types.h>
5544 /* Check that off_t can represent 2**63 - 1 correctly.
5545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5546 since some C++ compilers masquerading as C compilers
5547 incorrectly reject 9223372036854775807. */
5548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5550 && LARGE_OFF_T % 2147483647 == 1)
5551 ? 1 : -1];
5553 main ()
5557 return 0;
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 ac_cv_sys_file_offset_bits=no; break
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #define _FILE_OFFSET_BITS 64
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5575 ? 1 : -1];
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_sys_file_offset_bits=64; break
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_cv_sys_file_offset_bits=unknown
5589 break
5590 done
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5593 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5594 case $ac_cv_sys_file_offset_bits in #(
5595 no | unknown) ;;
5597 cat >>confdefs.h <<_ACEOF
5598 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5599 _ACEOF
5601 esac
5602 rm -rf conftest*
5603 if test $ac_cv_sys_file_offset_bits = unknown; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5605 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5606 if test "${ac_cv_sys_large_files+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 while :; do
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5620 ? 1 : -1];
5622 main ()
5626 return 0;
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 ac_cv_sys_large_files=no; break
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #define _LARGE_FILES 1
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5644 ? 1 : -1];
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_sys_large_files=1; break
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 ac_cv_sys_large_files=unknown
5658 break
5659 done
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5662 $as_echo "$ac_cv_sys_large_files" >&6; }
5663 case $ac_cv_sys_large_files in #(
5664 no | unknown) ;;
5666 cat >>confdefs.h <<_ACEOF
5667 #define _LARGE_FILES $ac_cv_sys_large_files
5668 _ACEOF
5670 esac
5671 rm -rf conftest*
5676 # sizeof(char) is 1 by definition.
5677 # The cast to long int works around a bug in the HP C Compiler
5678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5680 # This bug is HP SR number 8606223364.
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5682 $as_echo_n "checking size of void *... " >&6; }
5683 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5688 else
5689 if test "$ac_cv_type_void_p" = yes; then
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 { as_fn_set_status 77
5693 as_fn_error "cannot compute sizeof (void *)
5694 See \`config.log' for more details." "$LINENO" 5; }; }
5695 else
5696 ac_cv_sizeof_void_p=0
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5702 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5706 cat >>confdefs.h <<_ACEOF
5707 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5708 _ACEOF
5711 # The cast to long int works around a bug in the HP C Compiler
5712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5714 # This bug is HP SR number 8606223364.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5716 $as_echo_n "checking size of short... " >&6; }
5717 if test "${ac_cv_sizeof_short+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5722 else
5723 if test "$ac_cv_type_short" = yes; then
5724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5726 { as_fn_set_status 77
5727 as_fn_error "cannot compute sizeof (short)
5728 See \`config.log' for more details." "$LINENO" 5; }; }
5729 else
5730 ac_cv_sizeof_short=0
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5736 $as_echo "$ac_cv_sizeof_short" >&6; }
5740 cat >>confdefs.h <<_ACEOF
5741 #define SIZEOF_SHORT $ac_cv_sizeof_short
5742 _ACEOF
5745 # The cast to long int works around a bug in the HP C Compiler
5746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748 # This bug is HP SR number 8606223364.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5750 $as_echo_n "checking size of int... " >&6; }
5751 if test "${ac_cv_sizeof_int+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5756 else
5757 if test "$ac_cv_type_int" = yes; then
5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760 { as_fn_set_status 77
5761 as_fn_error "cannot compute sizeof (int)
5762 See \`config.log' for more details." "$LINENO" 5; }; }
5763 else
5764 ac_cv_sizeof_int=0
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5770 $as_echo "$ac_cv_sizeof_int" >&6; }
5774 cat >>confdefs.h <<_ACEOF
5775 #define SIZEOF_INT $ac_cv_sizeof_int
5776 _ACEOF
5779 # The cast to long int works around a bug in the HP C Compiler
5780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5782 # This bug is HP SR number 8606223364.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5784 $as_echo_n "checking size of long... " >&6; }
5785 if test "${ac_cv_sizeof_long+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5790 else
5791 if test "$ac_cv_type_long" = yes; then
5792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5794 { as_fn_set_status 77
5795 as_fn_error "cannot compute sizeof (long)
5796 See \`config.log' for more details." "$LINENO" 5; }; }
5797 else
5798 ac_cv_sizeof_long=0
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5804 $as_echo "$ac_cv_sizeof_long" >&6; }
5808 cat >>confdefs.h <<_ACEOF
5809 #define SIZEOF_LONG $ac_cv_sizeof_long
5810 _ACEOF
5813 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5814 if test "x$ac_cv_type_long_long" = x""yes; then :
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_LONG_LONG 1
5818 _ACEOF
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5825 $as_echo_n "checking size of long long... " >&6; }
5826 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5831 else
5832 if test "$ac_cv_type_long_long" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status 77
5836 as_fn_error "cannot compute sizeof (long long)
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5838 else
5839 ac_cv_sizeof_long_long=0
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5845 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5849 cat >>confdefs.h <<_ACEOF
5850 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5851 _ACEOF
5856 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5857 if test "x$ac_cv_type___int64" = x""yes; then :
5859 cat >>confdefs.h <<_ACEOF
5860 #define HAVE___INT64 1
5861 _ACEOF
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5868 $as_echo_n "checking size of __int64... " >&6; }
5869 if test "${ac_cv_sizeof___int64+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5874 else
5875 if test "$ac_cv_type___int64" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status 77
5879 as_fn_error "cannot compute sizeof (__int64)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5881 else
5882 ac_cv_sizeof___int64=0
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5888 $as_echo "$ac_cv_sizeof___int64" >&6; }
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5894 _ACEOF
5899 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5900 case $ac_cv_c_int8_t in #(
5901 no|yes) ;; #(
5904 cat >>confdefs.h <<_ACEOF
5905 #define int8_t $ac_cv_c_int8_t
5906 _ACEOF
5908 esac
5910 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5911 case $ac_cv_c_int16_t in #(
5912 no|yes) ;; #(
5915 cat >>confdefs.h <<_ACEOF
5916 #define int16_t $ac_cv_c_int16_t
5917 _ACEOF
5919 esac
5921 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5922 case $ac_cv_c_int32_t in #(
5923 no|yes) ;; #(
5926 cat >>confdefs.h <<_ACEOF
5927 #define int32_t $ac_cv_c_int32_t
5928 _ACEOF
5930 esac
5932 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5933 case $ac_cv_c_int64_t in #(
5934 no|yes) ;; #(
5937 cat >>confdefs.h <<_ACEOF
5938 #define int64_t $ac_cv_c_int64_t
5939 _ACEOF
5941 esac
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5945 $as_echo_n "checking for long long int... " >&6; }
5946 if test "${ac_cv_type_long_long_int+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5952 /* For now, do not test the preprocessor; as of 2007 there are too many
5953 implementations with broken preprocessors. Perhaps this can
5954 be revisited in 2012. In the meantime, code should not expect
5955 #if to work with literals wider than 32 bits. */
5956 /* Test literals. */
5957 long long int ll = 9223372036854775807ll;
5958 long long int nll = -9223372036854775807LL;
5959 unsigned long long int ull = 18446744073709551615ULL;
5960 /* Test constant expressions. */
5961 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5962 ? 1 : -1)];
5963 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5964 ? 1 : -1)];
5965 int i = 63;
5967 main ()
5969 /* Test availability of runtime routines for shift and division. */
5970 long long int llmax = 9223372036854775807ll;
5971 unsigned long long int ullmax = 18446744073709551615ull;
5972 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5973 | (llmax / ll) | (llmax % ll)
5974 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5975 | (ullmax / ull) | (ullmax % ull));
5977 return 0;
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"; then :
5982 if test "$cross_compiling" = yes; then :
5983 ac_cv_type_long_long_int=yes
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <limits.h>
5988 #ifndef LLONG_MAX
5989 # define HALF \
5990 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5991 # define LLONG_MAX (HALF - 1 + HALF)
5992 #endif
5994 main ()
5996 long long int n = 1;
5997 int i;
5998 for (i = 0; ; i++)
6000 long long int m = n << i;
6001 if (m >> i != n)
6002 return 1;
6003 if (LLONG_MAX / 2 < m)
6004 break;
6006 return 0;
6008 return 0;
6010 _ACEOF
6011 if ac_fn_c_try_run "$LINENO"; then :
6012 ac_cv_type_long_long_int=yes
6013 else
6014 ac_cv_type_long_long_int=no
6016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6017 conftest.$ac_objext conftest.beam conftest.$ac_ext
6020 else
6021 ac_cv_type_long_long_int=no
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6027 $as_echo "$ac_cv_type_long_long_int" >&6; }
6028 if test $ac_cv_type_long_long_int = yes; then
6030 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6036 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6037 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6039 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6041 else
6042 test $ac_cv_type_long_long_int = yes \
6043 && ac_type='long long int' \
6044 || ac_type='long int'
6046 cat >>confdefs.h <<_ACEOF
6047 #define intmax_t $ac_type
6048 _ACEOF
6054 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6055 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6057 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6059 else
6060 for ac_type in 'int' 'long int' 'long long int'; do
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 $ac_includes_default
6065 main ()
6067 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6068 test_array [0] = 0
6071 return 0;
6073 _ACEOF
6074 if ac_fn_c_try_compile "$LINENO"; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define intptr_t $ac_type
6078 _ACEOF
6080 ac_type=
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 test -z "$ac_type" && break
6084 done
6088 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6089 case $ac_cv_c_uint8_t in #(
6090 no|yes) ;; #(
6093 $as_echo "#define _UINT8_T 1" >>confdefs.h
6096 cat >>confdefs.h <<_ACEOF
6097 #define uint8_t $ac_cv_c_uint8_t
6098 _ACEOF
6100 esac
6102 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6103 case $ac_cv_c_uint16_t in #(
6104 no|yes) ;; #(
6108 cat >>confdefs.h <<_ACEOF
6109 #define uint16_t $ac_cv_c_uint16_t
6110 _ACEOF
6112 esac
6114 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6115 case $ac_cv_c_uint32_t in #(
6116 no|yes) ;; #(
6119 $as_echo "#define _UINT32_T 1" >>confdefs.h
6122 cat >>confdefs.h <<_ACEOF
6123 #define uint32_t $ac_cv_c_uint32_t
6124 _ACEOF
6126 esac
6128 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6129 case $ac_cv_c_uint64_t in #(
6130 no|yes) ;; #(
6133 $as_echo "#define _UINT64_T 1" >>confdefs.h
6136 cat >>confdefs.h <<_ACEOF
6137 #define uint64_t $ac_cv_c_uint64_t
6138 _ACEOF
6140 esac
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6144 $as_echo_n "checking for unsigned long long int... " >&6; }
6145 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6151 /* For now, do not test the preprocessor; as of 2007 there are too many
6152 implementations with broken preprocessors. Perhaps this can
6153 be revisited in 2012. In the meantime, code should not expect
6154 #if to work with literals wider than 32 bits. */
6155 /* Test literals. */
6156 long long int ll = 9223372036854775807ll;
6157 long long int nll = -9223372036854775807LL;
6158 unsigned long long int ull = 18446744073709551615ULL;
6159 /* Test constant expressions. */
6160 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6161 ? 1 : -1)];
6162 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6163 ? 1 : -1)];
6164 int i = 63;
6166 main ()
6168 /* Test availability of runtime routines for shift and division. */
6169 long long int llmax = 9223372036854775807ll;
6170 unsigned long long int ullmax = 18446744073709551615ull;
6171 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6172 | (llmax / ll) | (llmax % ll)
6173 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6174 | (ullmax / ull) | (ullmax % ull));
6176 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 ac_cv_type_unsigned_long_long_int=yes
6182 else
6183 ac_cv_type_unsigned_long_long_int=no
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6189 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6190 if test $ac_cv_type_unsigned_long_long_int = yes; then
6192 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6198 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6199 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6201 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6203 else
6204 test $ac_cv_type_unsigned_long_long_int = yes \
6205 && ac_type='unsigned long long int' \
6206 || ac_type='unsigned long int'
6208 cat >>confdefs.h <<_ACEOF
6209 #define uintmax_t $ac_type
6210 _ACEOF
6216 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6217 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6219 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6221 else
6222 for ac_type in 'unsigned int' 'unsigned long int' \
6223 'unsigned long long int'; do
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 $ac_includes_default
6228 main ()
6230 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6231 test_array [0] = 0
6234 return 0;
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"; then :
6239 cat >>confdefs.h <<_ACEOF
6240 #define uintptr_t $ac_type
6241 _ACEOF
6243 ac_type=
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 test -z "$ac_type" && break
6247 done
6264 # ---------------------
6265 # Warnings and checking
6266 # ---------------------
6268 # Check $CC warning features (if it's GCC).
6269 # We want to use -pedantic, but we don't want warnings about
6270 # * 'long long'
6271 # * variadic macros
6272 # * overlong strings
6273 # * C++11 narrowing conversions in { }
6274 # So, we only use -pedantic if we can disable those warnings.
6276 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6277 # Check whether --enable-build-format-warnings was given.
6278 if test "${enable_build_format_warnings+set}" = set; then :
6279 enableval=$enable_build_format_warnings;
6280 else
6281 enable_build_format_warnings=yes
6284 if test $enable_build_format_warnings = no; then :
6285 wf_opt=-Wno-format
6286 else
6287 wf_opt=
6289 loose_warn=
6290 save_CFLAGS="$CFLAGS"
6291 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6292 # Do the check with the no- prefix removed since gcc silently
6293 # accepts any -Wno-* option on purpose
6294 case $real_option in
6295 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6296 *) option=$real_option ;;
6297 esac
6298 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6301 $as_echo_n "checking whether $CC supports $option... " >&6; }
6302 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 CFLAGS="$option"
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6310 main ()
6314 return 0;
6316 _ACEOF
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 eval "$as_acx_Woption=yes"
6319 else
6320 eval "$as_acx_Woption=no"
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 eval ac_res=\$$as_acx_Woption
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6329 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6331 done
6332 CFLAGS="$save_CFLAGS"
6334 c_loose_warn=
6335 save_CFLAGS="$CFLAGS"
6336 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6337 # Do the check with the no- prefix removed since gcc silently
6338 # accepts any -Wno-* option on purpose
6339 case $real_option in
6340 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6341 *) option=$real_option ;;
6342 esac
6343 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6346 $as_echo_n "checking whether $CC supports $option... " >&6; }
6347 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 CFLAGS="$option"
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6355 main ()
6359 return 0;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363 eval "$as_acx_Woption=yes"
6364 else
6365 eval "$as_acx_Woption=no"
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 eval ac_res=\$$as_acx_Woption
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6372 $as_echo "$ac_res" >&6; }
6373 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6374 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6376 done
6377 CFLAGS="$save_CFLAGS"
6379 strict_warn=
6380 save_CFLAGS="$CFLAGS"
6381 for real_option in -Wmissing-format-attribute; do
6382 # Do the check with the no- prefix removed since gcc silently
6383 # accepts any -Wno-* option on purpose
6384 case $real_option in
6385 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6386 *) option=$real_option ;;
6387 esac
6388 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6391 $as_echo_n "checking whether $CC supports $option... " >&6; }
6392 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 CFLAGS="$option"
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6400 main ()
6404 return 0;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 eval "$as_acx_Woption=yes"
6409 else
6410 eval "$as_acx_Woption=no"
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 eval ac_res=\$$as_acx_Woption
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6419 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6421 done
6422 CFLAGS="$save_CFLAGS"
6424 c_strict_warn=
6425 save_CFLAGS="$CFLAGS"
6426 for real_option in -Wold-style-definition -Wc++-compat; do
6427 # Do the check with the no- prefix removed since gcc silently
6428 # accepts any -Wno-* option on purpose
6429 case $real_option in
6430 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6431 *) option=$real_option ;;
6432 esac
6433 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6436 $as_echo_n "checking whether $CC supports $option... " >&6; }
6437 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 CFLAGS="$option"
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6445 main ()
6449 return 0;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 eval "$as_acx_Woption=yes"
6454 else
6455 eval "$as_acx_Woption=no"
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 eval ac_res=\$$as_acx_Woption
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6462 $as_echo "$ac_res" >&6; }
6463 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6464 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6466 done
6467 CFLAGS="$save_CFLAGS"
6469 # Do the check with the no- prefix removed from the warning options
6470 # since gcc silently accepts any -Wno-* option on purpose
6471 if test "$GCC" = yes; then :
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6473 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6474 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 save_CFLAGS="$CFLAGS"
6478 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6483 main ()
6487 return 0;
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6492 else
6493 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 CFLAGS="$save_CFLAGS"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6499 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6500 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6501 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6506 # Check whether --enable-werror-always was given.
6507 if test "${enable_werror_always+set}" = set; then :
6508 enableval=$enable_werror_always;
6509 else
6510 enable_werror_always=no
6513 if test $enable_werror_always = yes; then :
6514 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6519 # The above macros do nothing if the compiler is not GCC. However, the
6520 # Makefile has more goo to add other flags, so these variables are used
6521 # to enable warnings only for GCC.
6522 warn_cflags=
6523 warn_cxxflags=
6524 if test "x$GCC" = "xyes"; then
6525 warn_cflags='$(GCC_WARN_CFLAGS)'
6526 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6531 # Disable exceptions and RTTI if building with g++
6532 noexception_flags=
6533 save_CFLAGS="$CFLAGS"
6534 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6535 # Do the check with the no- prefix removed since gcc silently
6536 # accepts any -Wno-* option on purpose
6537 case $real_option in
6538 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6539 *) option=$real_option ;;
6540 esac
6541 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6544 $as_echo_n "checking whether $CC supports $option... " >&6; }
6545 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 CFLAGS="$option"
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6553 main ()
6557 return 0;
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 eval "$as_acx_Woption=yes"
6562 else
6563 eval "$as_acx_Woption=no"
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 eval ac_res=\$$as_acx_Woption
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6570 $as_echo "$ac_res" >&6; }
6571 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6572 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6574 done
6575 CFLAGS="$save_CFLAGS"
6578 # Enable expensive internal checks
6579 is_release=
6580 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6581 is_release=yes
6584 # Check whether --enable-checking was given.
6585 if test "${enable_checking+set}" = set; then :
6586 enableval=$enable_checking; ac_checking_flags="${enableval}"
6587 else
6589 # Determine the default checks.
6590 if test x$is_release = x ; then
6591 ac_checking_flags=yes
6592 else
6593 ac_checking_flags=release
6597 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6598 for check in release $ac_checking_flags
6600 case $check in
6601 # these set all the flags to specific states
6602 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6603 ac_fold_checking= ; ac_gc_checking=1 ;
6604 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6605 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6606 ac_tree_checking=1 ; ac_valgrind_checking= ;
6607 ac_types_checking=1 ;;
6608 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6609 ac_fold_checking= ; ac_gc_checking= ;
6610 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6611 ac_rtlflag_checking= ; ac_runtime_checking= ;
6612 ac_tree_checking= ; ac_valgrind_checking= ;
6613 ac_types_checking= ;;
6614 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6615 ac_fold_checking=1 ; ac_gc_checking=1 ;
6616 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6617 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6618 ac_tree_checking=1 ; ac_valgrind_checking= ;
6619 ac_types_checking=1 ;;
6620 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6621 ac_fold_checking= ; ac_gc_checking= ;
6622 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6623 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6624 ac_tree_checking= ; ac_valgrind_checking= ;
6625 ac_types_checking= ;;
6626 # these enable particular checks
6627 assert) ac_assert_checking=1 ;;
6628 df) ac_df_checking=1 ;;
6629 fold) ac_fold_checking=1 ;;
6630 gc) ac_gc_checking=1 ;;
6631 gcac) ac_gc_always_collect=1 ;;
6632 gimple) ac_gimple_checking=1 ;;
6633 misc) ac_checking=1 ;;
6634 rtl) ac_rtl_checking=1 ;;
6635 rtlflag) ac_rtlflag_checking=1 ;;
6636 runtime) ac_runtime_checking=1 ;;
6637 tree) ac_tree_checking=1 ;;
6638 types) ac_types_checking=1 ;;
6639 valgrind) ac_valgrind_checking=1 ;;
6640 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6641 esac
6642 done
6643 IFS="$ac_save_IFS"
6645 nocommon_flag=""
6646 if test x$ac_checking != x ; then
6648 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6650 nocommon_flag=-fno-common
6653 if test x$ac_df_checking != x ; then
6655 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6658 if test x$ac_assert_checking != x ; then
6660 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6663 if test x$ac_gimple_checking != x ; then
6665 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6669 if test x$ac_runtime_checking != x ; then
6671 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6674 if test x$ac_tree_checking != x ; then
6676 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6678 TREEBROWSER=tree-browser.o
6679 TREECHECKING=yes
6681 if test x$ac_types_checking != x ; then
6683 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6688 if test x$ac_rtl_checking != x ; then
6690 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6693 if test x$ac_rtlflag_checking != x ; then
6695 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6698 if test x$ac_gc_checking != x ; then
6700 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6703 if test x$ac_gc_always_collect != x ; then
6705 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6708 if test x$ac_fold_checking != x ; then
6710 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6713 valgrind_path_defines=
6714 valgrind_command=
6716 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6717 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6718 have_valgrind_h=yes
6719 else
6720 have_valgrind_h=no
6725 if test x$ac_valgrind_checking != x ; then
6726 # It is certainly possible that there's valgrind but no valgrind.h.
6727 # GCC relies on making annotations so we must have both.
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6729 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <valgrind/memcheck.h>
6733 #ifndef VALGRIND_DISCARD
6734 #error VALGRIND_DISCARD not defined
6735 #endif
6736 _ACEOF
6737 if ac_fn_c_try_cpp "$LINENO"; then :
6738 gcc_cv_header_valgrind_memcheck_h=yes
6739 else
6740 gcc_cv_header_valgrind_memcheck_h=no
6742 rm -f conftest.err conftest.$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6744 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6746 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <memcheck.h>
6750 #ifndef VALGRIND_DISCARD
6751 #error VALGRIND_DISCARD not defined
6752 #endif
6753 _ACEOF
6754 if ac_fn_c_try_cpp "$LINENO"; then :
6755 gcc_cv_header_memcheck_h=yes
6756 else
6757 gcc_cv_header_memcheck_h=no
6759 rm -f conftest.err conftest.$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6761 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6763 # Prepare PATH_SEPARATOR.
6764 # The user is always right.
6765 if test "${PATH_SEPARATOR+set}" != set; then
6766 echo "#! /bin/sh" >conf$$.sh
6767 echo "exit 0" >>conf$$.sh
6768 chmod +x conf$$.sh
6769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6770 PATH_SEPARATOR=';'
6771 else
6772 PATH_SEPARATOR=:
6774 rm -f conf$$.sh
6777 # Find out how to test for executable files. Don't use a zero-byte file,
6778 # as systems may use methods other than mode bits to determine executability.
6779 cat >conf$$.file <<_ASEOF
6780 #! /bin/sh
6781 exit 0
6782 _ASEOF
6783 chmod +x conf$$.file
6784 if test -x conf$$.file >/dev/null 2>&1; then
6785 ac_executable_p="test -x"
6786 else
6787 ac_executable_p="test -f"
6789 rm -f conf$$.file
6791 # Extract the first word of "valgrind", so it can be a program name with args.
6792 set dummy valgrind; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 case "$valgrind_path" in
6799 [\\/]* | ?:[\\/]*)
6800 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6803 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6804 for ac_dir in $PATH; do
6805 IFS="$ac_save_IFS"
6806 test -z "$ac_dir" && ac_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6809 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6810 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6811 break 2
6814 done
6815 done
6816 IFS="$ac_save_IFS"
6818 esac
6820 valgrind_path="$ac_cv_path_valgrind_path"
6821 if test -n "$valgrind_path"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6823 $as_echo "$valgrind_path" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 if test "x$valgrind_path" = "x" \
6830 || (test $have_valgrind_h = no \
6831 && test $gcc_cv_header_memcheck_h = no \
6832 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6833 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6835 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6836 valgrind_command="$valgrind_path -q"
6838 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6840 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6842 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6845 if test $gcc_cv_header_memcheck_h = yes; then
6847 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6854 # Enable code coverage collection
6855 # Check whether --enable-coverage was given.
6856 if test "${enable_coverage+set}" = set; then :
6857 enableval=$enable_coverage; case "${enableval}" in
6858 yes|noopt)
6859 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6861 opt)
6862 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6865 # a.k.a. --disable-coverage
6866 coverage_flags=""
6869 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6871 esac
6872 else
6873 coverage_flags=""
6878 # Check whether --enable-gather-detailed-mem-stats was given.
6879 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6880 enableval=$enable_gather_detailed_mem_stats;
6881 else
6882 enable_gather_detailed_mem_stats=no
6885 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6887 cat >>confdefs.h <<_ACEOF
6888 #define GATHER_STATISTICS $gather_stats
6889 _ACEOF
6892 # -------------------------------
6893 # Miscenalleous configure options
6894 # -------------------------------
6896 # With stabs
6898 # Check whether --with-stabs was given.
6899 if test "${with_stabs+set}" = set; then :
6900 withval=$with_stabs; stabs="$with_stabs"
6901 else
6902 stabs=no
6906 # Determine whether or not multilibs are enabled.
6907 # Check whether --enable-multilib was given.
6908 if test "${enable_multilib+set}" = set; then :
6909 enableval=$enable_multilib;
6910 else
6911 enable_multilib=yes
6916 # Determine whether or not multiarch is enabled.
6917 # Check whether --enable-multiarch was given.
6918 if test "${enable_multiarch+set}" = set; then :
6919 enableval=$enable_multiarch; case "${enableval}" in
6920 yes|no|auto) enable_multiarch=$enableval;;
6921 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6922 esac
6923 else
6924 enable_multiarch=auto
6927 if test x${enable_multiarch} = xauto; then
6928 if test x${with_native_system_header_dir} != x; then
6929 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6930 enable_multiarch=no
6932 if test x$host != x$target && test "x$with_sysroot" = x; then
6933 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6934 enable_multiarch=no
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6938 $as_echo_n "checking for multiarch configuration... " >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6941 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6943 # needed for setting the multiarch name for soft-float/hard-float ABIs
6947 # Enable __cxa_atexit for C++.
6948 # Check whether --enable-__cxa_atexit was given.
6949 if test "${enable___cxa_atexit+set}" = set; then :
6950 enableval=$enable___cxa_atexit;
6954 # Enable C extension for decimal float if target supports it.
6956 # Check whether --enable-decimal-float was given.
6957 if test "${enable_decimal_float+set}" = set; then :
6958 enableval=$enable_decimal_float;
6959 case $enable_decimal_float in
6960 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6961 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6962 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6963 esac
6965 else
6967 case $target in
6968 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6969 i?86*-*-gnu* | \
6970 i?86*-*-mingw* | x86_64*-*-mingw* | \
6971 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6972 enable_decimal_float=yes
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6976 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6977 enable_decimal_float=no
6979 esac
6984 # x86's use BID format instead of DPD
6985 case x$enable_decimal_float in
6986 xyes)
6987 case $target in
6988 i?86*-*-* | x86_64*-*-*)
6989 enable_decimal_float=bid
6992 enable_decimal_float=dpd
6994 esac
6995 default_decimal_float=$enable_decimal_float
6997 xno)
6998 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6999 # dependency on libdecnumber.
7000 default_decimal_float=dpd
7002 esac
7007 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7009 cat >>confdefs.h <<_ACEOF
7010 #define ENABLE_DECIMAL_FLOAT $dfp
7011 _ACEOF
7014 # Use default_decimal_float for dependency.
7015 enable_decimal_float=$default_decimal_float
7017 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7019 cat >>confdefs.h <<_ACEOF
7020 #define ENABLE_DECIMAL_BID_FORMAT $bid
7021 _ACEOF
7024 # Enable C extension for fixed-point arithmetic.
7025 # Check whether --enable-fixed-point was given.
7026 if test "${enable_fixed_point+set}" = set; then :
7027 enableval=$enable_fixed_point;
7028 else
7030 case $target in
7031 arm*)
7032 enable_fixed_point=yes
7035 mips*-*-*)
7036 enable_fixed_point=yes
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7040 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7041 enable_fixed_point=no
7043 esac
7049 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7051 cat >>confdefs.h <<_ACEOF
7052 #define ENABLE_FIXED_POINT $fixedpoint
7053 _ACEOF
7056 # Enable threads
7057 # Pass with no value to take the default
7058 # Pass with a value to specify a thread package
7059 # Check whether --enable-threads was given.
7060 if test "${enable_threads+set}" = set; then :
7061 enableval=$enable_threads;
7062 else
7063 enable_threads=''
7067 # Check whether --enable-tls was given.
7068 if test "${enable_tls+set}" = set; then :
7069 enableval=$enable_tls;
7070 case $enable_tls in
7071 yes | no) ;;
7072 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7073 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7074 esac
7076 else
7077 enable_tls=''
7081 # Check whether --enable-objc-gc was given.
7082 if test "${enable_objc_gc+set}" = set; then :
7083 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7084 objc_boehm_gc=''
7085 else
7086 objc_boehm_gc=1
7088 else
7089 objc_boehm_gc=''
7094 # Check whether --with-dwarf2 was given.
7095 if test "${with_dwarf2+set}" = set; then :
7096 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7097 else
7098 dwarf2=no
7102 # Check whether --enable-shared was given.
7103 if test "${enable_shared+set}" = set; then :
7104 enableval=$enable_shared;
7105 case $enable_shared in
7106 yes | no) ;;
7108 enable_shared=no
7109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7110 for pkg in $enableval; do
7111 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7112 enable_shared=yes
7114 done
7115 IFS="$ac_save_ifs"
7117 esac
7119 else
7120 enable_shared=yes
7126 # Check whether --with-native-system-header-dir was given.
7127 if test "${with_native_system_header_dir+set}" = set; then :
7128 withval=$with_native_system_header_dir;
7129 case ${with_native_system_header_dir} in
7130 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7131 /* | [A-Za-z]:[\\/]*) ;;
7132 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7133 esac
7134 configured_native_system_header_dir="${withval}"
7136 else
7137 configured_native_system_header_dir=
7142 # Check whether --with-build-sysroot was given.
7143 if test "${with_build_sysroot+set}" = set; then :
7144 withval=$with_build_sysroot; if test x"$withval" != x ; then
7145 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7147 else
7148 SYSROOT_CFLAGS_FOR_TARGET=
7153 if test "x$prefix" = xNONE; then
7154 test_prefix=/usr/local
7155 else
7156 test_prefix=$prefix
7158 if test "x$exec_prefix" = xNONE; then
7159 test_exec_prefix=$test_prefix
7160 else
7161 test_exec_prefix=$exec_prefix
7165 # Check whether --with-sysroot was given.
7166 if test "${with_sysroot+set}" = set; then :
7167 withval=$with_sysroot;
7168 case ${with_sysroot} in
7169 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7170 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7171 esac
7173 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7174 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7176 case ${TARGET_SYSTEM_ROOT} in
7177 "${test_prefix}"|"${test_prefix}/"*|\
7178 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7179 '${prefix}'|'${prefix}/'*|\
7180 '${exec_prefix}'|'${exec_prefix}/'*)
7181 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7182 TARGET_SYSTEM_ROOT_DEFINE="$t"
7184 esac
7186 else
7188 TARGET_SYSTEM_ROOT=
7189 TARGET_SYSTEM_ROOT_DEFINE=
7190 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7199 # Check whether --with-specs was given.
7200 if test "${with_specs+set}" = set; then :
7201 withval=$with_specs; CONFIGURE_SPECS=$withval
7202 else
7203 CONFIGURE_SPECS=
7211 # Check whether --with-pkgversion was given.
7212 if test "${with_pkgversion+set}" = set; then :
7213 withval=$with_pkgversion; case "$withval" in
7214 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7215 no) PKGVERSION= ;;
7216 *) PKGVERSION="($withval) " ;;
7217 esac
7218 else
7219 PKGVERSION="(GCC) "
7227 # Check whether --with-bugurl was given.
7228 if test "${with_bugurl+set}" = set; then :
7229 withval=$with_bugurl; case "$withval" in
7230 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7231 no) BUGURL=
7233 *) BUGURL="$withval"
7235 esac
7236 else
7237 BUGURL="http://gcc.gnu.org/bugs.html"
7241 case ${BUGURL} in
7243 REPORT_BUGS_TO=
7244 REPORT_BUGS_TEXI=
7247 REPORT_BUGS_TO="<$BUGURL>"
7248 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7250 esac;
7255 # Sanity check enable_languages in case someone does not run the toplevel
7256 # configure # script.
7257 # Check whether --enable-languages was given.
7258 if test "${enable_languages+set}" = set; then :
7259 enableval=$enable_languages; case ,${enable_languages}, in
7260 ,,|,yes,)
7261 # go safe -- we cannot be much sure without the toplevel
7262 # configure's
7263 # analysis of which target libs are present and usable
7264 enable_languages=c
7266 *,all,*)
7267 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7269 *,c,*)
7272 enable_languages=c,${enable_languages}
7274 esac
7275 else
7276 enable_languages=c
7281 # Check whether --with-multilib-list was given.
7282 if test "${with_multilib_list+set}" = set; then :
7283 withval=$with_multilib_list; :
7284 else
7285 with_multilib_list=default
7289 # -------------------------
7290 # Checks for other programs
7291 # -------------------------
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7294 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7295 set x ${MAKE-make}
7296 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7297 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 cat >conftest.make <<\_ACEOF
7301 SHELL = /bin/sh
7302 all:
7303 @echo '@@@%%%=$(MAKE)=@@@%%%'
7304 _ACEOF
7305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7307 *@@@%%%=?*=@@@%%%*)
7308 eval ac_cv_prog_make_${ac_make}_set=yes;;
7310 eval ac_cv_prog_make_${ac_make}_set=no;;
7311 esac
7312 rm -f conftest.make
7314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7317 SET_MAKE=
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 SET_MAKE="MAKE=${MAKE-make}"
7325 # Find some useful tools
7326 for ac_prog in gawk mawk nawk awk
7328 # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if test "${ac_cv_prog_AWK+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$AWK"; then
7336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_AWK="$ac_prog"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7355 AWK=$ac_cv_prog_AWK
7356 if test -n "$AWK"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7358 $as_echo "$AWK" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7365 test -n "$AWK" && break
7366 done
7368 # We need awk to create options.c and options.h.
7369 # Bail out if it's missing.
7370 case ${AWK} in
7371 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7372 esac
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7375 $as_echo_n "checking whether ln -s works... " >&6; }
7376 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 rm -f conftestdata_t
7380 echo >conftestdata_f
7381 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7382 then
7383 gcc_cv_prog_LN_S="ln -s"
7384 else
7385 if ln conftestdata_f conftestdata_t 2>/dev/null
7386 then
7387 gcc_cv_prog_LN_S=ln
7388 else
7389 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7390 then
7391 gcc_cv_prog_LN_S="cp -p"
7392 else
7393 gcc_cv_prog_LN_S=cp
7397 rm -f conftestdata_f conftestdata_t
7400 LN_S="$gcc_cv_prog_LN_S"
7401 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7403 $as_echo "yes" >&6; }
7404 else
7405 if test "$gcc_cv_prog_LN_S" = "ln"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7407 $as_echo "no, using ln" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7410 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7415 $as_echo_n "checking whether ln works... " >&6; }
7416 if test "${acx_cv_prog_LN+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 rm -f conftestdata_t
7420 echo >conftestdata_f
7421 if ln conftestdata_f conftestdata_t 2>/dev/null
7422 then
7423 acx_cv_prog_LN=ln
7424 else
7425 acx_cv_prog_LN=no
7427 rm -f conftestdata_f conftestdata_t
7430 if test $acx_cv_prog_LN = no; then
7431 LN="$LN_S"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7433 $as_echo "no, using $LN" >&6; }
7434 else
7435 LN="$acx_cv_prog_LN"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7437 $as_echo "yes" >&6; }
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$RANLIB"; then
7449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7468 RANLIB=$ac_cv_prog_RANLIB
7469 if test -n "$RANLIB"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7471 $as_echo "$RANLIB" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7479 if test -z "$ac_cv_prog_RANLIB"; then
7480 ac_ct_RANLIB=$RANLIB
7481 # Extract the first word of "ranlib", so it can be a program name with args.
7482 set dummy ranlib; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$ac_ct_RANLIB"; then
7489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_RANLIB="ranlib"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7509 if test -n "$ac_ct_RANLIB"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7511 $as_echo "$ac_ct_RANLIB" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7517 if test "x$ac_ct_RANLIB" = x; then
7518 RANLIB=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526 RANLIB=$ac_ct_RANLIB
7528 else
7529 RANLIB="$ac_cv_prog_RANLIB"
7532 ranlib_flags=""
7535 # Find a good install program. We prefer a C program (faster),
7536 # so one script is as good as another. But avoid the broken or
7537 # incompatible versions:
7538 # SysV /etc/install, /usr/sbin/install
7539 # SunOS /usr/etc/install
7540 # IRIX /sbin/install
7541 # AIX /bin/install
7542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7544 # ./install, which can be erroneously created by make from ./install.sh.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7546 $as_echo_n "checking for a BSD compatible install... " >&6; }
7547 if test -z "$INSTALL"; then
7548 if test "${ac_cv_path_install+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7552 for ac_dir in $PATH; do
7553 # Account for people who put trailing slashes in PATH elements.
7554 case "$ac_dir/" in
7555 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7557 # OSF1 and SCO ODT 3.0 have their own names for install.
7558 for ac_prog in ginstall scoinst install; do
7559 if test -f $ac_dir/$ac_prog; then
7560 if test $ac_prog = install &&
7561 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7562 # AIX install. It has an incompatible calling convention.
7563 # OSF/1 installbsd also uses dspmsg, but is usable.
7565 else
7566 ac_cv_path_install="$ac_dir/$ac_prog -c"
7567 break 2
7570 done
7572 esac
7573 done
7574 IFS="$ac_save_IFS"
7577 if test "${ac_cv_path_install+set}" = set; then
7578 INSTALL="$ac_cv_path_install"
7579 else
7580 # As a last resort, use the slow shell script. We don't cache a
7581 # path for INSTALL within a source directory, because that will
7582 # break other packages using the cache if that directory is
7583 # removed, or if the path is relative.
7584 INSTALL="$ac_install_sh"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7588 $as_echo "$INSTALL" >&6; }
7590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7591 # It thinks the first close brace ends the variable substitution.
7592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7597 # See if cmp has --ignore-initial.
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7599 $as_echo_n "checking for cmp's capabilities... " >&6; }
7600 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 echo abfoo >t1
7604 echo cdfoo >t2
7605 gcc_cv_prog_cmp_skip=slowcompare
7606 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7607 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7609 else
7610 gcc_cv_prog_cmp_skip=gnucompare
7613 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7614 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7615 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7617 else
7618 gcc_cv_prog_cmp_skip=fastcompare
7622 rm t1 t2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7626 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7627 make_compare_target=$gcc_cv_prog_cmp_skip
7631 # See if we have the mktemp command.
7632 # Extract the first word of "mktemp", so it can be a program name with args.
7633 set dummy mktemp; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 if test -n "$have_mktemp_command"; then
7640 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_have_mktemp_command="yes"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7657 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7660 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7661 if test -n "$have_mktemp_command"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7663 $as_echo "$have_mktemp_command" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7671 # See if makeinfo has been installed and is modern enough
7672 # that we can use it.
7674 # Extract the first word of "makeinfo", so it can be a program name with args.
7675 set dummy makeinfo; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$MAKEINFO"; then
7682 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_MAKEINFO="makeinfo"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7695 done
7696 done
7697 IFS=$as_save_IFS
7701 MAKEINFO=$ac_cv_prog_MAKEINFO
7702 if test -n "$MAKEINFO"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7704 $as_echo "$MAKEINFO" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7711 if test -n "$MAKEINFO"; then
7712 # Found it, now check the version.
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7714 $as_echo_n "checking for modern makeinfo... " >&6; }
7715 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7719 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7721 case $ac_prog_version in
7722 '') gcc_cv_prog_makeinfo_modern=no;;
7723 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7724 *) gcc_cv_prog_makeinfo_modern=no;;
7725 esac
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7729 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7730 else
7731 gcc_cv_prog_makeinfo_modern=no
7733 if test $gcc_cv_prog_makeinfo_modern = no; then
7734 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7737 if test $gcc_cv_prog_makeinfo_modern = no; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7739 *** Makeinfo is missing or too old.
7740 *** Info documentation will not be built." >&5
7741 $as_echo "$as_me: WARNING:
7742 *** Makeinfo is missing or too old.
7743 *** Info documentation will not be built." >&2;}
7744 BUILD_INFO=
7745 else
7746 BUILD_INFO=info
7750 # Is pod2man recent enough to regenerate manpages?
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7752 $as_echo_n "checking for recent Pod::Man... " >&6; }
7753 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755 $as_echo "yes" >&6; }
7756 GENERATED_MANPAGES=generated-manpages
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 GENERATED_MANPAGES=
7764 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7766 # How about lex?
7767 for ac_prog in flex
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_FLEX+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$FLEX"; then
7777 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_FLEX="$ac_prog"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7790 done
7791 done
7792 IFS=$as_save_IFS
7796 FLEX=$ac_cv_prog_FLEX
7797 if test -n "$FLEX"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7799 $as_echo "$FLEX" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7806 test -n "$FLEX" && break
7807 done
7808 test -n "$FLEX" || FLEX="$MISSING flex"
7811 # Bison?
7812 for ac_prog in bison
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_BISON+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 if test -n "$BISON"; then
7822 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_BISON="$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7841 BISON=$ac_cv_prog_BISON
7842 if test -n "$BISON"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7844 $as_echo "$BISON" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$BISON" && break
7852 done
7853 test -n "$BISON" || BISON="$MISSING bison"
7856 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7857 # check for build == host before using them.
7859 # NM
7860 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7861 && test -d ../binutils ; then
7862 NM='${objdir}/../binutils/nm-new'
7863 else
7864 # Extract the first word of "nm", so it can be a program name with args.
7865 set dummy nm; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_NM+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$NM"; then
7872 ac_cv_prog_NM="$NM" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_NM="nm"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7889 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7892 NM=$ac_cv_prog_NM
7893 if test -n "$NM"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7895 $as_echo "$NM" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7904 # AR
7905 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7906 && test -d ../binutils ; then
7907 AR='${objdir}/../binutils/ar'
7908 else
7909 # Extract the first word of "ar", so it can be a program name with args.
7910 set dummy ar; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_AR+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$AR"; then
7917 ac_cv_prog_AR="$AR" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_AR="ar"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7934 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7937 AR=$ac_cv_prog_AR
7938 if test -n "$AR"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7940 $as_echo "$AR" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7950 # --------------------
7951 # Checks for C headers
7952 # --------------------
7954 # Need to reject headers which give warnings, so that the -Werror bootstrap
7955 # works later. *sigh* This needs to come before all header checks.
7957 ac_c_preproc_warn_flag=yes
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7960 $as_echo_n "checking for ANSI C header files... " >&6; }
7961 if test "${ac_cv_header_stdc+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <stdlib.h>
7967 #include <stdarg.h>
7968 #include <string.h>
7969 #include <float.h>
7972 main ()
7976 return 0;
7978 _ACEOF
7979 if ac_fn_c_try_compile "$LINENO"; then :
7980 ac_cv_header_stdc=yes
7981 else
7982 ac_cv_header_stdc=no
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 if test $ac_cv_header_stdc = yes; then
7987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #include <string.h>
7992 _ACEOF
7993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994 $EGREP "memchr" >/dev/null 2>&1; then :
7996 else
7997 ac_cv_header_stdc=no
7999 rm -f conftest*
8003 if test $ac_cv_header_stdc = yes; then
8004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <stdlib.h>
8009 _ACEOF
8010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "free" >/dev/null 2>&1; then :
8013 else
8014 ac_cv_header_stdc=no
8016 rm -f conftest*
8020 if test $ac_cv_header_stdc = yes; then
8021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8022 if test "$cross_compiling" = yes; then :
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <ctype.h>
8028 #include <stdlib.h>
8029 #if ((' ' & 0x0FF) == 0x020)
8030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8032 #else
8033 # define ISLOWER(c) \
8034 (('a' <= (c) && (c) <= 'i') \
8035 || ('j' <= (c) && (c) <= 'r') \
8036 || ('s' <= (c) && (c) <= 'z'))
8037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8038 #endif
8040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8042 main ()
8044 int i;
8045 for (i = 0; i < 256; i++)
8046 if (XOR (islower (i), ISLOWER (i))
8047 || toupper (i) != TOUPPER (i))
8048 return 2;
8049 return 0;
8051 _ACEOF
8052 if ac_fn_c_try_run "$LINENO"; then :
8054 else
8055 ac_cv_header_stdc=no
8057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8058 conftest.$ac_objext conftest.beam conftest.$ac_ext
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8064 $as_echo "$ac_cv_header_stdc" >&6; }
8065 if test $ac_cv_header_stdc = yes; then
8067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8072 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8073 if test "${ac_cv_header_time+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <sys/time.h>
8080 #include <time.h>
8083 main ()
8085 if ((struct tm *) 0)
8086 return 0;
8088 return 0;
8090 _ACEOF
8091 if ac_fn_c_try_compile "$LINENO"; then :
8092 ac_cv_header_time=yes
8093 else
8094 ac_cv_header_time=no
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8099 $as_echo "$ac_cv_header_time" >&6; }
8100 if test $ac_cv_header_time = yes; then
8102 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8107 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8108 if test "${gcc_cv_header_string+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <string.h>
8114 #include <strings.h>
8116 main ()
8120 return 0;
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 gcc_cv_header_string=yes
8125 else
8126 gcc_cv_header_string=no
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8131 $as_echo "$gcc_cv_header_string" >&6; }
8132 if test $gcc_cv_header_string = yes; then
8134 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8139 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8140 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #include <sys/types.h>
8146 #include <sys/wait.h>
8147 #ifndef WEXITSTATUS
8148 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8149 #endif
8150 #ifndef WIFEXITED
8151 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8152 #endif
8155 main ()
8157 int s;
8158 wait (&s);
8159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 ac_cv_header_sys_wait_h=yes
8166 else
8167 ac_cv_header_sys_wait_h=no
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8172 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8173 if test $ac_cv_header_sys_wait_h = yes; then
8175 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8180 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8181 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <termios.h>
8188 #ifdef TIOCGWINSZ
8190 #endif
8192 _ACEOF
8193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194 $EGREP "yes" >/dev/null 2>&1; then :
8195 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8196 else
8197 ac_cv_sys_tiocgwinsz_in_termios_h=no
8199 rm -f conftest*
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8203 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8205 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8207 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8208 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 #include <sys/types.h>
8214 #include <sys/ioctl.h>
8215 #ifdef TIOCGWINSZ
8217 #endif
8219 _ACEOF
8220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8221 $EGREP "yes" >/dev/null 2>&1; then :
8222 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8223 else
8224 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8226 rm -f conftest*
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8230 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8232 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8234 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8239 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8240 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8241 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8242 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8243 do :
8244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8245 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8246 eval as_val=\$$as_ac_Header
8247 if test "x$as_val" = x""yes; then :
8248 cat >>confdefs.h <<_ACEOF
8249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8250 _ACEOF
8253 done
8256 # Check for thread headers.
8257 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8258 if test "x$ac_cv_header_thread_h" = x""yes; then :
8259 have_thread_h=yes
8260 else
8261 have_thread_h=
8264 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8265 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8266 have_pthread_h=yes
8267 else
8268 have_pthread_h=
8272 # These tests can't be done till we know if we have limits.h.
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8274 $as_echo_n "checking for CHAR_BIT... " >&6; }
8275 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #ifdef HAVE_LIMITS_H
8281 #include <limits.h>
8282 #endif
8283 #ifdef CHAR_BIT
8284 found
8285 #endif
8286 _ACEOF
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "found" >/dev/null 2>&1; then :
8289 gcc_cv_decl_char_bit=yes
8290 else
8291 gcc_cv_decl_char_bit=no
8293 rm -f conftest*
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8298 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8299 if test $gcc_cv_decl_char_bit = no; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8301 $as_echo_n "checking number of bits in a byte... " >&6; }
8302 if test "${gcc_cv_c_nbby+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8306 gcc_cv_c_nbby=
8307 while test $i -lt 65; do
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8312 main ()
8314 switch(0) {
8315 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8316 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8319 return 0;
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 gcc_cv_c_nbby=$i; break
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 i=`expr $i + 1`
8327 done
8328 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8332 $as_echo "$gcc_cv_c_nbby" >&6; }
8333 if test $gcc_cv_c_nbby = failed; then
8334 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8335 else
8337 cat >>confdefs.h <<_ACEOF
8338 #define CHAR_BIT $gcc_cv_c_nbby
8339 _ACEOF
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8344 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8345 if test "${ac_cv_c_bigendian+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 ac_cv_c_bigendian=unknown
8349 # See if we're dealing with a universal compiler.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #ifndef __APPLE_CC__
8353 not a universal capable compiler
8354 #endif
8355 typedef int dummy;
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8360 # Check for potential -arch flags. It is not universal unless
8361 # there are at least two -arch flags with different values.
8362 ac_arch=
8363 ac_prev=
8364 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8365 if test -n "$ac_prev"; then
8366 case $ac_word in
8367 i?86 | x86_64 | ppc | ppc64)
8368 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8369 ac_arch=$ac_word
8370 else
8371 ac_cv_c_bigendian=universal
8372 break
8375 esac
8376 ac_prev=
8377 elif test "x$ac_word" = "x-arch"; then
8378 ac_prev=arch
8380 done
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 if test $ac_cv_c_bigendian = unknown; then
8384 # See if sys/param.h defines the BYTE_ORDER macro.
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8391 main ()
8393 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8394 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8395 && LITTLE_ENDIAN)
8396 bogus endian macros
8397 #endif
8400 return 0;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 # It does; now see whether it defined to BIG_ENDIAN or not.
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #include <sys/types.h>
8408 #include <sys/param.h>
8411 main ()
8413 #if BYTE_ORDER != BIG_ENDIAN
8414 not big endian
8415 #endif
8418 return 0;
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422 ac_cv_c_bigendian=yes
8423 else
8424 ac_cv_c_bigendian=no
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 if test $ac_cv_c_bigendian = unknown; then
8431 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 #include <limits.h>
8437 main ()
8439 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8440 bogus endian macros
8441 #endif
8444 return 0;
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448 # It does; now see whether it defined to _BIG_ENDIAN or not.
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 #include <limits.h>
8454 main ()
8456 #ifndef _BIG_ENDIAN
8457 not big endian
8458 #endif
8461 return 0;
8463 _ACEOF
8464 if ac_fn_c_try_compile "$LINENO"; then :
8465 ac_cv_c_bigendian=yes
8466 else
8467 ac_cv_c_bigendian=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 if test $ac_cv_c_bigendian = unknown; then
8474 # Compile a test program.
8475 if test "$cross_compiling" = yes; then :
8476 # Try to guess by grepping values from an object file.
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 short int ascii_mm[] =
8480 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8481 short int ascii_ii[] =
8482 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8483 int use_ascii (int i) {
8484 return ascii_mm[i] + ascii_ii[i];
8486 short int ebcdic_ii[] =
8487 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8488 short int ebcdic_mm[] =
8489 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8490 int use_ebcdic (int i) {
8491 return ebcdic_mm[i] + ebcdic_ii[i];
8493 extern int foo;
8496 main ()
8498 return use_ascii (foo) == use_ebcdic (foo);
8500 return 0;
8502 _ACEOF
8503 if ac_fn_c_try_compile "$LINENO"; then :
8504 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8505 ac_cv_c_bigendian=yes
8507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8508 if test "$ac_cv_c_bigendian" = unknown; then
8509 ac_cv_c_bigendian=no
8510 else
8511 # finding both strings is unlikely to happen, but who knows?
8512 ac_cv_c_bigendian=unknown
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 $ac_includes_default
8522 main ()
8525 /* Are we little or big endian? From Harbison&Steele. */
8526 union
8528 long int l;
8529 char c[sizeof (long int)];
8530 } u;
8531 u.l = 1;
8532 return u.c[sizeof (long int) - 1] == 1;
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_run "$LINENO"; then :
8539 ac_cv_c_bigendian=no
8540 else
8541 ac_cv_c_bigendian=yes
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544 conftest.$ac_objext conftest.beam conftest.$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8550 $as_echo "$ac_cv_c_bigendian" >&6; }
8551 case $ac_cv_c_bigendian in #(
8552 yes)
8553 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8554 ;; #(
8556 ;; #(
8557 universal)
8559 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8561 ;; #(
8563 as_fn_error "unknown endianness
8564 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8565 esac
8568 # ----------------------
8569 # Checks for C++ headers
8570 # ----------------------
8572 ac_ext=cpp
8573 ac_cpp='$CXXCPP $CPPFLAGS'
8574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8579 if test -z "$CXXCPP"; then
8580 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 # Double quotes because CXXCPP needs to be expanded
8584 for CXXCPP in "$CXX -E" "/lib/cpp"
8586 ac_preproc_ok=false
8587 for ac_cxx_preproc_warn_flag in '' yes
8589 # Use a header file that comes with gcc, so configuring glibc
8590 # with a fresh cross-compiler works.
8591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8592 # <limits.h> exists even on freestanding compilers.
8593 # On the NeXT, cc -E runs the code through the compiler's parser,
8594 # not just through cpp. "Syntax error" is here to catch this case.
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #ifdef __STDC__
8598 # include <limits.h>
8599 #else
8600 # include <assert.h>
8601 #endif
8602 Syntax error
8603 _ACEOF
8604 if ac_fn_cxx_try_cpp "$LINENO"; then :
8606 else
8607 # Broken: fails on valid input.
8608 continue
8610 rm -f conftest.err conftest.$ac_ext
8612 # OK, works on sane cases. Now check whether nonexistent headers
8613 # can be detected and how.
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <ac_nonexistent.h>
8617 _ACEOF
8618 if ac_fn_cxx_try_cpp "$LINENO"; then :
8619 # Broken: success on invalid input.
8620 continue
8621 else
8622 # Passes both tests.
8623 ac_preproc_ok=:
8624 break
8626 rm -f conftest.err conftest.$ac_ext
8628 done
8629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8630 rm -f conftest.err conftest.$ac_ext
8631 if $ac_preproc_ok; then :
8632 break
8635 done
8636 ac_cv_prog_CXXCPP=$CXXCPP
8639 CXXCPP=$ac_cv_prog_CXXCPP
8640 else
8641 ac_cv_prog_CXXCPP=$CXXCPP
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8644 $as_echo "$CXXCPP" >&6; }
8645 ac_preproc_ok=false
8646 for ac_cxx_preproc_warn_flag in '' yes
8648 # Use a header file that comes with gcc, so configuring glibc
8649 # with a fresh cross-compiler works.
8650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 # <limits.h> exists even on freestanding compilers.
8652 # On the NeXT, cc -E runs the code through the compiler's parser,
8653 # not just through cpp. "Syntax error" is here to catch this case.
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #ifdef __STDC__
8657 # include <limits.h>
8658 #else
8659 # include <assert.h>
8660 #endif
8661 Syntax error
8662 _ACEOF
8663 if ac_fn_cxx_try_cpp "$LINENO"; then :
8665 else
8666 # Broken: fails on valid input.
8667 continue
8669 rm -f conftest.err conftest.$ac_ext
8671 # OK, works on sane cases. Now check whether nonexistent headers
8672 # can be detected and how.
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 #include <ac_nonexistent.h>
8676 _ACEOF
8677 if ac_fn_cxx_try_cpp "$LINENO"; then :
8678 # Broken: success on invalid input.
8679 continue
8680 else
8681 # Passes both tests.
8682 ac_preproc_ok=:
8683 break
8685 rm -f conftest.err conftest.$ac_ext
8687 done
8688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8689 rm -f conftest.err conftest.$ac_ext
8690 if $ac_preproc_ok; then :
8692 else
8693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8696 See \`config.log' for more details." >&5
8697 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8698 See \`config.log' for more details." >&2;}; }
8701 ac_ext=c
8702 ac_cpp='$CPP $CPPFLAGS'
8703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708 ac_ext=cpp
8709 ac_cpp='$CXXCPP $CPPFLAGS'
8710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8717 for ac_header in unordered_map
8718 do :
8719 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8720 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_UNORDERED_MAP 1
8723 _ACEOF
8726 done
8728 for ac_header in tr1/unordered_map
8729 do :
8730 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8731 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_TR1_UNORDERED_MAP 1
8734 _ACEOF
8737 done
8739 for ac_header in ext/hash_map
8740 do :
8741 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8742 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_EXT_HASH_MAP 1
8745 _ACEOF
8748 done
8751 ac_ext=c
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758 # --------
8759 # Dependency checking.
8760 # --------
8762 ac_ext=cpp
8763 ac_cpp='$CXXCPP $CPPFLAGS'
8764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8768 rm -rf .tst 2>/dev/null
8769 mkdir .tst 2>/dev/null
8770 if test -d .tst; then
8771 am__leading_dot=.
8772 else
8773 am__leading_dot=_
8775 rmdir .tst 2>/dev/null
8777 DEPDIR="${am__leading_dot}deps"
8779 ac_config_commands="$ac_config_commands depdir"
8782 ac_config_commands="$ac_config_commands gccdepdir"
8785 depcc="$CXX" am_compiler_list=
8787 am_depcomp=$ac_aux_dir/depcomp
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8789 $as_echo_n "checking dependency style of $depcc... " >&6; }
8790 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -f "$am_depcomp"; then
8794 # We make a subdir and do the tests there. Otherwise we can end up
8795 # making bogus files that we don't know about and never remove. For
8796 # instance it was reported that on HP-UX the gcc test will end up
8797 # making a dummy file named `D' -- because `-MD' means `put the output
8798 # in D'.
8799 mkdir conftest.dir
8800 # Copy depcomp to subdir because otherwise we won't find it if we're
8801 # using a relative directory.
8802 cp "$am_depcomp" conftest.dir
8803 cd conftest.dir
8804 # We will build objects and dependencies in a subdirectory because
8805 # it helps to detect inapplicable dependency modes. For instance
8806 # both Tru64's cc and ICC support -MD to output dependencies as a
8807 # side effect of compilation, but ICC will put the dependencies in
8808 # the current directory while Tru64 will put them in the object
8809 # directory.
8810 mkdir sub
8812 am_cv_CXX_dependencies_compiler_type=none
8813 if test "$am_compiler_list" = ""; then
8814 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8816 for depmode in $am_compiler_list; do
8817 if test $depmode = none; then break; fi
8819 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8820 # Setup a source with many dependencies, because some compilers
8821 # like to wrap large dependency lists on column 80 (with \), and
8822 # we should not choose a depcomp mode which is confused by this.
8824 # We need to recreate these files for each test, as the compiler may
8825 # overwrite some of them when testing with obscure command lines.
8826 # This happens at least with the AIX C compiler.
8827 : > sub/conftest.c
8828 for i in 1 2 3 4 5 6; do
8829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8831 # Solaris 8's {/usr,}/bin/sh.
8832 touch sub/conftst$i.h
8833 done
8834 echo "include sub/conftest.Po" > confmf
8836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8837 # mode. It turns out that the SunPro C++ compiler does not properly
8838 # handle `-M -o', and we need to detect this.
8839 depcmd="depmode=$depmode \
8840 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8842 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8843 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8844 if env $depcmd > conftest.err 2>&1 &&
8845 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8846 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8847 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8848 # icc doesn't choke on unknown options, it will just issue warnings
8849 # or remarks (even with -Werror). So we grep stderr for any message
8850 # that says an option was ignored or not supported.
8851 # When given -MP, icc 7.0 and 7.1 complain thusly:
8852 # icc: Command line warning: ignoring option '-M'; no argument required
8853 # The diagnosis changed in icc 8.0:
8854 # icc: Command line remark: option '-MP' not supported
8855 if (grep 'ignoring option' conftest.err ||
8856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8857 am_cv_CXX_dependencies_compiler_type=$depmode
8858 $as_echo "$as_me:$LINENO: success" >&5
8859 break
8862 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8863 sed -e 's/^/| /' < conftest.err >&5
8864 done
8866 cd ..
8867 rm -rf conftest.dir
8868 else
8869 am_cv_CXX_dependencies_compiler_type=none
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8874 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8875 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8876 then as_fn_error "no usable dependency style found" "$LINENO" 5
8877 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8881 ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888 # --------
8889 # UNSORTED
8890 # --------
8893 # These libraries may be used by collect2.
8894 # We may need a special search path to get them linked.
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8896 $as_echo_n "checking for collect2 libraries... " >&6; }
8897 if test "${gcc_cv_collect2_libs+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 save_LIBS="$LIBS"
8901 for libs in '' -lld -lmld \
8902 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8903 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8905 LIBS="$libs"
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8909 /* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 char ldopen ();
8917 main ()
8919 return ldopen ();
8921 return 0;
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925 gcc_cv_collect2_libs="$libs"; break
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 done
8930 LIBS="$save_LIBS"
8931 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8934 $as_echo "$gcc_cv_collect2_libs" >&6; }
8935 case $gcc_cv_collect2_libs in
8936 "none required") ;;
8937 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8938 esac
8941 # When building Ada code on Alpha, we need exc_resume which is usually in
8942 # -lexc. So test for it.
8943 save_LIBS="$LIBS"
8944 LIBS=
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8946 $as_echo_n "checking for library containing exc_resume... " >&6; }
8947 if test "${ac_cv_search_exc_resume+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 ac_func_search_save_LIBS=$LIBS
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8954 /* Override any GCC internal prototype to avoid an error.
8955 Use char because int might match the return type of a GCC
8956 builtin and then its argument prototype would still apply. */
8957 #ifdef __cplusplus
8958 extern "C"
8959 #endif
8960 char exc_resume ();
8962 main ()
8964 return exc_resume ();
8966 return 0;
8968 _ACEOF
8969 for ac_lib in '' exc; do
8970 if test -z "$ac_lib"; then
8971 ac_res="none required"
8972 else
8973 ac_res=-l$ac_lib
8974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8976 if ac_fn_c_try_link "$LINENO"; then :
8977 ac_cv_search_exc_resume=$ac_res
8979 rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext
8981 if test "${ac_cv_search_exc_resume+set}" = set; then :
8982 break
8984 done
8985 if test "${ac_cv_search_exc_resume+set}" = set; then :
8987 else
8988 ac_cv_search_exc_resume=no
8990 rm conftest.$ac_ext
8991 LIBS=$ac_func_search_save_LIBS
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8994 $as_echo "$ac_cv_search_exc_resume" >&6; }
8995 ac_res=$ac_cv_search_exc_resume
8996 if test "$ac_res" != no; then :
8997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9001 GNAT_LIBEXC="$LIBS"
9002 LIBS="$save_LIBS"
9005 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9006 save_LIBS="$LIBS"
9007 LIBS=
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9009 $as_echo_n "checking for library containing kstat_open... " >&6; }
9010 if test "${ac_cv_search_kstat_open+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 ac_func_search_save_LIBS=$LIBS
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 char kstat_open ();
9025 main ()
9027 return kstat_open ();
9029 return 0;
9031 _ACEOF
9032 for ac_lib in '' kstat; do
9033 if test -z "$ac_lib"; then
9034 ac_res="none required"
9035 else
9036 ac_res=-l$ac_lib
9037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9039 if ac_fn_c_try_link "$LINENO"; then :
9040 ac_cv_search_kstat_open=$ac_res
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext
9044 if test "${ac_cv_search_kstat_open+set}" = set; then :
9045 break
9047 done
9048 if test "${ac_cv_search_kstat_open+set}" = set; then :
9050 else
9051 ac_cv_search_kstat_open=no
9053 rm conftest.$ac_ext
9054 LIBS=$ac_func_search_save_LIBS
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9057 $as_echo "$ac_cv_search_kstat_open" >&6; }
9058 ac_res=$ac_cv_search_kstat_open
9059 if test "$ac_res" != no; then :
9060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9064 EXTRA_GCC_LIBS="$LIBS"
9065 LIBS="$save_LIBS"
9068 # Some systems put ldexp and frexp in libm instead of libc; assume
9069 # they're both in the same place. jcf-dump needs them.
9070 save_LIBS="$LIBS"
9071 LIBS=
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9073 $as_echo_n "checking for library containing ldexp... " >&6; }
9074 if test "${ac_cv_search_ldexp+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 ac_func_search_save_LIBS=$LIBS
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char ldexp ();
9089 main ()
9091 return ldexp ();
9093 return 0;
9095 _ACEOF
9096 for ac_lib in '' m; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9099 else
9100 ac_res=-l$ac_lib
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9103 if ac_fn_c_try_link "$LINENO"; then :
9104 ac_cv_search_ldexp=$ac_res
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext
9108 if test "${ac_cv_search_ldexp+set}" = set; then :
9109 break
9111 done
9112 if test "${ac_cv_search_ldexp+set}" = set; then :
9114 else
9115 ac_cv_search_ldexp=no
9117 rm conftest.$ac_ext
9118 LIBS=$ac_func_search_save_LIBS
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9121 $as_echo "$ac_cv_search_ldexp" >&6; }
9122 ac_res=$ac_cv_search_ldexp
9123 if test "$ac_res" != no; then :
9124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9128 LDEXP_LIB="$LIBS"
9129 LIBS="$save_LIBS"
9132 # Use <inttypes.h> only if it exists,
9133 # doesn't clash with <sys/types.h>, and declares intmax_t.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9135 $as_echo_n "checking for inttypes.h... " >&6; }
9136 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 #include <sys/types.h>
9142 #include <inttypes.h>
9144 main ()
9146 intmax_t i = -1;
9148 return 0;
9150 _ACEOF
9151 if ac_fn_c_try_compile "$LINENO"; then :
9152 gcc_cv_header_inttypes_h=yes
9153 else
9154 gcc_cv_header_inttypes_h=no
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9160 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9161 if test $gcc_cv_header_inttypes_h = yes; then
9163 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9169 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9170 sysconf strsignal getrusage nl_langinfo \
9171 gettimeofday mbstowcs wcswidth mmap setlocale \
9172 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
9173 do :
9174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9176 eval as_val=\$$as_ac_var
9177 if test "x$as_val" = x""yes; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9180 _ACEOF
9183 done
9186 if test x$ac_cv_func_mbstowcs = xyes; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9188 $as_echo_n "checking whether mbstowcs works... " >&6; }
9189 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 if test "$cross_compiling" = yes; then :
9193 gcc_cv_func_mbstowcs_works=yes
9194 else
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <stdlib.h>
9198 int main()
9200 mbstowcs(0, "", 0);
9201 return 0;
9203 _ACEOF
9204 if ac_fn_c_try_run "$LINENO"; then :
9205 gcc_cv_func_mbstowcs_works=yes
9206 else
9207 gcc_cv_func_mbstowcs_works=no
9209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9210 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9215 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9216 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9218 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9223 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9224 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9226 else
9228 cat >>confdefs.h <<_ACEOF
9229 #define ssize_t int
9230 _ACEOF
9234 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9235 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9237 else
9239 cat >>confdefs.h <<_ACEOF
9240 #define caddr_t char *
9241 _ACEOF
9247 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9248 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9249 gcc_header_sys_mman_h=yes
9250 else
9251 gcc_header_sys_mman_h=no
9254 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9255 if test "x$ac_cv_func_mmap" = x""yes; then :
9256 gcc_func_mmap=yes
9257 else
9258 gcc_func_mmap=no
9261 if test "$gcc_header_sys_mman_h" != yes \
9262 || test "$gcc_func_mmap" != yes; then
9263 gcc_cv_func_mmap_file=no
9264 gcc_cv_func_mmap_dev_zero=no
9265 gcc_cv_func_mmap_anon=no
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9268 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9269 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 # Add a system to this blacklist if
9273 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9274 # memory area containing the same data that you'd get if you applied
9275 # read() to the same fd. The only system known to have a problem here
9276 # is VMS, where text files have record structure.
9277 case "$host_os" in
9278 *vms* | ultrix*)
9279 gcc_cv_func_mmap_file=no ;;
9281 gcc_cv_func_mmap_file=yes;;
9282 esac
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9285 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9287 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9288 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 # Add a system to this blacklist if it has mmap() but /dev/zero
9292 # does not exist, or if mmapping /dev/zero does not give anonymous
9293 # zeroed pages with both the following properties:
9294 # 1. If you map N consecutive pages in with one call, and then
9295 # unmap any subset of those pages, the pages that were not
9296 # explicitly unmapped remain accessible.
9297 # 2. If you map two adjacent blocks of memory and then unmap them
9298 # both at once, they must both go away.
9299 # Systems known to be in this category are Windows (all variants),
9300 # VMS, and Darwin.
9301 case "$host_os" in
9302 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9303 gcc_cv_func_mmap_dev_zero=no ;;
9305 gcc_cv_func_mmap_dev_zero=yes;;
9306 esac
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9309 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9311 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9313 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9314 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #include <sys/types.h>
9320 #include <sys/mman.h>
9321 #include <unistd.h>
9323 #ifndef MAP_ANONYMOUS
9324 #define MAP_ANONYMOUS MAP_ANON
9325 #endif
9328 main ()
9330 int n = MAP_ANONYMOUS;
9332 return 0;
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"; then :
9336 gcc_cv_decl_map_anon=yes
9337 else
9338 gcc_cv_decl_map_anon=no
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9343 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9345 if test $gcc_cv_decl_map_anon = no; then
9346 gcc_cv_func_mmap_anon=no
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9349 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9350 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9354 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9355 # doesn't give anonymous zeroed pages with the same properties listed
9356 # above for use of /dev/zero.
9357 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9358 case "$host_os" in
9359 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9360 gcc_cv_func_mmap_anon=no ;;
9362 gcc_cv_func_mmap_anon=yes;;
9363 esac
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9366 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9370 if test $gcc_cv_func_mmap_file = yes; then
9372 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9375 if test $gcc_cv_func_mmap_dev_zero = yes; then
9377 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9380 if test $gcc_cv_func_mmap_anon = yes; then
9382 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9387 case "${host}" in
9388 *-*-*vms*)
9389 # Under VMS, vfork works very differently than on Unix. The standard test
9390 # won't work, and it isn't easily adaptable. It makes more sense to
9391 # just force it.
9392 ac_cv_func_vfork_works=yes
9394 esac
9395 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9396 if test "x$ac_cv_type_pid_t" = x""yes; then :
9398 else
9400 cat >>confdefs.h <<_ACEOF
9401 #define pid_t int
9402 _ACEOF
9406 for ac_header in vfork.h
9407 do :
9408 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9409 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9410 cat >>confdefs.h <<_ACEOF
9411 #define HAVE_VFORK_H 1
9412 _ACEOF
9415 done
9417 for ac_func in fork vfork
9418 do :
9419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9421 eval as_val=\$$as_ac_var
9422 if test "x$as_val" = x""yes; then :
9423 cat >>confdefs.h <<_ACEOF
9424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9425 _ACEOF
9428 done
9430 if test "x$ac_cv_func_fork" = xyes; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9432 $as_echo_n "checking for working fork... " >&6; }
9433 if test "${ac_cv_func_fork_works+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 if test "$cross_compiling" = yes; then :
9437 ac_cv_func_fork_works=cross
9438 else
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 $ac_includes_default
9443 main ()
9446 /* By Ruediger Kuhlmann. */
9447 return fork () < 0;
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_run "$LINENO"; then :
9454 ac_cv_func_fork_works=yes
9455 else
9456 ac_cv_func_fork_works=no
9458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9459 conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9464 $as_echo "$ac_cv_func_fork_works" >&6; }
9466 else
9467 ac_cv_func_fork_works=$ac_cv_func_fork
9469 if test "x$ac_cv_func_fork_works" = xcross; then
9470 case $host in
9471 *-*-amigaos* | *-*-msdosdjgpp*)
9472 # Override, as these systems have only a dummy fork() stub
9473 ac_cv_func_fork_works=no
9476 ac_cv_func_fork_works=yes
9478 esac
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9480 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9482 ac_cv_func_vfork_works=$ac_cv_func_vfork
9483 if test "x$ac_cv_func_vfork" = xyes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9485 $as_echo_n "checking for working vfork... " >&6; }
9486 if test "${ac_cv_func_vfork_works+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 if test "$cross_compiling" = yes; then :
9490 ac_cv_func_vfork_works=cross
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 /* Thanks to Paul Eggert for this test. */
9495 $ac_includes_default
9496 #include <sys/wait.h>
9497 #ifdef HAVE_VFORK_H
9498 # include <vfork.h>
9499 #endif
9500 /* On some sparc systems, changes by the child to local and incoming
9501 argument registers are propagated back to the parent. The compiler
9502 is told about this with #include <vfork.h>, but some compilers
9503 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9504 static variable whose address is put into a register that is
9505 clobbered by the vfork. */
9506 static void
9507 #ifdef __cplusplus
9508 sparc_address_test (int arg)
9509 # else
9510 sparc_address_test (arg) int arg;
9511 #endif
9513 static pid_t child;
9514 if (!child) {
9515 child = vfork ();
9516 if (child < 0) {
9517 perror ("vfork");
9518 _exit(2);
9520 if (!child) {
9521 arg = getpid();
9522 write(-1, "", 0);
9523 _exit (arg);
9529 main ()
9531 pid_t parent = getpid ();
9532 pid_t child;
9534 sparc_address_test (0);
9536 child = vfork ();
9538 if (child == 0) {
9539 /* Here is another test for sparc vfork register problems. This
9540 test uses lots of local variables, at least as many local
9541 variables as main has allocated so far including compiler
9542 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9543 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9544 reuse the register of parent for one of the local variables,
9545 since it will think that parent can't possibly be used any more
9546 in this routine. Assigning to the local variable will thus
9547 munge parent in the parent process. */
9548 pid_t
9549 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9550 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9551 /* Convince the compiler that p..p7 are live; otherwise, it might
9552 use the same hardware register for all 8 local variables. */
9553 if (p != p1 || p != p2 || p != p3 || p != p4
9554 || p != p5 || p != p6 || p != p7)
9555 _exit(1);
9557 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9558 from child file descriptors. If the child closes a descriptor
9559 before it execs or exits, this munges the parent's descriptor
9560 as well. Test for this by closing stdout in the child. */
9561 _exit(close(fileno(stdout)) != 0);
9562 } else {
9563 int status;
9564 struct stat st;
9566 while (wait(&status) != child)
9568 return (
9569 /* Was there some problem with vforking? */
9570 child < 0
9572 /* Did the child fail? (This shouldn't happen.) */
9573 || status
9575 /* Did the vfork/compiler bug occur? */
9576 || parent != getpid()
9578 /* Did the file descriptor bug occur? */
9579 || fstat(fileno(stdout), &st) != 0
9583 _ACEOF
9584 if ac_fn_c_try_run "$LINENO"; then :
9585 ac_cv_func_vfork_works=yes
9586 else
9587 ac_cv_func_vfork_works=no
9589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9590 conftest.$ac_objext conftest.beam conftest.$ac_ext
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9595 $as_echo "$ac_cv_func_vfork_works" >&6; }
9598 if test "x$ac_cv_func_fork_works" = xcross; then
9599 ac_cv_func_vfork_works=$ac_cv_func_vfork
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9601 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9604 if test "x$ac_cv_func_vfork_works" = xyes; then
9606 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9608 else
9610 $as_echo "#define vfork fork" >>confdefs.h
9613 if test "x$ac_cv_func_fork_works" = xyes; then
9615 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9620 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9621 # iconv() prototype.
9622 ac_ext=cpp
9623 ac_cpp='$CXXCPP $CPPFLAGS'
9624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9629 if test "X$prefix" = "XNONE"; then
9630 acl_final_prefix="$ac_default_prefix"
9631 else
9632 acl_final_prefix="$prefix"
9634 if test "X$exec_prefix" = "XNONE"; then
9635 acl_final_exec_prefix='${prefix}'
9636 else
9637 acl_final_exec_prefix="$exec_prefix"
9639 acl_save_prefix="$prefix"
9640 prefix="$acl_final_prefix"
9641 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9642 prefix="$acl_save_prefix"
9645 # Check whether --with-gnu-ld was given.
9646 if test "${with_gnu_ld+set}" = set; then :
9647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9648 else
9649 with_gnu_ld=no
9652 # Prepare PATH_SEPARATOR.
9653 # The user is always right.
9654 if test "${PATH_SEPARATOR+set}" != set; then
9655 echo "#! /bin/sh" >conf$$.sh
9656 echo "exit 0" >>conf$$.sh
9657 chmod +x conf$$.sh
9658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9659 PATH_SEPARATOR=';'
9660 else
9661 PATH_SEPARATOR=:
9663 rm -f conf$$.sh
9665 ac_prog=ld
9666 if test "$GCC" = yes; then
9667 # Check if gcc -print-prog-name=ld gives a path.
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9669 $as_echo_n "checking for ld used by GCC... " >&6; }
9670 case $host in
9671 *-*-mingw*)
9672 # gcc leaves a trailing carriage return which upsets mingw
9673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9676 esac
9677 case $ac_prog in
9678 # Accept absolute paths.
9679 [\\/]* | [A-Za-z]:[\\/]*)
9680 re_direlt='/[^/][^/]*/\.\./'
9681 # Canonicalize the path of ld
9682 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9684 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9685 done
9686 test -z "$LD" && LD="$ac_prog"
9689 # If it fails, then pretend we aren't using GCC.
9690 ac_prog=ld
9693 # If it is relative, then search for the first ld in PATH.
9694 with_gnu_ld=unknown
9696 esac
9697 elif test "$with_gnu_ld" = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9699 $as_echo_n "checking for GNU ld... " >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9702 $as_echo_n "checking for non-GNU ld... " >&6; }
9704 if test "${acl_cv_path_LD+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 if test -z "$LD"; then
9708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9709 for ac_dir in $PATH; do
9710 test -z "$ac_dir" && ac_dir=.
9711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9712 acl_cv_path_LD="$ac_dir/$ac_prog"
9713 # Check to see if the program is GNU ld. I'd rather use --version,
9714 # but apparently some GNU ld's only accept -v.
9715 # Break only if it was the GNU/non-GNU ld that we prefer.
9716 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9717 test "$with_gnu_ld" != no && break
9718 else
9719 test "$with_gnu_ld" != yes && break
9722 done
9723 IFS="$ac_save_ifs"
9724 else
9725 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9729 LD="$acl_cv_path_LD"
9730 if test -n "$LD"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9732 $as_echo "$LD" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9737 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9740 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9744 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9745 acl_cv_prog_gnu_ld=yes
9746 else
9747 acl_cv_prog_gnu_ld=no
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9751 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9752 with_gnu_ld=$acl_cv_prog_gnu_ld
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9757 $as_echo_n "checking for shared library run path origin... " >&6; }
9758 if test "${acl_cv_rpath+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9762 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9763 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9764 . ./conftest.sh
9765 rm -f ./conftest.sh
9766 acl_cv_rpath=done
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9770 $as_echo "$acl_cv_rpath" >&6; }
9771 wl="$acl_cv_wl"
9772 libext="$acl_cv_libext"
9773 shlibext="$acl_cv_shlibext"
9774 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9775 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9776 hardcode_direct="$acl_cv_hardcode_direct"
9777 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9778 # Check whether --enable-rpath was given.
9779 if test "${enable_rpath+set}" = set; then :
9780 enableval=$enable_rpath; :
9781 else
9782 enable_rpath=yes
9792 use_additional=yes
9794 acl_save_prefix="$prefix"
9795 prefix="$acl_final_prefix"
9796 acl_save_exec_prefix="$exec_prefix"
9797 exec_prefix="$acl_final_exec_prefix"
9799 eval additional_includedir=\"$includedir\"
9800 eval additional_libdir=\"$libdir\"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9806 # Check whether --with-libiconv-prefix was given.
9807 if test "${with_libiconv_prefix+set}" = set; then :
9808 withval=$with_libiconv_prefix;
9809 if test "X$withval" = "Xno"; then
9810 use_additional=no
9811 else
9812 if test "X$withval" = "X"; then
9814 acl_save_prefix="$prefix"
9815 prefix="$acl_final_prefix"
9816 acl_save_exec_prefix="$exec_prefix"
9817 exec_prefix="$acl_final_exec_prefix"
9819 eval additional_includedir=\"$includedir\"
9820 eval additional_libdir=\"$libdir\"
9822 exec_prefix="$acl_save_exec_prefix"
9823 prefix="$acl_save_prefix"
9825 else
9826 additional_includedir="$withval/include"
9827 additional_libdir="$withval/lib"
9833 LIBICONV=
9834 LTLIBICONV=
9835 INCICONV=
9836 rpathdirs=
9837 ltrpathdirs=
9838 names_already_handled=
9839 names_next_round='iconv '
9840 while test -n "$names_next_round"; do
9841 names_this_round="$names_next_round"
9842 names_next_round=
9843 for name in $names_this_round; do
9844 already_handled=
9845 for n in $names_already_handled; do
9846 if test "$n" = "$name"; then
9847 already_handled=yes
9848 break
9850 done
9851 if test -z "$already_handled"; then
9852 names_already_handled="$names_already_handled $name"
9853 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9854 eval value=\"\$HAVE_LIB$uppername\"
9855 if test -n "$value"; then
9856 if test "$value" = yes; then
9857 eval value=\"\$LIB$uppername\"
9858 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9859 eval value=\"\$LTLIB$uppername\"
9860 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9861 else
9864 else
9865 found_dir=
9866 found_la=
9867 found_so=
9868 found_a=
9869 if test $use_additional = yes; then
9870 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9871 found_dir="$additional_libdir"
9872 found_so="$additional_libdir/lib$name.$shlibext"
9873 if test -f "$additional_libdir/lib$name.la"; then
9874 found_la="$additional_libdir/lib$name.la"
9876 else
9877 if test -f "$additional_libdir/lib$name.$libext"; then
9878 found_dir="$additional_libdir"
9879 found_a="$additional_libdir/lib$name.$libext"
9880 if test -f "$additional_libdir/lib$name.la"; then
9881 found_la="$additional_libdir/lib$name.la"
9886 if test "X$found_dir" = "X"; then
9887 for x in $LDFLAGS $LTLIBICONV; do
9889 acl_save_prefix="$prefix"
9890 prefix="$acl_final_prefix"
9891 acl_save_exec_prefix="$exec_prefix"
9892 exec_prefix="$acl_final_exec_prefix"
9893 eval x=\"$x\"
9894 exec_prefix="$acl_save_exec_prefix"
9895 prefix="$acl_save_prefix"
9897 case "$x" in
9898 -L*)
9899 dir=`echo "X$x" | sed -e 's/^X-L//'`
9900 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9901 found_dir="$dir"
9902 found_so="$dir/lib$name.$shlibext"
9903 if test -f "$dir/lib$name.la"; then
9904 found_la="$dir/lib$name.la"
9906 else
9907 if test -f "$dir/lib$name.$libext"; then
9908 found_dir="$dir"
9909 found_a="$dir/lib$name.$libext"
9910 if test -f "$dir/lib$name.la"; then
9911 found_la="$dir/lib$name.la"
9916 esac
9917 if test "X$found_dir" != "X"; then
9918 break
9920 done
9922 if test "X$found_dir" != "X"; then
9923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9924 if test "X$found_so" != "X"; then
9925 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9927 else
9928 haveit=
9929 for x in $ltrpathdirs; do
9930 if test "X$x" = "X$found_dir"; then
9931 haveit=yes
9932 break
9934 done
9935 if test -z "$haveit"; then
9936 ltrpathdirs="$ltrpathdirs $found_dir"
9938 if test "$hardcode_direct" = yes; then
9939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9940 else
9941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9943 haveit=
9944 for x in $rpathdirs; do
9945 if test "X$x" = "X$found_dir"; then
9946 haveit=yes
9947 break
9949 done
9950 if test -z "$haveit"; then
9951 rpathdirs="$rpathdirs $found_dir"
9953 else
9954 haveit=
9955 for x in $LDFLAGS $LIBICONV; do
9957 acl_save_prefix="$prefix"
9958 prefix="$acl_final_prefix"
9959 acl_save_exec_prefix="$exec_prefix"
9960 exec_prefix="$acl_final_exec_prefix"
9961 eval x=\"$x\"
9962 exec_prefix="$acl_save_exec_prefix"
9963 prefix="$acl_save_prefix"
9965 if test "X$x" = "X-L$found_dir"; then
9966 haveit=yes
9967 break
9969 done
9970 if test -z "$haveit"; then
9971 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9973 if test "$hardcode_minus_L" != no; then
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9975 else
9976 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9981 else
9982 if test "X$found_a" != "X"; then
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9984 else
9985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9988 additional_includedir=
9989 case "$found_dir" in
9990 */lib | */lib/)
9991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9992 additional_includedir="$basedir/include"
9994 esac
9995 if test "X$additional_includedir" != "X"; then
9996 if test "X$additional_includedir" != "X/usr/include"; then
9997 haveit=
9998 if test "X$additional_includedir" = "X/usr/local/include"; then
9999 if test -n "$GCC"; then
10000 case $host_os in
10001 linux*) haveit=yes;;
10002 esac
10005 if test -z "$haveit"; then
10006 for x in $CPPFLAGS $INCICONV; do
10008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
10012 eval x=\"$x\"
10013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10016 if test "X$x" = "X-I$additional_includedir"; then
10017 haveit=yes
10018 break
10020 done
10021 if test -z "$haveit"; then
10022 if test -d "$additional_includedir"; then
10023 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10029 if test -n "$found_la"; then
10030 save_libdir="$libdir"
10031 case "$found_la" in
10032 */* | *\\*) . "$found_la" ;;
10033 *) . "./$found_la" ;;
10034 esac
10035 libdir="$save_libdir"
10036 for dep in $dependency_libs; do
10037 case "$dep" in
10038 -L*)
10039 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10040 if test "X$additional_libdir" != "X/usr/lib"; then
10041 haveit=
10042 if test "X$additional_libdir" = "X/usr/local/lib"; then
10043 if test -n "$GCC"; then
10044 case $host_os in
10045 linux*) haveit=yes;;
10046 esac
10049 if test -z "$haveit"; then
10050 haveit=
10051 for x in $LDFLAGS $LIBICONV; do
10053 acl_save_prefix="$prefix"
10054 prefix="$acl_final_prefix"
10055 acl_save_exec_prefix="$exec_prefix"
10056 exec_prefix="$acl_final_exec_prefix"
10057 eval x=\"$x\"
10058 exec_prefix="$acl_save_exec_prefix"
10059 prefix="$acl_save_prefix"
10061 if test "X$x" = "X-L$additional_libdir"; then
10062 haveit=yes
10063 break
10065 done
10066 if test -z "$haveit"; then
10067 if test -d "$additional_libdir"; then
10068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10071 haveit=
10072 for x in $LDFLAGS $LTLIBICONV; do
10074 acl_save_prefix="$prefix"
10075 prefix="$acl_final_prefix"
10076 acl_save_exec_prefix="$exec_prefix"
10077 exec_prefix="$acl_final_exec_prefix"
10078 eval x=\"$x\"
10079 exec_prefix="$acl_save_exec_prefix"
10080 prefix="$acl_save_prefix"
10082 if test "X$x" = "X-L$additional_libdir"; then
10083 haveit=yes
10084 break
10086 done
10087 if test -z "$haveit"; then
10088 if test -d "$additional_libdir"; then
10089 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10095 -R*)
10096 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10097 if test "$enable_rpath" != no; then
10098 haveit=
10099 for x in $rpathdirs; do
10100 if test "X$x" = "X$dir"; then
10101 haveit=yes
10102 break
10104 done
10105 if test -z "$haveit"; then
10106 rpathdirs="$rpathdirs $dir"
10108 haveit=
10109 for x in $ltrpathdirs; do
10110 if test "X$x" = "X$dir"; then
10111 haveit=yes
10112 break
10114 done
10115 if test -z "$haveit"; then
10116 ltrpathdirs="$ltrpathdirs $dir"
10120 -l*)
10121 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10123 *.la)
10124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10127 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10128 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10130 esac
10131 done
10133 else
10134 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10135 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10139 done
10140 done
10141 if test "X$rpathdirs" != "X"; then
10142 if test -n "$hardcode_libdir_separator"; then
10143 alldirs=
10144 for found_dir in $rpathdirs; do
10145 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10146 done
10147 acl_save_libdir="$libdir"
10148 libdir="$alldirs"
10149 eval flag=\"$hardcode_libdir_flag_spec\"
10150 libdir="$acl_save_libdir"
10151 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10152 else
10153 for found_dir in $rpathdirs; do
10154 acl_save_libdir="$libdir"
10155 libdir="$found_dir"
10156 eval flag=\"$hardcode_libdir_flag_spec\"
10157 libdir="$acl_save_libdir"
10158 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10159 done
10162 if test "X$ltrpathdirs" != "X"; then
10163 for found_dir in $ltrpathdirs; do
10164 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10165 done
10174 am_save_CPPFLAGS="$CPPFLAGS"
10176 for element in $INCICONV; do
10177 haveit=
10178 for x in $CPPFLAGS; do
10180 acl_save_prefix="$prefix"
10181 prefix="$acl_final_prefix"
10182 acl_save_exec_prefix="$exec_prefix"
10183 exec_prefix="$acl_final_exec_prefix"
10184 eval x=\"$x\"
10185 exec_prefix="$acl_save_exec_prefix"
10186 prefix="$acl_save_prefix"
10188 if test "X$x" = "X$element"; then
10189 haveit=yes
10190 break
10192 done
10193 if test -z "$haveit"; then
10194 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10196 done
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10200 $as_echo_n "checking for iconv... " >&6; }
10201 if test "${am_cv_func_iconv+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10205 am_cv_func_iconv="no, consider installing GNU libiconv"
10206 am_cv_lib_iconv=no
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 #include <stdlib.h>
10210 #include <iconv.h>
10212 main ()
10214 iconv_t cd = iconv_open("","");
10215 iconv(cd,NULL,NULL,NULL,NULL);
10216 iconv_close(cd);
10218 return 0;
10220 _ACEOF
10221 if ac_fn_cxx_try_link "$LINENO"; then :
10222 am_cv_func_iconv=yes
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test "$am_cv_func_iconv" != yes; then
10227 am_save_LIBS="$LIBS"
10228 LIBS="$LIBS $LIBICONV"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231 #include <stdlib.h>
10232 #include <iconv.h>
10234 main ()
10236 iconv_t cd = iconv_open("","");
10237 iconv(cd,NULL,NULL,NULL,NULL);
10238 iconv_close(cd);
10240 return 0;
10242 _ACEOF
10243 if ac_fn_cxx_try_link "$LINENO"; then :
10244 am_cv_lib_iconv=yes
10245 am_cv_func_iconv=yes
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LIBS="$am_save_LIBS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10254 $as_echo "$am_cv_func_iconv" >&6; }
10255 if test "$am_cv_func_iconv" = yes; then
10257 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10260 if test "$am_cv_lib_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10262 $as_echo_n "checking how to link with libiconv... " >&6; }
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10264 $as_echo "$LIBICONV" >&6; }
10265 else
10266 CPPFLAGS="$am_save_CPPFLAGS"
10267 LIBICONV=
10268 LTLIBICONV=
10273 if test "$am_cv_func_iconv" = yes; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10275 $as_echo_n "checking for iconv declaration... " >&6; }
10276 if test "${am_cv_proto_iconv+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10283 #include <stdlib.h>
10284 #include <iconv.h>
10285 extern
10286 #ifdef __cplusplus
10288 #endif
10289 #if defined(__STDC__) || defined(__cplusplus)
10290 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10291 #else
10292 size_t iconv();
10293 #endif
10296 main ()
10300 return 0;
10302 _ACEOF
10303 if ac_fn_cxx_try_compile "$LINENO"; then :
10304 am_cv_proto_iconv_arg1=""
10305 else
10306 am_cv_proto_iconv_arg1="const"
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 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);"
10312 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10314 }$am_cv_proto_iconv" >&5
10315 $as_echo "${ac_t:-
10316 }$am_cv_proto_iconv" >&6; }
10318 cat >>confdefs.h <<_ACEOF
10319 #define ICONV_CONST $am_cv_proto_iconv_arg1
10320 _ACEOF
10324 ac_ext=c
10325 ac_cpp='$CPP $CPPFLAGS'
10326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10331 # Until we have in-tree GNU iconv:
10332 LIBICONV_DEP=
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10337 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10338 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #include <locale.h>
10345 main ()
10347 return LC_MESSAGES
10349 return 0;
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 am_cv_val_LC_MESSAGES=yes
10354 else
10355 am_cv_val_LC_MESSAGES=no
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10361 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10362 if test $am_cv_val_LC_MESSAGES = yes; then
10364 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10371 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10372 if test "${am_cv_langinfo_codeset+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 #include <langinfo.h>
10379 main ()
10381 char* cs = nl_langinfo(CODESET);
10383 return 0;
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 am_cv_langinfo_codeset=yes
10388 else
10389 am_cv_langinfo_codeset=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10396 $as_echo "$am_cv_langinfo_codeset" >&6; }
10397 if test $am_cv_langinfo_codeset = yes; then
10399 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10404 # We will need to find libiberty.h and ansidecl.h
10405 saved_CFLAGS="$CFLAGS"
10406 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10407 saved_CXXFLAGS="$CXXFLAGS"
10408 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10409 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10410 strsignal strstr stpcpy strverscmp \
10411 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10412 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
10414 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #undef $ac_tr_decl
10423 #define $ac_tr_decl 1
10425 #include "ansidecl.h"
10426 #include "system.h"
10429 main ()
10431 #ifndef $ac_func
10432 char *(*pfn) = (char *(*)) $ac_func ;
10433 #endif
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_compile "$LINENO"; then :
10439 eval "gcc_cv_have_decl_$ac_func=yes"
10440 else
10441 eval "gcc_cv_have_decl_$ac_func=no"
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10448 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10449 #define $ac_tr_decl 1
10450 _ACEOF
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10455 #define $ac_tr_decl 0
10456 _ACEOF
10460 done
10463 for ac_func in getrlimit setrlimit getrusage
10465 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10468 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #undef $ac_tr_decl
10474 #define $ac_tr_decl 1
10476 #include "ansidecl.h"
10477 #include "system.h"
10478 #ifdef HAVE_SYS_RESOURCE_H
10479 #include <sys/resource.h>
10480 #endif
10484 main ()
10486 #ifndef $ac_func
10487 char *(*pfn) = (char *(*)) $ac_func ;
10488 #endif
10490 return 0;
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"; then :
10494 eval "gcc_cv_have_decl_$ac_func=yes"
10495 else
10496 eval "gcc_cv_have_decl_$ac_func=no"
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10504 #define $ac_tr_decl 1
10505 _ACEOF
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 0
10511 _ACEOF
10515 done
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10521 #include "ansidecl.h"
10522 #include "system.h"
10523 #ifdef HAVE_SYS_RESOURCE_H
10524 #include <sys/resource.h>
10525 #endif
10528 main ()
10530 rlim_t l = 0;
10532 return 0;
10534 _ACEOF
10535 if ac_fn_c_try_compile "$LINENO"; then :
10537 else
10539 $as_echo "#define rlim_t long" >>confdefs.h
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10545 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10546 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10547 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10548 for ac_func in ldgetname
10550 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10552 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10553 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 #undef $ac_tr_decl
10559 #define $ac_tr_decl 1
10561 #include "ansidecl.h"
10562 #include "system.h"
10563 #ifdef HAVE_LDFCN_H
10564 #undef FREAD
10565 #undef FWRITE
10566 #include <ldfcn.h>
10567 #endif
10571 main ()
10573 #ifndef $ac_func
10574 char *(*pfn) = (char *(*)) $ac_func ;
10575 #endif
10577 return 0;
10579 _ACEOF
10580 if ac_fn_c_try_compile "$LINENO"; then :
10581 eval "gcc_cv_have_decl_$ac_func=yes"
10582 else
10583 eval "gcc_cv_have_decl_$ac_func=no"
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10591 #define $ac_tr_decl 1
10592 _ACEOF
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10597 #define $ac_tr_decl 0
10598 _ACEOF
10602 done
10605 for ac_func in times
10607 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10609 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10610 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #undef $ac_tr_decl
10616 #define $ac_tr_decl 1
10618 #include "ansidecl.h"
10619 #include "system.h"
10620 #ifdef HAVE_SYS_TIMES_H
10621 #include <sys/times.h>
10622 #endif
10626 main ()
10628 #ifndef $ac_func
10629 char *(*pfn) = (char *(*)) $ac_func ;
10630 #endif
10632 return 0;
10634 _ACEOF
10635 if ac_fn_c_try_compile "$LINENO"; then :
10636 eval "gcc_cv_have_decl_$ac_func=yes"
10637 else
10638 eval "gcc_cv_have_decl_$ac_func=no"
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10646 #define $ac_tr_decl 1
10647 _ACEOF
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 0
10653 _ACEOF
10657 done
10660 for ac_func in sigaltstack
10662 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10664 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10665 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #undef $ac_tr_decl
10671 #define $ac_tr_decl 1
10673 #include "ansidecl.h"
10674 #include "system.h"
10675 #include <signal.h>
10679 main ()
10681 #ifndef $ac_func
10682 char *(*pfn) = (char *(*)) $ac_func ;
10683 #endif
10685 return 0;
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 eval "gcc_cv_have_decl_$ac_func=yes"
10690 else
10691 eval "gcc_cv_have_decl_$ac_func=no"
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10696 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10698 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10699 #define $ac_tr_decl 1
10700 _ACEOF
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10705 #define $ac_tr_decl 0
10706 _ACEOF
10710 done
10713 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10714 # prototype.
10715 ac_ext=cpp
10716 ac_cpp='$CXXCPP $CPPFLAGS'
10717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10721 for ac_func in madvise
10723 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10725 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10726 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #undef $ac_tr_decl
10732 #define $ac_tr_decl 1
10734 #include "ansidecl.h"
10735 #include "system.h"
10739 main ()
10741 #ifndef $ac_func
10742 char *(*pfn) = (char *(*)) $ac_func ;
10743 #endif
10745 return 0;
10747 _ACEOF
10748 if ac_fn_cxx_try_compile "$LINENO"; then :
10749 eval "gcc_cv_have_decl_$ac_func=yes"
10750 else
10751 eval "gcc_cv_have_decl_$ac_func=no"
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10759 #define $ac_tr_decl 1
10760 _ACEOF
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10765 #define $ac_tr_decl 0
10766 _ACEOF
10770 done
10772 ac_ext=c
10773 ac_cpp='$CPP $CPPFLAGS'
10774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779 # More time-related stuff.
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10781 $as_echo_n "checking for struct tms... " >&6; }
10782 if test "${ac_cv_struct_tms+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 #include "ansidecl.h"
10790 #include "system.h"
10791 #ifdef HAVE_SYS_TIMES_H
10792 #include <sys/times.h>
10793 #endif
10796 main ()
10798 struct tms tms;
10800 return 0;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"; then :
10804 ac_cv_struct_tms=yes
10805 else
10806 ac_cv_struct_tms=no
10808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10811 $as_echo "$ac_cv_struct_tms" >&6; }
10812 if test $ac_cv_struct_tms = yes; then
10814 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10818 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10819 # revisit after autoconf 2.50.
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10821 $as_echo_n "checking for clock_t... " >&6; }
10822 if test "${gcc_cv_type_clock_t+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include "ansidecl.h"
10830 #include "system.h"
10833 main ()
10835 clock_t x;
10837 return 0;
10839 _ACEOF
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841 gcc_cv_type_clock_t=yes
10842 else
10843 gcc_cv_type_clock_t=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10848 $as_echo "$gcc_cv_type_clock_t" >&6; }
10849 if test $gcc_cv_type_clock_t = yes; then
10851 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10855 # Check if F_SETLKW is supported by fcntl.
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10857 $as_echo_n "checking for F_SETLKW... " >&6; }
10858 if test "${ac_cv_f_setlkw+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 #include <fcntl.h>
10867 main ()
10870 struct flock fl;
10871 fl.l_whence = 0;
10872 fl.l_start = 0;
10873 fl.l_len = 0;
10874 fl.l_pid = 0;
10875 return fcntl (1, F_SETLKW, &fl);
10877 return 0;
10879 _ACEOF
10880 if ac_fn_c_try_compile "$LINENO"; then :
10881 ac_cv_f_setlkw=yes
10882 else
10883 ac_cv_f_setlkw=no
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10888 $as_echo "$ac_cv_f_setlkw" >&6; }
10889 if test $ac_cv_f_setlkw = yes; then
10891 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10895 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10896 CFLAGS="$saved_CFLAGS"
10897 CXXFLAGS="$saved_CXXFLAGS"
10899 # mkdir takes a single argument on some systems.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10901 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10902 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 #include <sys/types.h>
10909 #ifdef HAVE_SYS_STAT_H
10910 # include <sys/stat.h>
10911 #endif
10912 #ifdef HAVE_UNISTD_H
10913 # include <unistd.h>
10914 #endif
10915 #ifdef HAVE_DIRECT_H
10916 # include <direct.h>
10917 #endif
10919 main ()
10921 mkdir ("foo", 0);
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927 gcc_cv_mkdir_takes_one_arg=no
10928 else
10929 gcc_cv_mkdir_takes_one_arg=yes
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10934 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10935 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10937 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10942 # File extensions
10943 manext='.1'
10944 objext='.o'
10948 # With Setjmp/Longjmp based exception handling.
10949 # Check whether --enable-sjlj-exceptions was given.
10950 if test "${enable_sjlj_exceptions+set}" = set; then :
10951 enableval=$enable_sjlj_exceptions; case $target in
10952 *-*-hpux10*)
10953 if test $enableval != yes; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10955 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10956 enableval=yes
10959 esac
10960 force_sjlj_exceptions=yes
10961 else
10962 case $target in
10963 *-*-hpux10*)
10964 force_sjlj_exceptions=yes
10965 enableval=yes
10968 force_sjlj_exceptions=no
10970 esac
10973 if test $force_sjlj_exceptions = yes; then
10974 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10976 cat >>confdefs.h <<_ACEOF
10977 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10978 _ACEOF
10982 # --------------------------------------------------------
10983 # Build, host, and target specific configuration fragments
10984 # --------------------------------------------------------
10986 # Collect build-machine-specific information.
10987 . ${srcdir}/config.build
10989 # Collect host-machine-specific information.
10990 . ${srcdir}/config.host
10992 target_gtfiles=
10994 # Collect target-machine-specific information.
10995 . ${srcdir}/config.gcc
10997 extra_objs="${host_extra_objs} ${extra_objs}"
10998 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11000 # Default the target-machine variables that were not explicitly set.
11001 if test x"$tm_file" = x
11002 then tm_file=$cpu_type/$cpu_type.h; fi
11004 if test x"$extra_headers" = x
11005 then extra_headers=; fi
11007 if test x$md_file = x
11008 then md_file=$cpu_type/$cpu_type.md; fi
11010 if test x$out_file = x
11011 then out_file=$cpu_type/$cpu_type.c; fi
11013 if test x"$tmake_file" = x
11014 then tmake_file=$cpu_type/t-$cpu_type
11017 # Support --enable-initfini-array.
11018 if test x$enable_initfini_array != xno; then
11019 tm_file="${tm_file} initfini-array.h"
11022 if test x"$dwarf2" = xyes
11023 then tm_file="$tm_file tm-dwarf2.h"
11026 # Say what files are being used for the output code and MD file.
11027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11028 echo "Using \`$srcdir/config/$md_file' as machine description file."
11030 # If any of the xm_file variables contain nonexistent files, warn
11031 # about them and drop them.
11034 for x in $build_xm_file; do
11035 if test -f $srcdir/config/$x
11036 then bx="$bx $x"
11037 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11038 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11040 done
11041 build_xm_file="$bx"
11044 for x in $host_xm_file; do
11045 if test -f $srcdir/config/$x
11046 then hx="$hx $x"
11047 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11048 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11050 done
11051 host_xm_file="$hx"
11054 for x in $xm_file; do
11055 if test -f $srcdir/config/$x
11056 then tx="$tx $x"
11057 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11058 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11060 done
11061 xm_file="$tx"
11063 count=a
11064 for f in $tm_file; do
11065 count=${count}x
11066 done
11067 if test $count = ax; then
11068 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11069 else
11070 echo "Using the following target machine macro files:"
11071 for f in $tm_file; do
11072 echo " $srcdir/config/$f"
11073 done
11076 if test x$need_64bit_hwint = xyes; then
11078 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11082 if test x$use_long_long_for_widest_fast_int = xyes; then
11084 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11088 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11090 cat >>confdefs.h <<_ACEOF
11091 #define HAVE_GNU_LD $gnu_ld_bool
11092 _ACEOF
11095 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_GNU_AS $gnu_as_bool
11099 _ACEOF
11102 count=a
11103 for f in $host_xm_file; do
11104 count=${count}x
11105 done
11106 if test $count = a; then
11108 elif test $count = ax; then
11109 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11110 else
11111 echo "Using the following host machine macro files:"
11112 for f in $host_xm_file; do
11113 echo " $srcdir/config/$f"
11114 done
11116 echo "Using ${out_host_hook_obj} for host machine hooks."
11118 if test "$host_xm_file" != "$build_xm_file"; then
11119 count=a
11120 for f in $build_xm_file; do
11121 count=${count}x
11122 done
11123 if test $count = a; then
11125 elif test $count = ax; then
11126 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11127 else
11128 echo "Using the following build machine macro files:"
11129 for f in $build_xm_file; do
11130 echo " $srcdir/config/$f"
11131 done
11135 if test -n "$configured_native_system_header_dir"; then
11136 native_system_header_dir=$configured_native_system_header_dir
11138 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11141 case ${host} in
11142 powerpc*-*-darwin*)
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11144 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11145 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 #include <sys/cdefs.h>
11152 #include <sys/signal.h>
11153 #include <ucontext.h>
11154 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158 gcc_cv_mcontext_underscores=no
11159 else
11160 gcc_cv_mcontext_underscores=yes
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11165 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11166 if test $gcc_cv_mcontext_underscores = yes; then
11168 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11172 esac
11174 # ---------
11175 # Threading
11176 # ---------
11178 # Check if a valid thread package
11179 case ${enable_threads} in
11180 "" | no)
11181 # No threads
11182 target_thread_file='single'
11184 yes)
11185 # default
11186 target_thread_file='single'
11188 aix | dce | lynx | mipssde | posix | rtems | \
11189 single | tpf | vxworks | win32)
11190 target_thread_file=${enable_threads}
11193 echo "${enable_threads} is an unknown thread package" 1>&2
11194 exit 1
11196 esac
11198 if test x${thread_file} = x; then
11199 # No thread file set by target-specific clauses in config.gcc,
11200 # so use file chosen by default logic above
11201 thread_file=${target_thread_file}
11204 # --------
11205 # UNSORTED
11206 # --------
11208 use_cxa_atexit=no
11209 if test x$enable___cxa_atexit = xyes || \
11210 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11211 if test x$host = x$target; then
11212 case $host in
11213 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11214 # keyed to flag_use_cxa_atexit
11215 *-*-mingw32*)
11216 use_cxa_atexit=yes
11218 powerpc-ibm-aix*)
11219 use_cxa_atexit=yes
11222 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11223 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11224 use_cxa_atexit=yes
11225 else
11226 echo "__cxa_atexit can't be enabled on this target"
11230 esac
11231 else
11232 # We can't check for __cxa_atexit when building a cross, so assume
11233 # it is available
11234 use_cxa_atexit=yes
11236 if test x$use_cxa_atexit = xyes; then
11238 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11243 # Look for a file containing extra machine modes.
11244 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11245 extra_modes_file='$(srcdir)'/config/${extra_modes}
11248 cat >>confdefs.h <<_ACEOF
11249 #define EXTRA_MODES_FILE "config/$extra_modes"
11250 _ACEOF
11254 # Convert extra_options into a form suitable for Makefile use.
11255 extra_opt_files=
11256 all_opt_files=
11257 for f in $extra_options; do
11258 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11259 all_opt_files="$all_opt_files $srcdir/config/$f"
11260 done
11263 # auto-host.h is the file containing items generated by autoconf and is
11264 # the first file included by config.h.
11265 # If host=build, it is correct to have bconfig include auto-host.h
11266 # as well. If host!=build, we are in error and need to do more
11267 # work to find out the build config parameters.
11268 if test x$host = x$build
11269 then
11270 build_auto=auto-host.h
11271 else
11272 # We create a subdir, then run autoconf in the subdir.
11273 # To prevent recursion we set host and build for the new
11274 # invocation of configure to the build for this invocation
11275 # of configure.
11276 tempdir=build.$$
11277 rm -rf $tempdir
11278 mkdir $tempdir
11279 cd $tempdir
11280 case ${srcdir} in
11281 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11282 *) realsrcdir=../${srcdir};;
11283 esac
11284 saved_CFLAGS="${CFLAGS}"
11285 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11286 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11287 ${realsrcdir}/configure \
11288 --enable-languages=${enable_languages-all} \
11289 --target=$target_alias --host=$build_alias --build=$build_alias
11290 CFLAGS="${saved_CFLAGS}"
11292 # We just finished tests for the build machine, so rename
11293 # the file auto-build.h in the gcc directory.
11294 mv auto-host.h ../auto-build.h
11295 cd ..
11296 rm -rf $tempdir
11297 build_auto=auto-build.h
11301 tm_file="${tm_file} defaults.h"
11302 tm_p_file="${tm_p_file} tm-preds.h"
11303 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11304 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11305 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11306 # put this back in temporarily.
11307 xm_file="auto-host.h ansidecl.h ${xm_file}"
11309 # --------
11310 # UNSORTED
11311 # --------
11313 # Compile in configure arguments.
11314 if test -f configargs.h ; then
11315 # Being re-configured.
11316 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11317 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11318 else
11319 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11322 # Double all backslashes and backslash all quotes to turn
11323 # gcc_config_arguments into a C string.
11324 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11325 $gcc_config_arguments
11327 gcc_config_arguments_str=`cat conftest.out`
11328 rm -f conftest.out
11330 cat > configargs.h <<EOF
11331 /* Generated automatically. */
11332 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11333 static const char thread_model[] = "$thread_file";
11335 static const struct {
11336 const char *name, *value;
11337 } configure_default_options[] = $configure_default_options;
11340 gcc_BASEVER=`cat $srcdir/BASE-VER`
11341 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11342 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11343 if test -f $srcdir/REVISION ; then
11344 gcc_REVISION=`cat $srcdir/REVISION`
11345 else
11346 gcc_REVISION=""
11348 cat > plugin-version.h <<EOF
11349 #include "configargs.h"
11351 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11352 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11353 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11354 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11356 static char basever[] = "$gcc_BASEVER";
11357 static char datestamp[] = "$gcc_DATESTAMP";
11358 static char devphase[] = "$gcc_DEVPHASE";
11359 static char revision[] = "$gcc_REVISION";
11361 /* FIXME plugins: We should make the version information more precise.
11362 One way to do is to add a checksum. */
11364 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11365 devphase, revision,
11366 configuration_arguments};
11369 # Internationalization
11370 # If we haven't got the data from the intl directory,
11371 # assume NLS is disabled.
11372 USE_NLS=no
11373 LIBINTL=
11374 LIBINTL_DEP=
11375 INCINTL=
11376 XGETTEXT=
11377 GMSGFMT=
11378 POSUB=
11380 if test -f ../intl/config.intl; then
11381 . ../intl/config.intl
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11384 $as_echo_n "checking whether NLS is requested... " >&6; }
11385 if test x"$USE_NLS" != xyes; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11396 $as_echo_n "checking for catalogs to be installed... " >&6; }
11397 # Look for .po and .gmo files in the source directory.
11398 CATALOGS=
11399 XLINGUAS=
11400 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11401 # If there aren't any .gmo files the shell will give us the
11402 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11403 # weeded out.
11404 case "$cat" in *\**)
11405 continue;;
11406 esac
11407 # The quadruple backslash is collapsed to a double backslash
11408 # by the backticks, then collapsed again by the double quotes,
11409 # leaving us with one backslash in the sed expression (right
11410 # before the dot that mustn't act as a wildcard).
11411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11412 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11413 # The user is allowed to set LINGUAS to a list of languages to
11414 # install catalogs for. If it's empty that means "all of them."
11415 if test "x$LINGUAS" = x; then
11416 CATALOGS="$CATALOGS $cat"
11417 XLINGUAS="$XLINGUAS $lang"
11418 else
11419 case "$LINGUAS" in *$lang*)
11420 CATALOGS="$CATALOGS $cat"
11421 XLINGUAS="$XLINGUAS $lang"
11423 esac
11425 done
11426 LINGUAS="$XLINGUAS"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11428 $as_echo "$LINGUAS" >&6; }
11431 DATADIRNAME=share
11433 INSTOBJEXT=.mo
11435 GENCAT=gencat
11437 CATOBJEXT=.gmo
11441 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11442 # -liconv on the link line twice.
11443 case "$LIBINTL" in *$LIBICONV*)
11444 LIBICONV= ;;
11445 esac
11447 # Check whether --enable-secureplt was given.
11448 if test "${enable_secureplt+set}" = set; then :
11449 enableval=$enable_secureplt;
11453 # Check whether --enable-leading-mingw64-underscores was given.
11454 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11455 enableval=$enable_leading_mingw64_underscores;
11458 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11460 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11464 # Check whether --enable-cld was given.
11465 if test "${enable_cld+set}" = set; then :
11466 enableval=$enable_cld;
11467 else
11468 enable_cld=no
11472 # Check whether --enable-frame-pointer was given.
11473 if test "${enable_frame_pointer+set}" = set; then :
11474 enableval=$enable_frame_pointer;
11475 else
11477 case $target_os in
11478 linux* | darwin[8912]*)
11479 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11480 # DWARF2.
11481 enable_frame_pointer=no
11484 enable_frame_pointer=yes
11486 esac
11491 # Windows32 Registry support for specifying GCC installation paths.
11492 # Check whether --enable-win32-registry was given.
11493 if test "${enable_win32_registry+set}" = set; then :
11494 enableval=$enable_win32_registry;
11498 case $host_os in
11499 win32 | pe | cygwin* | mingw32* | uwin*)
11500 if test "x$enable_win32_registry" != xno; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11502 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11503 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_func_search_save_LIBS=$LIBS
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char RegOpenKeyExA ();
11518 main ()
11520 return RegOpenKeyExA ();
11522 return 0;
11524 _ACEOF
11525 for ac_lib in '' advapi32; do
11526 if test -z "$ac_lib"; then
11527 ac_res="none required"
11528 else
11529 ac_res=-l$ac_lib
11530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_search_RegOpenKeyExA=$ac_res
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext
11537 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11538 break
11540 done
11541 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11543 else
11544 ac_cv_search_RegOpenKeyExA=no
11546 rm conftest.$ac_ext
11547 LIBS=$ac_func_search_save_LIBS
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11550 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11551 ac_res=$ac_cv_search_RegOpenKeyExA
11552 if test "$ac_res" != no; then :
11553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11555 else
11556 enable_win32_registry=no
11561 if test "x$enable_win32_registry" != xno; then
11563 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11566 if test "x$enable_win32_registry" != xyes \
11567 && test "x$enable_win32_registry" != x; then
11569 cat >>confdefs.h <<_ACEOF
11570 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11571 _ACEOF
11576 esac
11578 # Get an absolute path to the GCC top-level source directory
11579 holddir=`${PWDCMD-pwd}`
11580 cd $srcdir
11581 topdir=`${PWDCMD-pwd}`
11582 cd $holddir
11584 # Conditionalize the makefile for this host machine.
11585 xmake_file=
11586 for f in ${host_xmake_file}
11588 if test -f ${srcdir}/config/$f
11589 then
11590 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11592 done
11594 # Conditionalize the makefile for this target machine.
11595 tmake_file_=
11596 for f in ${tmake_file}
11598 if test -f ${srcdir}/config/$f
11599 then
11600 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11602 done
11603 tmake_file="${tmake_file_}"
11605 out_object_file=`basename $out_file .c`.o
11606 common_out_object_file=`basename $common_out_file .c`.o
11608 tm_file_list="options.h"
11609 tm_include_list="options.h insn-constants.h"
11610 for f in $tm_file; do
11611 case $f in
11612 ./* )
11613 f=`echo $f | sed 's/^..//'`
11614 tm_file_list="${tm_file_list} $f"
11615 tm_include_list="${tm_include_list} $f"
11617 defaults.h )
11618 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11619 tm_include_list="${tm_include_list} $f"
11622 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11623 tm_include_list="${tm_include_list} config/$f"
11625 esac
11626 done
11628 tm_p_file_list=
11629 tm_p_include_list=
11630 for f in $tm_p_file; do
11631 case $f in
11632 tm-preds.h )
11633 tm_p_file_list="${tm_p_file_list} $f"
11634 tm_p_include_list="${tm_p_include_list} $f"
11637 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11638 tm_p_include_list="${tm_p_include_list} config/$f"
11639 esac
11640 done
11642 xm_file_list=
11643 xm_include_list=
11644 for f in $xm_file; do
11645 case $f in
11646 ansidecl.h )
11647 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11648 xm_include_list="${xm_include_list} $f"
11650 auto-host.h )
11651 xm_file_list="${xm_file_list} $f"
11652 xm_include_list="${xm_include_list} $f"
11655 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11656 xm_include_list="${xm_include_list} config/$f"
11658 esac
11659 done
11661 host_xm_file_list=
11662 host_xm_include_list=
11663 for f in $host_xm_file; do
11664 case $f in
11665 ansidecl.h )
11666 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11667 host_xm_include_list="${host_xm_include_list} $f"
11669 auto-host.h )
11670 host_xm_file_list="${host_xm_file_list} $f"
11671 host_xm_include_list="${host_xm_include_list} $f"
11674 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11675 host_xm_include_list="${host_xm_include_list} config/$f"
11677 esac
11678 done
11680 build_xm_file_list=
11681 for f in $build_xm_file; do
11682 case $f in
11683 ansidecl.h )
11684 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11685 build_xm_include_list="${build_xm_include_list} $f"
11687 auto-build.h | auto-host.h )
11688 build_xm_file_list="${build_xm_file_list} $f"
11689 build_xm_include_list="${build_xm_include_list} $f"
11692 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11693 build_xm_include_list="${build_xm_include_list} config/$f"
11695 esac
11696 done
11698 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11699 # cross-compiler which does not use the native headers and libraries.
11700 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11701 CROSS=
11702 ALL=all.internal
11703 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11705 if test "x$with_build_sysroot" != x; then
11706 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11707 else
11708 # This value is used, even on a native system, because
11709 # CROSS_SYSTEM_HEADER_DIR is just
11710 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11711 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11714 if test x$host != x$target
11715 then
11716 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11717 ALL=all.cross
11718 SYSTEM_HEADER_DIR=$build_system_header_dir
11719 case "$host","$target" in
11720 # Darwin crosses can use the host system's libraries and headers,
11721 # because of the fat library support. Of course, it must be the
11722 # same version of Darwin on both sides. Allow the user to
11723 # just say --target=foo-darwin without a version number to mean
11724 # "the version on this system".
11725 *-*-darwin*,*-*-darwin*)
11726 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11727 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11728 if test $hostos = $targetos -o $targetos = darwin ; then
11729 CROSS=
11730 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11731 with_headers=yes
11735 i?86-*-*,x86_64-*-* \
11736 | powerpc*-*-*,powerpc64*-*-*)
11737 CROSS="$CROSS -DNATIVE_CROSS" ;;
11738 esac
11740 case $target in
11741 *-*-mingw*)
11742 if test "x$with_headers" = x; then
11743 with_headers=yes
11748 esac
11749 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11750 SYSTEM_HEADER_DIR=$build_system_header_dir
11753 # If this is a cross-compiler that does not
11754 # have its own set of headers then define
11755 # inhibit_libc
11757 # If this is using newlib, without having the headers available now,
11758 # then define inhibit_libc in LIBGCC2_CFLAGS.
11759 # This prevents libgcc2 from containing any code which requires libc
11760 # support.
11761 : ${inhibit_libc=false}
11762 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11763 test x$with_newlib = xyes ; } &&
11764 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11765 inhibit_libc=true
11769 # When building gcc with a cross-compiler, we need to adjust things so
11770 # that the generator programs are still built with the native compiler.
11771 # Also, we cannot run fixincludes.
11773 # These are the normal (build=host) settings:
11774 CC_FOR_BUILD='$(CC)'
11775 CXX_FOR_BUILD='$(CXX)'
11776 BUILD_CFLAGS='$(ALL_CFLAGS)'
11777 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11778 BUILD_LDFLAGS='$(LDFLAGS)'
11779 STMP_FIXINC=stmp-fixinc
11781 # And these apply if build != host, or we are generating coverage data
11782 if test x$build != x$host || test "x$coverage_flags" != x
11783 then
11784 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11785 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11788 # Expand extra_headers to include complete path.
11789 # This substitutes for lots of t-* files.
11790 extra_headers_list=
11791 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11792 for file in ${extra_headers} ; do
11793 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11794 done
11796 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11797 if test x"$use_gcc_tgmath" = xyes
11798 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11801 # Define collect2 in Makefile.
11802 case $host_can_use_collect2 in
11803 no) collect2= ;;
11804 *) collect2='collect2$(exeext)' ;;
11805 esac
11808 # Add a definition of USE_COLLECT2 if system wants one.
11809 case $use_collect2 in
11810 no) use_collect2= ;;
11811 "") ;;
11813 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11814 xm_defines="${xm_defines} USE_COLLECT2"
11815 case $host_can_use_collect2 in
11817 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11819 esac
11821 esac
11824 cat >>confdefs.h <<_ACEOF
11825 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11826 _ACEOF
11829 # ---------------------------
11830 # Assembler & linker features
11831 # ---------------------------
11833 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11834 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11835 # However when ld-new is first executed from the build tree, libtool will
11836 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11837 # to the build tree. While doing this we need to use the previous-stage
11838 # linker, or we have an infinite loop. The presence of a shell script as
11839 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11840 # the gcc/collect-ld script. So we need to know how libtool works, or
11841 # exec-tool will fail.
11844 case `pwd` in
11845 *\ * | *\ *)
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11848 esac
11852 macro_version='2.2.7a'
11853 macro_revision='1.3134'
11867 ltmain="$ac_aux_dir/ltmain.sh"
11869 # Backslashify metacharacters that are still active within
11870 # double-quoted strings.
11871 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11873 # Same as above, but do not quote variable references.
11874 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11876 # Sed substitution to delay expansion of an escaped shell variable in a
11877 # double_quote_subst'ed string.
11878 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11880 # Sed substitution to delay expansion of an escaped single quote.
11881 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11883 # Sed substitution to avoid accidental globbing in evaled expressions
11884 no_glob_subst='s/\*/\\\*/g'
11886 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11887 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11888 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11891 $as_echo_n "checking how to print strings... " >&6; }
11892 # Test print first, because it will be a builtin if present.
11893 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11894 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11895 ECHO='print -r --'
11896 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11897 ECHO='printf %s\n'
11898 else
11899 # Use this function as a fallback that always works.
11900 func_fallback_echo ()
11902 eval 'cat <<_LTECHO_EOF
11904 _LTECHO_EOF'
11906 ECHO='func_fallback_echo'
11909 # func_echo_all arg...
11910 # Invoke $ECHO with all args, space-separated.
11911 func_echo_all ()
11913 $ECHO ""
11916 case "$ECHO" in
11917 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11918 $as_echo "printf" >&6; } ;;
11919 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11920 $as_echo "print -r" >&6; } ;;
11921 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11922 $as_echo "cat" >&6; } ;;
11923 esac
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11939 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11940 if test "${ac_cv_path_SED+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11944 for ac_i in 1 2 3 4 5 6 7; do
11945 ac_script="$ac_script$as_nl$ac_script"
11946 done
11947 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11948 { ac_script=; unset ac_script;}
11949 if test -z "$SED"; then
11950 ac_path_SED_found=false
11951 # Loop through the user's path and test for each of PROGNAME-LIST
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
11957 for ac_prog in sed gsed; do
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11960 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11961 # Check for GNU ac_path_SED and select it if it is found.
11962 # Check for GNU $ac_path_SED
11963 case `"$ac_path_SED" --version 2>&1` in
11964 *GNU*)
11965 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11967 ac_count=0
11968 $as_echo_n 0123456789 >"conftest.in"
11969 while :
11971 cat "conftest.in" "conftest.in" >"conftest.tmp"
11972 mv "conftest.tmp" "conftest.in"
11973 cp "conftest.in" "conftest.nl"
11974 $as_echo '' >> "conftest.nl"
11975 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11977 as_fn_arith $ac_count + 1 && ac_count=$as_val
11978 if test $ac_count -gt ${ac_path_SED_max-0}; then
11979 # Best one so far, save it but keep looking for a better one
11980 ac_cv_path_SED="$ac_path_SED"
11981 ac_path_SED_max=$ac_count
11983 # 10*(2^10) chars as input seems more than enough
11984 test $ac_count -gt 10 && break
11985 done
11986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11987 esac
11989 $ac_path_SED_found && break 3
11990 done
11991 done
11992 done
11993 IFS=$as_save_IFS
11994 if test -z "$ac_cv_path_SED"; then
11995 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11997 else
11998 ac_cv_path_SED=$SED
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12003 $as_echo "$ac_cv_path_SED" >&6; }
12004 SED="$ac_cv_path_SED"
12005 rm -f conftest.sed
12007 test -z "$SED" && SED=sed
12008 Xsed="$SED -e 1s/^X//"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12021 $as_echo_n "checking for fgrep... " >&6; }
12022 if test "${ac_cv_path_FGREP+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12026 then ac_cv_path_FGREP="$GREP -F"
12027 else
12028 if test -z "$FGREP"; then
12029 ac_path_FGREP_found=false
12030 # Loop through the user's path and test for each of PROGNAME-LIST
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_prog in fgrep; do
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12039 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12040 # Check for GNU ac_path_FGREP and select it if it is found.
12041 # Check for GNU $ac_path_FGREP
12042 case `"$ac_path_FGREP" --version 2>&1` in
12043 *GNU*)
12044 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12046 ac_count=0
12047 $as_echo_n 0123456789 >"conftest.in"
12048 while :
12050 cat "conftest.in" "conftest.in" >"conftest.tmp"
12051 mv "conftest.tmp" "conftest.in"
12052 cp "conftest.in" "conftest.nl"
12053 $as_echo 'FGREP' >> "conftest.nl"
12054 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12056 as_fn_arith $ac_count + 1 && ac_count=$as_val
12057 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12058 # Best one so far, save it but keep looking for a better one
12059 ac_cv_path_FGREP="$ac_path_FGREP"
12060 ac_path_FGREP_max=$ac_count
12062 # 10*(2^10) chars as input seems more than enough
12063 test $ac_count -gt 10 && break
12064 done
12065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12066 esac
12068 $ac_path_FGREP_found && break 3
12069 done
12070 done
12071 done
12072 IFS=$as_save_IFS
12073 if test -z "$ac_cv_path_FGREP"; then
12074 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12076 else
12077 ac_cv_path_FGREP=$FGREP
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12083 $as_echo "$ac_cv_path_FGREP" >&6; }
12084 FGREP="$ac_cv_path_FGREP"
12087 test -z "$GREP" && GREP=grep
12107 # Check whether --with-gnu-ld was given.
12108 if test "${with_gnu_ld+set}" = set; then :
12109 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12110 else
12111 with_gnu_ld=no
12114 ac_prog=ld
12115 if test "$GCC" = yes; then
12116 # Check if gcc -print-prog-name=ld gives a path.
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12118 $as_echo_n "checking for ld used by $CC... " >&6; }
12119 case $host in
12120 *-*-mingw*)
12121 # gcc leaves a trailing carriage return which upsets mingw
12122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12125 esac
12126 case $ac_prog in
12127 # Accept absolute paths.
12128 [\\/]* | ?:[\\/]*)
12129 re_direlt='/[^/][^/]*/\.\./'
12130 # Canonicalize the pathname of ld
12131 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12132 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12133 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12134 done
12135 test -z "$LD" && LD="$ac_prog"
12138 # If it fails, then pretend we aren't using GCC.
12139 ac_prog=ld
12142 # If it is relative, then search for the first ld in PATH.
12143 with_gnu_ld=unknown
12145 esac
12146 elif test "$with_gnu_ld" = yes; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12148 $as_echo_n "checking for GNU ld... " >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12151 $as_echo_n "checking for non-GNU ld... " >&6; }
12153 if test "${lt_cv_path_LD+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -z "$LD"; then
12157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12158 for ac_dir in $PATH; do
12159 IFS="$lt_save_ifs"
12160 test -z "$ac_dir" && ac_dir=.
12161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12162 lt_cv_path_LD="$ac_dir/$ac_prog"
12163 # Check to see if the program is GNU ld. I'd rather use --version,
12164 # but apparently some variants of GNU ld only accept -v.
12165 # Break only if it was the GNU/non-GNU ld that we prefer.
12166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12167 *GNU* | *'with BFD'*)
12168 test "$with_gnu_ld" != no && break
12171 test "$with_gnu_ld" != yes && break
12173 esac
12175 done
12176 IFS="$lt_save_ifs"
12177 else
12178 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12182 LD="$lt_cv_path_LD"
12183 if test -n "$LD"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12185 $as_echo "$LD" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12190 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12192 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12193 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12197 case `$LD -v 2>&1 </dev/null` in
12198 *GNU* | *'with BFD'*)
12199 lt_cv_prog_gnu_ld=yes
12202 lt_cv_prog_gnu_ld=no
12204 esac
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12207 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12208 with_gnu_ld=$lt_cv_prog_gnu_ld
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12219 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12220 if test "${lt_cv_path_NM+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test -n "$NM"; then
12224 # Let the user override the test.
12225 lt_cv_path_NM="$NM"
12226 else
12227 lt_nm_to_check="${ac_tool_prefix}nm"
12228 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12229 lt_nm_to_check="$lt_nm_to_check nm"
12231 for lt_tmp_nm in $lt_nm_to_check; do
12232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12233 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12234 IFS="$lt_save_ifs"
12235 test -z "$ac_dir" && ac_dir=.
12236 tmp_nm="$ac_dir/$lt_tmp_nm"
12237 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12238 # Check to see if the nm accepts a BSD-compat flag.
12239 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12240 # nm: unknown option "B" ignored
12241 # Tru64's nm complains that /dev/null is an invalid object file
12242 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12243 */dev/null* | *'Invalid file or object type'*)
12244 lt_cv_path_NM="$tmp_nm -B"
12245 break
12248 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12249 */dev/null*)
12250 lt_cv_path_NM="$tmp_nm -p"
12251 break
12254 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12255 continue # so that we can try to find one that supports BSD flags
12257 esac
12259 esac
12261 done
12262 IFS="$lt_save_ifs"
12263 done
12264 : ${lt_cv_path_NM=no}
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12268 $as_echo "$lt_cv_path_NM" >&6; }
12269 if test "$lt_cv_path_NM" != "no"; then
12270 NM="$lt_cv_path_NM"
12271 else
12272 # Didn't find any BSD compatible name lister, look for dumpbin.
12273 if test -n "$DUMPBIN"; then :
12274 # Let the user override the test.
12275 else
12276 if test -n "$ac_tool_prefix"; then
12277 for ac_prog in dumpbin "link -dump"
12279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 if test -n "$DUMPBIN"; then
12287 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12288 else
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12306 DUMPBIN=$ac_cv_prog_DUMPBIN
12307 if test -n "$DUMPBIN"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12309 $as_echo "$DUMPBIN" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12316 test -n "$DUMPBIN" && break
12317 done
12319 if test -z "$DUMPBIN"; then
12320 ac_ct_DUMPBIN=$DUMPBIN
12321 for ac_prog in dumpbin "link -dump"
12323 # Extract the first word of "$ac_prog", so it can be a program name with args.
12324 set dummy $ac_prog; ac_word=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 if test -n "$ac_ct_DUMPBIN"; then
12331 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12332 else
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12344 done
12345 done
12346 IFS=$as_save_IFS
12350 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12351 if test -n "$ac_ct_DUMPBIN"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12353 $as_echo "$ac_ct_DUMPBIN" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12360 test -n "$ac_ct_DUMPBIN" && break
12361 done
12363 if test "x$ac_ct_DUMPBIN" = x; then
12364 DUMPBIN=":"
12365 else
12366 case $cross_compiling:$ac_tool_warned in
12367 yes:)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned=yes ;;
12371 esac
12372 DUMPBIN=$ac_ct_DUMPBIN
12376 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12377 *COFF*)
12378 DUMPBIN="$DUMPBIN -symbols"
12381 DUMPBIN=:
12383 esac
12386 if test "$DUMPBIN" != ":"; then
12387 NM="$DUMPBIN"
12390 test -z "$NM" && NM=nm
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12398 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12399 if test "${lt_cv_nm_interface+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 lt_cv_nm_interface="BSD nm"
12403 echo "int some_variable = 0;" > conftest.$ac_ext
12404 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12405 (eval "$ac_compile" 2>conftest.err)
12406 cat conftest.err >&5
12407 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12408 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12409 cat conftest.err >&5
12410 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12411 cat conftest.out >&5
12412 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12413 lt_cv_nm_interface="MS dumpbin"
12415 rm -f conftest*
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12418 $as_echo "$lt_cv_nm_interface" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12421 $as_echo_n "checking whether ln -s works... " >&6; }
12422 LN_S=$as_ln_s
12423 if test "$LN_S" = "ln -s"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12428 $as_echo "no, using $LN_S" >&6; }
12431 # find the maximum length of command line arguments
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12433 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12434 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12438 teststring="ABCD"
12440 case $build_os in
12441 msdosdjgpp*)
12442 # On DJGPP, this test can blow up pretty badly due to problems in libc
12443 # (any single argument exceeding 2000 bytes causes a buffer overrun
12444 # during glob expansion). Even if it were fixed, the result of this
12445 # check would be larger than it should be.
12446 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12449 gnu*)
12450 # Under GNU Hurd, this test is not required because there is
12451 # no limit to the length of command line arguments.
12452 # Libtool will interpret -1 as no limit whatsoever
12453 lt_cv_sys_max_cmd_len=-1;
12456 cygwin* | mingw* | cegcc*)
12457 # On Win9x/ME, this test blows up -- it succeeds, but takes
12458 # about 5 minutes as the teststring grows exponentially.
12459 # Worse, since 9x/ME are not pre-emptively multitasking,
12460 # you end up with a "frozen" computer, even though with patience
12461 # the test eventually succeeds (with a max line length of 256k).
12462 # Instead, let's just punt: use the minimum linelength reported by
12463 # all of the supported platforms: 8192 (on NT/2K/XP).
12464 lt_cv_sys_max_cmd_len=8192;
12467 mint*)
12468 # On MiNT this can take a long time and run out of memory.
12469 lt_cv_sys_max_cmd_len=8192;
12472 amigaos*)
12473 # On AmigaOS with pdksh, this test takes hours, literally.
12474 # So we just punt and use a minimum line length of 8192.
12475 lt_cv_sys_max_cmd_len=8192;
12478 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12479 # This has been around since 386BSD, at least. Likely further.
12480 if test -x /sbin/sysctl; then
12481 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12482 elif test -x /usr/sbin/sysctl; then
12483 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12484 else
12485 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12487 # And add a safety zone
12488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12492 interix*)
12493 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12494 lt_cv_sys_max_cmd_len=196608
12497 osf*)
12498 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12499 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12500 # nice to cause kernel panics so lets avoid the loop below.
12501 # First set a reasonable default.
12502 lt_cv_sys_max_cmd_len=16384
12504 if test -x /sbin/sysconfig; then
12505 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12506 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12507 esac
12510 sco3.2v5*)
12511 lt_cv_sys_max_cmd_len=102400
12513 sysv5* | sco5v6* | sysv4.2uw2*)
12514 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12515 if test -n "$kargmax"; then
12516 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12517 else
12518 lt_cv_sys_max_cmd_len=32768
12522 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12523 if test -n "$lt_cv_sys_max_cmd_len"; then
12524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12526 else
12527 # Make teststring a little bigger before we do anything with it.
12528 # a 1K string should be a reasonable start.
12529 for i in 1 2 3 4 5 6 7 8 ; do
12530 teststring=$teststring$teststring
12531 done
12532 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12533 # If test is not a shell built-in, we'll probably end up computing a
12534 # maximum length that is only half of the actual maximum length, but
12535 # we can't tell.
12536 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12537 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12538 test $i != 17 # 1/2 MB should be enough
12540 i=`expr $i + 1`
12541 teststring=$teststring$teststring
12542 done
12543 # Only check the string length outside the loop.
12544 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12545 teststring=
12546 # Add a significant safety factor because C++ compilers can tack on
12547 # massive amounts of additional arguments before passing them to the
12548 # linker. It appears as though 1/2 is a usable value.
12549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12552 esac
12556 if test -n $lt_cv_sys_max_cmd_len ; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12558 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12561 $as_echo "none" >&6; }
12563 max_cmd_len=$lt_cv_sys_max_cmd_len
12570 : ${CP="cp -f"}
12571 : ${MV="mv -f"}
12572 : ${RM="rm -f"}
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12575 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12576 # Try some XSI features
12577 xsi_shell=no
12578 ( _lt_dummy="a/b/c"
12579 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12580 = c,a/b,, \
12581 && eval 'test $(( 1 + 1 )) -eq 2 \
12582 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12583 && xsi_shell=yes
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12585 $as_echo "$xsi_shell" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12589 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12590 lt_shell_append=no
12591 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12592 >/dev/null 2>&1 \
12593 && lt_shell_append=yes
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12595 $as_echo "$lt_shell_append" >&6; }
12598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12599 lt_unset=unset
12600 else
12601 lt_unset=false
12608 # test EBCDIC or ASCII
12609 case `echo X|tr X '\101'` in
12610 A) # ASCII based system
12611 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12612 lt_SP2NL='tr \040 \012'
12613 lt_NL2SP='tr \015\012 \040\040'
12615 *) # EBCDIC based system
12616 lt_SP2NL='tr \100 \n'
12617 lt_NL2SP='tr \r\n \100\100'
12619 esac
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12630 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12631 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 lt_cv_ld_reload_flag='-r'
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12637 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12638 reload_flag=$lt_cv_ld_reload_flag
12639 case $reload_flag in
12640 "" | " "*) ;;
12641 *) reload_flag=" $reload_flag" ;;
12642 esac
12643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12644 case $host_os in
12645 darwin*)
12646 if test "$GCC" = yes; then
12647 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12648 else
12649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12652 esac
12662 if test -n "$ac_tool_prefix"; then
12663 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12664 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 if test -n "$OBJDUMP"; then
12671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12672 else
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12676 IFS=$as_save_IFS
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12680 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682 break 2
12684 done
12685 done
12686 IFS=$as_save_IFS
12690 OBJDUMP=$ac_cv_prog_OBJDUMP
12691 if test -n "$OBJDUMP"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12693 $as_echo "$OBJDUMP" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12701 if test -z "$ac_cv_prog_OBJDUMP"; then
12702 ac_ct_OBJDUMP=$OBJDUMP
12703 # Extract the first word of "objdump", so it can be a program name with args.
12704 set dummy objdump; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -n "$ac_ct_OBJDUMP"; then
12711 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12720 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 break 2
12724 done
12725 done
12726 IFS=$as_save_IFS
12730 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12731 if test -n "$ac_ct_OBJDUMP"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12733 $as_echo "$ac_ct_OBJDUMP" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12739 if test "x$ac_ct_OBJDUMP" = x; then
12740 OBJDUMP="false"
12741 else
12742 case $cross_compiling:$ac_tool_warned in
12743 yes:)
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12746 ac_tool_warned=yes ;;
12747 esac
12748 OBJDUMP=$ac_ct_OBJDUMP
12750 else
12751 OBJDUMP="$ac_cv_prog_OBJDUMP"
12754 test -z "$OBJDUMP" && OBJDUMP=objdump
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12765 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12766 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 lt_cv_file_magic_cmd='$MAGIC_CMD'
12770 lt_cv_file_magic_test_file=
12771 lt_cv_deplibs_check_method='unknown'
12772 # Need to set the preceding variable on all platforms that support
12773 # interlibrary dependencies.
12774 # 'none' -- dependencies not supported.
12775 # `unknown' -- same as none, but documents that we really don't know.
12776 # 'pass_all' -- all dependencies passed with no checks.
12777 # 'test_compile' -- check by making test program.
12778 # 'file_magic [[regex]]' -- check by looking for files in library path
12779 # which responds to the $file_magic_cmd with a given extended regex.
12780 # If you have `file' or equivalent on your system and you're not sure
12781 # whether `pass_all' will *always* work, you probably want this one.
12783 case $host_os in
12784 aix[4-9]*)
12785 lt_cv_deplibs_check_method=pass_all
12788 beos*)
12789 lt_cv_deplibs_check_method=pass_all
12792 bsdi[45]*)
12793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12794 lt_cv_file_magic_cmd='/usr/bin/file -L'
12795 lt_cv_file_magic_test_file=/shlib/libc.so
12798 cygwin*)
12799 # func_win32_libid is a shell function defined in ltmain.sh
12800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12801 lt_cv_file_magic_cmd='func_win32_libid'
12804 mingw* | pw32*)
12805 # Base MSYS/MinGW do not provide the 'file' command needed by
12806 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12807 # unless we find 'file', for example because we are cross-compiling.
12808 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12809 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12811 lt_cv_file_magic_cmd='func_win32_libid'
12812 else
12813 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12814 lt_cv_file_magic_cmd='$OBJDUMP -f'
12818 cegcc*)
12819 # use the weaker test based on 'objdump'. See mingw*.
12820 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12821 lt_cv_file_magic_cmd='$OBJDUMP -f'
12824 darwin* | rhapsody*)
12825 lt_cv_deplibs_check_method=pass_all
12828 freebsd* | dragonfly*)
12829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12830 case $host_cpu in
12831 i*86 )
12832 # Not sure whether the presence of OpenBSD here was a mistake.
12833 # Let's accept both of them until this is cleared up.
12834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12835 lt_cv_file_magic_cmd=/usr/bin/file
12836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12838 esac
12839 else
12840 lt_cv_deplibs_check_method=pass_all
12844 gnu*)
12845 lt_cv_deplibs_check_method=pass_all
12848 haiku*)
12849 lt_cv_deplibs_check_method=pass_all
12852 hpux10.20* | hpux11*)
12853 lt_cv_file_magic_cmd=/usr/bin/file
12854 case $host_cpu in
12855 ia64*)
12856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12857 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12859 hppa*64*)
12860 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]'
12861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12865 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12867 esac
12870 interix[3-9]*)
12871 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12875 irix5* | irix6* | nonstopux*)
12876 case $LD in
12877 *-32|*"-32 ") libmagic=32-bit;;
12878 *-n32|*"-n32 ") libmagic=N32;;
12879 *-64|*"-64 ") libmagic=64-bit;;
12880 *) libmagic=never-match;;
12881 esac
12882 lt_cv_deplibs_check_method=pass_all
12885 # This must be Linux ELF.
12886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12887 lt_cv_deplibs_check_method=pass_all
12890 netbsd*)
12891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12893 else
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12898 newos6*)
12899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12900 lt_cv_file_magic_cmd=/usr/bin/file
12901 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12904 *nto* | *qnx*)
12905 lt_cv_deplibs_check_method=pass_all
12908 openbsd*)
12909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12911 else
12912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916 osf3* | osf4* | osf5*)
12917 lt_cv_deplibs_check_method=pass_all
12920 rdos*)
12921 lt_cv_deplibs_check_method=pass_all
12924 solaris*)
12925 lt_cv_deplibs_check_method=pass_all
12928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12929 lt_cv_deplibs_check_method=pass_all
12932 sysv4 | sysv4.3*)
12933 case $host_vendor in
12934 motorola)
12935 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]'
12936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12938 ncr)
12939 lt_cv_deplibs_check_method=pass_all
12941 sequent)
12942 lt_cv_file_magic_cmd='/bin/file'
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12945 sni)
12946 lt_cv_file_magic_cmd='/bin/file'
12947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12948 lt_cv_file_magic_test_file=/lib/libc.so
12950 siemens)
12951 lt_cv_deplibs_check_method=pass_all
12954 lt_cv_deplibs_check_method=pass_all
12956 esac
12959 tpf*)
12960 lt_cv_deplibs_check_method=pass_all
12962 esac
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12966 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12967 file_magic_cmd=$lt_cv_file_magic_cmd
12968 deplibs_check_method=$lt_cv_deplibs_check_method
12969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12982 if test -n "$ac_tool_prefix"; then
12983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12984 set dummy ${ac_tool_prefix}ar; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if test "${ac_cv_prog_AR+set}" = set; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 if test -n "$AR"; then
12991 ac_cv_prog_AR="$AR" # Let the user override the test.
12992 else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000 ac_cv_prog_AR="${ac_tool_prefix}ar"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13004 done
13005 done
13006 IFS=$as_save_IFS
13010 AR=$ac_cv_prog_AR
13011 if test -n "$AR"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13013 $as_echo "$AR" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13021 if test -z "$ac_cv_prog_AR"; then
13022 ac_ct_AR=$AR
13023 # Extract the first word of "ar", so it can be a program name with args.
13024 set dummy ar; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 if test -n "$ac_ct_AR"; then
13031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13032 else
13033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13034 for as_dir in $PATH
13036 IFS=$as_save_IFS
13037 test -z "$as_dir" && as_dir=.
13038 for ac_exec_ext in '' $ac_executable_extensions; do
13039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13040 ac_cv_prog_ac_ct_AR="ar"
13041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13042 break 2
13044 done
13045 done
13046 IFS=$as_save_IFS
13050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13051 if test -n "$ac_ct_AR"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13053 $as_echo "$ac_ct_AR" >&6; }
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13059 if test "x$ac_ct_AR" = x; then
13060 AR="false"
13061 else
13062 case $cross_compiling:$ac_tool_warned in
13063 yes:)
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13066 ac_tool_warned=yes ;;
13067 esac
13068 AR=$ac_ct_AR
13070 else
13071 AR="$ac_cv_prog_AR"
13074 test -z "$AR" && AR=ar
13075 test -z "$AR_FLAGS" && AR_FLAGS=cru
13087 if test -n "$ac_tool_prefix"; then
13088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13089 set dummy ${ac_tool_prefix}strip; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if test "${ac_cv_prog_STRIP+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 if test -n "$STRIP"; then
13096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13105 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13109 done
13110 done
13111 IFS=$as_save_IFS
13115 STRIP=$ac_cv_prog_STRIP
13116 if test -n "$STRIP"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13118 $as_echo "$STRIP" >&6; }
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13126 if test -z "$ac_cv_prog_STRIP"; then
13127 ac_ct_STRIP=$STRIP
13128 # Extract the first word of "strip", so it can be a program name with args.
13129 set dummy strip; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$ac_ct_STRIP"; then
13136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_ac_ct_STRIP="strip"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13149 done
13150 done
13151 IFS=$as_save_IFS
13155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13156 if test -n "$ac_ct_STRIP"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13158 $as_echo "$ac_ct_STRIP" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13164 if test "x$ac_ct_STRIP" = x; then
13165 STRIP=":"
13166 else
13167 case $cross_compiling:$ac_tool_warned in
13168 yes:)
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13171 ac_tool_warned=yes ;;
13172 esac
13173 STRIP=$ac_ct_STRIP
13175 else
13176 STRIP="$ac_cv_prog_STRIP"
13179 test -z "$STRIP" && STRIP=:
13186 if test -n "$ac_tool_prefix"; then
13187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 if test -n "$RANLIB"; then
13195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 break 2
13208 done
13209 done
13210 IFS=$as_save_IFS
13214 RANLIB=$ac_cv_prog_RANLIB
13215 if test -n "$RANLIB"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13217 $as_echo "$RANLIB" >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13225 if test -z "$ac_cv_prog_RANLIB"; then
13226 ac_ct_RANLIB=$RANLIB
13227 # Extract the first word of "ranlib", so it can be a program name with args.
13228 set dummy ranlib; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 if test -n "$ac_ct_RANLIB"; then
13235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13236 else
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13244 ac_cv_prog_ac_ct_RANLIB="ranlib"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13255 if test -n "$ac_ct_RANLIB"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13257 $as_echo "$ac_ct_RANLIB" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13263 if test "x$ac_ct_RANLIB" = x; then
13264 RANLIB=":"
13265 else
13266 case $cross_compiling:$ac_tool_warned in
13267 yes:)
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13270 ac_tool_warned=yes ;;
13271 esac
13272 RANLIB=$ac_ct_RANLIB
13274 else
13275 RANLIB="$ac_cv_prog_RANLIB"
13278 test -z "$RANLIB" && RANLIB=:
13285 # Determine commands to create old-style static archives.
13286 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13287 old_postinstall_cmds='chmod 644 $oldlib'
13288 old_postuninstall_cmds=
13290 if test -n "$RANLIB"; then
13291 case $host_os in
13292 openbsd*)
13293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13298 esac
13299 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13302 case $host_os in
13303 darwin*)
13304 lock_old_archive_extraction=yes ;;
13306 lock_old_archive_extraction=no ;;
13307 esac
13347 # If no C compiler was specified, use CC.
13348 LTCC=${LTCC-"$CC"}
13350 # If no C compiler flags were specified, use CFLAGS.
13351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13353 # Allow CC to be a program name with arguments.
13354 compiler=$CC
13357 # Check for command to grab the raw symbol name followed by C symbol from nm.
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13359 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13360 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13364 # These are sane defaults that work on at least a few old systems.
13365 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13367 # Character class describing NM global symbol codes.
13368 symcode='[BCDEGRST]'
13370 # Regexp to match symbols that can be accessed directly from C.
13371 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13373 # Define system-specific variables.
13374 case $host_os in
13375 aix*)
13376 symcode='[BCDT]'
13378 cygwin* | mingw* | pw32* | cegcc*)
13379 symcode='[ABCDGISTW]'
13381 hpux*)
13382 if test "$host_cpu" = ia64; then
13383 symcode='[ABCDEGRST]'
13386 irix* | nonstopux*)
13387 symcode='[BCDEGRST]'
13389 osf*)
13390 symcode='[BCDEGQRST]'
13392 solaris*)
13393 symcode='[BDRT]'
13395 sco3.2v5*)
13396 symcode='[DT]'
13398 sysv4.2uw2*)
13399 symcode='[DT]'
13401 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13402 symcode='[ABDT]'
13404 sysv4)
13405 symcode='[DFNSTU]'
13407 esac
13409 # If we're using GNU nm, then use its standard symbol codes.
13410 case `$NM -V 2>&1` in
13411 *GNU* | *'with BFD'*)
13412 symcode='[ABCDGIRSTW]' ;;
13413 esac
13415 # Transform an extracted symbol line into a proper C declaration.
13416 # Some systems (esp. on ia64) link data and code symbols differently,
13417 # so use this general approach.
13418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13420 # Transform an extracted symbol line into symbol name and symbol address
13421 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13422 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'"
13424 # Handle CRLF in mingw tool chain
13425 opt_cr=
13426 case $build_os in
13427 mingw*)
13428 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13430 esac
13432 # Try without a prefix underscore, then with it.
13433 for ac_symprfx in "" "_"; do
13435 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13436 symxfrm="\\1 $ac_symprfx\\2 \\2"
13438 # Write the raw and C identifiers.
13439 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13440 # Fake it for dumpbin and say T for any non-static function
13441 # and D for any global variable.
13442 # Also find C++ and __fastcall symbols from MSVC++,
13443 # which start with @ or ?.
13444 lt_cv_sys_global_symbol_pipe="$AWK '"\
13445 " {last_section=section; section=\$ 3};"\
13446 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13447 " \$ 0!~/External *\|/{next};"\
13448 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13449 " {if(hide[section]) next};"\
13450 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13451 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13452 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13453 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13454 " ' prfx=^$ac_symprfx"
13455 else
13456 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13459 # Check to see that the pipe works correctly.
13460 pipe_works=no
13462 rm -f conftest*
13463 cat > conftest.$ac_ext <<_LT_EOF
13464 #ifdef __cplusplus
13465 extern "C" {
13466 #endif
13467 char nm_test_var;
13468 void nm_test_func(void);
13469 void nm_test_func(void){}
13470 #ifdef __cplusplus
13472 #endif
13473 int main(){nm_test_var='a';nm_test_func();return(0);}
13474 _LT_EOF
13476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13477 (eval $ac_compile) 2>&5
13478 ac_status=$?
13479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13480 test $ac_status = 0; }; then
13481 # Now try to grab the symbols.
13482 nlist=conftest.nm
13483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13484 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13485 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 test $ac_status = 0; } && test -s "$nlist"; then
13488 # Try sorting and uniquifying the output.
13489 if sort "$nlist" | uniq > "$nlist"T; then
13490 mv -f "$nlist"T "$nlist"
13491 else
13492 rm -f "$nlist"T
13495 # Make sure that we snagged all the symbols we need.
13496 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13497 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13498 cat <<_LT_EOF > conftest.$ac_ext
13499 #ifdef __cplusplus
13500 extern "C" {
13501 #endif
13503 _LT_EOF
13504 # Now generate the symbol file.
13505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13507 cat <<_LT_EOF >> conftest.$ac_ext
13509 /* The mapping between symbol names and symbols. */
13510 const struct {
13511 const char *name;
13512 void *address;
13514 lt__PROGRAM__LTX_preloaded_symbols[] =
13516 { "@PROGRAM@", (void *) 0 },
13517 _LT_EOF
13518 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13519 cat <<\_LT_EOF >> conftest.$ac_ext
13520 {0, (void *) 0}
13523 /* This works around a problem in FreeBSD linker */
13524 #ifdef FREEBSD_WORKAROUND
13525 static const void *lt_preloaded_setup() {
13526 return lt__PROGRAM__LTX_preloaded_symbols;
13528 #endif
13530 #ifdef __cplusplus
13532 #endif
13533 _LT_EOF
13534 # Now try linking the two files.
13535 mv conftest.$ac_objext conftstm.$ac_objext
13536 lt_save_LIBS="$LIBS"
13537 lt_save_CFLAGS="$CFLAGS"
13538 LIBS="conftstm.$ac_objext"
13539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13541 (eval $ac_link) 2>&5
13542 ac_status=$?
13543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13545 pipe_works=yes
13547 LIBS="$lt_save_LIBS"
13548 CFLAGS="$lt_save_CFLAGS"
13549 else
13550 echo "cannot find nm_test_func in $nlist" >&5
13552 else
13553 echo "cannot find nm_test_var in $nlist" >&5
13555 else
13556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13558 else
13559 echo "$progname: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13562 rm -rf conftest* conftst*
13564 # Do not use the global_symbol_pipe unless it works.
13565 if test "$pipe_works" = yes; then
13566 break
13567 else
13568 lt_cv_sys_global_symbol_pipe=
13570 done
13574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13575 lt_cv_sys_global_symbol_to_cdecl=
13577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13579 $as_echo "failed" >&6; }
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13582 $as_echo "ok" >&6; }
13606 # Check whether --enable-libtool-lock was given.
13607 if test "${enable_libtool_lock+set}" = set; then :
13608 enableval=$enable_libtool_lock;
13611 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13613 # Some flags need to be propagated to the compiler or linker for good
13614 # libtool support.
13615 case $host in
13616 ia64-*-hpux*)
13617 # Find out which ABI we are using.
13618 echo 'int i;' > conftest.$ac_ext
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13620 (eval $ac_compile) 2>&5
13621 ac_status=$?
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; }; then
13624 case `/usr/bin/file conftest.$ac_objext` in
13625 *ELF-32*)
13626 HPUX_IA64_MODE="32"
13628 *ELF-64*)
13629 HPUX_IA64_MODE="64"
13631 esac
13633 rm -rf conftest*
13635 *-*-irix6*)
13636 # Find out which ABI we are using.
13637 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13639 (eval $ac_compile) 2>&5
13640 ac_status=$?
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13642 test $ac_status = 0; }; then
13643 if test "$lt_cv_prog_gnu_ld" = yes; then
13644 case `/usr/bin/file conftest.$ac_objext` in
13645 *32-bit*)
13646 LD="${LD-ld} -melf32bsmip"
13648 *N32*)
13649 LD="${LD-ld} -melf32bmipn32"
13651 *64-bit*)
13652 LD="${LD-ld} -melf64bmip"
13654 esac
13655 else
13656 case `/usr/bin/file conftest.$ac_objext` in
13657 *32-bit*)
13658 LD="${LD-ld} -32"
13660 *N32*)
13661 LD="${LD-ld} -n32"
13663 *64-bit*)
13664 LD="${LD-ld} -64"
13666 esac
13669 rm -rf conftest*
13672 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13673 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13674 # Find out which ABI we are using.
13675 echo 'int i;' > conftest.$ac_ext
13676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13677 (eval $ac_compile) 2>&5
13678 ac_status=$?
13679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13680 test $ac_status = 0; }; then
13681 case `/usr/bin/file conftest.o` in
13682 *32-bit*)
13683 case $host in
13684 x86_64-*kfreebsd*-gnu)
13685 LD="${LD-ld} -m elf_i386_fbsd"
13687 x86_64-*linux*)
13688 case `/usr/bin/file conftest.o` in
13689 *x86-64*)
13690 LD="${LD-ld} -m elf32_x86_64"
13693 LD="${LD-ld} -m elf_i386"
13695 esac
13697 powerpc64le-*linux*)
13698 LD="${LD-ld} -m elf32lppclinux"
13700 powerpc64-*linux*)
13701 LD="${LD-ld} -m elf32ppclinux"
13703 s390x-*linux*)
13704 LD="${LD-ld} -m elf_s390"
13706 sparc64-*linux*)
13707 LD="${LD-ld} -m elf32_sparc"
13709 esac
13711 *64-bit*)
13712 case $host in
13713 x86_64-*kfreebsd*-gnu)
13714 LD="${LD-ld} -m elf_x86_64_fbsd"
13716 x86_64-*linux*)
13717 LD="${LD-ld} -m elf_x86_64"
13719 powerpcle-*linux*)
13720 LD="${LD-ld} -m elf64lppc"
13722 powerpc-*linux*)
13723 LD="${LD-ld} -m elf64ppc"
13725 s390*-*linux*|s390*-*tpf*)
13726 LD="${LD-ld} -m elf64_s390"
13728 sparc*-*linux*)
13729 LD="${LD-ld} -m elf64_sparc"
13731 esac
13733 esac
13735 rm -rf conftest*
13738 *-*-sco3.2v5*)
13739 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13740 SAVE_CFLAGS="$CFLAGS"
13741 CFLAGS="$CFLAGS -belf"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13743 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13744 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 ac_ext=c
13748 ac_cpp='$CPP $CPPFLAGS'
13749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13757 main ()
13761 return 0;
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 lt_cv_cc_needs_belf=yes
13766 else
13767 lt_cv_cc_needs_belf=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 ac_ext=c
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13779 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13780 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13782 CFLAGS="$SAVE_CFLAGS"
13785 sparc*-*solaris*)
13786 # Find out which ABI we are using.
13787 echo 'int i;' > conftest.$ac_ext
13788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13789 (eval $ac_compile) 2>&5
13790 ac_status=$?
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 case `/usr/bin/file conftest.o` in
13794 *64-bit*)
13795 case $lt_cv_prog_gnu_ld in
13796 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13798 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13799 LD="${LD-ld} -64"
13802 esac
13804 esac
13806 rm -rf conftest*
13808 esac
13810 need_locks="$enable_libtool_lock"
13813 case $host_os in
13814 rhapsody* | darwin*)
13815 if test -n "$ac_tool_prefix"; then
13816 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13817 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 $as_echo_n "checking for $ac_word... " >&6; }
13820 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 if test -n "$DSYMUTIL"; then
13824 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13825 else
13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827 for as_dir in $PATH
13829 IFS=$as_save_IFS
13830 test -z "$as_dir" && as_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13833 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13835 break 2
13837 done
13838 done
13839 IFS=$as_save_IFS
13843 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13844 if test -n "$DSYMUTIL"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13846 $as_echo "$DSYMUTIL" >&6; }
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13854 if test -z "$ac_cv_prog_DSYMUTIL"; then
13855 ac_ct_DSYMUTIL=$DSYMUTIL
13856 # Extract the first word of "dsymutil", so it can be a program name with args.
13857 set dummy dsymutil; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 if test -n "$ac_ct_DSYMUTIL"; then
13864 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13865 else
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13869 IFS=$as_save_IFS
13870 test -z "$as_dir" && as_dir=.
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13873 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13875 break 2
13877 done
13878 done
13879 IFS=$as_save_IFS
13883 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13884 if test -n "$ac_ct_DSYMUTIL"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13886 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13887 else
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13892 if test "x$ac_ct_DSYMUTIL" = x; then
13893 DSYMUTIL=":"
13894 else
13895 case $cross_compiling:$ac_tool_warned in
13896 yes:)
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13899 ac_tool_warned=yes ;;
13900 esac
13901 DSYMUTIL=$ac_ct_DSYMUTIL
13903 else
13904 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13907 if test -n "$ac_tool_prefix"; then
13908 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13909 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13911 $as_echo_n "checking for $ac_word... " >&6; }
13912 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 if test -n "$NMEDIT"; then
13916 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13917 else
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13921 IFS=$as_save_IFS
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13925 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13927 break 2
13929 done
13930 done
13931 IFS=$as_save_IFS
13935 NMEDIT=$ac_cv_prog_NMEDIT
13936 if test -n "$NMEDIT"; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13938 $as_echo "$NMEDIT" >&6; }
13939 else
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13941 $as_echo "no" >&6; }
13946 if test -z "$ac_cv_prog_NMEDIT"; then
13947 ac_ct_NMEDIT=$NMEDIT
13948 # Extract the first word of "nmedit", so it can be a program name with args.
13949 set dummy nmedit; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951 $as_echo_n "checking for $ac_word... " >&6; }
13952 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 if test -n "$ac_ct_NMEDIT"; then
13956 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13957 else
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13961 IFS=$as_save_IFS
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 break 2
13969 done
13970 done
13971 IFS=$as_save_IFS
13975 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13976 if test -n "$ac_ct_NMEDIT"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13978 $as_echo "$ac_ct_NMEDIT" >&6; }
13979 else
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13984 if test "x$ac_ct_NMEDIT" = x; then
13985 NMEDIT=":"
13986 else
13987 case $cross_compiling:$ac_tool_warned in
13988 yes:)
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13991 ac_tool_warned=yes ;;
13992 esac
13993 NMEDIT=$ac_ct_NMEDIT
13995 else
13996 NMEDIT="$ac_cv_prog_NMEDIT"
13999 if test -n "$ac_tool_prefix"; then
14000 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14001 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if test "${ac_cv_prog_LIPO+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 if test -n "$LIPO"; then
14008 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14009 else
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14013 IFS=$as_save_IFS
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14017 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14019 break 2
14021 done
14022 done
14023 IFS=$as_save_IFS
14027 LIPO=$ac_cv_prog_LIPO
14028 if test -n "$LIPO"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14030 $as_echo "$LIPO" >&6; }
14031 else
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14038 if test -z "$ac_cv_prog_LIPO"; then
14039 ac_ct_LIPO=$LIPO
14040 # Extract the first word of "lipo", so it can be a program name with args.
14041 set dummy lipo; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 if test -n "$ac_ct_LIPO"; then
14048 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14049 else
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14057 ac_cv_prog_ac_ct_LIPO="lipo"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 break 2
14061 done
14062 done
14063 IFS=$as_save_IFS
14067 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14068 if test -n "$ac_ct_LIPO"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14070 $as_echo "$ac_ct_LIPO" >&6; }
14071 else
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14076 if test "x$ac_ct_LIPO" = x; then
14077 LIPO=":"
14078 else
14079 case $cross_compiling:$ac_tool_warned in
14080 yes:)
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14083 ac_tool_warned=yes ;;
14084 esac
14085 LIPO=$ac_ct_LIPO
14087 else
14088 LIPO="$ac_cv_prog_LIPO"
14091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}otool; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095 $as_echo_n "checking for $ac_word... " >&6; }
14096 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 if test -n "$OTOOL"; then
14100 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14109 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14113 done
14114 done
14115 IFS=$as_save_IFS
14119 OTOOL=$ac_cv_prog_OTOOL
14120 if test -n "$OTOOL"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14122 $as_echo "$OTOOL" >&6; }
14123 else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14130 if test -z "$ac_cv_prog_OTOOL"; then
14131 ac_ct_OTOOL=$OTOOL
14132 # Extract the first word of "otool", so it can be a program name with args.
14133 set dummy otool; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14137 $as_echo_n "(cached) " >&6
14138 else
14139 if test -n "$ac_ct_OTOOL"; then
14140 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_ac_ct_OTOOL="otool"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14155 IFS=$as_save_IFS
14159 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14160 if test -n "$ac_ct_OTOOL"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14162 $as_echo "$ac_ct_OTOOL" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14168 if test "x$ac_ct_OTOOL" = x; then
14169 OTOOL=":"
14170 else
14171 case $cross_compiling:$ac_tool_warned in
14172 yes:)
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175 ac_tool_warned=yes ;;
14176 esac
14177 OTOOL=$ac_ct_OTOOL
14179 else
14180 OTOOL="$ac_cv_prog_OTOOL"
14183 if test -n "$ac_tool_prefix"; then
14184 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14185 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187 $as_echo_n "checking for $ac_word... " >&6; }
14188 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 if test -n "$OTOOL64"; then
14192 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14193 else
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14197 IFS=$as_save_IFS
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
14200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203 break 2
14205 done
14206 done
14207 IFS=$as_save_IFS
14211 OTOOL64=$ac_cv_prog_OTOOL64
14212 if test -n "$OTOOL64"; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14214 $as_echo "$OTOOL64" >&6; }
14215 else
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217 $as_echo "no" >&6; }
14222 if test -z "$ac_cv_prog_OTOOL64"; then
14223 ac_ct_OTOOL64=$OTOOL64
14224 # Extract the first word of "otool64", so it can be a program name with args.
14225 set dummy otool64; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$ac_ct_OTOOL64"; then
14232 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241 ac_cv_prog_ac_ct_OTOOL64="otool64"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14245 done
14246 done
14247 IFS=$as_save_IFS
14251 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14252 if test -n "$ac_ct_OTOOL64"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14254 $as_echo "$ac_ct_OTOOL64" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14260 if test "x$ac_ct_OTOOL64" = x; then
14261 OTOOL64=":"
14262 else
14263 case $cross_compiling:$ac_tool_warned in
14264 yes:)
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267 ac_tool_warned=yes ;;
14268 esac
14269 OTOOL64=$ac_ct_OTOOL64
14271 else
14272 OTOOL64="$ac_cv_prog_OTOOL64"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14302 $as_echo_n "checking for -single_module linker flag... " >&6; }
14303 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 lt_cv_apple_cc_single_mod=no
14307 if test -z "${LT_MULTI_MODULE}"; then
14308 # By default we will add the -single_module flag. You can override
14309 # by either setting the environment variable LT_MULTI_MODULE
14310 # non-empty at configure time, or by adding -multi_module to the
14311 # link flags.
14312 rm -rf libconftest.dylib*
14313 echo "int foo(void){return 1;}" > conftest.c
14314 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14315 -dynamiclib -Wl,-single_module conftest.c" >&5
14316 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14317 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14318 _lt_result=$?
14319 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14320 lt_cv_apple_cc_single_mod=yes
14321 else
14322 cat conftest.err >&5
14324 rm -rf libconftest.dylib*
14325 rm -f conftest.*
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14329 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14331 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14332 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 lt_cv_ld_exported_symbols_list=no
14336 save_LDFLAGS=$LDFLAGS
14337 echo "_main" > conftest.sym
14338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14343 main ()
14347 return 0;
14349 _ACEOF
14350 if ac_fn_c_try_link "$LINENO"; then :
14351 lt_cv_ld_exported_symbols_list=yes
14352 else
14353 lt_cv_ld_exported_symbols_list=no
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LDFLAGS="$save_LDFLAGS"
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14361 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14363 $as_echo_n "checking for -force_load linker flag... " >&6; }
14364 if test "${lt_cv_ld_force_load+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 lt_cv_ld_force_load=no
14368 cat > conftest.c << _LT_EOF
14369 int forced_loaded() { return 2;}
14370 _LT_EOF
14371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14373 echo "$AR cru libconftest.a conftest.o" >&5
14374 $AR cru libconftest.a conftest.o 2>&5
14375 cat > conftest.c << _LT_EOF
14376 int main() { return 0;}
14377 _LT_EOF
14378 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14379 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14380 _lt_result=$?
14381 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14382 lt_cv_ld_force_load=yes
14383 else
14384 cat conftest.err >&5
14386 rm -f conftest.err libconftest.a conftest conftest.c
14387 rm -rf conftest.dSYM
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14391 $as_echo "$lt_cv_ld_force_load" >&6; }
14392 case $host_os in
14393 rhapsody* | darwin1.[012])
14394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14395 darwin1.*)
14396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14397 darwin*) # darwin 5.x on
14398 # if running on 10.5 or later, the deployment target defaults
14399 # to the OS version, if on x86, and 10.4, the deployment
14400 # target defaults to 10.4. Don't you love it?
14401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14404 10.[012]*)
14405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14406 10.*)
14407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14408 esac
14410 esac
14411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14412 _lt_dar_single_mod='$single_module'
14414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14416 else
14417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14419 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14420 _lt_dsymutil='~$DSYMUTIL $lib || :'
14421 else
14422 _lt_dsymutil=
14425 esac
14427 for ac_header in dlfcn.h
14428 do :
14429 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14430 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_DLFCN_H 1
14433 _ACEOF
14436 done
14442 # Set options
14446 enable_dlopen=no
14449 enable_win32_dll=no
14452 # Check whether --enable-shared was given.
14453 if test "${enable_shared+set}" = set; then :
14454 enableval=$enable_shared; p=${PACKAGE-default}
14455 case $enableval in
14456 yes) enable_shared=yes ;;
14457 no) enable_shared=no ;;
14459 enable_shared=no
14460 # Look at the argument we got. We use all the common list separators.
14461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14462 for pkg in $enableval; do
14463 IFS="$lt_save_ifs"
14464 if test "X$pkg" = "X$p"; then
14465 enable_shared=yes
14467 done
14468 IFS="$lt_save_ifs"
14470 esac
14471 else
14472 enable_shared=yes
14483 # Check whether --enable-static was given.
14484 if test "${enable_static+set}" = set; then :
14485 enableval=$enable_static; p=${PACKAGE-default}
14486 case $enableval in
14487 yes) enable_static=yes ;;
14488 no) enable_static=no ;;
14490 enable_static=no
14491 # Look at the argument we got. We use all the common list separators.
14492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14493 for pkg in $enableval; do
14494 IFS="$lt_save_ifs"
14495 if test "X$pkg" = "X$p"; then
14496 enable_static=yes
14498 done
14499 IFS="$lt_save_ifs"
14501 esac
14502 else
14503 enable_static=yes
14515 # Check whether --with-pic was given.
14516 if test "${with_pic+set}" = set; then :
14517 withval=$with_pic; pic_mode="$withval"
14518 else
14519 pic_mode=default
14523 test -z "$pic_mode" && pic_mode=default
14531 # Check whether --enable-fast-install was given.
14532 if test "${enable_fast_install+set}" = set; then :
14533 enableval=$enable_fast_install; p=${PACKAGE-default}
14534 case $enableval in
14535 yes) enable_fast_install=yes ;;
14536 no) enable_fast_install=no ;;
14538 enable_fast_install=no
14539 # Look at the argument we got. We use all the common list separators.
14540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14541 for pkg in $enableval; do
14542 IFS="$lt_save_ifs"
14543 if test "X$pkg" = "X$p"; then
14544 enable_fast_install=yes
14546 done
14547 IFS="$lt_save_ifs"
14549 esac
14550 else
14551 enable_fast_install=yes
14564 # This can be used to rebuild libtool when needed
14565 LIBTOOL_DEPS="$ltmain"
14567 # Always use our own libtool.
14568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14595 test -z "$LN_S" && LN_S="ln -s"
14610 if test -n "${ZSH_VERSION+set}" ; then
14611 setopt NO_GLOB_SUBST
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14615 $as_echo_n "checking for objdir... " >&6; }
14616 if test "${lt_cv_objdir+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 rm -f .libs 2>/dev/null
14620 mkdir .libs 2>/dev/null
14621 if test -d .libs; then
14622 lt_cv_objdir=.libs
14623 else
14624 # MS-DOS does not allow filenames that begin with a dot.
14625 lt_cv_objdir=_libs
14627 rmdir .libs 2>/dev/null
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14630 $as_echo "$lt_cv_objdir" >&6; }
14631 objdir=$lt_cv_objdir
14637 cat >>confdefs.h <<_ACEOF
14638 #define LT_OBJDIR "$lt_cv_objdir/"
14639 _ACEOF
14644 case $host_os in
14645 aix3*)
14646 # AIX sometimes has problems with the GCC collect2 program. For some
14647 # reason, if we set the COLLECT_NAMES environment variable, the problems
14648 # vanish in a puff of smoke.
14649 if test "X${COLLECT_NAMES+set}" != Xset; then
14650 COLLECT_NAMES=
14651 export COLLECT_NAMES
14654 esac
14656 # Global variables:
14657 ofile=libtool
14658 can_build_shared=yes
14660 # All known linkers require a `.a' archive for static linking (except MSVC,
14661 # which needs '.lib').
14662 libext=a
14664 with_gnu_ld="$lt_cv_prog_gnu_ld"
14666 old_CC="$CC"
14667 old_CFLAGS="$CFLAGS"
14669 # Set sane defaults for various variables
14670 test -z "$CC" && CC=cc
14671 test -z "$LTCC" && LTCC=$CC
14672 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14673 test -z "$LD" && LD=ld
14674 test -z "$ac_objext" && ac_objext=o
14676 for cc_temp in $compiler""; do
14677 case $cc_temp in
14678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14680 \-*) ;;
14681 *) break;;
14682 esac
14683 done
14684 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14687 # Only perform the check for file, if the check method requires it
14688 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14689 case $deplibs_check_method in
14690 file_magic*)
14691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14693 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 case $MAGIC_CMD in
14698 [\\/*] | ?:[\\/]*)
14699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14702 lt_save_MAGIC_CMD="$MAGIC_CMD"
14703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14705 for ac_dir in $ac_dummy; do
14706 IFS="$lt_save_ifs"
14707 test -z "$ac_dir" && ac_dir=.
14708 if test -f $ac_dir/${ac_tool_prefix}file; then
14709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14710 if test -n "$file_magic_test_file"; then
14711 case $deplibs_check_method in
14712 "file_magic "*)
14713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14716 $EGREP "$file_magic_regex" > /dev/null; then
14718 else
14719 cat <<_LT_EOF 1>&2
14721 *** Warning: the command libtool uses to detect shared libraries,
14722 *** $file_magic_cmd, produces output that libtool cannot recognize.
14723 *** The result is that libtool may fail to recognize shared libraries
14724 *** as such. This will affect the creation of libtool libraries that
14725 *** depend on shared libraries, but programs linked with such libtool
14726 *** libraries will work regardless of this problem. Nevertheless, you
14727 *** may want to report the problem to your system manager and/or to
14728 *** bug-libtool@gnu.org
14730 _LT_EOF
14731 fi ;;
14732 esac
14734 break
14736 done
14737 IFS="$lt_save_ifs"
14738 MAGIC_CMD="$lt_save_MAGIC_CMD"
14740 esac
14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14744 if test -n "$MAGIC_CMD"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14746 $as_echo "$MAGIC_CMD" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14756 if test -z "$lt_cv_path_MAGIC_CMD"; then
14757 if test -n "$ac_tool_prefix"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14759 $as_echo_n "checking for file... " >&6; }
14760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 case $MAGIC_CMD in
14764 [\\/*] | ?:[\\/]*)
14765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14768 lt_save_MAGIC_CMD="$MAGIC_CMD"
14769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14771 for ac_dir in $ac_dummy; do
14772 IFS="$lt_save_ifs"
14773 test -z "$ac_dir" && ac_dir=.
14774 if test -f $ac_dir/file; then
14775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14776 if test -n "$file_magic_test_file"; then
14777 case $deplibs_check_method in
14778 "file_magic "*)
14779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14782 $EGREP "$file_magic_regex" > /dev/null; then
14784 else
14785 cat <<_LT_EOF 1>&2
14787 *** Warning: the command libtool uses to detect shared libraries,
14788 *** $file_magic_cmd, produces output that libtool cannot recognize.
14789 *** The result is that libtool may fail to recognize shared libraries
14790 *** as such. This will affect the creation of libtool libraries that
14791 *** depend on shared libraries, but programs linked with such libtool
14792 *** libraries will work regardless of this problem. Nevertheless, you
14793 *** may want to report the problem to your system manager and/or to
14794 *** bug-libtool@gnu.org
14796 _LT_EOF
14797 fi ;;
14798 esac
14800 break
14802 done
14803 IFS="$lt_save_ifs"
14804 MAGIC_CMD="$lt_save_MAGIC_CMD"
14806 esac
14809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14810 if test -n "$MAGIC_CMD"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14812 $as_echo "$MAGIC_CMD" >&6; }
14813 else
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14819 else
14820 MAGIC_CMD=:
14826 esac
14828 # Use C for the default configuration in the libtool script
14830 lt_save_CC="$CC"
14831 ac_ext=c
14832 ac_cpp='$CPP $CPPFLAGS'
14833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 # Source file extension for C test sources.
14839 ac_ext=c
14841 # Object file extension for compiled C test sources.
14842 objext=o
14843 objext=$objext
14845 # Code to be used in simple compile tests
14846 lt_simple_compile_test_code="int some_variable = 0;"
14848 # Code to be used in simple link tests
14849 lt_simple_link_test_code='int main(){return(0);}'
14857 # If no C compiler was specified, use CC.
14858 LTCC=${LTCC-"$CC"}
14860 # If no C compiler flags were specified, use CFLAGS.
14861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14863 # Allow CC to be a program name with arguments.
14864 compiler=$CC
14866 # Save the default compiler, since it gets overwritten when the other
14867 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14868 compiler_DEFAULT=$CC
14870 # save warnings/boilerplate of simple test code
14871 ac_outfile=conftest.$ac_objext
14872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14874 _lt_compiler_boilerplate=`cat conftest.err`
14875 $RM conftest*
14877 ac_outfile=conftest.$ac_objext
14878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14880 _lt_linker_boilerplate=`cat conftest.err`
14881 $RM -r conftest*
14884 ## CAVEAT EMPTOR:
14885 ## There is no encapsulation within the following macros, do not change
14886 ## the running order or otherwise move them around unless you know exactly
14887 ## what you are doing...
14888 if test -n "$compiler"; then
14890 lt_prog_compiler_no_builtin_flag=
14892 if test "$GCC" = yes; then
14893 case $cc_basename in
14894 nvcc*)
14895 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14897 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14898 esac
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14901 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14902 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 lt_cv_prog_compiler_rtti_exceptions=no
14906 ac_outfile=conftest.$ac_objext
14907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14908 lt_compiler_flag="-fno-rtti -fno-exceptions"
14909 # Insert the option either (1) after the last *FLAGS variable, or
14910 # (2) before a word containing "conftest.", or (3) at the end.
14911 # Note that $ac_compile itself does not contain backslashes and begins
14912 # with a dollar sign (not a hyphen), so the echo should work correctly.
14913 # The option is referenced via a variable to avoid confusing sed.
14914 lt_compile=`echo "$ac_compile" | $SED \
14915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14917 -e 's:$: $lt_compiler_flag:'`
14918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14919 (eval "$lt_compile" 2>conftest.err)
14920 ac_status=$?
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 if (exit $ac_status) && test -s "$ac_outfile"; then
14924 # The compiler can only warn and ignore the option if not recognized
14925 # So say no if there are warnings other than the usual output.
14926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14929 lt_cv_prog_compiler_rtti_exceptions=yes
14932 $RM conftest*
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14936 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14938 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14939 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14940 else
14951 lt_prog_compiler_wl=
14952 lt_prog_compiler_pic=
14953 lt_prog_compiler_static=
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14956 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14958 if test "$GCC" = yes; then
14959 lt_prog_compiler_wl='-Wl,'
14960 lt_prog_compiler_static='-static'
14962 case $host_os in
14963 aix*)
14964 # All AIX code is PIC.
14965 if test "$host_cpu" = ia64; then
14966 # AIX 5 now supports IA64 processor
14967 lt_prog_compiler_static='-Bstatic'
14969 lt_prog_compiler_pic='-fPIC'
14972 amigaos*)
14973 case $host_cpu in
14974 powerpc)
14975 # see comment about AmigaOS4 .so support
14976 lt_prog_compiler_pic='-fPIC'
14978 m68k)
14979 # FIXME: we need at least 68020 code to build shared libraries, but
14980 # adding the `-m68020' flag to GCC prevents building anything better,
14981 # like `-m68040'.
14982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14984 esac
14987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14988 # PIC is the default for these OSes.
14991 mingw* | cygwin* | pw32* | os2* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14995 # (--disable-auto-import) libraries
14996 lt_prog_compiler_pic='-DDLL_EXPORT'
14999 darwin* | rhapsody*)
15000 # PIC is the default on this platform
15001 # Common symbols not allowed in MH_DYLIB files
15002 lt_prog_compiler_pic='-fno-common'
15005 haiku*)
15006 # PIC is the default for Haiku.
15007 # The "-static" flag exists, but is broken.
15008 lt_prog_compiler_static=
15011 hpux*)
15012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15014 # sets the default TLS model and affects inlining.
15015 case $host_cpu in
15016 hppa*64*)
15017 # +Z the default
15020 lt_prog_compiler_pic='-fPIC'
15022 esac
15025 interix[3-9]*)
15026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15027 # Instead, we relocate shared libraries at runtime.
15030 msdosdjgpp*)
15031 # Just because we use GCC doesn't mean we suddenly get shared libraries
15032 # on systems that don't support them.
15033 lt_prog_compiler_can_build_shared=no
15034 enable_shared=no
15037 *nto* | *qnx*)
15038 # QNX uses GNU C++, but need to define -shared option too, otherwise
15039 # it will coredump.
15040 lt_prog_compiler_pic='-fPIC -shared'
15043 sysv4*MP*)
15044 if test -d /usr/nec; then
15045 lt_prog_compiler_pic=-Kconform_pic
15050 lt_prog_compiler_pic='-fPIC'
15052 esac
15054 case $cc_basename in
15055 nvcc*) # Cuda Compiler Driver 2.2
15056 lt_prog_compiler_wl='-Xlinker '
15057 lt_prog_compiler_pic='-Xcompiler -fPIC'
15059 esac
15060 else
15061 # PORTME Check for flag to pass linker flags through the system compiler.
15062 case $host_os in
15063 aix*)
15064 lt_prog_compiler_wl='-Wl,'
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static='-Bstatic'
15068 else
15069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15073 mingw* | cygwin* | pw32* | os2* | cegcc*)
15074 # This hack is so that the source file can tell whether it is being
15075 # built for inclusion in a dll (and should export symbols for example).
15076 lt_prog_compiler_pic='-DDLL_EXPORT'
15079 hpux9* | hpux10* | hpux11*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082 # not for PA HP-UX.
15083 case $host_cpu in
15084 hppa*64*|ia64*)
15085 # +Z the default
15088 lt_prog_compiler_pic='+Z'
15090 esac
15091 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15092 lt_prog_compiler_static='${wl}-a ${wl}archive'
15095 irix5* | irix6* | nonstopux*)
15096 lt_prog_compiler_wl='-Wl,'
15097 # PIC (with -KPIC) is the default.
15098 lt_prog_compiler_static='-non_shared'
15101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 case $cc_basename in
15103 # old Intel for x86_64 which still supported -KPIC.
15104 ecc*)
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-static'
15109 # icc used to be incompatible with GCC.
15110 # ICC 10 doesn't accept -KPIC any more.
15111 icc* | ifort*)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fPIC'
15114 lt_prog_compiler_static='-static'
15116 # Lahey Fortran 8.1.
15117 lf95*)
15118 lt_prog_compiler_wl='-Wl,'
15119 lt_prog_compiler_pic='--shared'
15120 lt_prog_compiler_static='--static'
15122 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15123 # Portland Group compilers (*not* the Pentium gcc compiler,
15124 # which looks to be a dead project)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-fpic'
15127 lt_prog_compiler_static='-Bstatic'
15129 ccc*)
15130 lt_prog_compiler_wl='-Wl,'
15131 # All Alpha code is PIC.
15132 lt_prog_compiler_static='-non_shared'
15134 xl* | bgxl* | bgf* | mpixl*)
15135 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-qpic'
15138 lt_prog_compiler_static='-qstaticlink'
15141 case `$CC -V 2>&1 | sed 5q` in
15142 *Sun\ F* | *Sun*Fortran*)
15143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_wl=''
15148 *Sun\ C*)
15149 # Sun C 5.9
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 lt_prog_compiler_wl='-Wl,'
15154 esac
15156 esac
15159 newsos6)
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15164 *nto* | *qnx*)
15165 # QNX uses GNU C++, but need to define -shared option too, otherwise
15166 # it will coredump.
15167 lt_prog_compiler_pic='-fPIC -shared'
15170 osf3* | osf4* | osf5*)
15171 lt_prog_compiler_wl='-Wl,'
15172 # All OSF/1 code is PIC.
15173 lt_prog_compiler_static='-non_shared'
15176 rdos*)
15177 lt_prog_compiler_static='-non_shared'
15180 solaris*)
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl='-Qoption ld ';;
15187 lt_prog_compiler_wl='-Wl,';;
15188 esac
15191 sunos4*)
15192 lt_prog_compiler_wl='-Qoption ld '
15193 lt_prog_compiler_pic='-PIC'
15194 lt_prog_compiler_static='-Bstatic'
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15203 sysv4*MP*)
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic='-Kconform_pic'
15206 lt_prog_compiler_static='-Bstatic'
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl='-Wl,'
15212 lt_prog_compiler_pic='-KPIC'
15213 lt_prog_compiler_static='-Bstatic'
15216 unicos*)
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_can_build_shared=no
15221 uts4*)
15222 lt_prog_compiler_pic='-pic'
15223 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_can_build_shared=no
15229 esac
15232 case $host_os in
15233 # For platforms which do not support PIC, -DPIC is meaningless:
15234 *djgpp*)
15235 lt_prog_compiler_pic=
15238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15240 esac
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15242 $as_echo "$lt_prog_compiler_pic" >&6; }
15250 # Check to make sure the PIC flag actually works.
15252 if test -n "$lt_prog_compiler_pic"; then
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15255 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 lt_cv_prog_compiler_pic_works=no
15259 ac_outfile=conftest.$ac_objext
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 # The option is referenced via a variable to avoid confusing sed.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
15271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15272 (eval "$lt_compile" 2>conftest.err)
15273 ac_status=$?
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 if (exit $ac_status) && test -s "$ac_outfile"; then
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings other than the usual output.
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_pic_works=yes
15285 $RM conftest*
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15292 case $lt_prog_compiler_pic in
15293 "" | " "*) ;;
15294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15295 esac
15296 else
15297 lt_prog_compiler_pic=
15298 lt_prog_compiler_can_build_shared=no
15309 # Check to make sure the static flag actually works.
15311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15314 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 lt_cv_prog_compiler_static_works=no
15318 save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15322 # The linker can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test -s conftest.err; then
15325 # Append any errors to the config.log.
15326 cat conftest.err 1>&5
15327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15329 if diff conftest.exp conftest.er2 >/dev/null; then
15330 lt_cv_prog_compiler_static_works=yes
15332 else
15333 lt_cv_prog_compiler_static_works=yes
15336 $RM -r conftest*
15337 LDFLAGS="$save_LDFLAGS"
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15345 else
15346 lt_prog_compiler_static=
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 lt_cv_prog_compiler_c_o=no
15361 $RM -r conftest 2>/dev/null
15362 mkdir conftest
15363 cd conftest
15364 mkdir out
15365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15367 lt_compiler_flag="-o out/conftest2.$ac_objext"
15368 # Insert the option either (1) after the last *FLAGS variable, or
15369 # (2) before a word containing "conftest.", or (3) at the end.
15370 # Note that $ac_compile itself does not contain backslashes and begins
15371 # with a dollar sign (not a hyphen), so the echo should work correctly.
15372 lt_compile=`echo "$ac_compile" | $SED \
15373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375 -e 's:$: $lt_compiler_flag:'`
15376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15377 (eval "$lt_compile" 2>out/conftest.err)
15378 ac_status=$?
15379 cat out/conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15382 then
15383 # The compiler can only warn and ignore the option if not recognized
15384 # So say no if there are warnings
15385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_c_o=yes
15391 chmod u+w . 2>&5
15392 $RM conftest*
15393 # SGI C++ compiler will create directory out/ii_files/ for
15394 # template instantiation
15395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15396 $RM out/* && rmdir out
15397 cd ..
15398 $RM -r conftest
15399 $RM conftest*
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 lt_cv_prog_compiler_c_o=no
15416 $RM -r conftest 2>/dev/null
15417 mkdir conftest
15418 cd conftest
15419 mkdir out
15420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15422 lt_compiler_flag="-o out/conftest2.$ac_objext"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 lt_compile=`echo "$ac_compile" | $SED \
15428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15430 -e 's:$: $lt_compiler_flag:'`
15431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15432 (eval "$lt_compile" 2>out/conftest.err)
15433 ac_status=$?
15434 cat out/conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15437 then
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15443 lt_cv_prog_compiler_c_o=yes
15446 chmod u+w . 2>&5
15447 $RM conftest*
15448 # SGI C++ compiler will create directory out/ii_files/ for
15449 # template instantiation
15450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15451 $RM out/* && rmdir out
15452 cd ..
15453 $RM -r conftest
15454 $RM conftest*
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15463 hard_links="nottested"
15464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15465 # do not overwrite the value of need_locks provided by the user
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15467 $as_echo_n "checking if we can lock with hard links... " >&6; }
15468 hard_links=yes
15469 $RM conftest*
15470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15471 touch conftest.a
15472 ln conftest.a conftest.b 2>&5 || hard_links=no
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15475 $as_echo "$hard_links" >&6; }
15476 if test "$hard_links" = no; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15478 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15479 need_locks=warn
15481 else
15482 need_locks=no
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15493 runpath_var=
15494 allow_undefined_flag=
15495 always_export_symbols=no
15496 archive_cmds=
15497 archive_expsym_cmds=
15498 compiler_needs_object=no
15499 enable_shared_with_static_runtimes=no
15500 export_dynamic_flag_spec=
15501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 hardcode_automatic=no
15503 hardcode_direct=no
15504 hardcode_direct_absolute=no
15505 hardcode_libdir_flag_spec=
15506 hardcode_libdir_flag_spec_ld=
15507 hardcode_libdir_separator=
15508 hardcode_minus_L=no
15509 hardcode_shlibpath_var=unsupported
15510 inherit_rpath=no
15511 link_all_deplibs=unknown
15512 module_cmds=
15513 module_expsym_cmds=
15514 old_archive_from_new_cmds=
15515 old_archive_from_expsyms_cmds=
15516 thread_safe_flag_spec=
15517 whole_archive_flag_spec=
15518 # include_expsyms should be a list of space-separated symbols to be *always*
15519 # included in the symbol list
15520 include_expsyms=
15521 # exclude_expsyms can be an extended regexp of symbols to exclude
15522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524 # as well as any symbol that contains `d'.
15525 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527 # platforms (ab)use it in PIC code, but their linkers get confused if
15528 # the symbol is explicitly referenced. Since portable code cannot
15529 # rely on this symbol name, it's probably fine to never include it in
15530 # preloaded symbol tables.
15531 # Exclude shared library initialization/finalization symbols.
15532 extract_expsyms_cmds=
15534 case $host_os in
15535 cygwin* | mingw* | pw32* | cegcc*)
15536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15537 # When not using gcc, we currently assume that we are using
15538 # Microsoft Visual C++.
15539 if test "$GCC" != yes; then
15540 with_gnu_ld=no
15543 interix*)
15544 # we just hope/assume this is gcc and not c89 (= MSVC++)
15545 with_gnu_ld=yes
15547 openbsd*)
15548 with_gnu_ld=no
15550 esac
15552 ld_shlibs=yes
15554 # On some targets, GNU ld is compatible enough with the native linker
15555 # that we're better off using the native interface for both.
15556 lt_use_gnu_ld_interface=no
15557 if test "$with_gnu_ld" = yes; then
15558 case $host_os in
15559 aix*)
15560 # The AIX port of GNU ld has always aspired to compatibility
15561 # with the native linker. However, as the warning in the GNU ld
15562 # block says, versions before 2.19.5* couldn't really create working
15563 # shared libraries, regardless of the interface used.
15564 case `$LD -v 2>&1` in
15565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15569 lt_use_gnu_ld_interface=yes
15571 esac
15574 lt_use_gnu_ld_interface=yes
15576 esac
15579 if test "$lt_use_gnu_ld_interface" = yes; then
15580 # If archive_cmds runs LD, not CC, wlarc should be empty
15581 wlarc='${wl}'
15583 # Set some defaults for GNU ld with shared library support. These
15584 # are reset later if shared libraries are not supported. Putting them
15585 # here allows them to be overridden if necessary.
15586 runpath_var=LD_RUN_PATH
15587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15588 export_dynamic_flag_spec='${wl}--export-dynamic'
15589 # ancient GNU ld didn't support --whole-archive et. al.
15590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15591 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15592 else
15593 whole_archive_flag_spec=
15595 supports_anon_versioning=no
15596 case `$LD -v 2>&1` in
15597 *GNU\ gold*) supports_anon_versioning=yes ;;
15598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15601 *\ 2.11.*) ;; # other 2.11 versions
15602 *) supports_anon_versioning=yes ;;
15603 esac
15605 # See if GNU ld supports shared libraries.
15606 case $host_os in
15607 aix[3-9]*)
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15610 ld_shlibs=no
15611 cat <<_LT_EOF 1>&2
15613 *** Warning: the GNU linker, at least up to release 2.19, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support. If you
15616 *** really care for shared libraries, you may want to install binutils
15617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15618 *** You will then need to restart the configuration process.
15620 _LT_EOF
15624 amigaos*)
15625 case $host_cpu in
15626 powerpc)
15627 # see comment about AmigaOS4 .so support
15628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds=''
15631 m68k)
15632 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)'
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 hardcode_minus_L=yes
15636 esac
15639 beos*)
15640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15641 allow_undefined_flag=unsupported
15642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15643 # support --undefined. This deserves some investigation. FIXME
15644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15645 else
15646 ld_shlibs=no
15650 cygwin* | mingw* | pw32* | cegcc*)
15651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec='-L$libdir'
15654 export_dynamic_flag_spec='${wl}--export-all-symbols'
15655 allow_undefined_flag=unsupported
15656 always_export_symbols=no
15657 enable_shared_with_static_runtimes=yes
15658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15660 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15662 # If the export-symbols file already is a .def file (1st line
15663 # is EXPORTS), use it as is; otherwise, prepend...
15664 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15665 cp $export_symbols $output_objdir/$soname.def;
15666 else
15667 echo EXPORTS > $output_objdir/$soname.def;
15668 cat $export_symbols >> $output_objdir/$soname.def;
15670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15671 else
15672 ld_shlibs=no
15676 haiku*)
15677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 link_all_deplibs=yes
15681 interix[3-9]*)
15682 hardcode_direct=no
15683 hardcode_shlibpath_var=no
15684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15685 export_dynamic_flag_spec='${wl}-E'
15686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15687 # Instead, shared libraries are loaded at an image base (0x10000000 by
15688 # default) and relocated if they conflict, which is a slow very memory
15689 # consuming and fragmenting process. To avoid this, we pick a random,
15690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15693 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'
15696 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15697 tmp_diet=no
15698 if test "$host_os" = linux-dietlibc; then
15699 case $cc_basename in
15700 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15701 esac
15703 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15704 && test "$tmp_diet" = no
15705 then
15706 tmp_addflag=
15707 tmp_sharedflag='-shared'
15708 case $cc_basename,$host_cpu in
15709 pgcc*) # Portland Group C compiler
15710 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'
15711 tmp_addflag=' $pic_flag'
15713 pgf77* | pgf90* | pgf95* | pgfortran*)
15714 # Portland Group f77 and f90 compilers
15715 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'
15716 tmp_addflag=' $pic_flag -Mnomain' ;;
15717 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15718 tmp_addflag=' -i_dynamic' ;;
15719 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15720 tmp_addflag=' -i_dynamic -nofor_main' ;;
15721 ifc* | ifort*) # Intel Fortran compiler
15722 tmp_addflag=' -nofor_main' ;;
15723 lf95*) # Lahey Fortran 8.1
15724 whole_archive_flag_spec=
15725 tmp_sharedflag='--shared' ;;
15726 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15727 tmp_sharedflag='-qmkshrobj'
15728 tmp_addflag= ;;
15729 nvcc*) # Cuda Compiler Driver 2.2
15730 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'
15731 compiler_needs_object=yes
15733 esac
15734 case `$CC -V 2>&1 | sed 5q` in
15735 *Sun\ C*) # Sun C 5.9
15736 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'
15737 compiler_needs_object=yes
15738 tmp_sharedflag='-G' ;;
15739 *Sun\ F*) # Sun Fortran 8.3
15740 tmp_sharedflag='-G' ;;
15741 esac
15742 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15744 if test "x$supports_anon_versioning" = xyes; then
15745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15747 echo "local: *; };" >> $output_objdir/$libname.ver~
15748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15751 case $cc_basename in
15752 xlf* | bgf* | bgxlf* | mpixlf*)
15753 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15754 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15755 hardcode_libdir_flag_spec=
15756 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15757 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15758 if test "x$supports_anon_versioning" = xyes; then
15759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15761 echo "local: *; };" >> $output_objdir/$libname.ver~
15762 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15765 esac
15766 else
15767 ld_shlibs=no
15771 netbsd*)
15772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15774 wlarc=
15775 else
15776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15781 solaris*)
15782 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15783 ld_shlibs=no
15784 cat <<_LT_EOF 1>&2
15786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15787 *** create shared libraries on Solaris systems. Therefore, libtool
15788 *** is disabling shared libraries support. We urge you to upgrade GNU
15789 *** binutils to release 2.9.1 or newer. Another option is to modify
15790 *** your PATH or compiler configuration so that the native linker is
15791 *** used, and then restart.
15793 _LT_EOF
15794 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797 else
15798 ld_shlibs=no
15802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15803 case `$LD -v 2>&1` in
15804 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15805 ld_shlibs=no
15806 cat <<_LT_EOF 1>&2
15808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15809 *** reliably create shared libraries on SCO systems. Therefore, libtool
15810 *** is disabling shared libraries support. We urge you to upgrade GNU
15811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15812 *** your PATH or compiler configuration so that the native linker is
15813 *** used, and then restart.
15815 _LT_EOF
15818 # For security reasons, it is highly recommended that you always
15819 # use absolute paths for naming shared libraries, and exclude the
15820 # DT_RUNPATH tag from executables and libraries. But doing so
15821 # requires that you compile everything twice, which is a pain.
15822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15826 else
15827 ld_shlibs=no
15830 esac
15833 sunos4*)
15834 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15835 wlarc=
15836 hardcode_direct=yes
15837 hardcode_shlibpath_var=no
15841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15844 else
15845 ld_shlibs=no
15848 esac
15850 if test "$ld_shlibs" = no; then
15851 runpath_var=
15852 hardcode_libdir_flag_spec=
15853 export_dynamic_flag_spec=
15854 whole_archive_flag_spec=
15856 else
15857 # PORTME fill in a description of your system's linker (not GNU ld)
15858 case $host_os in
15859 aix3*)
15860 allow_undefined_flag=unsupported
15861 always_export_symbols=yes
15862 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'
15863 # Note: this linker hardcodes the directories in LIBPATH if there
15864 # are no directories specified by -L.
15865 hardcode_minus_L=yes
15866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15867 # Neither direct hardcoding nor static linking is supported with a
15868 # broken collect2.
15869 hardcode_direct=unsupported
15873 aix[4-9]*)
15874 if test "$host_cpu" = ia64; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking=no
15878 exp_sym_flag='-Bexport'
15879 no_entry_flag=""
15880 else
15881 # If we're using GNU nm, then we don't want the "-C" option.
15882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15883 # Also, AIX nm treats weak defined symbols like other global
15884 # defined symbols, whereas GNU nm marks them as "W".
15885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15886 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'
15887 else
15888 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'
15890 aix_use_runtimelinking=no
15892 # Test if we are trying to use run time linking or normal
15893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894 # need to do runtime linking.
15895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15896 for ld_flag in $LDFLAGS; do
15897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15898 aix_use_runtimelinking=yes
15899 break
15901 done
15903 esac
15905 exp_sym_flag='-bexport'
15906 no_entry_flag='-bnoentry'
15909 # When large executables or shared objects are built, AIX ld can
15910 # have problems creating the table of contents. If linking a library
15911 # or program results in "error TOC overflow" add -mminimal-toc to
15912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15915 archive_cmds=''
15916 hardcode_direct=yes
15917 hardcode_direct_absolute=yes
15918 hardcode_libdir_separator=':'
15919 link_all_deplibs=yes
15920 file_list_spec='${wl}-f,'
15922 if test "$GCC" = yes; then
15923 case $host_os in aix4.[012]|aix4.[012].*)
15924 # We only want to do this on AIX 4.2 and lower, the check
15925 # below for broken collect2 doesn't work under 4.3+
15926 collect2name=`${CC} -print-prog-name=collect2`
15927 if test -f "$collect2name" &&
15928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15929 then
15930 # We have reworked collect2
15932 else
15933 # We have old collect2
15934 hardcode_direct=unsupported
15935 # It fails to find uninstalled libraries when the uninstalled
15936 # path is not listed in the libpath. Setting hardcode_minus_L
15937 # to unsupported forces relinking
15938 hardcode_minus_L=yes
15939 hardcode_libdir_flag_spec='-L$libdir'
15940 hardcode_libdir_separator=
15943 esac
15944 shared_flag='-shared'
15945 if test "$aix_use_runtimelinking" = yes; then
15946 shared_flag="$shared_flag "'${wl}-G'
15948 else
15949 # not using gcc
15950 if test "$host_cpu" = ia64; then
15951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15952 # chokes on -Wl,-G. The following line is correct:
15953 shared_flag='-G'
15954 else
15955 if test "$aix_use_runtimelinking" = yes; then
15956 shared_flag='${wl}-G'
15957 else
15958 shared_flag='${wl}-bM:SRE'
15963 export_dynamic_flag_spec='${wl}-bexpall'
15964 # It seems that -bexpall does not export symbols beginning with
15965 # underscore (_), so it is better to generate a list of symbols to export.
15966 always_export_symbols=yes
15967 if test "$aix_use_runtimelinking" = yes; then
15968 # Warning - without using the other runtime loading flags (-brtl),
15969 # -berok will link without error, but may produce a broken library.
15970 allow_undefined_flag='-berok'
15971 # Determine the default libpath from the value encoded in an
15972 # empty executable.
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15977 main ()
15981 return 0;
15983 _ACEOF
15984 if ac_fn_c_try_link "$LINENO"; then :
15986 lt_aix_libpath_sed='
15987 /Import File Strings/,/^$/ {
15988 /^0/ {
15989 s/^0 *\(.*\)$/\1/
15993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15994 # Check for a 64-bit object if we didn't find anything.
15995 if test -z "$aix_libpath"; then
15996 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15999 rm -f core conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16004 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"
16005 else
16006 if test "$host_cpu" = ia64; then
16007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag="-z nodefs"
16009 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"
16010 else
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16017 main ()
16021 return 0;
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"; then :
16026 lt_aix_libpath_sed='
16027 /Import File Strings/,/^$/ {
16028 /^0/ {
16029 s/^0 *\(.*\)$/\1/
16033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 # Check for a 64-bit object if we didn't find anything.
16035 if test -z "$aix_libpath"; then
16036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 # Warning - without using the other run time loading flags,
16045 # -berok will link without error, but may produce a broken library.
16046 no_undefined_flag=' ${wl}-bernotok'
16047 allow_undefined_flag=' ${wl}-berok'
16048 if test "$with_gnu_ld" = yes; then
16049 # We only use this code for GNU lds that support --whole-archive.
16050 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16051 else
16052 # Exported symbols can be pulled into shared objects from archives
16053 whole_archive_flag_spec='$convenience'
16055 archive_cmds_need_lc=yes
16056 # This is similar to how AIX traditionally builds its shared libraries.
16057 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'
16062 amigaos*)
16063 case $host_cpu in
16064 powerpc)
16065 # see comment about AmigaOS4 .so support
16066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds=''
16069 m68k)
16070 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)'
16071 hardcode_libdir_flag_spec='-L$libdir'
16072 hardcode_minus_L=yes
16074 esac
16077 bsdi[45]*)
16078 export_dynamic_flag_spec=-rdynamic
16081 cygwin* | mingw* | pw32* | cegcc*)
16082 # When not using gcc, we currently assume that we are using
16083 # Microsoft Visual C++.
16084 # hardcode_libdir_flag_spec is actually meaningless, as there is
16085 # no search path for DLLs.
16086 hardcode_libdir_flag_spec=' '
16087 allow_undefined_flag=unsupported
16088 # Tell ltmain to make .lib files, not .a files.
16089 libext=lib
16090 # Tell ltmain to make .dll files, not .so files.
16091 shrext_cmds=".dll"
16092 # FIXME: Setting linknames here is a bad hack.
16093 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16094 # The linker will automatically build a .lib file if we build a DLL.
16095 old_archive_from_new_cmds='true'
16096 # FIXME: Should let the user specify the lib program.
16097 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16098 fix_srcfile_path='`cygpath -w "$srcfile"`'
16099 enable_shared_with_static_runtimes=yes
16102 darwin* | rhapsody*)
16105 archive_cmds_need_lc=no
16106 hardcode_direct=no
16107 hardcode_automatic=yes
16108 hardcode_shlibpath_var=unsupported
16109 if test "$lt_cv_ld_force_load" = "yes"; then
16110 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\"`'
16111 else
16112 whole_archive_flag_spec=''
16114 link_all_deplibs=yes
16115 allow_undefined_flag="$_lt_dar_allow_undefined"
16116 case $cc_basename in
16117 ifort*) _lt_dar_can_shared=yes ;;
16118 *) _lt_dar_can_shared=$GCC ;;
16119 esac
16120 if test "$_lt_dar_can_shared" = "yes"; then
16121 output_verbose_link_cmd=func_echo_all
16122 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16123 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16124 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}"
16125 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}"
16127 else
16128 ld_shlibs=no
16133 dgux*)
16134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec='-L$libdir'
16136 hardcode_shlibpath_var=no
16139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16140 # support. Future versions do this automatically, but an explicit c++rt0.o
16141 # does not break anything, and helps significantly (at the cost of a little
16142 # extra space).
16143 freebsd2.2*)
16144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16145 hardcode_libdir_flag_spec='-R$libdir'
16146 hardcode_direct=yes
16147 hardcode_shlibpath_var=no
16150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16151 freebsd2.*)
16152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct=yes
16154 hardcode_minus_L=yes
16155 hardcode_shlibpath_var=no
16158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16159 freebsd* | dragonfly*)
16160 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16161 hardcode_libdir_flag_spec='-R$libdir'
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16166 hpux9*)
16167 if test "$GCC" = yes; then
16168 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'
16169 else
16170 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'
16172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16173 hardcode_libdir_separator=:
16174 hardcode_direct=yes
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L=yes
16179 export_dynamic_flag_spec='${wl}-E'
16182 hpux10*)
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16185 else
16186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16188 if test "$with_gnu_ld" = no; then
16189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16190 hardcode_libdir_flag_spec_ld='+b $libdir'
16191 hardcode_libdir_separator=:
16192 hardcode_direct=yes
16193 hardcode_direct_absolute=yes
16194 export_dynamic_flag_spec='${wl}-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L=yes
16201 hpux11*)
16202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16203 case $host_cpu in
16204 hppa*64*)
16205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16207 ia64*)
16208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16213 esac
16214 else
16215 case $host_cpu in
16216 hppa*64*)
16217 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 ia64*)
16220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224 # Older versions of the 11.00 compiler do not understand -b yet
16225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16227 $as_echo_n "checking if $CC understands -b... " >&6; }
16228 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 lt_cv_prog_compiler__b=no
16232 save_LDFLAGS="$LDFLAGS"
16233 LDFLAGS="$LDFLAGS -b"
16234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16236 # The linker can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test -s conftest.err; then
16239 # Append any errors to the config.log.
16240 cat conftest.err 1>&5
16241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16243 if diff conftest.exp conftest.er2 >/dev/null; then
16244 lt_cv_prog_compiler__b=yes
16246 else
16247 lt_cv_prog_compiler__b=yes
16250 $RM -r conftest*
16251 LDFLAGS="$save_LDFLAGS"
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16257 if test x"$lt_cv_prog_compiler__b" = xyes; then
16258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16259 else
16260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16264 esac
16266 if test "$with_gnu_ld" = no; then
16267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16268 hardcode_libdir_separator=:
16270 case $host_cpu in
16271 hppa*64*|ia64*)
16272 hardcode_direct=no
16273 hardcode_shlibpath_var=no
16276 hardcode_direct=yes
16277 hardcode_direct_absolute=yes
16278 export_dynamic_flag_spec='${wl}-E'
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L=yes
16284 esac
16288 irix5* | irix6* | nonstopux*)
16289 if test "$GCC" = yes; then
16290 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'
16291 # Try to use the -exported_symbol ld option, if it does not
16292 # work, assume that -exports_file does not work either and
16293 # implicitly export all symbols.
16294 save_LDFLAGS="$LDFLAGS"
16295 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 int foo(void) {}
16299 _ACEOF
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 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'
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306 LDFLAGS="$save_LDFLAGS"
16307 else
16308 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'
16309 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'
16311 archive_cmds_need_lc='no'
16312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator=:
16314 inherit_rpath=yes
16315 link_all_deplibs=yes
16318 netbsd*)
16319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16321 else
16322 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16324 hardcode_libdir_flag_spec='-R$libdir'
16325 hardcode_direct=yes
16326 hardcode_shlibpath_var=no
16329 newsos6)
16330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct=yes
16332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator=:
16334 hardcode_shlibpath_var=no
16337 *nto* | *qnx*)
16340 openbsd*)
16341 if test -f /usr/libexec/ld.so; then
16342 hardcode_direct=yes
16343 hardcode_shlibpath_var=no
16344 hardcode_direct_absolute=yes
16345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16349 export_dynamic_flag_spec='${wl}-E'
16350 else
16351 case $host_os in
16352 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_libdir_flag_spec='-R$libdir'
16357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16360 esac
16362 else
16363 ld_shlibs=no
16367 os2*)
16368 hardcode_libdir_flag_spec='-L$libdir'
16369 hardcode_minus_L=yes
16370 allow_undefined_flag=unsupported
16371 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'
16372 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16375 osf3*)
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16378 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'
16379 else
16380 allow_undefined_flag=' -expect_unresolved \*'
16381 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'
16383 archive_cmds_need_lc='no'
16384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16385 hardcode_libdir_separator=:
16388 osf4* | osf5*) # as osf3* with the addition of -msym flag
16389 if test "$GCC" = yes; then
16390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16391 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'
16392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393 else
16394 allow_undefined_flag=' -expect_unresolved \*'
16395 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'
16396 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~
16397 $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'
16399 # Both c and cxx compiler support -rpath directly
16400 hardcode_libdir_flag_spec='-rpath $libdir'
16402 archive_cmds_need_lc='no'
16403 hardcode_libdir_separator=:
16406 solaris*)
16407 no_undefined_flag=' -z defs'
16408 if test "$GCC" = yes; then
16409 wlarc='${wl}'
16410 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16413 else
16414 case `$CC -V 2>&1` in
16415 *"Compilers 5.0"*)
16416 wlarc=''
16417 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16422 wlarc='${wl}'
16423 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16425 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16427 esac
16429 hardcode_libdir_flag_spec='-R$libdir'
16430 hardcode_shlibpath_var=no
16431 case $host_os in
16432 solaris2.[0-5] | solaris2.[0-5].*) ;;
16434 # The compiler driver will combine and reorder linker options,
16435 # but understands `-z linker_flag'. GCC discards it without `$wl',
16436 # but is careful enough not to reorder.
16437 # Supported since Solaris 2.6 (maybe 2.5.1?)
16438 if test "$GCC" = yes; then
16439 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16440 else
16441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16444 esac
16445 link_all_deplibs=yes
16448 sunos4*)
16449 if test "x$host_vendor" = xsequent; then
16450 # Use $CC to link under sequent, because it throws in some extra .o
16451 # files that make .init and .fini sections work.
16452 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16453 else
16454 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_libdir_flag_spec='-L$libdir'
16457 hardcode_direct=yes
16458 hardcode_minus_L=yes
16459 hardcode_shlibpath_var=no
16462 sysv4)
16463 case $host_vendor in
16464 sni)
16465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_direct=yes # is this really true???
16468 siemens)
16469 ## LD is ld it makes a PLAMLIB
16470 ## CC just makes a GrossModule.
16471 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16472 reload_cmds='$CC -r -o $output$reload_objs'
16473 hardcode_direct=no
16475 motorola)
16476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16479 esac
16480 runpath_var='LD_RUN_PATH'
16481 hardcode_shlibpath_var=no
16484 sysv4.3*)
16485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_shlibpath_var=no
16487 export_dynamic_flag_spec='-Bexport'
16490 sysv4*MP*)
16491 if test -d /usr/nec; then
16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_shlibpath_var=no
16494 runpath_var=LD_RUN_PATH
16495 hardcode_runpath_var=yes
16496 ld_shlibs=yes
16500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16501 no_undefined_flag='${wl}-z,text'
16502 archive_cmds_need_lc=no
16503 hardcode_shlibpath_var=no
16504 runpath_var='LD_RUN_PATH'
16506 if test "$GCC" = yes; then
16507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16509 else
16510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 sysv5* | sco3.2v5* | sco5v6*)
16516 # Note: We can NOT use -z defs as we might desire, because we do not
16517 # link with -lc, and that would cause any symbols used from libc to
16518 # always be unresolved, which means just about no library would
16519 # ever link correctly. If we're not using GNU ld we use -z text
16520 # though, which does catch some bad symbols but isn't as heavy-handed
16521 # as -z defs.
16522 no_undefined_flag='${wl}-z,text'
16523 allow_undefined_flag='${wl}-z,nodefs'
16524 archive_cmds_need_lc=no
16525 hardcode_shlibpath_var=no
16526 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16527 hardcode_libdir_separator=':'
16528 link_all_deplibs=yes
16529 export_dynamic_flag_spec='${wl}-Bexport'
16530 runpath_var='LD_RUN_PATH'
16532 if test "$GCC" = yes; then
16533 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 else
16536 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541 uts4*)
16542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec='-L$libdir'
16544 hardcode_shlibpath_var=no
16548 ld_shlibs=no
16550 esac
16552 if test x$host_vendor = xsni; then
16553 case $host in
16554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16555 export_dynamic_flag_spec='${wl}-Blargedynsym'
16557 esac
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16562 $as_echo "$ld_shlibs" >&6; }
16563 test "$ld_shlibs" = no && can_build_shared=no
16565 with_gnu_ld=$with_gnu_ld
16582 # Do we need to explicitly link libc?
16584 case "x$archive_cmds_need_lc" in
16585 x|xyes)
16586 # Assume -lc should be added
16587 archive_cmds_need_lc=yes
16589 if test "$enable_shared" = yes && test "$GCC" = yes; then
16590 case $archive_cmds in
16591 *'~'*)
16592 # FIXME: we may have to deal with multi-command sequences.
16594 '$CC '*)
16595 # Test whether the compiler implicitly links with -lc since on some
16596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597 # to ld, don't add -lc before -lgcc.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603 $RM conftest*
16604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607 (eval $ac_compile) 2>&5
16608 ac_status=$?
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; } 2>conftest.err; then
16611 soname=conftest
16612 lib=conftest
16613 libobjs=conftest.$ac_objext
16614 deplibs=
16615 wl=$lt_prog_compiler_wl
16616 pic_flag=$lt_prog_compiler_pic
16617 compiler_flags=-v
16618 linker_flags=-v
16619 verstring=
16620 output_objdir=.
16621 libname=conftest
16622 lt_save_allow_undefined_flag=$allow_undefined_flag
16623 allow_undefined_flag=
16624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626 ac_status=$?
16627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628 test $ac_status = 0; }
16629 then
16630 lt_cv_archive_cmds_need_lc=no
16631 else
16632 lt_cv_archive_cmds_need_lc=yes
16634 allow_undefined_flag=$lt_save_allow_undefined_flag
16635 else
16636 cat conftest.err 1>&5
16638 $RM conftest*
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16643 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16645 esac
16648 esac
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16809 if test "$GCC" = yes; then
16810 case $host_os in
16811 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16812 *) lt_awk_arg="/^libraries:/" ;;
16813 esac
16814 case $host_os in
16815 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16816 *) lt_sed_strip_eq="s,=/,/,g" ;;
16817 esac
16818 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16819 case $lt_search_path_spec in
16820 *\;*)
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16828 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16830 esac
16831 # Ok, now we have the path, separated by spaces, we can step through it
16832 # and add multilib dir if necessary.
16833 lt_tmp_lt_search_path_spec=
16834 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16835 for lt_sys_path in $lt_search_path_spec; do
16836 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16837 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16838 else
16839 test -d "$lt_sys_path" && \
16840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16842 done
16843 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16844 BEGIN {RS=" "; FS="/|\n";} {
16845 lt_foo="";
16846 lt_count=0;
16847 for (lt_i = NF; lt_i > 0; lt_i--) {
16848 if ($lt_i != "" && $lt_i != ".") {
16849 if ($lt_i == "..") {
16850 lt_count++;
16851 } else {
16852 if (lt_count == 0) {
16853 lt_foo="/" $lt_i lt_foo;
16854 } else {
16855 lt_count--;
16860 if (lt_foo != "") { lt_freq[lt_foo]++; }
16861 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16863 # AWK program above erroneously prepends '/' to C:/dos/paths
16864 # for these hosts.
16865 case $host_os in
16866 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16867 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16868 esac
16869 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16870 else
16871 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16873 library_names_spec=
16874 libname_spec='lib$name'
16875 soname_spec=
16876 shrext_cmds=".so"
16877 postinstall_cmds=
16878 postuninstall_cmds=
16879 finish_cmds=
16880 finish_eval=
16881 shlibpath_var=
16882 shlibpath_overrides_runpath=unknown
16883 version_type=none
16884 dynamic_linker="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16893 case $host_os in
16894 aix3*)
16895 version_type=linux
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var=LIBPATH
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec='${libname}${release}${shared_ext}$major'
16903 aix[4-9]*)
16904 version_type=linux
16905 need_lib_prefix=no
16906 need_version=no
16907 hardcode_into_libs=yes
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 supports IA64
16910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 else
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16918 case $host_os in
16919 aix4 | aix4.[01] | aix4.[01].*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16921 echo ' yes '
16922 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16924 else
16925 can_build_shared=no
16928 esac
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937 else
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec='${libname}${release}.a $libname.a'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16943 shlibpath_var=LIBPATH
16947 amigaos*)
16948 case $host_cpu in
16949 powerpc)
16950 # Since July 2007 AmigaOS4 officially supports .so libraries.
16951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16954 m68k)
16955 library_names_spec='$libname.ixlibrary $libname.a'
16956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16957 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'
16959 esac
16962 beos*)
16963 library_names_spec='${libname}${shared_ext}'
16964 dynamic_linker="$host_os ld.so"
16965 shlibpath_var=LIBRARY_PATH
16968 bsdi[45]*)
16969 version_type=linux
16970 need_version=no
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin* | mingw* | pw32* | cegcc*)
16983 version_type=windows
16984 shrext_cmds=".dll"
16985 need_version=no
16986 need_lib_prefix=no
16988 case $GCC,$host_os in
16989 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16990 library_names_spec='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname~
16998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17003 $RM \$dlpath'
17004 shlibpath_overrides_runpath=yes
17006 case $host_os in
17007 cygwin*)
17008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17013 mingw* | cegcc*)
17014 # MinGW DLLs use traditional 'lib' prefix
17015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017 pw32*)
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021 esac
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 esac
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17030 shlibpath_var=PATH
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17036 need_lib_prefix=no
17037 need_version=no
17038 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17048 dgux*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17057 freebsd* | dragonfly*)
17058 # DragonFly does not have aout. When/if they implement a new
17059 # versioning mechanism, adjust this.
17060 if test -x /usr/bin/objformat; then
17061 objformat=`/usr/bin/objformat`
17062 else
17063 case $host_os in
17064 freebsd[23].*) objformat=aout ;;
17065 *) objformat=elf ;;
17066 esac
17068 version_type=freebsd-$objformat
17069 case $version_type in
17070 freebsd-elf*)
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17072 need_version=no
17073 need_lib_prefix=no
17075 freebsd-*)
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17077 need_version=yes
17079 esac
17080 shlibpath_var=LD_LIBRARY_PATH
17081 case $host_os in
17082 freebsd2.*)
17083 shlibpath_overrides_runpath=yes
17085 freebsd3.[01]* | freebsdelf3.[01]*)
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17094 *) # from 4.6 on, and DragonFly
17095 shlibpath_overrides_runpath=yes
17096 hardcode_into_libs=yes
17098 esac
17101 gnu*)
17102 version_type=linux
17103 need_lib_prefix=no
17104 need_version=no
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 hardcode_into_libs=yes
17111 haiku*)
17112 version_type=linux
17113 need_lib_prefix=no
17114 need_version=no
17115 dynamic_linker="$host_os runtime_loader"
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 shlibpath_var=LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes
17120 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17121 hardcode_into_libs=yes
17124 hpux9* | hpux10* | hpux11*)
17125 # Give a soname corresponding to the major version so that dld.sl refuses to
17126 # link against other versions.
17127 version_type=sunos
17128 need_lib_prefix=no
17129 need_version=no
17130 case $host_cpu in
17131 ia64*)
17132 shrext_cmds='.so'
17133 hardcode_into_libs=yes
17134 dynamic_linker="$host_os dld.so"
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 if test "X$HPUX_IA64_MODE" = X32; then
17140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17141 else
17142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17146 hppa*64*)
17147 shrext_cmds='.sl'
17148 hardcode_into_libs=yes
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17158 shrext_cmds='.sl'
17159 dynamic_linker="$host_os dld.sl"
17160 shlibpath_var=SHLIB_PATH
17161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17165 esac
17166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17167 postinstall_cmds='chmod 555 $lib'
17168 # or fails outright, so override atomically:
17169 install_override_mode=555
17172 interix[3-9]*)
17173 version_type=linux
17174 need_lib_prefix=no
17175 need_version=no
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=no
17181 hardcode_into_libs=yes
17184 irix5* | irix6* | nonstopux*)
17185 case $host_os in
17186 nonstopux*) version_type=nonstopux ;;
17188 if test "$lt_cv_prog_gnu_ld" = yes; then
17189 version_type=linux
17190 else
17191 version_type=irix
17192 fi ;;
17193 esac
17194 need_lib_prefix=no
17195 need_version=no
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17198 case $host_os in
17199 irix5* | nonstopux*)
17200 libsuff= shlibsuff=
17203 case $LD in # libtool.m4 will add one of these switches to LD
17204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17205 libsuff= shlibsuff= libmagic=32-bit;;
17206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17207 libsuff=32 shlibsuff=N32 libmagic=N32;;
17208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17209 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17210 *) libsuff= shlibsuff= libmagic=never-match;;
17211 esac
17213 esac
17214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17215 shlibpath_overrides_runpath=no
17216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17218 hardcode_into_libs=yes
17221 # No shared lib support for Linux oldld, aout, or coff.
17222 linux*oldld* | linux*aout* | linux*coff*)
17223 dynamic_linker=no
17226 # This must be Linux ELF.
17227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17228 version_type=linux
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=no
17237 # Some binutils ld are patched to set DT_RUNPATH
17238 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 lt_cv_shlibpath_overrides_runpath=no
17242 save_LDFLAGS=$LDFLAGS
17243 save_libdir=$libdir
17244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17250 main ()
17254 return 0;
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17259 lt_cv_shlibpath_overrides_runpath=yes
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LDFLAGS=$save_LDFLAGS
17265 libdir=$save_libdir
17269 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17271 # This implies no fast_install, which is unacceptable.
17272 # Some rework will be needed to allow for fast_install
17273 # before this can be enabled.
17274 hardcode_into_libs=yes
17276 # Append ld.so.conf contents to the search path
17277 if test -f /etc/ld.so.conf; then
17278 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' ' '`
17279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17282 # We used to test for /lib/ld.so.1 and disable shared libraries on
17283 # powerpc, because MkLinux only supported shared libraries with the
17284 # GNU dynamic linker. Since this was broken with cross compilers,
17285 # most powerpc-linux boxes support dynamic linking these days and
17286 # people can always --disable-shared, the test was removed, and we
17287 # assume the GNU/Linux dynamic linker is in use.
17288 dynamic_linker='GNU/Linux ld.so'
17291 netbsd*)
17292 version_type=sunos
17293 need_lib_prefix=no
17294 need_version=no
17295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298 dynamic_linker='NetBSD (a.out) ld.so'
17299 else
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 dynamic_linker='NetBSD ld.elf_so'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 hardcode_into_libs=yes
17309 newsos6)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17316 *nto* | *qnx*)
17317 version_type=qnx
17318 need_lib_prefix=no
17319 need_version=no
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath=no
17324 hardcode_into_libs=yes
17325 dynamic_linker='ldqnx.so'
17328 openbsd*)
17329 version_type=sunos
17330 sys_lib_dlsearch_path_spec="/usr/lib"
17331 need_lib_prefix=no
17332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17333 case $host_os in
17334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17335 *) need_version=no ;;
17336 esac
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17341 case $host_os in
17342 openbsd2.[89] | openbsd2.[89].*)
17343 shlibpath_overrides_runpath=no
17346 shlibpath_overrides_runpath=yes
17348 esac
17349 else
17350 shlibpath_overrides_runpath=yes
17354 os2*)
17355 libname_spec='$name'
17356 shrext_cmds=".dll"
17357 need_lib_prefix=no
17358 library_names_spec='$libname${shared_ext} $libname.a'
17359 dynamic_linker='OS/2 ld.exe'
17360 shlibpath_var=LIBPATH
17363 osf3* | osf4* | osf5*)
17364 version_type=osf
17365 need_lib_prefix=no
17366 need_version=no
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17374 rdos*)
17375 dynamic_linker=no
17378 solaris*)
17379 version_type=linux
17380 need_lib_prefix=no
17381 need_version=no
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=yes
17386 hardcode_into_libs=yes
17387 # ldd complains unless libraries are executable
17388 postinstall_cmds='chmod +x $lib'
17391 sunos4*)
17392 version_type=sunos
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=yes
17397 if test "$with_gnu_ld" = yes; then
17398 need_lib_prefix=no
17400 need_version=yes
17403 sysv4 | sysv4.3*)
17404 version_type=linux
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 case $host_vendor in
17409 sni)
17410 shlibpath_overrides_runpath=no
17411 need_lib_prefix=no
17412 runpath_var=LD_RUN_PATH
17414 siemens)
17415 need_lib_prefix=no
17417 motorola)
17418 need_lib_prefix=no
17419 need_version=no
17420 shlibpath_overrides_runpath=no
17421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17423 esac
17426 sysv4*MP*)
17427 if test -d /usr/nec ;then
17428 version_type=linux
17429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430 soname_spec='$libname${shared_ext}.$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17436 version_type=freebsd-elf
17437 need_lib_prefix=no
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 hardcode_into_libs=yes
17444 if test "$with_gnu_ld" = yes; then
17445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17446 else
17447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17448 case $host_os in
17449 sco3.2v5*)
17450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17452 esac
17454 sys_lib_dlsearch_path_spec='/usr/lib'
17457 tpf*)
17458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17459 version_type=linux
17460 need_lib_prefix=no
17461 need_version=no
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=no
17465 hardcode_into_libs=yes
17468 uts4*)
17469 version_type=linux
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17476 dynamic_linker=no
17478 esac
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17480 $as_echo "$dynamic_linker" >&6; }
17481 test "$dynamic_linker" = no && can_build_shared=no
17483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17489 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17492 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17588 hardcode_action=
17589 if test -n "$hardcode_libdir_flag_spec" ||
17590 test -n "$runpath_var" ||
17591 test "X$hardcode_automatic" = "Xyes" ; then
17593 # We can hardcode non-existent directories.
17594 if test "$hardcode_direct" != no &&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17599 test "$hardcode_minus_L" != no; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action=relink
17602 else
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action=immediate
17606 else
17607 # We cannot hardcode anything, or else we can only hardcode existing
17608 # directories.
17609 hardcode_action=unsupported
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17612 $as_echo "$hardcode_action" >&6; }
17614 if test "$hardcode_action" = relink ||
17615 test "$inherit_rpath" = yes; then
17616 # Fast installation is not supported
17617 enable_fast_install=no
17618 elif test "$shlibpath_overrides_runpath" = yes ||
17619 test "$enable_shared" = no; then
17620 # Fast installation is not necessary
17621 enable_fast_install=needless
17629 if test "x$enable_dlopen" != xyes; then
17630 enable_dlopen=unknown
17631 enable_dlopen_self=unknown
17632 enable_dlopen_self_static=unknown
17633 else
17634 lt_cv_dlopen=no
17635 lt_cv_dlopen_libs=
17637 case $host_os in
17638 beos*)
17639 lt_cv_dlopen="load_add_on"
17640 lt_cv_dlopen_libs=
17641 lt_cv_dlopen_self=yes
17644 mingw* | pw32* | cegcc*)
17645 lt_cv_dlopen="LoadLibrary"
17646 lt_cv_dlopen_libs=
17649 cygwin*)
17650 lt_cv_dlopen="dlopen"
17651 lt_cv_dlopen_libs=
17654 darwin*)
17655 # if libdl is installed we need to link against it
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17660 else
17661 ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-ldl $LIBS"
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17666 /* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17669 #ifdef __cplusplus
17670 extern "C"
17671 #endif
17672 char dlopen ();
17674 main ()
17676 return dlopen ();
17678 return 0;
17680 _ACEOF
17681 if ac_fn_c_try_link "$LINENO"; then :
17682 ac_cv_lib_dl_dlopen=yes
17683 else
17684 ac_cv_lib_dl_dlopen=no
17686 rm -f core conftest.err conftest.$ac_objext \
17687 conftest$ac_exeext conftest.$ac_ext
17688 LIBS=$ac_check_lib_save_LIBS
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17692 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17694 else
17696 lt_cv_dlopen="dyld"
17697 lt_cv_dlopen_libs=
17698 lt_cv_dlopen_self=yes
17705 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17706 if test "x$ac_cv_func_shl_load" = x""yes; then :
17707 lt_cv_dlopen="shl_load"
17708 else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17713 else
17714 ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-ldld $LIBS"
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17722 #ifdef __cplusplus
17723 extern "C"
17724 #endif
17725 char shl_load ();
17727 main ()
17729 return shl_load ();
17731 return 0;
17733 _ACEOF
17734 if ac_fn_c_try_link "$LINENO"; then :
17735 ac_cv_lib_dld_shl_load=yes
17736 else
17737 ac_cv_lib_dld_shl_load=no
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17745 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17747 else
17748 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17749 if test "x$ac_cv_func_dlopen" = x""yes; then :
17750 lt_cv_dlopen="dlopen"
17751 else
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-ldl $LIBS"
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 char dlopen ();
17770 main ()
17772 return dlopen ();
17774 return 0;
17776 _ACEOF
17777 if ac_fn_c_try_link "$LINENO"; then :
17778 ac_cv_lib_dl_dlopen=yes
17779 else
17780 ac_cv_lib_dl_dlopen=no
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 LIBS=$ac_check_lib_save_LIBS
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17788 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17790 else
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17796 ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-lsvld $LIBS"
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17804 #ifdef __cplusplus
17805 extern "C"
17806 #endif
17807 char dlopen ();
17809 main ()
17811 return dlopen ();
17813 return 0;
17815 _ACEOF
17816 if ac_fn_c_try_link "$LINENO"; then :
17817 ac_cv_lib_svld_dlopen=yes
17818 else
17819 ac_cv_lib_svld_dlopen=no
17821 rm -f core conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17823 LIBS=$ac_check_lib_save_LIBS
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17827 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17829 else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-ldld $LIBS"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char dld_link ();
17848 main ()
17850 return dld_link ();
17852 return 0;
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"; then :
17856 ac_cv_lib_dld_dld_link=yes
17857 else
17858 ac_cv_lib_dld_dld_link=no
17860 rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17866 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17867 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17886 esac
17888 if test "x$lt_cv_dlopen" != xno; then
17889 enable_dlopen=yes
17890 else
17891 enable_dlopen=no
17894 case $lt_cv_dlopen in
17895 dlopen)
17896 save_CPPFLAGS="$CPPFLAGS"
17897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17899 save_LDFLAGS="$LDFLAGS"
17900 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17902 save_LIBS="$LIBS"
17903 LIBS="$lt_cv_dlopen_libs $LIBS"
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17907 if test "${lt_cv_dlopen_self+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 if test "$cross_compiling" = yes; then :
17911 lt_cv_dlopen_self=cross
17912 else
17913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17914 lt_status=$lt_dlunknown
17915 cat > conftest.$ac_ext <<_LT_EOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17919 #if HAVE_DLFCN_H
17920 #include <dlfcn.h>
17921 #endif
17923 #include <stdio.h>
17925 #ifdef RTLD_GLOBAL
17926 # define LT_DLGLOBAL RTLD_GLOBAL
17927 #else
17928 # ifdef DL_GLOBAL
17929 # define LT_DLGLOBAL DL_GLOBAL
17930 # else
17931 # define LT_DLGLOBAL 0
17932 # endif
17933 #endif
17935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17936 find out it does not work in some platform. */
17937 #ifndef LT_DLLAZY_OR_NOW
17938 # ifdef RTLD_LAZY
17939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17940 # else
17941 # ifdef DL_LAZY
17942 # define LT_DLLAZY_OR_NOW DL_LAZY
17943 # else
17944 # ifdef RTLD_NOW
17945 # define LT_DLLAZY_OR_NOW RTLD_NOW
17946 # else
17947 # ifdef DL_NOW
17948 # define LT_DLLAZY_OR_NOW DL_NOW
17949 # else
17950 # define LT_DLLAZY_OR_NOW 0
17951 # endif
17952 # endif
17953 # endif
17954 # endif
17955 #endif
17957 /* When -fvisbility=hidden is used, assume the code has been annotated
17958 correspondingly for the symbols needed. */
17959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17960 void fnord () __attribute__((visibility("default")));
17961 #endif
17963 void fnord () { int i=42; }
17964 int main ()
17966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17967 int status = $lt_dlunknown;
17969 if (self)
17971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17972 else
17974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975 else puts (dlerror ());
17977 /* dlclose (self); */
17979 else
17980 puts (dlerror ());
17982 return status;
17984 _LT_EOF
17985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17986 (eval $ac_link) 2>&5
17987 ac_status=$?
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17990 (./conftest; exit; ) >&5 2>/dev/null
17991 lt_status=$?
17992 case x$lt_status in
17993 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17996 esac
17997 else :
17998 # compilation failed
17999 lt_cv_dlopen_self=no
18002 rm -fr conftest*
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18007 $as_echo "$lt_cv_dlopen_self" >&6; }
18009 if test "x$lt_cv_dlopen_self" = xyes; then
18010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18012 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 if test "$cross_compiling" = yes; then :
18017 lt_cv_dlopen_self_static=cross
18018 else
18019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18020 lt_status=$lt_dlunknown
18021 cat > conftest.$ac_ext <<_LT_EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18025 #if HAVE_DLFCN_H
18026 #include <dlfcn.h>
18027 #endif
18029 #include <stdio.h>
18031 #ifdef RTLD_GLOBAL
18032 # define LT_DLGLOBAL RTLD_GLOBAL
18033 #else
18034 # ifdef DL_GLOBAL
18035 # define LT_DLGLOBAL DL_GLOBAL
18036 # else
18037 # define LT_DLGLOBAL 0
18038 # endif
18039 #endif
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042 find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18044 # ifdef RTLD_LAZY
18045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18046 # else
18047 # ifdef DL_LAZY
18048 # define LT_DLLAZY_OR_NOW DL_LAZY
18049 # else
18050 # ifdef RTLD_NOW
18051 # define LT_DLLAZY_OR_NOW RTLD_NOW
18052 # else
18053 # ifdef DL_NOW
18054 # define LT_DLLAZY_OR_NOW DL_NOW
18055 # else
18056 # define LT_DLLAZY_OR_NOW 0
18057 # endif
18058 # endif
18059 # endif
18060 # endif
18061 #endif
18063 /* When -fvisbility=hidden is used, assume the code has been annotated
18064 correspondingly for the symbols needed. */
18065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18066 void fnord () __attribute__((visibility("default")));
18067 #endif
18069 void fnord () { int i=42; }
18070 int main ()
18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073 int status = $lt_dlunknown;
18075 if (self)
18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18078 else
18080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 else puts (dlerror ());
18083 /* dlclose (self); */
18085 else
18086 puts (dlerror ());
18088 return status;
18090 _LT_EOF
18091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18092 (eval $ac_link) 2>&5
18093 ac_status=$?
18094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18095 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18096 (./conftest; exit; ) >&5 2>/dev/null
18097 lt_status=$?
18098 case x$lt_status in
18099 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18100 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18101 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18102 esac
18103 else :
18104 # compilation failed
18105 lt_cv_dlopen_self_static=no
18108 rm -fr conftest*
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18113 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18116 CPPFLAGS="$save_CPPFLAGS"
18117 LDFLAGS="$save_LDFLAGS"
18118 LIBS="$save_LIBS"
18120 esac
18122 case $lt_cv_dlopen_self in
18123 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18124 *) enable_dlopen_self=unknown ;;
18125 esac
18127 case $lt_cv_dlopen_self_static in
18128 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18129 *) enable_dlopen_self_static=unknown ;;
18130 esac
18149 striplib=
18150 old_striplib=
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18152 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18153 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18157 $as_echo "yes" >&6; }
18158 else
18159 # FIXME - insert some real tests, host_os isn't really good enough
18160 case $host_os in
18161 darwin*)
18162 if test -n "$STRIP" ; then
18163 striplib="$STRIP -x"
18164 old_striplib="$STRIP -S"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18167 else
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 $as_echo "no" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18176 esac
18190 # Report which library types will actually be built
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18192 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18194 $as_echo "$can_build_shared" >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18197 $as_echo_n "checking whether to build shared libraries... " >&6; }
18198 test "$can_build_shared" = "no" && enable_shared=no
18200 # On AIX, shared libraries and static libraries use the same namespace, and
18201 # are all built from PIC.
18202 case $host_os in
18203 aix3*)
18204 test "$enable_shared" = yes && enable_static=no
18205 if test -n "$RANLIB"; then
18206 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18207 postinstall_cmds='$RANLIB $lib'
18211 aix[4-9]*)
18212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18213 test "$enable_shared" = yes && enable_static=no
18216 esac
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18218 $as_echo "$enable_shared" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18221 $as_echo_n "checking whether to build static libraries... " >&6; }
18222 # Make sure either enable_shared or enable_static is yes.
18223 test "$enable_shared" = yes || enable_static=yes
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18225 $as_echo "$enable_static" >&6; }
18231 ac_ext=c
18232 ac_cpp='$CPP $CPPFLAGS'
18233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18237 CC="$lt_save_CC"
18239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18241 (test "X$CXX" != "Xg++"))) ; then
18242 ac_ext=cpp
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18249 if test -z "$CXXCPP"; then
18250 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18251 $as_echo_n "(cached) " >&6
18252 else
18253 # Double quotes because CXXCPP needs to be expanded
18254 for CXXCPP in "$CXX -E" "/lib/cpp"
18256 ac_preproc_ok=false
18257 for ac_cxx_preproc_warn_flag in '' yes
18259 # Use a header file that comes with gcc, so configuring glibc
18260 # with a fresh cross-compiler works.
18261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18262 # <limits.h> exists even on freestanding compilers.
18263 # On the NeXT, cc -E runs the code through the compiler's parser,
18264 # not just through cpp. "Syntax error" is here to catch this case.
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 #ifdef __STDC__
18268 # include <limits.h>
18269 #else
18270 # include <assert.h>
18271 #endif
18272 Syntax error
18273 _ACEOF
18274 if ac_fn_cxx_try_cpp "$LINENO"; then :
18276 else
18277 # Broken: fails on valid input.
18278 continue
18280 rm -f conftest.err conftest.$ac_ext
18282 # OK, works on sane cases. Now check whether nonexistent headers
18283 # can be detected and how.
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18286 #include <ac_nonexistent.h>
18287 _ACEOF
18288 if ac_fn_cxx_try_cpp "$LINENO"; then :
18289 # Broken: success on invalid input.
18290 continue
18291 else
18292 # Passes both tests.
18293 ac_preproc_ok=:
18294 break
18296 rm -f conftest.err conftest.$ac_ext
18298 done
18299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18300 rm -f conftest.err conftest.$ac_ext
18301 if $ac_preproc_ok; then :
18302 break
18305 done
18306 ac_cv_prog_CXXCPP=$CXXCPP
18309 CXXCPP=$ac_cv_prog_CXXCPP
18310 else
18311 ac_cv_prog_CXXCPP=$CXXCPP
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18314 $as_echo "$CXXCPP" >&6; }
18315 ac_preproc_ok=false
18316 for ac_cxx_preproc_warn_flag in '' yes
18318 # Use a header file that comes with gcc, so configuring glibc
18319 # with a fresh cross-compiler works.
18320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 # <limits.h> exists even on freestanding compilers.
18322 # On the NeXT, cc -E runs the code through the compiler's parser,
18323 # not just through cpp. "Syntax error" is here to catch this case.
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18331 Syntax error
18332 _ACEOF
18333 if ac_fn_cxx_try_cpp "$LINENO"; then :
18335 else
18336 # Broken: fails on valid input.
18337 continue
18339 rm -f conftest.err conftest.$ac_ext
18341 # OK, works on sane cases. Now check whether nonexistent headers
18342 # can be detected and how.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <ac_nonexistent.h>
18346 _ACEOF
18347 if ac_fn_cxx_try_cpp "$LINENO"; then :
18348 # Broken: success on invalid input.
18349 continue
18350 else
18351 # Passes both tests.
18352 ac_preproc_ok=:
18353 break
18355 rm -f conftest.err conftest.$ac_ext
18357 done
18358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18359 rm -f conftest.err conftest.$ac_ext
18360 if $ac_preproc_ok; then :
18362 else
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18365 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18366 See \`config.log' for more details." "$LINENO" 5; }
18369 ac_ext=c
18370 ac_cpp='$CPP $CPPFLAGS'
18371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18375 else
18376 _lt_caught_CXX_error=yes
18379 ac_ext=cpp
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18385 archive_cmds_need_lc_CXX=no
18386 allow_undefined_flag_CXX=
18387 always_export_symbols_CXX=no
18388 archive_expsym_cmds_CXX=
18389 compiler_needs_object_CXX=no
18390 export_dynamic_flag_spec_CXX=
18391 hardcode_direct_CXX=no
18392 hardcode_direct_absolute_CXX=no
18393 hardcode_libdir_flag_spec_CXX=
18394 hardcode_libdir_flag_spec_ld_CXX=
18395 hardcode_libdir_separator_CXX=
18396 hardcode_minus_L_CXX=no
18397 hardcode_shlibpath_var_CXX=unsupported
18398 hardcode_automatic_CXX=no
18399 inherit_rpath_CXX=no
18400 module_cmds_CXX=
18401 module_expsym_cmds_CXX=
18402 link_all_deplibs_CXX=unknown
18403 old_archive_cmds_CXX=$old_archive_cmds
18404 reload_flag_CXX=$reload_flag
18405 reload_cmds_CXX=$reload_cmds
18406 no_undefined_flag_CXX=
18407 whole_archive_flag_spec_CXX=
18408 enable_shared_with_static_runtimes_CXX=no
18410 # Source file extension for C++ test sources.
18411 ac_ext=cpp
18413 # Object file extension for compiled C++ test sources.
18414 objext=o
18415 objext_CXX=$objext
18417 # No sense in running all these tests if we already determined that
18418 # the CXX compiler isn't working. Some variables (like enable_shared)
18419 # are currently assumed to apply to all compilers on this platform,
18420 # and will be corrupted by setting them based on a non-working compiler.
18421 if test "$_lt_caught_CXX_error" != yes; then
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code="int some_variable = 0;"
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18435 # If no C compiler was specified, use CC.
18436 LTCC=${LTCC-"$CC"}
18438 # If no C compiler flags were specified, use CFLAGS.
18439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18441 # Allow CC to be a program name with arguments.
18442 compiler=$CC
18445 # save warnings/boilerplate of simple test code
18446 ac_outfile=conftest.$ac_objext
18447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18449 _lt_compiler_boilerplate=`cat conftest.err`
18450 $RM conftest*
18452 ac_outfile=conftest.$ac_objext
18453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18455 _lt_linker_boilerplate=`cat conftest.err`
18456 $RM -r conftest*
18459 # Allow CC to be a program name with arguments.
18460 lt_save_CC=$CC
18461 lt_save_LD=$LD
18462 lt_save_GCC=$GCC
18463 GCC=$GXX
18464 lt_save_with_gnu_ld=$with_gnu_ld
18465 lt_save_path_LD=$lt_cv_path_LD
18466 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18467 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18468 else
18469 $as_unset lt_cv_prog_gnu_ld
18471 if test -n "${lt_cv_path_LDCXX+set}"; then
18472 lt_cv_path_LD=$lt_cv_path_LDCXX
18473 else
18474 $as_unset lt_cv_path_LD
18476 test -z "${LDCXX+set}" || LD=$LDCXX
18477 CC=${CXX-"c++"}
18478 compiler=$CC
18479 compiler_CXX=$CC
18480 for cc_temp in $compiler""; do
18481 case $cc_temp in
18482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18484 \-*) ;;
18485 *) break;;
18486 esac
18487 done
18488 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18491 if test -n "$compiler"; then
18492 # We don't want -fno-exception when compiling C++ code, so set the
18493 # no_builtin_flag separately
18494 if test "$GXX" = yes; then
18495 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18496 else
18497 lt_prog_compiler_no_builtin_flag_CXX=
18500 if test "$GXX" = yes; then
18501 # Set up default GNU C++ configuration
18505 # Check whether --with-gnu-ld was given.
18506 if test "${with_gnu_ld+set}" = set; then :
18507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18508 else
18509 with_gnu_ld=no
18512 ac_prog=ld
18513 if test "$GCC" = yes; then
18514 # Check if gcc -print-prog-name=ld gives a path.
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18516 $as_echo_n "checking for ld used by $CC... " >&6; }
18517 case $host in
18518 *-*-mingw*)
18519 # gcc leaves a trailing carriage return which upsets mingw
18520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18523 esac
18524 case $ac_prog in
18525 # Accept absolute paths.
18526 [\\/]* | ?:[\\/]*)
18527 re_direlt='/[^/][^/]*/\.\./'
18528 # Canonicalize the pathname of ld
18529 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18530 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18531 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18532 done
18533 test -z "$LD" && LD="$ac_prog"
18536 # If it fails, then pretend we aren't using GCC.
18537 ac_prog=ld
18540 # If it is relative, then search for the first ld in PATH.
18541 with_gnu_ld=unknown
18543 esac
18544 elif test "$with_gnu_ld" = yes; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18546 $as_echo_n "checking for GNU ld... " >&6; }
18547 else
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18549 $as_echo_n "checking for non-GNU ld... " >&6; }
18551 if test "${lt_cv_path_LD+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 if test -z "$LD"; then
18555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18556 for ac_dir in $PATH; do
18557 IFS="$lt_save_ifs"
18558 test -z "$ac_dir" && ac_dir=.
18559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18560 lt_cv_path_LD="$ac_dir/$ac_prog"
18561 # Check to see if the program is GNU ld. I'd rather use --version,
18562 # but apparently some variants of GNU ld only accept -v.
18563 # Break only if it was the GNU/non-GNU ld that we prefer.
18564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18565 *GNU* | *'with BFD'*)
18566 test "$with_gnu_ld" != no && break
18569 test "$with_gnu_ld" != yes && break
18571 esac
18573 done
18574 IFS="$lt_save_ifs"
18575 else
18576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18580 LD="$lt_cv_path_LD"
18581 if test -n "$LD"; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18583 $as_echo "$LD" >&6; }
18584 else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18586 $as_echo "no" >&6; }
18588 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18591 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18595 case `$LD -v 2>&1 </dev/null` in
18596 *GNU* | *'with BFD'*)
18597 lt_cv_prog_gnu_ld=yes
18600 lt_cv_prog_gnu_ld=no
18602 esac
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18605 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18606 with_gnu_ld=$lt_cv_prog_gnu_ld
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18626 wlarc='${wl}'
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18630 $GREP 'no-whole-archive' > /dev/null; then
18631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18632 else
18633 whole_archive_flag_spec_CXX=
18635 else
18636 with_gnu_ld=no
18637 wlarc=
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18652 else
18653 GXX=no
18654 with_gnu_ld=no
18655 wlarc=
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18661 ld_shlibs_CXX=yes
18662 case $host_os in
18663 aix3*)
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18667 aix[4-9]*)
18668 if test "$host_cpu" = ia64; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking=no
18672 exp_sym_flag='-Bexport'
18673 no_entry_flag=""
18674 else
18675 aix_use_runtimelinking=no
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18681 for ld_flag in $LDFLAGS; do
18682 case $ld_flag in
18683 *-brtl*)
18684 aix_use_runtimelinking=yes
18685 break
18687 esac
18688 done
18690 esac
18692 exp_sym_flag='-bexport'
18693 no_entry_flag='-bnoentry'
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18702 archive_cmds_CXX=''
18703 hardcode_direct_CXX=yes
18704 hardcode_direct_absolute_CXX=yes
18705 hardcode_libdir_separator_CXX=':'
18706 link_all_deplibs_CXX=yes
18707 file_list_spec_CXX='${wl}-f,'
18709 if test "$GXX" = yes; then
18710 case $host_os in aix4.[012]|aix4.[012].*)
18711 # We only want to do this on AIX 4.2 and lower, the check
18712 # below for broken collect2 doesn't work under 4.3+
18713 collect2name=`${CC} -print-prog-name=collect2`
18714 if test -f "$collect2name" &&
18715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18716 then
18717 # We have reworked collect2
18719 else
18720 # We have old collect2
18721 hardcode_direct_CXX=unsupported
18722 # It fails to find uninstalled libraries when the uninstalled
18723 # path is not listed in the libpath. Setting hardcode_minus_L
18724 # to unsupported forces relinking
18725 hardcode_minus_L_CXX=yes
18726 hardcode_libdir_flag_spec_CXX='-L$libdir'
18727 hardcode_libdir_separator_CXX=
18729 esac
18730 shared_flag='-shared'
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag="$shared_flag "'${wl}-G'
18734 else
18735 # not using gcc
18736 if test "$host_cpu" = ia64; then
18737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18738 # chokes on -Wl,-G. The following line is correct:
18739 shared_flag='-G'
18740 else
18741 if test "$aix_use_runtimelinking" = yes; then
18742 shared_flag='${wl}-G'
18743 else
18744 shared_flag='${wl}-bM:SRE'
18749 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18750 # It seems that -bexpall does not export symbols beginning with
18751 # underscore (_), so it is better to generate a list of symbols to
18752 # export.
18753 always_export_symbols_CXX=yes
18754 if test "$aix_use_runtimelinking" = yes; then
18755 # Warning - without using the other runtime loading flags (-brtl),
18756 # -berok will link without error, but may produce a broken library.
18757 allow_undefined_flag_CXX='-berok'
18758 # Determine the default libpath from the value encoded in an empty
18759 # executable.
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18764 main ()
18768 return 0;
18770 _ACEOF
18771 if ac_fn_cxx_try_link "$LINENO"; then :
18773 lt_aix_libpath_sed='
18774 /Import File Strings/,/^$/ {
18775 /^0/ {
18776 s/^0 *\(.*\)$/\1/
18780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18781 # Check for a 64-bit object if we didn't find anything.
18782 if test -z "$aix_libpath"; then
18783 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18792 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"
18793 else
18794 if test "$host_cpu" = ia64; then
18795 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18796 allow_undefined_flag_CXX="-z nodefs"
18797 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"
18798 else
18799 # Determine the default libpath from the value encoded in an
18800 # empty executable.
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18805 main ()
18809 return 0;
18811 _ACEOF
18812 if ac_fn_cxx_try_link "$LINENO"; then :
18814 lt_aix_libpath_sed='
18815 /Import File Strings/,/^$/ {
18816 /^0/ {
18817 s/^0 *\(.*\)$/\1/
18821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18822 # Check for a 64-bit object if we didn't find anything.
18823 if test -z "$aix_libpath"; then
18824 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18831 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18832 # Warning - without using the other run time loading flags,
18833 # -berok will link without error, but may produce a broken library.
18834 no_undefined_flag_CXX=' ${wl}-bernotok'
18835 allow_undefined_flag_CXX=' ${wl}-berok'
18836 if test "$with_gnu_ld" = yes; then
18837 # We only use this code for GNU lds that support --whole-archive.
18838 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18839 else
18840 # Exported symbols can be pulled into shared objects from archives
18841 whole_archive_flag_spec_CXX='$convenience'
18843 archive_cmds_need_lc_CXX=yes
18844 # This is similar to how AIX traditionally builds its shared
18845 # libraries.
18846 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'
18851 beos*)
18852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18853 allow_undefined_flag_CXX=unsupported
18854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18855 # support --undefined. This deserves some investigation. FIXME
18856 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857 else
18858 ld_shlibs_CXX=no
18862 chorus*)
18863 case $cc_basename in
18865 # FIXME: insert proper C++ library support
18866 ld_shlibs_CXX=no
18868 esac
18871 cygwin* | mingw* | pw32* | cegcc*)
18872 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18873 # as there is no search path for DLLs.
18874 hardcode_libdir_flag_spec_CXX='-L$libdir'
18875 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18876 allow_undefined_flag_CXX=unsupported
18877 always_export_symbols_CXX=no
18878 enable_shared_with_static_runtimes_CXX=yes
18880 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18881 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'
18882 # If the export-symbols file already is a .def file (1st line
18883 # is EXPORTS), use it as is; otherwise, prepend...
18884 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18885 cp $export_symbols $output_objdir/$soname.def;
18886 else
18887 echo EXPORTS > $output_objdir/$soname.def;
18888 cat $export_symbols >> $output_objdir/$soname.def;
18890 $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'
18891 else
18892 ld_shlibs_CXX=no
18895 darwin* | rhapsody*)
18898 archive_cmds_need_lc_CXX=no
18899 hardcode_direct_CXX=no
18900 hardcode_automatic_CXX=yes
18901 hardcode_shlibpath_var_CXX=unsupported
18902 if test "$lt_cv_ld_force_load" = "yes"; then
18903 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\"`'
18904 else
18905 whole_archive_flag_spec_CXX=''
18907 link_all_deplibs_CXX=yes
18908 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18909 case $cc_basename in
18910 ifort*) _lt_dar_can_shared=yes ;;
18911 *) _lt_dar_can_shared=$GCC ;;
18912 esac
18913 if test "$_lt_dar_can_shared" = "yes"; then
18914 output_verbose_link_cmd=func_echo_all
18915 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}"
18916 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18917 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}"
18918 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}"
18919 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18920 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}"
18921 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}"
18924 else
18925 ld_shlibs_CXX=no
18930 dgux*)
18931 case $cc_basename in
18932 ec++*)
18933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18936 ghcx*)
18937 # Green Hills C++ Compiler
18938 # FIXME: insert proper C++ library support
18939 ld_shlibs_CXX=no
18942 # FIXME: insert proper C++ library support
18943 ld_shlibs_CXX=no
18945 esac
18948 freebsd2.*)
18949 # C++ shared libraries reported to be fairly broken before
18950 # switch to ELF
18951 ld_shlibs_CXX=no
18954 freebsd-elf*)
18955 archive_cmds_need_lc_CXX=no
18958 freebsd* | dragonfly*)
18959 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18960 # conventions
18961 ld_shlibs_CXX=yes
18964 gnu*)
18967 haiku*)
18968 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18969 link_all_deplibs_CXX=yes
18972 hpux9*)
18973 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18974 hardcode_libdir_separator_CXX=:
18975 export_dynamic_flag_spec_CXX='${wl}-E'
18976 hardcode_direct_CXX=yes
18977 hardcode_minus_L_CXX=yes # Not in the search PATH,
18978 # but as the default
18979 # location of the library.
18981 case $cc_basename in
18982 CC*)
18983 # FIXME: insert proper C++ library support
18984 ld_shlibs_CXX=no
18986 aCC*)
18987 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'
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18995 # dependencies.
18996 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"'
18999 if test "$GXX" = yes; then
19000 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'
19001 else
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19006 esac
19009 hpux10*|hpux11*)
19010 if test $with_gnu_ld = no; then
19011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19014 case $host_cpu in
19015 hppa*64*|ia64*)
19018 export_dynamic_flag_spec_CXX='${wl}-E'
19020 esac
19022 case $host_cpu in
19023 hppa*64*|ia64*)
19024 hardcode_direct_CXX=no
19025 hardcode_shlibpath_var_CXX=no
19028 hardcode_direct_CXX=yes
19029 hardcode_direct_absolute_CXX=yes
19030 hardcode_minus_L_CXX=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19034 esac
19036 case $cc_basename in
19037 CC*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19041 aCC*)
19042 case $host_cpu in
19043 hppa*64*)
19044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046 ia64*)
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19052 esac
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19060 # dependencies.
19061 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"'
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no; then
19066 case $host_cpu in
19067 hppa*64*)
19068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19070 ia64*)
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 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'
19076 esac
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19083 esac
19086 interix[3-9]*)
19087 hardcode_direct_CXX=no
19088 hardcode_shlibpath_var_CXX=no
19089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19090 export_dynamic_flag_spec_CXX='${wl}-E'
19091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19092 # Instead, shared libraries are loaded at an image base (0x10000000 by
19093 # default) and relocated if they conflict, which is a slow very memory
19094 # consuming and fragmenting process. To avoid this, we pick a random,
19095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19097 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'
19098 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'
19100 irix5* | irix6*)
19101 case $cc_basename in
19102 CC*)
19103 # SGI C++
19104 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'
19106 # Archives containing C++ object files must be created using
19107 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19108 # necessary to make sure instantiated templates are included
19109 # in the archive.
19110 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19113 if test "$GXX" = yes; then
19114 if test "$with_gnu_ld" = no; then
19115 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'
19116 else
19117 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'
19120 link_all_deplibs_CXX=yes
19122 esac
19123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19124 hardcode_libdir_separator_CXX=:
19125 inherit_rpath_CXX=yes
19128 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19129 case $cc_basename in
19130 KCC*)
19131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19137 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'
19138 # Commands to make compiler produce verbose output that lists
19139 # what "hidden" libraries, object files and flags are used when
19140 # linking a shared library.
19142 # There doesn't appear to be a way to prevent this compiler from
19143 # explicitly linking system object files so we need to strip them
19144 # from the output so that they don't get included in the library
19145 # dependencies.
19146 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"'
19148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19151 # Archives containing C++ object files must be created using
19152 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19153 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19155 icpc* | ecpc* )
19156 # Intel C++
19157 with_gnu_ld=yes
19158 # version 8.0 and above of icpc choke on multiply defined symbols
19159 # if we add $predep_objects and $postdep_objects, however 7.1 and
19160 # earlier do not add the objects themselves.
19161 case `$CC -V 2>&1` in
19162 *"Version 7."*)
19163 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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'
19166 *) # Version 8.0 or newer
19167 tmp_idyn=
19168 case $host_cpu in
19169 ia64*) tmp_idyn=' -i_dynamic';;
19170 esac
19171 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19174 esac
19175 archive_cmds_need_lc_CXX=no
19176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19178 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19180 pgCC* | pgcpp*)
19181 # Portland Group C++ compiler
19182 case `$CC -V` in
19183 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19184 prelink_cmds_CXX='tpldir=Template.dir~
19185 rm -rf $tpldir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19187 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19188 old_archive_cmds_CXX='tpldir=Template.dir~
19189 rm -rf $tpldir~
19190 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19191 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19192 $RANLIB $oldlib'
19193 archive_cmds_CXX='tpldir=Template.dir~
19194 rm -rf $tpldir~
19195 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19196 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19197 archive_expsym_cmds_CXX='tpldir=Template.dir~
19198 rm -rf $tpldir~
19199 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19200 $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'
19202 *) # Version 6 and above use weak symbols
19203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19204 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'
19206 esac
19208 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19210 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'
19212 cxx*)
19213 # Compaq C++
19214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19217 runpath_var=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19219 hardcode_libdir_separator_CXX=:
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19228 # dependencies.
19229 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'
19231 xl* | mpixl* | bgxl*)
19232 # IBM XL 8.0 on PPC, with GNU ld
19233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19235 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 if test "x$supports_anon_versioning" = xyes; then
19237 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19239 echo "local: *; };" >> $output_objdir/$libname.ver~
19240 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244 case `$CC -V 2>&1 | sed 5q` in
19245 *Sun\ C*)
19246 # Sun C++ 5.9
19247 no_undefined_flag_CXX=' -zdefs'
19248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 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'
19250 hardcode_libdir_flag_spec_CXX='-R$libdir'
19251 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'
19252 compiler_needs_object_CXX=yes
19254 # Not sure whether something based on
19255 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19256 # would be better.
19257 output_verbose_link_cmd='func_echo_all'
19259 # Archives containing C++ object files must be created using
19260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19261 # necessary to make sure instantiated templates are included
19262 # in the archive.
19263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19265 esac
19267 esac
19270 lynxos*)
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19275 m88k*)
19276 # FIXME: insert proper C++ library support
19277 ld_shlibs_CXX=no
19280 mvs*)
19281 case $cc_basename in
19282 cxx*)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19290 esac
19293 netbsd*)
19294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19295 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19296 wlarc=
19297 hardcode_libdir_flag_spec_CXX='-R$libdir'
19298 hardcode_direct_CXX=yes
19299 hardcode_shlibpath_var_CXX=no
19301 # Workaround some broken pre-1.5 toolchains
19302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19305 *nto* | *qnx*)
19306 ld_shlibs_CXX=yes
19309 openbsd2*)
19310 # C++ shared libraries are fairly broken
19311 ld_shlibs_CXX=no
19314 openbsd*)
19315 if test -f /usr/libexec/ld.so; then
19316 hardcode_direct_CXX=yes
19317 hardcode_shlibpath_var_CXX=no
19318 hardcode_direct_absolute_CXX=yes
19319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19322 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19323 export_dynamic_flag_spec_CXX='${wl}-E'
19324 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19326 output_verbose_link_cmd=func_echo_all
19327 else
19328 ld_shlibs_CXX=no
19332 osf3* | osf4* | osf5*)
19333 case $cc_basename in
19334 KCC*)
19335 # Kuck and Associates, Inc. (KAI) C++ Compiler
19337 # KCC will only create a shared library if the output file
19338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19339 # to its proper name (with version) after linking.
19340 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'
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19343 hardcode_libdir_separator_CXX=:
19345 # Archives containing C++ object files must be created using
19346 # the KAI C++ compiler.
19347 case $host in
19348 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19349 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19350 esac
19352 RCC*)
19353 # Rational C++ 2.4.1
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19357 cxx*)
19358 case $host in
19359 osf3*)
19360 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19361 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'
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19365 allow_undefined_flag_CXX=' -expect_unresolved \*'
19366 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'
19367 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19368 echo "-hidden">> $lib.exp~
19369 $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~
19370 $RM $lib.exp'
19371 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19373 esac
19375 hardcode_libdir_separator_CXX=:
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19384 # dependencies.
19385 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"'
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19390 case $host in
19391 osf3*)
19392 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'
19395 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'
19397 esac
19399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19400 hardcode_libdir_separator_CXX=:
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19407 else
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19412 esac
19415 psos*)
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19420 sunos4*)
19421 case $cc_basename in
19422 CC*)
19423 # Sun C++ 4.x
19424 # FIXME: insert proper C++ library support
19425 ld_shlibs_CXX=no
19427 lcc*)
19428 # Lucid
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19436 esac
19439 solaris*)
19440 case $cc_basename in
19441 CC*)
19442 # Sun C++ 4.2, 5.x and Centerline C++
19443 archive_cmds_need_lc_CXX=yes
19444 no_undefined_flag_CXX=' -zdefs'
19445 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19446 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19447 $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'
19449 hardcode_libdir_flag_spec_CXX='-R$libdir'
19450 hardcode_shlibpath_var_CXX=no
19451 case $host_os in
19452 solaris2.[0-5] | solaris2.[0-5].*) ;;
19454 # The compiler driver will combine and reorder linker options,
19455 # but understands `-z linker_flag'.
19456 # Supported since Solaris 2.6 (maybe 2.5.1?)
19457 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19459 esac
19460 link_all_deplibs_CXX=yes
19462 output_verbose_link_cmd='func_echo_all'
19464 # Archives containing C++ object files must be created using
19465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19466 # necessary to make sure instantiated templates are included
19467 # in the archive.
19468 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19470 gcx*)
19471 # Green Hills C++ Compiler
19472 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19474 # The C++ compiler must be used to create the archive.
19475 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19478 # GNU C++ compiler with Solaris linker
19479 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19480 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19481 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19482 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19484 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19486 # Commands to make compiler produce verbose output that lists
19487 # what "hidden" libraries, object files and flags are used when
19488 # linking a shared library.
19489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19490 else
19491 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19492 # platform.
19493 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19494 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19495 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19500 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19503 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19504 case $host_os in
19505 solaris2.[0-5] | solaris2.[0-5].*) ;;
19507 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19509 esac
19512 esac
19515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19516 no_undefined_flag_CXX='${wl}-z,text'
19517 archive_cmds_need_lc_CXX=no
19518 hardcode_shlibpath_var_CXX=no
19519 runpath_var='LD_RUN_PATH'
19521 case $cc_basename in
19522 CC*)
19523 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530 esac
19533 sysv5* | sco3.2v5* | sco5v6*)
19534 # Note: We can NOT use -z defs as we might desire, because we do not
19535 # link with -lc, and that would cause any symbols used from libc to
19536 # always be unresolved, which means just about no library would
19537 # ever link correctly. If we're not using GNU ld we use -z text
19538 # though, which does catch some bad symbols but isn't as heavy-handed
19539 # as -z defs.
19540 no_undefined_flag_CXX='${wl}-z,text'
19541 allow_undefined_flag_CXX='${wl}-z,nodefs'
19542 archive_cmds_need_lc_CXX=no
19543 hardcode_shlibpath_var_CXX=no
19544 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19545 hardcode_libdir_separator_CXX=':'
19546 link_all_deplibs_CXX=yes
19547 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19548 runpath_var='LD_RUN_PATH'
19550 case $cc_basename in
19551 CC*)
19552 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19555 '"$old_archive_cmds_CXX"
19556 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19557 '"$reload_cmds_CXX"
19560 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 esac
19566 tandem*)
19567 case $cc_basename in
19568 NCC*)
19569 # NonStop-UX NCC 3.20
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19574 # FIXME: insert proper C++ library support
19575 ld_shlibs_CXX=no
19577 esac
19580 vxworks*)
19581 # FIXME: insert proper C++ library support
19582 ld_shlibs_CXX=no
19586 # FIXME: insert proper C++ library support
19587 ld_shlibs_CXX=no
19589 esac
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19592 $as_echo "$ld_shlibs_CXX" >&6; }
19593 test "$ld_shlibs_CXX" = no && can_build_shared=no
19595 GCC_CXX="$GXX"
19596 LD_CXX="$LD"
19598 ## CAVEAT EMPTOR:
19599 ## There is no encapsulation within the following macros, do not change
19600 ## the running order or otherwise move them around unless you know exactly
19601 ## what you are doing...
19602 # Dependencies to place before and after the object being linked:
19603 predep_objects_CXX=
19604 postdep_objects_CXX=
19605 predeps_CXX=
19606 postdeps_CXX=
19607 compiler_lib_search_path_CXX=
19609 cat > conftest.$ac_ext <<_LT_EOF
19610 class Foo
19612 public:
19613 Foo (void) { a = 0; }
19614 private:
19615 int a;
19617 _LT_EOF
19619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19620 (eval $ac_compile) 2>&5
19621 ac_status=$?
19622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; }; then
19624 # Parse the compiler output and extract the necessary
19625 # objects, libraries and library flags.
19627 # Sentinel used to keep track of whether or not we are before
19628 # the conftest object file.
19629 pre_test_object_deps_done=no
19631 for p in `eval "$output_verbose_link_cmd"`; do
19632 case $p in
19634 -L* | -R* | -l*)
19635 # Some compilers place space between "-{L,R}" and the path.
19636 # Remove the space.
19637 if test $p = "-L" ||
19638 test $p = "-R"; then
19639 prev=$p
19640 continue
19641 else
19642 prev=
19645 if test "$pre_test_object_deps_done" = no; then
19646 case $p in
19647 -L* | -R*)
19648 # Internal compiler library paths should come after those
19649 # provided the user. The postdeps already come after the
19650 # user supplied libs so there is no need to process them.
19651 if test -z "$compiler_lib_search_path_CXX"; then
19652 compiler_lib_search_path_CXX="${prev}${p}"
19653 else
19654 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19657 # The "-l" case would never come before the object being
19658 # linked, so don't bother handling this case.
19659 esac
19660 else
19661 if test -z "$postdeps_CXX"; then
19662 postdeps_CXX="${prev}${p}"
19663 else
19664 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19669 *.$objext)
19670 # This assumes that the test object file only shows up
19671 # once in the compiler output.
19672 if test "$p" = "conftest.$objext"; then
19673 pre_test_object_deps_done=yes
19674 continue
19677 if test "$pre_test_object_deps_done" = no; then
19678 if test -z "$predep_objects_CXX"; then
19679 predep_objects_CXX="$p"
19680 else
19681 predep_objects_CXX="$predep_objects_CXX $p"
19683 else
19684 if test -z "$postdep_objects_CXX"; then
19685 postdep_objects_CXX="$p"
19686 else
19687 postdep_objects_CXX="$postdep_objects_CXX $p"
19692 *) ;; # Ignore the rest.
19694 esac
19695 done
19697 # Clean up.
19698 rm -f a.out a.exe
19699 else
19700 echo "libtool.m4: error: problem compiling CXX test program"
19703 $RM -f confest.$objext
19705 # PORTME: override above test on systems where it is broken
19706 case $host_os in
19707 interix[3-9]*)
19708 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19709 # hack all around it, let's just trust "g++" to DTRT.
19710 predep_objects_CXX=
19711 postdep_objects_CXX=
19712 postdeps_CXX=
19715 linux*)
19716 case `$CC -V 2>&1 | sed 5q` in
19717 *Sun\ C*)
19718 # Sun C++ 5.9
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4=yes
19728 esac
19730 if test "$solaris_use_stlport4" != yes; then
19731 postdeps_CXX='-library=Cstd -library=Crun'
19734 esac
19737 solaris*)
19738 case $cc_basename in
19739 CC*)
19740 # The more standards-conforming stlport4 library is
19741 # incompatible with the Cstd library. Avoid specifying
19742 # it if it's in CXXFLAGS. Ignore libCrun as
19743 # -library=stlport4 depends on it.
19744 case " $CXX $CXXFLAGS " in
19745 *" -library=stlport4 "*)
19746 solaris_use_stlport4=yes
19748 esac
19750 # Adding this requires a known-good setup of shared libraries for
19751 # Sun compiler versions before 5.6, else PIC objects from an old
19752 # archive will be linked into the output, leading to subtle bugs.
19753 if test "$solaris_use_stlport4" != yes; then
19754 postdeps_CXX='-library=Cstd -library=Crun'
19757 esac
19759 esac
19762 case " $postdeps_CXX " in
19763 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19764 esac
19765 compiler_lib_search_dirs_CXX=
19766 if test -n "${compiler_lib_search_path_CXX}"; then
19767 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19800 lt_prog_compiler_wl_CXX=
19801 lt_prog_compiler_pic_CXX=
19802 lt_prog_compiler_static_CXX=
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19807 # C++ specific cases for pic, static, wl, etc.
19808 if test "$GXX" = yes; then
19809 lt_prog_compiler_wl_CXX='-Wl,'
19810 lt_prog_compiler_static_CXX='-static'
19812 case $host_os in
19813 aix*)
19814 # All AIX code is PIC.
19815 if test "$host_cpu" = ia64; then
19816 # AIX 5 now supports IA64 processor
19817 lt_prog_compiler_static_CXX='-Bstatic'
19819 lt_prog_compiler_pic_CXX='-fPIC'
19822 amigaos*)
19823 case $host_cpu in
19824 powerpc)
19825 # see comment about AmigaOS4 .so support
19826 lt_prog_compiler_pic_CXX='-fPIC'
19828 m68k)
19829 # FIXME: we need at least 68020 code to build shared libraries, but
19830 # adding the `-m68020' flag to GCC prevents building anything better,
19831 # like `-m68040'.
19832 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19834 esac
19837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19838 # PIC is the default for these OSes.
19840 mingw* | cygwin* | os2* | pw32* | cegcc*)
19841 # This hack is so that the source file can tell whether it is being
19842 # built for inclusion in a dll (and should export symbols for example).
19843 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19844 # (--disable-auto-import) libraries
19845 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19847 darwin* | rhapsody*)
19848 # PIC is the default on this platform
19849 # Common symbols not allowed in MH_DYLIB files
19850 lt_prog_compiler_pic_CXX='-fno-common'
19852 *djgpp*)
19853 # DJGPP does not support shared libraries at all
19854 lt_prog_compiler_pic_CXX=
19856 haiku*)
19857 # PIC is the default for Haiku.
19858 # The "-static" flag exists, but is broken.
19859 lt_prog_compiler_static_CXX=
19861 interix[3-9]*)
19862 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19863 # Instead, we relocate shared libraries at runtime.
19865 sysv4*MP*)
19866 if test -d /usr/nec; then
19867 lt_prog_compiler_pic_CXX=-Kconform_pic
19870 hpux*)
19871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19873 # sets the default TLS model and affects inlining.
19874 case $host_cpu in
19875 hppa*64*)
19878 lt_prog_compiler_pic_CXX='-fPIC'
19880 esac
19882 *qnx* | *nto*)
19883 # QNX uses GNU C++, but need to define -shared option too, otherwise
19884 # it will coredump.
19885 lt_prog_compiler_pic_CXX='-fPIC -shared'
19888 lt_prog_compiler_pic_CXX='-fPIC'
19890 esac
19891 else
19892 case $host_os in
19893 aix[4-9]*)
19894 # All AIX code is PIC.
19895 if test "$host_cpu" = ia64; then
19896 # AIX 5 now supports IA64 processor
19897 lt_prog_compiler_static_CXX='-Bstatic'
19898 else
19899 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19902 chorus*)
19903 case $cc_basename in
19904 cxch68*)
19905 # Green Hills C++ Compiler
19906 # _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"
19908 esac
19910 dgux*)
19911 case $cc_basename in
19912 ec++*)
19913 lt_prog_compiler_pic_CXX='-KPIC'
19915 ghcx*)
19916 # Green Hills C++ Compiler
19917 lt_prog_compiler_pic_CXX='-pic'
19921 esac
19923 freebsd* | dragonfly*)
19924 # FreeBSD uses GNU C++
19926 hpux9* | hpux10* | hpux11*)
19927 case $cc_basename in
19928 CC*)
19929 lt_prog_compiler_wl_CXX='-Wl,'
19930 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19931 if test "$host_cpu" != ia64; then
19932 lt_prog_compiler_pic_CXX='+Z'
19935 aCC*)
19936 lt_prog_compiler_wl_CXX='-Wl,'
19937 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19938 case $host_cpu in
19939 hppa*64*|ia64*)
19940 # +Z the default
19943 lt_prog_compiler_pic_CXX='+Z'
19945 esac
19949 esac
19951 interix*)
19952 # This is c89, which is MS Visual C++ (no shared libs)
19953 # Anyone wants to do a port?
19955 irix5* | irix6* | nonstopux*)
19956 case $cc_basename in
19957 CC*)
19958 lt_prog_compiler_wl_CXX='-Wl,'
19959 lt_prog_compiler_static_CXX='-non_shared'
19960 # CC pic flag -KPIC is the default.
19964 esac
19966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19967 case $cc_basename in
19968 KCC*)
19969 # KAI C++ Compiler
19970 lt_prog_compiler_wl_CXX='--backend -Wl,'
19971 lt_prog_compiler_pic_CXX='-fPIC'
19973 ecpc* )
19974 # old Intel C++ for x86_64 which still supported -KPIC.
19975 lt_prog_compiler_wl_CXX='-Wl,'
19976 lt_prog_compiler_pic_CXX='-KPIC'
19977 lt_prog_compiler_static_CXX='-static'
19979 icpc* )
19980 # Intel C++, used to be incompatible with GCC.
19981 # ICC 10 doesn't accept -KPIC any more.
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_pic_CXX='-fPIC'
19984 lt_prog_compiler_static_CXX='-static'
19986 pgCC* | pgcpp*)
19987 # Portland Group C++ compiler
19988 lt_prog_compiler_wl_CXX='-Wl,'
19989 lt_prog_compiler_pic_CXX='-fpic'
19990 lt_prog_compiler_static_CXX='-Bstatic'
19992 cxx*)
19993 # Compaq C++
19994 # Make sure the PIC flag is empty. It appears that all Alpha
19995 # Linux and Compaq Tru64 Unix objects are PIC.
19996 lt_prog_compiler_pic_CXX=
19997 lt_prog_compiler_static_CXX='-non_shared'
19999 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20000 # IBM XL 8.0, 9.0 on PPC and BlueGene
20001 lt_prog_compiler_wl_CXX='-Wl,'
20002 lt_prog_compiler_pic_CXX='-qpic'
20003 lt_prog_compiler_static_CXX='-qstaticlink'
20006 case `$CC -V 2>&1 | sed 5q` in
20007 *Sun\ C*)
20008 # Sun C++ 5.9
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-Bstatic'
20011 lt_prog_compiler_wl_CXX='-Qoption ld '
20013 esac
20015 esac
20017 lynxos*)
20019 m88k*)
20021 mvs*)
20022 case $cc_basename in
20023 cxx*)
20024 lt_prog_compiler_pic_CXX='-W c,exportall'
20028 esac
20030 netbsd*)
20032 *qnx* | *nto*)
20033 # QNX uses GNU C++, but need to define -shared option too, otherwise
20034 # it will coredump.
20035 lt_prog_compiler_pic_CXX='-fPIC -shared'
20037 osf3* | osf4* | osf5*)
20038 case $cc_basename in
20039 KCC*)
20040 lt_prog_compiler_wl_CXX='--backend -Wl,'
20042 RCC*)
20043 # Rational C++ 2.4.1
20044 lt_prog_compiler_pic_CXX='-pic'
20046 cxx*)
20047 # Digital/Compaq C++
20048 lt_prog_compiler_wl_CXX='-Wl,'
20049 # Make sure the PIC flag is empty. It appears that all Alpha
20050 # Linux and Compaq Tru64 Unix objects are PIC.
20051 lt_prog_compiler_pic_CXX=
20052 lt_prog_compiler_static_CXX='-non_shared'
20056 esac
20058 psos*)
20060 solaris*)
20061 case $cc_basename in
20062 CC*)
20063 # Sun C++ 4.2, 5.x and Centerline C++
20064 lt_prog_compiler_pic_CXX='-KPIC'
20065 lt_prog_compiler_static_CXX='-Bstatic'
20066 lt_prog_compiler_wl_CXX='-Qoption ld '
20068 gcx*)
20069 # Green Hills C++ Compiler
20070 lt_prog_compiler_pic_CXX='-PIC'
20074 esac
20076 sunos4*)
20077 case $cc_basename in
20078 CC*)
20079 # Sun C++ 4.x
20080 lt_prog_compiler_pic_CXX='-pic'
20081 lt_prog_compiler_static_CXX='-Bstatic'
20083 lcc*)
20084 # Lucid
20085 lt_prog_compiler_pic_CXX='-pic'
20089 esac
20091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20092 case $cc_basename in
20093 CC*)
20094 lt_prog_compiler_wl_CXX='-Wl,'
20095 lt_prog_compiler_pic_CXX='-KPIC'
20096 lt_prog_compiler_static_CXX='-Bstatic'
20098 esac
20100 tandem*)
20101 case $cc_basename in
20102 NCC*)
20103 # NonStop-UX NCC 3.20
20104 lt_prog_compiler_pic_CXX='-KPIC'
20108 esac
20110 vxworks*)
20113 lt_prog_compiler_can_build_shared_CXX=no
20115 esac
20118 case $host_os in
20119 # For platforms which do not support PIC, -DPIC is meaningless:
20120 *djgpp*)
20121 lt_prog_compiler_pic_CXX=
20124 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20126 esac
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20128 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20133 # Check to make sure the PIC flag actually works.
20135 if test -n "$lt_prog_compiler_pic_CXX"; then
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20138 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20140 else
20141 lt_cv_prog_compiler_pic_works_CXX=no
20142 ac_outfile=conftest.$ac_objext
20143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20144 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20145 # Insert the option either (1) after the last *FLAGS variable, or
20146 # (2) before a word containing "conftest.", or (3) at the end.
20147 # Note that $ac_compile itself does not contain backslashes and begins
20148 # with a dollar sign (not a hyphen), so the echo should work correctly.
20149 # The option is referenced via a variable to avoid confusing sed.
20150 lt_compile=`echo "$ac_compile" | $SED \
20151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20153 -e 's:$: $lt_compiler_flag:'`
20154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20155 (eval "$lt_compile" 2>conftest.err)
20156 ac_status=$?
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 if (exit $ac_status) && test -s "$ac_outfile"; then
20160 # The compiler can only warn and ignore the option if not recognized
20161 # So say no if there are warnings other than the usual output.
20162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20165 lt_cv_prog_compiler_pic_works_CXX=yes
20168 $RM conftest*
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20172 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20174 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20175 case $lt_prog_compiler_pic_CXX in
20176 "" | " "*) ;;
20177 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20178 esac
20179 else
20180 lt_prog_compiler_pic_CXX=
20181 lt_prog_compiler_can_build_shared_CXX=no
20189 # Check to make sure the static flag actually works.
20191 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20194 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20196 else
20197 lt_cv_prog_compiler_static_works_CXX=no
20198 save_LDFLAGS="$LDFLAGS"
20199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20202 # The linker can only warn and ignore the option if not recognized
20203 # So say no if there are warnings
20204 if test -s conftest.err; then
20205 # Append any errors to the config.log.
20206 cat conftest.err 1>&5
20207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20209 if diff conftest.exp conftest.er2 >/dev/null; then
20210 lt_cv_prog_compiler_static_works_CXX=yes
20212 else
20213 lt_cv_prog_compiler_static_works_CXX=yes
20216 $RM -r conftest*
20217 LDFLAGS="$save_LDFLAGS"
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20221 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20223 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20225 else
20226 lt_prog_compiler_static_CXX=
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20234 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20236 else
20237 lt_cv_prog_compiler_c_o_CXX=no
20238 $RM -r conftest 2>/dev/null
20239 mkdir conftest
20240 cd conftest
20241 mkdir out
20242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20244 lt_compiler_flag="-o out/conftest2.$ac_objext"
20245 # Insert the option either (1) after the last *FLAGS variable, or
20246 # (2) before a word containing "conftest.", or (3) at the end.
20247 # Note that $ac_compile itself does not contain backslashes and begins
20248 # with a dollar sign (not a hyphen), so the echo should work correctly.
20249 lt_compile=`echo "$ac_compile" | $SED \
20250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20252 -e 's:$: $lt_compiler_flag:'`
20253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20254 (eval "$lt_compile" 2>out/conftest.err)
20255 ac_status=$?
20256 cat out/conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20259 then
20260 # The compiler can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20265 lt_cv_prog_compiler_c_o_CXX=yes
20268 chmod u+w . 2>&5
20269 $RM conftest*
20270 # SGI C++ compiler will create directory out/ii_files/ for
20271 # template instantiation
20272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20273 $RM out/* && rmdir out
20274 cd ..
20275 $RM -r conftest
20276 $RM conftest*
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20280 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20286 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20287 $as_echo_n "(cached) " >&6
20288 else
20289 lt_cv_prog_compiler_c_o_CXX=no
20290 $RM -r conftest 2>/dev/null
20291 mkdir conftest
20292 cd conftest
20293 mkdir out
20294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20296 lt_compiler_flag="-o out/conftest2.$ac_objext"
20297 # Insert the option either (1) after the last *FLAGS variable, or
20298 # (2) before a word containing "conftest.", or (3) at the end.
20299 # Note that $ac_compile itself does not contain backslashes and begins
20300 # with a dollar sign (not a hyphen), so the echo should work correctly.
20301 lt_compile=`echo "$ac_compile" | $SED \
20302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20304 -e 's:$: $lt_compiler_flag:'`
20305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20306 (eval "$lt_compile" 2>out/conftest.err)
20307 ac_status=$?
20308 cat out/conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20311 then
20312 # The compiler can only warn and ignore the option if not recognized
20313 # So say no if there are warnings
20314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20317 lt_cv_prog_compiler_c_o_CXX=yes
20320 chmod u+w . 2>&5
20321 $RM conftest*
20322 # SGI C++ compiler will create directory out/ii_files/ for
20323 # template instantiation
20324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20325 $RM out/* && rmdir out
20326 cd ..
20327 $RM -r conftest
20328 $RM conftest*
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20332 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20337 hard_links="nottested"
20338 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20339 # do not overwrite the value of need_locks provided by the user
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20341 $as_echo_n "checking if we can lock with hard links... " >&6; }
20342 hard_links=yes
20343 $RM conftest*
20344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20345 touch conftest.a
20346 ln conftest.a conftest.b 2>&5 || hard_links=no
20347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20349 $as_echo "$hard_links" >&6; }
20350 if test "$hard_links" = no; then
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20353 need_locks=warn
20355 else
20356 need_locks=no
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20362 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20364 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20365 case $host_os in
20366 aix[4-9]*)
20367 # If we're using GNU nm, then we don't want the "-C" option.
20368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20369 # Also, AIX nm treats weak defined symbols like other global defined
20370 # symbols, whereas GNU nm marks them as "W".
20371 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20372 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'
20373 else
20374 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'
20377 pw32*)
20378 export_symbols_cmds_CXX="$ltdll_cmds"
20380 cygwin* | mingw* | cegcc*)
20381 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'
20384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20386 esac
20387 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20390 $as_echo "$ld_shlibs_CXX" >&6; }
20391 test "$ld_shlibs_CXX" = no && can_build_shared=no
20393 with_gnu_ld_CXX=$with_gnu_ld
20401 # Do we need to explicitly link libc?
20403 case "x$archive_cmds_need_lc_CXX" in
20404 x|xyes)
20405 # Assume -lc should be added
20406 archive_cmds_need_lc_CXX=yes
20408 if test "$enable_shared" = yes && test "$GCC" = yes; then
20409 case $archive_cmds_CXX in
20410 *'~'*)
20411 # FIXME: we may have to deal with multi-command sequences.
20413 '$CC '*)
20414 # Test whether the compiler implicitly links with -lc since on some
20415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20416 # to ld, don't add -lc before -lgcc.
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20419 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20420 $as_echo_n "(cached) " >&6
20421 else
20422 $RM conftest*
20423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20426 (eval $ac_compile) 2>&5
20427 ac_status=$?
20428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20429 test $ac_status = 0; } 2>conftest.err; then
20430 soname=conftest
20431 lib=conftest
20432 libobjs=conftest.$ac_objext
20433 deplibs=
20434 wl=$lt_prog_compiler_wl_CXX
20435 pic_flag=$lt_prog_compiler_pic_CXX
20436 compiler_flags=-v
20437 linker_flags=-v
20438 verstring=
20439 output_objdir=.
20440 libname=conftest
20441 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20442 allow_undefined_flag_CXX=
20443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20444 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20445 ac_status=$?
20446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20447 test $ac_status = 0; }
20448 then
20449 lt_cv_archive_cmds_need_lc_CXX=no
20450 else
20451 lt_cv_archive_cmds_need_lc_CXX=yes
20453 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20454 else
20455 cat conftest.err 1>&5
20457 $RM conftest*
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20461 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20462 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20464 esac
20467 esac
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20535 library_names_spec=
20536 libname_spec='lib$name'
20537 soname_spec=
20538 shrext_cmds=".so"
20539 postinstall_cmds=
20540 postuninstall_cmds=
20541 finish_cmds=
20542 finish_eval=
20543 shlibpath_var=
20544 shlibpath_overrides_runpath=unknown
20545 version_type=none
20546 dynamic_linker="$host_os ld.so"
20547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20548 need_lib_prefix=unknown
20549 hardcode_into_libs=no
20551 # when you set need_version to no, make sure it does not cause -set_version
20552 # flags to be left without arguments
20553 need_version=unknown
20555 case $host_os in
20556 aix3*)
20557 version_type=linux
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20559 shlibpath_var=LIBPATH
20561 # AIX 3 has no versioning support, so we append a major version to the name.
20562 soname_spec='${libname}${release}${shared_ext}$major'
20565 aix[4-9]*)
20566 version_type=linux
20567 need_lib_prefix=no
20568 need_version=no
20569 hardcode_into_libs=yes
20570 if test "$host_cpu" = ia64; then
20571 # AIX 5 supports IA64
20572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20573 shlibpath_var=LD_LIBRARY_PATH
20574 else
20575 # With GCC up to 2.95.x, collect2 would create an import file
20576 # for dependence libraries. The import file would start with
20577 # the line `#! .'. This would cause the generated library to
20578 # depend on `.', always an invalid library. This was fixed in
20579 # development snapshots of GCC prior to 3.0.
20580 case $host_os in
20581 aix4 | aix4.[01] | aix4.[01].*)
20582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20583 echo ' yes '
20584 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20586 else
20587 can_build_shared=no
20590 esac
20591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20592 # soname into executable. Probably we can add versioning support to
20593 # collect2, so additional links can be useful in future.
20594 if test "$aix_use_runtimelinking" = yes; then
20595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20596 # instead of lib<name>.a to let people know that these are not
20597 # typical AIX shared libraries.
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599 else
20600 # We preserve .a as extension for shared libraries through AIX4.2
20601 # and later when we are not doing run time linking.
20602 library_names_spec='${libname}${release}.a $libname.a'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20605 shlibpath_var=LIBPATH
20609 amigaos*)
20610 case $host_cpu in
20611 powerpc)
20612 # Since July 2007 AmigaOS4 officially supports .so libraries.
20613 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 m68k)
20617 library_names_spec='$libname.ixlibrary $libname.a'
20618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20619 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'
20621 esac
20624 beos*)
20625 library_names_spec='${libname}${shared_ext}'
20626 dynamic_linker="$host_os ld.so"
20627 shlibpath_var=LIBRARY_PATH
20630 bsdi[45]*)
20631 version_type=linux
20632 need_version=no
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20639 # the default ld.so.conf also contains /usr/contrib/lib and
20640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20641 # libtool to hard-code these into programs
20644 cygwin* | mingw* | pw32* | cegcc*)
20645 version_type=windows
20646 shrext_cmds=".dll"
20647 need_version=no
20648 need_lib_prefix=no
20650 case $GCC,$host_os in
20651 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20652 library_names_spec='$libname.dll.a'
20653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20654 postinstall_cmds='base_file=`basename \${file}`~
20655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20656 dldir=$destdir/`dirname \$dlpath`~
20657 test -d \$dldir || mkdir -p \$dldir~
20658 $install_prog $dir/$dlname \$dldir/$dlname~
20659 chmod a+x \$dldir/$dlname~
20660 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20661 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20664 dlpath=$dir/\$dldll~
20665 $RM \$dlpath'
20666 shlibpath_overrides_runpath=yes
20668 case $host_os in
20669 cygwin*)
20670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20674 mingw* | cegcc*)
20675 # MinGW DLLs use traditional 'lib' prefix
20676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20678 pw32*)
20679 # pw32 DLLs use 'pw' prefix rather than 'lib'
20680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20682 esac
20686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20688 esac
20689 dynamic_linker='Win32 ld.exe'
20690 # FIXME: first we should search . and the directory the executable is in
20691 shlibpath_var=PATH
20694 darwin* | rhapsody*)
20695 dynamic_linker="$host_os dyld"
20696 version_type=darwin
20697 need_lib_prefix=no
20698 need_version=no
20699 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20700 soname_spec='${libname}${release}${major}$shared_ext'
20701 shlibpath_overrides_runpath=yes
20702 shlibpath_var=DYLD_LIBRARY_PATH
20703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20708 dgux*)
20709 version_type=linux
20710 need_lib_prefix=no
20711 need_version=no
20712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20713 soname_spec='${libname}${release}${shared_ext}$major'
20714 shlibpath_var=LD_LIBRARY_PATH
20717 freebsd* | dragonfly*)
20718 # DragonFly does not have aout. When/if they implement a new
20719 # versioning mechanism, adjust this.
20720 if test -x /usr/bin/objformat; then
20721 objformat=`/usr/bin/objformat`
20722 else
20723 case $host_os in
20724 freebsd[23].*) objformat=aout ;;
20725 *) objformat=elf ;;
20726 esac
20728 version_type=freebsd-$objformat
20729 case $version_type in
20730 freebsd-elf*)
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20732 need_version=no
20733 need_lib_prefix=no
20735 freebsd-*)
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20737 need_version=yes
20739 esac
20740 shlibpath_var=LD_LIBRARY_PATH
20741 case $host_os in
20742 freebsd2.*)
20743 shlibpath_overrides_runpath=yes
20745 freebsd3.[01]* | freebsdelf3.[01]*)
20746 shlibpath_overrides_runpath=yes
20747 hardcode_into_libs=yes
20749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20751 shlibpath_overrides_runpath=no
20752 hardcode_into_libs=yes
20754 *) # from 4.6 on, and DragonFly
20755 shlibpath_overrides_runpath=yes
20756 hardcode_into_libs=yes
20758 esac
20761 gnu*)
20762 version_type=linux
20763 need_lib_prefix=no
20764 need_version=no
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 hardcode_into_libs=yes
20771 haiku*)
20772 version_type=linux
20773 need_lib_prefix=no
20774 need_version=no
20775 dynamic_linker="$host_os runtime_loader"
20776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20777 soname_spec='${libname}${release}${shared_ext}$major'
20778 shlibpath_var=LIBRARY_PATH
20779 shlibpath_overrides_runpath=yes
20780 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20781 hardcode_into_libs=yes
20784 hpux9* | hpux10* | hpux11*)
20785 # Give a soname corresponding to the major version so that dld.sl refuses to
20786 # link against other versions.
20787 version_type=sunos
20788 need_lib_prefix=no
20789 need_version=no
20790 case $host_cpu in
20791 ia64*)
20792 shrext_cmds='.so'
20793 hardcode_into_libs=yes
20794 dynamic_linker="$host_os dld.so"
20795 shlibpath_var=LD_LIBRARY_PATH
20796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 soname_spec='${libname}${release}${shared_ext}$major'
20799 if test "X$HPUX_IA64_MODE" = X32; then
20800 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20801 else
20802 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20806 hppa*64*)
20807 shrext_cmds='.sl'
20808 hardcode_into_libs=yes
20809 dynamic_linker="$host_os dld.sl"
20810 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20818 shrext_cmds='.sl'
20819 dynamic_linker="$host_os dld.sl"
20820 shlibpath_var=SHLIB_PATH
20821 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
20825 esac
20826 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20827 postinstall_cmds='chmod 555 $lib'
20828 # or fails outright, so override atomically:
20829 install_override_mode=555
20832 interix[3-9]*)
20833 version_type=linux
20834 need_lib_prefix=no
20835 need_version=no
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20839 shlibpath_var=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath=no
20841 hardcode_into_libs=yes
20844 irix5* | irix6* | nonstopux*)
20845 case $host_os in
20846 nonstopux*) version_type=nonstopux ;;
20848 if test "$lt_cv_prog_gnu_ld" = yes; then
20849 version_type=linux
20850 else
20851 version_type=irix
20852 fi ;;
20853 esac
20854 need_lib_prefix=no
20855 need_version=no
20856 soname_spec='${libname}${release}${shared_ext}$major'
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20858 case $host_os in
20859 irix5* | nonstopux*)
20860 libsuff= shlibsuff=
20863 case $LD in # libtool.m4 will add one of these switches to LD
20864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20865 libsuff= shlibsuff= libmagic=32-bit;;
20866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20867 libsuff=32 shlibsuff=N32 libmagic=N32;;
20868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20870 *) libsuff= shlibsuff= libmagic=never-match;;
20871 esac
20873 esac
20874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20875 shlibpath_overrides_runpath=no
20876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20878 hardcode_into_libs=yes
20881 # No shared lib support for Linux oldld, aout, or coff.
20882 linux*oldld* | linux*aout* | linux*coff*)
20883 dynamic_linker=no
20886 # This must be Linux ELF.
20887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20888 version_type=linux
20889 need_lib_prefix=no
20890 need_version=no
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 soname_spec='${libname}${release}${shared_ext}$major'
20893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath=no
20897 # Some binutils ld are patched to set DT_RUNPATH
20898 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20899 $as_echo_n "(cached) " >&6
20900 else
20901 lt_cv_shlibpath_overrides_runpath=no
20902 save_LDFLAGS=$LDFLAGS
20903 save_libdir=$libdir
20904 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20905 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20907 /* end confdefs.h. */
20910 main ()
20914 return 0;
20916 _ACEOF
20917 if ac_fn_cxx_try_link "$LINENO"; then :
20918 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20919 lt_cv_shlibpath_overrides_runpath=yes
20922 rm -f core conftest.err conftest.$ac_objext \
20923 conftest$ac_exeext conftest.$ac_ext
20924 LDFLAGS=$save_LDFLAGS
20925 libdir=$save_libdir
20929 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20931 # This implies no fast_install, which is unacceptable.
20932 # Some rework will be needed to allow for fast_install
20933 # before this can be enabled.
20934 hardcode_into_libs=yes
20936 # Append ld.so.conf contents to the search path
20937 if test -f /etc/ld.so.conf; then
20938 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' ' '`
20939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20942 # We used to test for /lib/ld.so.1 and disable shared libraries on
20943 # powerpc, because MkLinux only supported shared libraries with the
20944 # GNU dynamic linker. Since this was broken with cross compilers,
20945 # most powerpc-linux boxes support dynamic linking these days and
20946 # people can always --disable-shared, the test was removed, and we
20947 # assume the GNU/Linux dynamic linker is in use.
20948 dynamic_linker='GNU/Linux ld.so'
20951 netbsd*)
20952 version_type=sunos
20953 need_lib_prefix=no
20954 need_version=no
20955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20958 dynamic_linker='NetBSD (a.out) ld.so'
20959 else
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 dynamic_linker='NetBSD ld.elf_so'
20964 shlibpath_var=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath=yes
20966 hardcode_into_libs=yes
20969 newsos6)
20970 version_type=linux
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath=yes
20976 *nto* | *qnx*)
20977 version_type=qnx
20978 need_lib_prefix=no
20979 need_version=no
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec='${libname}${release}${shared_ext}$major'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 shlibpath_overrides_runpath=no
20984 hardcode_into_libs=yes
20985 dynamic_linker='ldqnx.so'
20988 openbsd*)
20989 version_type=sunos
20990 sys_lib_dlsearch_path_spec="/usr/lib"
20991 need_lib_prefix=no
20992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20993 case $host_os in
20994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20995 *) need_version=no ;;
20996 esac
20997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20999 shlibpath_var=LD_LIBRARY_PATH
21000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21001 case $host_os in
21002 openbsd2.[89] | openbsd2.[89].*)
21003 shlibpath_overrides_runpath=no
21006 shlibpath_overrides_runpath=yes
21008 esac
21009 else
21010 shlibpath_overrides_runpath=yes
21014 os2*)
21015 libname_spec='$name'
21016 shrext_cmds=".dll"
21017 need_lib_prefix=no
21018 library_names_spec='$libname${shared_ext} $libname.a'
21019 dynamic_linker='OS/2 ld.exe'
21020 shlibpath_var=LIBPATH
21023 osf3* | osf4* | osf5*)
21024 version_type=osf
21025 need_lib_prefix=no
21026 need_version=no
21027 soname_spec='${libname}${release}${shared_ext}$major'
21028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var=LD_LIBRARY_PATH
21030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21034 rdos*)
21035 dynamic_linker=no
21038 solaris*)
21039 version_type=linux
21040 need_lib_prefix=no
21041 need_version=no
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 shlibpath_overrides_runpath=yes
21046 hardcode_into_libs=yes
21047 # ldd complains unless libraries are executable
21048 postinstall_cmds='chmod +x $lib'
21051 sunos4*)
21052 version_type=sunos
21053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21055 shlibpath_var=LD_LIBRARY_PATH
21056 shlibpath_overrides_runpath=yes
21057 if test "$with_gnu_ld" = yes; then
21058 need_lib_prefix=no
21060 need_version=yes
21063 sysv4 | sysv4.3*)
21064 version_type=linux
21065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21066 soname_spec='${libname}${release}${shared_ext}$major'
21067 shlibpath_var=LD_LIBRARY_PATH
21068 case $host_vendor in
21069 sni)
21070 shlibpath_overrides_runpath=no
21071 need_lib_prefix=no
21072 runpath_var=LD_RUN_PATH
21074 siemens)
21075 need_lib_prefix=no
21077 motorola)
21078 need_lib_prefix=no
21079 need_version=no
21080 shlibpath_overrides_runpath=no
21081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21083 esac
21086 sysv4*MP*)
21087 if test -d /usr/nec ;then
21088 version_type=linux
21089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21090 soname_spec='$libname${shared_ext}.$major'
21091 shlibpath_var=LD_LIBRARY_PATH
21095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21096 version_type=freebsd-elf
21097 need_lib_prefix=no
21098 need_version=no
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21100 soname_spec='${libname}${release}${shared_ext}$major'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=yes
21103 hardcode_into_libs=yes
21104 if test "$with_gnu_ld" = yes; then
21105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21106 else
21107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21108 case $host_os in
21109 sco3.2v5*)
21110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21112 esac
21114 sys_lib_dlsearch_path_spec='/usr/lib'
21117 tpf*)
21118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21119 version_type=linux
21120 need_lib_prefix=no
21121 need_version=no
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 shlibpath_var=LD_LIBRARY_PATH
21124 shlibpath_overrides_runpath=no
21125 hardcode_into_libs=yes
21128 uts4*)
21129 version_type=linux
21130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21131 soname_spec='${libname}${release}${shared_ext}$major'
21132 shlibpath_var=LD_LIBRARY_PATH
21136 dynamic_linker=no
21138 esac
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21140 $as_echo "$dynamic_linker" >&6; }
21141 test "$dynamic_linker" = no && can_build_shared=no
21143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21144 if test "$GCC" = yes; then
21145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21148 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21149 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21152 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21193 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21194 hardcode_action_CXX=
21195 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21196 test -n "$runpath_var_CXX" ||
21197 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21199 # We can hardcode non-existent directories.
21200 if test "$hardcode_direct_CXX" != no &&
21201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21202 # have to relink, otherwise we might link with an installed library
21203 # when we should be linking with a yet-to-be-installed one
21204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21205 test "$hardcode_minus_L_CXX" != no; then
21206 # Linking always hardcodes the temporary library directory.
21207 hardcode_action_CXX=relink
21208 else
21209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21210 hardcode_action_CXX=immediate
21212 else
21213 # We cannot hardcode anything, or else we can only hardcode existing
21214 # directories.
21215 hardcode_action_CXX=unsupported
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21218 $as_echo "$hardcode_action_CXX" >&6; }
21220 if test "$hardcode_action_CXX" = relink ||
21221 test "$inherit_rpath_CXX" = yes; then
21222 # Fast installation is not supported
21223 enable_fast_install=no
21224 elif test "$shlibpath_overrides_runpath" = yes ||
21225 test "$enable_shared" = no; then
21226 # Fast installation is not necessary
21227 enable_fast_install=needless
21236 fi # test -n "$compiler"
21238 CC=$lt_save_CC
21239 LDCXX=$LD
21240 LD=$lt_save_LD
21241 GCC=$lt_save_GCC
21242 with_gnu_ld=$lt_save_with_gnu_ld
21243 lt_cv_path_LDCXX=$lt_cv_path_LD
21244 lt_cv_path_LD=$lt_save_path_LD
21245 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21246 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21247 fi # test "$_lt_caught_CXX_error" != yes
21249 ac_ext=c
21250 ac_cpp='$CPP $CPPFLAGS'
21251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21270 # Only expand once:
21276 # Identify the assembler which will work hand-in-glove with the newly
21277 # built GCC, so that we can examine its features. This is the assembler
21278 # which will be driven by the driver program.
21280 # If build != host, and we aren't building gas in-tree, we identify a
21281 # build->target assembler and hope that it will have the same features
21282 # as the host->target assembler we'll be using.
21283 gcc_cv_gas_major_version=
21284 gcc_cv_gas_minor_version=
21285 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21287 if test "${gcc_cv_as+set}" = set; then :
21289 else
21291 if test -x "$DEFAULT_ASSEMBLER"; then
21292 gcc_cv_as="$DEFAULT_ASSEMBLER"
21293 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21294 && test -f ../gas/Makefile \
21295 && test x$build = x$host; then
21296 gcc_cv_as=../gas/as-new$build_exeext
21297 elif test -x as$build_exeext; then
21298 # Build using assembler in the current directory.
21299 gcc_cv_as=./as$build_exeext
21300 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21301 gcc_cv_as="$AS_FOR_TARGET"
21302 else
21303 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21304 set dummy $AS_FOR_TARGET; ac_word=$2
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21306 $as_echo_n "checking for $ac_word... " >&6; }
21307 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21308 $as_echo_n "(cached) " >&6
21309 else
21310 case $gcc_cv_as in
21311 [\\/]* | ?:[\\/]*)
21312 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21316 for as_dir in $PATH
21318 IFS=$as_save_IFS
21319 test -z "$as_dir" && as_dir=.
21320 for ac_exec_ext in '' $ac_executable_extensions; do
21321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21322 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21324 break 2
21326 done
21327 done
21328 IFS=$as_save_IFS
21331 esac
21333 gcc_cv_as=$ac_cv_path_gcc_cv_as
21334 if test -n "$gcc_cv_as"; then
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21336 $as_echo "$gcc_cv_as" >&6; }
21337 else
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21339 $as_echo "no" >&6; }
21346 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21348 case "$ORIGINAL_AS_FOR_TARGET" in
21349 ./as | ./as$build_exeext) ;;
21350 *) ac_config_files="$ac_config_files as:exec-tool.in"
21352 esac
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21355 $as_echo_n "checking what assembler to use... " >&6; }
21356 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21357 # Single tree build which includes gas. We want to prefer it
21358 # over whatever linker top-level may have detected, since
21359 # we'll use what we're building after installation anyway.
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21361 $as_echo "newly built gas" >&6; }
21362 in_tree_gas=yes
21363 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21364 for f in $gcc_cv_as_bfd_srcdir/configure \
21365 $gcc_cv_as_gas_srcdir/configure \
21366 $gcc_cv_as_gas_srcdir/configure.in \
21367 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21368 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21369 if test x$gcc_cv_gas_version != x; then
21370 break
21372 done
21373 case $gcc_cv_gas_version in
21374 VERSION=[0-9]*) ;;
21375 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21376 esac
21377 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21378 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21379 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21380 case $gcc_cv_gas_patch_version in
21381 "") gcc_cv_gas_patch_version="0" ;;
21382 esac
21383 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21384 + $gcc_cv_gas_minor_version \) \* 1000 \
21385 + $gcc_cv_gas_patch_version`
21387 in_tree_gas_is_elf=no
21388 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21389 || (grep 'obj_format = multi' ../gas/Makefile \
21390 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21391 then
21392 in_tree_gas_is_elf=yes
21394 else
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21396 $as_echo "$gcc_cv_as" >&6; }
21397 in_tree_gas=no
21400 # Identify the linker which will work hand-in-glove with the newly
21401 # built GCC, so that we can examine its features. This is the linker
21402 # which will be driven by the driver program.
21404 # If build != host, and we aren't building gas in-tree, we identify a
21405 # build->target linker and hope that it will have the same features
21406 # as the host->target linker we'll be using.
21407 gcc_cv_gld_major_version=
21408 gcc_cv_gld_minor_version=
21409 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21410 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21412 if test "${gcc_cv_ld+set}" = set; then :
21414 else
21416 if test -x "$DEFAULT_LINKER"; then
21417 gcc_cv_ld="$DEFAULT_LINKER"
21418 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21419 && test -f ../ld/Makefile \
21420 && test x$build = x$host; then
21421 gcc_cv_ld=../ld/ld-new$build_exeext
21422 elif test -x collect-ld$build_exeext; then
21423 # Build using linker in the current directory.
21424 gcc_cv_ld=./collect-ld$build_exeext
21425 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21426 gcc_cv_ld="$LD_FOR_TARGET"
21427 else
21428 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21429 set dummy $LD_FOR_TARGET; ac_word=$2
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21431 $as_echo_n "checking for $ac_word... " >&6; }
21432 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21434 else
21435 case $gcc_cv_ld in
21436 [\\/]* | ?:[\\/]*)
21437 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21441 for as_dir in $PATH
21443 IFS=$as_save_IFS
21444 test -z "$as_dir" && as_dir=.
21445 for ac_exec_ext in '' $ac_executable_extensions; do
21446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21447 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21449 break 2
21451 done
21452 done
21453 IFS=$as_save_IFS
21456 esac
21458 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21459 if test -n "$gcc_cv_ld"; then
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21461 $as_echo "$gcc_cv_ld" >&6; }
21462 else
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21464 $as_echo "no" >&6; }
21471 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21472 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21473 # if the PLUGIN_LD is set ld-new, just have it as ld
21474 # as that is the installed named.
21475 if test x$PLUGIN_LD_SUFFIX = xld-new \
21476 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21477 PLUGIN_LD_SUFFIX=ld
21480 # Check whether --with-plugin-ld was given.
21481 if test "${with_plugin_ld+set}" = set; then :
21482 withval=$with_plugin_ld; if test x"$withval" != x; then
21483 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21484 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21490 cat >>confdefs.h <<_ACEOF
21491 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21492 _ACEOF
21495 # Check to see if we are using gold instead of ld
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21497 $as_echo_n "checking whether we are using gold... " >&6; }
21498 ld_is_gold=no
21499 if test x$gcc_cv_ld != x; then
21500 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21501 | grep "GNU gold" > /dev/null; then
21502 ld_is_gold=yes
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21506 $as_echo "$ld_is_gold" >&6; }
21508 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21510 case "$ORIGINAL_LD_FOR_TARGET" in
21511 ./collect-ld | ./collect-ld$build_exeext) ;;
21512 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21514 esac
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21517 $as_echo_n "checking what linker to use... " >&6; }
21518 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21519 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21520 # Single tree build which includes ld. We want to prefer it
21521 # over whatever linker top-level may have detected, since
21522 # we'll use what we're building after installation anyway.
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21524 $as_echo "newly built ld" >&6; }
21525 in_tree_ld=yes
21526 in_tree_ld_is_elf=no
21527 if (grep 'EMUL = .*elf' ../ld/Makefile \
21528 || grep 'EMUL = .*linux' ../ld/Makefile \
21529 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21530 in_tree_ld_is_elf=yes
21531 elif test "$ld_is_gold" = yes; then
21532 in_tree_ld_is_elf=yes
21534 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
21536 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21537 if test x$gcc_cv_gld_version != x; then
21538 break
21540 done
21541 case $gcc_cv_gld_version in
21542 VERSION=[0-9]*) ;;
21543 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21544 esac
21545 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21546 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21547 else
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21549 $as_echo "$gcc_cv_ld" >&6; }
21550 in_tree_ld=no
21553 # Figure out what nm we will be using.
21554 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21555 if test "${gcc_cv_nm+set}" = set; then :
21557 else
21559 if test -f $gcc_cv_binutils_srcdir/configure.in \
21560 && test -f ../binutils/Makefile \
21561 && test x$build = x$host; then
21562 gcc_cv_nm=../binutils/nm-new$build_exeext
21563 elif test -x nm$build_exeext; then
21564 gcc_cv_nm=./nm$build_exeext
21565 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21566 gcc_cv_nm="$NM_FOR_TARGET"
21567 else
21568 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21569 set dummy $NM_FOR_TARGET; ac_word=$2
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21571 $as_echo_n "checking for $ac_word... " >&6; }
21572 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21574 else
21575 case $gcc_cv_nm in
21576 [\\/]* | ?:[\\/]*)
21577 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21581 for as_dir in $PATH
21583 IFS=$as_save_IFS
21584 test -z "$as_dir" && as_dir=.
21585 for ac_exec_ext in '' $ac_executable_extensions; do
21586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21587 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21589 break 2
21591 done
21592 done
21593 IFS=$as_save_IFS
21596 esac
21598 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21599 if test -n "$gcc_cv_nm"; then
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21601 $as_echo "$gcc_cv_nm" >&6; }
21602 else
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21604 $as_echo "no" >&6; }
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21612 $as_echo_n "checking what nm to use... " >&6; }
21613 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21614 # Single tree build which includes binutils.
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21616 $as_echo "newly built nm" >&6; }
21617 in_tree_nm=yes
21618 else
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21620 $as_echo "$gcc_cv_nm" >&6; }
21621 in_tree_nm=no
21624 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21626 case "$ORIGINAL_NM_FOR_TARGET" in
21627 ./nm | ./nm$build_exeext) ;;
21628 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21630 esac
21633 # Figure out what objdump we will be using.
21634 if test "${gcc_cv_objdump+set}" = set; then :
21636 else
21638 if test -f $gcc_cv_binutils_srcdir/configure.in \
21639 && test -f ../binutils/Makefile \
21640 && test x$build = x$host; then
21641 # Single tree build which includes binutils.
21642 gcc_cv_objdump=../binutils/objdump$build_exeext
21643 elif test -x objdump$build_exeext; then
21644 gcc_cv_objdump=./objdump$build_exeext
21645 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21646 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21647 else
21648 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21649 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21651 $as_echo_n "checking for $ac_word... " >&6; }
21652 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 case $gcc_cv_objdump in
21656 [\\/]* | ?:[\\/]*)
21657 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21663 IFS=$as_save_IFS
21664 test -z "$as_dir" && as_dir=.
21665 for ac_exec_ext in '' $ac_executable_extensions; do
21666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21667 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21669 break 2
21671 done
21672 done
21673 IFS=$as_save_IFS
21676 esac
21678 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21679 if test -n "$gcc_cv_objdump"; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21681 $as_echo "$gcc_cv_objdump" >&6; }
21682 else
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21692 $as_echo_n "checking what objdump to use... " >&6; }
21693 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21694 # Single tree build which includes binutils.
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21696 $as_echo "newly built objdump" >&6; }
21697 elif test x$gcc_cv_objdump = x; then
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21699 $as_echo "not found" >&6; }
21700 else
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21702 $as_echo "$gcc_cv_objdump" >&6; }
21705 # Figure out what readelf we will be using.
21706 if test "${gcc_cv_readelf+set}" = set; then :
21708 else
21710 if test -f $gcc_cv_binutils_srcdir/configure.in \
21711 && test -f ../binutils/Makefile \
21712 && test x$build = x$host; then
21713 # Single tree build which includes binutils.
21714 gcc_cv_readelf=../binutils/readelf$build_exeext
21715 elif test -x readelf$build_exeext; then
21716 gcc_cv_readelf=./readelf$build_exeext
21717 else
21718 # Extract the first word of "readelf", so it can be a program name with args.
21719 set dummy readelf; ac_word=$2
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21721 $as_echo_n "checking for $ac_word... " >&6; }
21722 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21723 $as_echo_n "(cached) " >&6
21724 else
21725 case $gcc_cv_readelf in
21726 [\\/]* | ?:[\\/]*)
21727 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21731 for as_dir in $PATH
21733 IFS=$as_save_IFS
21734 test -z "$as_dir" && as_dir=.
21735 for ac_exec_ext in '' $ac_executable_extensions; do
21736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21737 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21739 break 2
21741 done
21742 done
21743 IFS=$as_save_IFS
21746 esac
21748 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21749 if test -n "$gcc_cv_readelf"; then
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21751 $as_echo "$gcc_cv_readelf" >&6; }
21752 else
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 $as_echo "no" >&6; }
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21762 $as_echo_n "checking what readelf to use... " >&6; }
21763 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21764 # Single tree build which includes binutils.
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21766 $as_echo "newly built readelf" >&6; }
21767 elif test x$gcc_cv_readelf = x; then
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21769 $as_echo "not found" >&6; }
21770 else
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21772 $as_echo "$gcc_cv_readelf" >&6; }
21775 # Figure out what assembler alignment features are present.
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21777 $as_echo_n "checking assembler flags... " >&6; }
21778 if test "${gcc_cv_as_flags+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21780 else
21781 case "$target" in
21782 i[34567]86-*-linux*)
21783 gcc_cv_as_flags=--32
21785 x86_64-*-linux-gnux32)
21786 gcc_cv_as_flags=--x32
21788 x86_64-*-linux*)
21789 gcc_cv_as_flags=--64
21791 powerpc*-*-darwin*)
21792 gcc_cv_as_flags="-arch ppc"
21795 gcc_cv_as_flags=" "
21797 esac
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21800 $as_echo "$gcc_cv_as_flags" >&6; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21803 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21804 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21806 else
21807 gcc_cv_as_balign_and_p2align=no
21808 if test $in_tree_gas = yes; then
21809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21810 then gcc_cv_as_balign_and_p2align=yes
21812 elif test x$gcc_cv_as != x; then
21813 $as_echo '.balign 4
21814 .p2align 2' > conftest.s
21815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }; }
21821 then
21822 gcc_cv_as_balign_and_p2align=yes
21823 else
21824 echo "configure: failed program was" >&5
21825 cat conftest.s >&5
21827 rm -f conftest.o conftest.s
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21831 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21832 if test $gcc_cv_as_balign_and_p2align = yes; then
21834 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21839 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21840 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 gcc_cv_as_max_skip_p2align=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21846 then gcc_cv_as_max_skip_p2align=yes
21848 elif test x$gcc_cv_as != x; then
21849 $as_echo '.p2align 4,,7' > conftest.s
21850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21856 then
21857 gcc_cv_as_max_skip_p2align=yes
21858 else
21859 echo "configure: failed program was" >&5
21860 cat conftest.s >&5
21862 rm -f conftest.o conftest.s
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21866 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21867 if test $gcc_cv_as_max_skip_p2align = yes; then
21869 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21874 $as_echo_n "checking assembler for .literal16... " >&6; }
21875 if test "${gcc_cv_as_literal16+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21877 else
21878 gcc_cv_as_literal16=no
21879 if test $in_tree_gas = yes; then
21880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21881 then gcc_cv_as_literal16=yes
21883 elif test x$gcc_cv_as != x; then
21884 $as_echo '.literal16' > conftest.s
21885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890 test $ac_status = 0; }; }
21891 then
21892 gcc_cv_as_literal16=yes
21893 else
21894 echo "configure: failed program was" >&5
21895 cat conftest.s >&5
21897 rm -f conftest.o conftest.s
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21901 $as_echo "$gcc_cv_as_literal16" >&6; }
21902 if test $gcc_cv_as_literal16 = yes; then
21904 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21909 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21910 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21911 $as_echo_n "(cached) " >&6
21912 else
21913 gcc_cv_as_subsection_m1=no
21914 if test $in_tree_gas = yes; then
21915 if test $in_tree_gas_is_elf = yes \
21916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21917 then gcc_cv_as_subsection_m1=yes
21919 elif test x$gcc_cv_as != x; then
21920 $as_echo 'conftest_label1: .word 0
21921 .subsection -1
21922 conftest_label2: .word 0
21923 .previous' > conftest.s
21924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21929 test $ac_status = 0; }; }
21930 then
21931 if test x$gcc_cv_nm != x; then
21932 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21933 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21934 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21935 then :
21936 else gcc_cv_as_subsection_m1=yes
21938 rm -f conftest.nm1 conftest.nm2
21940 else
21941 echo "configure: failed program was" >&5
21942 cat conftest.s >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21948 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21949 if test $gcc_cv_as_subsection_m1 = yes; then
21951 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21956 $as_echo_n "checking assembler for .weak... " >&6; }
21957 if test "${gcc_cv_as_weak+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21959 else
21960 gcc_cv_as_weak=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21963 then gcc_cv_as_weak=yes
21965 elif test x$gcc_cv_as != x; then
21966 $as_echo ' .weak foobar' > conftest.s
21967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21972 test $ac_status = 0; }; }
21973 then
21974 gcc_cv_as_weak=yes
21975 else
21976 echo "configure: failed program was" >&5
21977 cat conftest.s >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21983 $as_echo "$gcc_cv_as_weak" >&6; }
21984 if test $gcc_cv_as_weak = yes; then
21986 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21991 $as_echo_n "checking assembler for .weakref... " >&6; }
21992 if test "${gcc_cv_as_weakref+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21994 else
21995 gcc_cv_as_weakref=no
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21998 then gcc_cv_as_weakref=yes
22000 elif test x$gcc_cv_as != x; then
22001 $as_echo ' .weakref foobar, barfnot' > conftest.s
22002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22008 then
22009 gcc_cv_as_weakref=yes
22010 else
22011 echo "configure: failed program was" >&5
22012 cat conftest.s >&5
22014 rm -f conftest.o conftest.s
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22018 $as_echo "$gcc_cv_as_weakref" >&6; }
22019 if test $gcc_cv_as_weakref = yes; then
22021 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22026 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22027 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030 gcc_cv_as_nsubspa_comdat=no
22031 if test $in_tree_gas = yes; then
22032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22033 then gcc_cv_as_nsubspa_comdat=yes
22035 elif test x$gcc_cv_as != x; then
22036 $as_echo ' .SPACE $TEXT$
22037 .NSUBSPA $CODE$,COMDAT' > conftest.s
22038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22044 then
22045 gcc_cv_as_nsubspa_comdat=yes
22046 else
22047 echo "configure: failed program was" >&5
22048 cat conftest.s >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22054 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22055 if test $gcc_cv_as_nsubspa_comdat = yes; then
22057 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22061 # .hidden needs to be supported in both the assembler and the linker,
22062 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22063 # This is irritatingly difficult to feature test for; we have to check the
22064 # date string after the version number. If we've got an in-tree
22065 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22066 # to be safe.
22067 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22069 $as_echo_n "checking assembler for .hidden... " >&6; }
22070 if test "${gcc_cv_as_hidden+set}" = set; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073 gcc_cv_as_hidden=no
22074 if test $in_tree_gas = yes; then
22075 if test $in_tree_gas_is_elf = yes \
22076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22077 then gcc_cv_as_hidden=yes
22079 elif test x$gcc_cv_as != x; then
22080 $as_echo ' .hidden foobar
22081 foobar:' > conftest.s
22082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22087 test $ac_status = 0; }; }
22088 then
22090 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22091 # STV_HIDDEN, so disable .hidden support if so.
22092 case "${target}" in
22093 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22094 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22095 cat > conftest.s <<EOF
22096 .globl hidden
22097 .hidden hidden
22098 hidden:
22099 .globl default
22100 .set default,hidden
22102 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22103 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22104 grep '\.hidden default' > /dev/null; then
22105 gcc_cv_as_hidden=no
22106 else
22107 gcc_cv_as_hidden=yes
22109 else
22110 # Assume bug is present if objdump is missing.
22111 gcc_cv_as_hidden=no
22115 gcc_cv_as_hidden=yes
22117 esac
22118 else
22119 echo "configure: failed program was" >&5
22120 cat conftest.s >&5
22122 rm -f conftest.o conftest.s
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22126 $as_echo "$gcc_cv_as_hidden" >&6; }
22128 case "${target}" in
22129 *-*-darwin*)
22130 # Darwin as has some visibility support, though with a different syntax.
22131 gcc_cv_as_hidden=yes
22133 esac
22135 # gnu_indirect_function type is an extension proposed at
22136 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22137 # selection of function implementation
22138 # Check whether --enable-gnu-indirect-function was given.
22139 if test "${enable_gnu_indirect_function+set}" = set; then :
22140 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22141 yes | no) ;;
22142 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22143 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22144 esac
22145 else
22146 enable_gnu_indirect_function="$default_gnu_indirect_function"
22150 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22152 cat >>confdefs.h <<_ACEOF
22153 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22154 _ACEOF
22158 if test $in_tree_ld != yes ; then
22159 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22160 if echo "$ld_ver" | grep GNU > /dev/null; then
22161 if test x"$ld_is_gold" = xyes; then
22162 # GNU gold --version looks like this:
22164 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22166 # We extract the binutils version which is more familiar and specific
22167 # than the gold version.
22168 ld_vers=`echo $ld_ver | sed -n \
22169 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22170 else
22171 # GNU ld --version looks like this:
22173 # GNU ld (GNU Binutils) 2.21.51.20110225
22174 ld_vers=`echo $ld_ver | sed -n \
22175 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22177 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'`
22178 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22179 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22180 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22181 else
22182 case "${target}" in
22183 *-*-solaris2*)
22184 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22185 # format.
22187 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22188 # /usr/ccs/bin/ld has been configured.
22189 ld_ver=`$gcc_cv_ld -V 2>&1`
22190 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22191 ld_vers=`echo $ld_ver | sed -n \
22192 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22193 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22194 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22197 esac
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22202 $as_echo_n "checking linker for .hidden support... " >&6; }
22203 if test "${gcc_cv_ld_hidden+set}" = set; then :
22204 $as_echo_n "(cached) " >&6
22205 else
22206 if test $in_tree_ld = yes ; then
22207 gcc_cv_ld_hidden=no
22208 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 \
22209 && test $in_tree_ld_is_elf = yes; then
22210 gcc_cv_ld_hidden=yes
22212 else
22213 gcc_cv_ld_hidden=yes
22214 if test x"$ld_is_gold" = xyes; then
22216 elif echo "$ld_ver" | grep GNU > /dev/null; then
22217 case "${target}" in
22218 mmix-knuth-mmixware)
22219 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22220 gcc_cv_ld_hidden=no
22222 esac
22223 if test 0"$ld_date" -lt 20020404; then
22224 if test -n "$ld_date"; then
22225 # If there was date string, but was earlier than 2002-04-04, fail
22226 gcc_cv_ld_hidden=no
22227 elif test -z "$ld_vers"; then
22228 # If there was no date string nor ld version number, something is wrong
22229 gcc_cv_ld_hidden=no
22230 else
22231 test -z "$ld_vers_patch" && ld_vers_patch=0
22232 if test "$ld_vers_major" -lt 2; then
22233 gcc_cv_ld_hidden=no
22234 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22235 gcc_cv_ld_hidden="no"
22236 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22237 gcc_cv_ld_hidden=no
22241 else
22242 case "${target}" in
22243 *-*-darwin*)
22244 # Darwin ld has some visibility support.
22245 gcc_cv_ld_hidden=yes
22247 hppa64*-*-hpux* | ia64*-*-hpux*)
22248 gcc_cv_ld_hidden=yes
22250 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22251 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22252 # .symbolic was only added in Solaris 9 12/02.
22253 gcc_cv_ld_hidden=yes
22256 gcc_cv_ld_hidden=no
22258 esac
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22263 $as_echo "$gcc_cv_ld_hidden" >&6; }
22264 libgcc_visibility=no
22267 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22268 libgcc_visibility=yes
22270 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22275 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22276 gcc_cv_ld_ro_rw_mix=unknown
22277 if test $in_tree_ld = yes ; then
22278 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 \
22279 && test $in_tree_ld_is_elf = yes; then
22280 gcc_cv_ld_ro_rw_mix=read-write
22282 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22283 echo '.section myfoosect, "a"' > conftest1.s
22284 echo '.section myfoosect, "aw"' > conftest2.s
22285 echo '.byte 1' >> conftest2.s
22286 echo '.section myfoosect, "a"' > conftest3.s
22287 echo '.byte 0' >> conftest3.s
22288 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22289 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22290 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22291 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22292 conftest2.o conftest3.o > /dev/null 2>&1; then
22293 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22294 | sed -e '/myfoosect/!d' -e N`
22295 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22296 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22297 gcc_cv_ld_ro_rw_mix=read-only
22298 else
22299 gcc_cv_ld_ro_rw_mix=read-write
22303 rm -f conftest.* conftest[123].*
22305 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22307 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22311 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22313 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22314 case "${target}" in
22315 *-*-solaris2*)
22317 # Solaris 2 ld -V output looks like this for a regular version:
22319 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22321 # but test versions add stuff at the end:
22323 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22325 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22326 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22327 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22328 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22329 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22330 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22333 esac
22336 # Check whether --enable-initfini-array was given.
22337 if test "${enable_initfini_array+set}" = set; then :
22338 enableval=$enable_initfini_array;
22339 else
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22342 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22343 if test "${gcc_cv_initfini_array+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22345 else
22346 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22347 case "${target}" in
22348 ia64-*)
22349 if test "$cross_compiling" = yes; then :
22350 gcc_cv_initfini_array=no
22351 else
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22355 #ifndef __ELF__
22356 #error Not an ELF OS
22357 #endif
22358 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22359 if it can be used. */
22360 static int x = -1;
22361 int main (void) { return x; }
22362 int foo (void) { x = 0; }
22363 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22365 _ACEOF
22366 if ac_fn_c_try_run "$LINENO"; then :
22367 gcc_cv_initfini_array=yes
22368 else
22369 gcc_cv_initfini_array=no
22371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22372 conftest.$ac_objext conftest.beam conftest.$ac_ext
22376 gcc_cv_initfini_array=no
22377 if test $in_tree_ld = yes ; then
22378 if test "$gcc_cv_gld_major_version" -eq 2 \
22379 -a "$gcc_cv_gld_minor_version" -ge 22 \
22380 -o "$gcc_cv_gld_major_version" -gt 2 \
22381 && test $in_tree_ld_is_elf = yes; then
22382 gcc_cv_initfini_array=yes
22384 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22385 cat > conftest.s <<\EOF
22386 .section .dtors,"a",%progbits
22387 .balign 4
22388 .byte 'A', 'A', 'A', 'A'
22389 .section .ctors,"a",%progbits
22390 .balign 4
22391 .byte 'B', 'B', 'B', 'B'
22392 .section .fini_array.65530,"a",%progbits
22393 .balign 4
22394 .byte 'C', 'C', 'C', 'C'
22395 .section .init_array.65530,"a",%progbits
22396 .balign 4
22397 .byte 'D', 'D', 'D', 'D'
22398 .section .dtors.64528,"a",%progbits
22399 .balign 4
22400 .byte 'E', 'E', 'E', 'E'
22401 .section .ctors.64528,"a",%progbits
22402 .balign 4
22403 .byte 'F', 'F', 'F', 'F'
22404 .section .fini_array.01005,"a",%progbits
22405 .balign 4
22406 .byte 'G', 'G', 'G', 'G'
22407 .section .init_array.01005,"a",%progbits
22408 .balign 4
22409 .byte 'H', 'H', 'H', 'H'
22410 .text
22411 .globl _start
22412 _start:
22414 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22415 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22416 && $gcc_cv_objdump -s -j .init_array conftest \
22417 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22418 && $gcc_cv_objdump -s -j .fini_array conftest \
22419 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22420 gcc_cv_initfini_array=yes
22422 rm -f conftest conftest.*
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22427 #ifndef __ELF__
22428 # error Not an ELF OS
22429 #endif
22430 #include <stdlib.h>
22431 #if defined __GLIBC_PREREQ
22432 # if __GLIBC_PREREQ (2, 4)
22433 # else
22434 # error GLIBC 2.4 required
22435 # endif
22436 #else
22437 # if defined __sun__ && defined __svr4__
22438 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22439 # else
22440 # error The C library not known to support .init_array/.fini_array
22441 # endif
22442 #endif
22444 _ACEOF
22445 if ac_fn_c_try_cpp "$LINENO"; then :
22447 else
22448 gcc_cv_initfini_array=no
22450 rm -f conftest.err conftest.$ac_ext;;
22451 esac
22452 else
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22454 $as_echo_n "checking cross compile... guessing... " >&6; }
22455 gcc_cv_initfini_array=no
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22459 $as_echo "$gcc_cv_initfini_array" >&6; }
22460 enable_initfini_array=$gcc_cv_initfini_array
22464 if test $enable_initfini_array = yes; then
22466 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22470 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22472 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22473 if test "${gcc_cv_as_leb128+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_leb128=no
22477 if test $in_tree_gas = yes; then
22478 if test $in_tree_gas_is_elf = yes \
22479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22480 then gcc_cv_as_leb128=yes
22482 elif test x$gcc_cv_as != x; then
22483 $as_echo ' .data
22484 .uleb128 L2 - L1
22486 .uleb128 1280
22487 .sleb128 -1010
22488 L2:' > conftest.s
22489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22495 then
22496 # GAS versions before 2.11 do not support uleb128,
22497 # despite appearing to.
22498 # ??? There exists an elf-specific test that will crash
22499 # the assembler. Perhaps it's better to figure out whether
22500 # arbitrary sections are supported and try the test.
22501 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22502 if echo "$as_ver" | grep GNU > /dev/null; then
22503 as_vers=`echo $as_ver | sed -n \
22504 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22505 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22506 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22507 if test $as_major -eq 2 && test $as_minor -lt 11
22508 then :
22509 else gcc_cv_as_leb128=yes
22512 else
22513 echo "configure: failed program was" >&5
22514 cat conftest.s >&5
22516 rm -f conftest.o conftest.s
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22520 $as_echo "$gcc_cv_as_leb128" >&6; }
22521 if test $gcc_cv_as_leb128 = yes; then
22523 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22527 # Check if we have assembler support for unwind directives.
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22529 $as_echo_n "checking assembler for cfi directives... " >&6; }
22530 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22532 else
22533 gcc_cv_as_cfi_directive=no
22534 if test x$gcc_cv_as != x; then
22535 $as_echo ' .text
22536 .cfi_startproc
22537 .cfi_offset 0, 0
22538 .cfi_same_value 1
22539 .cfi_def_cfa 1, 2
22540 .cfi_escape 1, 2, 3, 4, 5
22541 .cfi_endproc' > conftest.s
22542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22544 (eval $ac_try) 2>&5
22545 ac_status=$?
22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22547 test $ac_status = 0; }; }
22548 then
22549 case "$target" in
22550 *-*-solaris*)
22551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22552 # read-only and read-write sections, we need to make sure that the
22553 # assembler used emits read-write .eh_frame sections.
22554 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22555 if test "x$gcc_cv_objdump" != x; then
22556 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22557 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22558 gcc_cv_as_cfi_directive=no
22559 else
22560 case "$target" in
22561 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22562 # On Solaris/x86, make sure that GCC and gas agree on using
22563 # read-only .eh_frame sections for 64-bit.
22564 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22565 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22566 sed -e /.eh_frame/!d -e N | \
22567 grep READONLY > /dev/null; then
22568 gcc_cv_as_cfi_directive=yes
22569 else
22570 gcc_cv_as_cfi_directive=no
22574 gcc_cv_as_cfi_directive=yes
22576 esac
22578 else
22579 # no objdump, err on the side of caution
22580 gcc_cv_as_cfi_directive=no
22582 else
22583 gcc_cv_as_cfi_directive=yes
22586 *-*-*)
22587 gcc_cv_as_cfi_directive=yes
22589 esac
22590 else
22591 echo "configure: failed program was" >&5
22592 cat conftest.s >&5
22594 rm -f conftest.o conftest.s
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22598 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22600 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22602 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22603 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcc_cv_as_cfi_advance_working=no
22607 if test x$gcc_cv_as != x; then
22608 $as_echo ' .text
22609 .cfi_startproc
22610 .cfi_adjust_cfa_offset 64
22611 .skip 75040, 0
22612 .cfi_adjust_cfa_offset 128
22613 .cfi_endproc' > conftest.s
22614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22620 then
22622 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22623 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22624 gcc_cv_as_cfi_advance_working=yes
22627 else
22628 echo "configure: failed program was" >&5
22629 cat conftest.s >&5
22631 rm -f conftest.o conftest.s
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22635 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22637 else
22638 # no objdump, err on the side of caution
22639 gcc_cv_as_cfi_advance_working=no
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22645 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22646 _ACEOF
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22651 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22652 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654 else
22655 gcc_cv_as_cfi_personality_directive=no
22656 if test x$gcc_cv_as != x; then
22657 $as_echo ' .text
22658 .cfi_startproc
22659 .cfi_personality 0, symbol
22660 .cfi_endproc' > conftest.s
22661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22663 (eval $ac_try) 2>&5
22664 ac_status=$?
22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666 test $ac_status = 0; }; }
22667 then
22668 gcc_cv_as_cfi_personality_directive=yes
22669 else
22670 echo "configure: failed program was" >&5
22671 cat conftest.s >&5
22673 rm -f conftest.o conftest.s
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22677 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22680 cat >>confdefs.h <<_ACEOF
22681 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22682 then echo 1; else echo 0; fi`
22683 _ACEOF
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22687 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22688 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 gcc_cv_as_cfi_sections_directive=no
22692 if test x$gcc_cv_as != x; then
22693 $as_echo ' .text
22694 .cfi_sections .debug_frame, .eh_frame
22695 .cfi_startproc
22696 .cfi_endproc' > conftest.s
22697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22703 then
22704 case $target_os in
22705 win32 | pe | cygwin* | mingw32* | uwin*)
22706 # Need to check that we generated the correct relocation for the
22707 # .debug_frame section. This was fixed for binutils 2.21.
22708 gcc_cv_as_cfi_sections_directive=no
22709 if test "x$gcc_cv_objdump" != x; then
22710 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22711 grep secrel > /dev/null; then
22712 gcc_cv_as_cfi_sections_directive=yes
22717 gcc_cv_as_cfi_sections_directive=yes
22719 esac
22720 else
22721 echo "configure: failed program was" >&5
22722 cat conftest.s >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22734 then echo 1; else echo 0; fi`
22735 _ACEOF
22738 # GAS versions up to and including 2.11.0 may mis-optimize
22739 # .eh_frame data.
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22741 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22742 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22744 else
22745 gcc_cv_as_eh_frame=no
22746 if test $in_tree_gas = yes; then
22747 if test $in_tree_gas_is_elf = yes \
22748 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22749 then gcc_cv_as_eh_frame=yes
22751 elif test x$gcc_cv_as != x; then
22752 $as_echo ' .text
22753 .LFB1:
22754 .4byte 0
22755 .L1:
22756 .4byte 0
22757 .LFE1:
22758 .section .eh_frame,"aw",@progbits
22759 __FRAME_BEGIN__:
22760 .4byte .LECIE1-.LSCIE1
22761 .LSCIE1:
22762 .4byte 0x0
22763 .byte 0x1
22764 .ascii "z\0"
22765 .byte 0x1
22766 .byte 0x78
22767 .byte 0x1a
22768 .byte 0x0
22769 .byte 0x4
22770 .4byte 1
22771 .p2align 1
22772 .LECIE1:
22773 .LSFDE1:
22774 .4byte .LEFDE1-.LASFDE1
22775 .LASFDE1:
22776 .4byte .LASFDE1-__FRAME_BEGIN__
22777 .4byte .LFB1
22778 .4byte .LFE1-.LFB1
22779 .byte 0x4
22780 .4byte .LFE1-.LFB1
22781 .byte 0x4
22782 .4byte .L1-.LFB1
22783 .LEFDE1:' > conftest.s
22784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789 test $ac_status = 0; }; }
22790 then
22791 cat > conftest.lit <<EOF
22792 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22793 0010 01000000 12000000 18000000 00000000 ................
22794 0020 08000000 04080000 0044 .........D
22796 cat > conftest.big <<EOF
22797 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22798 0010 00000001 00000012 00000018 00000000 ................
22799 0020 00000008 04000000 0844 .........D
22801 # If the assembler didn't choke, and we can objdump,
22802 # and we got the correct data, then succeed.
22803 # The text in the here-document typically retains its unix-style line
22804 # endings, while the output of objdump will use host line endings.
22805 # Therefore, use diff -b for the comparisons.
22806 if test x$gcc_cv_objdump != x \
22807 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22808 | tail -3 > conftest.got \
22809 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22810 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22811 then
22812 gcc_cv_as_eh_frame=yes
22813 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815 (eval $ac_try) 2>&5
22816 ac_status=$?
22817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818 test $ac_status = 0; }; }; then
22819 gcc_cv_as_eh_frame=buggy
22820 else
22821 # Uh oh, what do we do now?
22822 gcc_cv_as_eh_frame=no
22824 else
22825 echo "configure: failed program was" >&5
22826 cat conftest.s >&5
22828 rm -f conftest.o conftest.s
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22832 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22835 if test $gcc_cv_as_eh_frame = buggy; then
22837 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22842 $as_echo_n "checking assembler for section merging support... " >&6; }
22843 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 gcc_cv_as_shf_merge=no
22847 if test $in_tree_gas = yes; then
22848 if test $in_tree_gas_is_elf = yes \
22849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22850 then gcc_cv_as_shf_merge=yes
22852 elif test x$gcc_cv_as != x; then
22853 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22860 then
22861 gcc_cv_as_shf_merge=yes
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22870 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22872 if test $gcc_cv_as_shf_merge = no; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22874 $as_echo_n "checking assembler for section merging support... " >&6; }
22875 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_shf_merge=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22882 then gcc_cv_as_shf_merge=yes
22884 elif test x$gcc_cv_as != x; then
22885 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22893 gcc_cv_as_shf_merge=yes
22894 else
22895 echo "configure: failed program was" >&5
22896 cat conftest.s >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22902 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22908 _ACEOF
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22912 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22913 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 gcc_cv_as_comdat_group=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22920 then gcc_cv_as_comdat_group=yes
22922 elif test x$gcc_cv_as != x; then
22923 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22930 then
22931 gcc_cv_as_comdat_group=yes
22932 else
22933 echo "configure: failed program was" >&5
22934 cat conftest.s >&5
22936 rm -f conftest.o conftest.s
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22940 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22942 if test $gcc_cv_as_comdat_group = yes; then
22943 gcc_cv_as_comdat_group_percent=no
22944 gcc_cv_as_comdat_group_group=no
22945 else
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22947 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22948 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 gcc_cv_as_comdat_group_percent=no
22952 if test $in_tree_gas = yes; then
22953 if test $in_tree_gas_is_elf = yes \
22954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22955 then gcc_cv_as_comdat_group_percent=yes
22957 elif test x$gcc_cv_as != x; then
22958 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22965 then
22966 gcc_cv_as_comdat_group_percent=yes
22967 else
22968 echo "configure: failed program was" >&5
22969 cat conftest.s >&5
22971 rm -f conftest.o conftest.s
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22975 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22977 if test $gcc_cv_as_comdat_group_percent = yes; then
22978 gcc_cv_as_comdat_group_group=no
22979 else
22980 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22981 gcc_cv_as_comdat_group_group=no
22983 case "${target}" in
22984 # Sun as uses a completely different syntax.
22985 *-*-solaris2*)
22986 case "${target}" in
22987 sparc*-*-solaris2*)
22988 conftest_s='
22989 .group foo,".text%foo",#comdat
22990 .section ".text%foo", #alloc,#execinstr,#progbits
22991 .globl foo
22992 foo:
22995 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22996 conftest_s='
22997 .group foo,.text%foo,#comdat
22998 .section .text%foo, "ax", @progbits
22999 .globl foo
23000 foo:
23003 esac
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23005 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23006 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23007 $as_echo_n "(cached) " >&6
23008 else
23009 gcc_cv_as_comdat_group_group=no
23010 if test x$gcc_cv_as != x; then
23011 $as_echo "$conftest_s" > conftest.s
23012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017 test $ac_status = 0; }; }
23018 then
23019 gcc_cv_as_comdat_group_group=yes
23020 else
23021 echo "configure: failed program was" >&5
23022 cat conftest.s >&5
23024 rm -f conftest.o conftest.s
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23028 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23031 esac
23034 if test x"$ld_is_gold" = xyes; then
23035 comdat_group=yes
23036 elif test $in_tree_ld = yes ; then
23037 comdat_group=no
23038 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 \
23039 && test $in_tree_ld_is_elf = yes; then
23040 comdat_group=yes
23042 elif echo "$ld_ver" | grep GNU > /dev/null; then
23043 comdat_group=yes
23044 if test 0"$ld_date" -lt 20050308; then
23045 if test -n "$ld_date"; then
23046 # If there was date string, but was earlier than 2005-03-08, fail
23047 comdat_group=no
23048 elif test "$ld_vers_major" -lt 2; then
23049 comdat_group=no
23050 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23051 comdat_group=no
23054 else
23055 case "${target}" in
23056 *-*-solaris2.1[1-9]*)
23057 comdat_group=no
23058 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23059 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23060 # version 1.688.
23062 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23063 # least ld version 1.2267.
23064 if test "$ld_vers_major" -gt 1; then
23065 comdat_group=yes
23066 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23067 comdat_group=yes
23068 elif test "$ld_vers_minor" -ge 2267; then
23069 comdat_group=yes
23073 # Assume linkers other than GNU ld don't support COMDAT group.
23074 comdat_group=no
23076 esac
23078 # Allow overriding the automatic COMDAT group tests above.
23079 # Check whether --enable-comdat was given.
23080 if test "${enable_comdat+set}" = set; then :
23081 enableval=$enable_comdat; comdat_group="$enable_comdat"
23084 if test $comdat_group = no; then
23085 gcc_cv_as_comdat_group=no
23086 gcc_cv_as_comdat_group_percent=no
23087 gcc_cv_as_comdat_group_group=no
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23092 || test $gcc_cv_as_comdat_group_percent = yes \
23093 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23094 _ACEOF
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23098 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23099 if test "${gcc_cv_as_discriminator+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23101 else
23102 gcc_cv_as_discriminator=no
23103 if test $in_tree_gas = yes; then
23104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23105 then gcc_cv_as_discriminator=yes
23107 elif test x$gcc_cv_as != x; then
23108 $as_echo ' .text
23109 .file 1 "conf.c"
23110 .loc 1 1 0 discriminator 1' > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 gcc_cv_as_discriminator=yes
23119 else
23120 echo "configure: failed program was" >&5
23121 cat conftest.s >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23127 $as_echo "$gcc_cv_as_discriminator" >&6; }
23128 if test $gcc_cv_as_discriminator = yes; then
23130 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23134 # Thread-local storage - the check is heavily parameterized.
23135 conftest_s=
23136 tls_first_major=
23137 tls_first_minor=
23138 tls_as_opt=
23139 case "$target" in
23140 alpha*-*-*)
23141 conftest_s='
23142 .section ".tdata","awT",@progbits
23143 foo: .long 25
23144 .text
23145 ldq $27,__tls_get_addr($29) !literal!1
23146 lda $16,foo($29) !tlsgd!1
23147 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23148 ldq $27,__tls_get_addr($29) !literal!2
23149 lda $16,foo($29) !tlsldm!2
23150 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23151 ldq $1,foo($29) !gotdtprel
23152 ldah $2,foo($29) !dtprelhi
23153 lda $3,foo($2) !dtprello
23154 lda $4,foo($29) !dtprel
23155 ldq $1,foo($29) !gottprel
23156 ldah $2,foo($29) !tprelhi
23157 lda $3,foo($2) !tprello
23158 lda $4,foo($29) !tprel'
23159 tls_first_major=2
23160 tls_first_minor=13
23161 tls_as_opt=--fatal-warnings
23163 cris-*-*|crisv32-*-*)
23164 conftest_s='
23165 .section ".tdata","awT",@progbits
23166 x: .long 25
23167 .text
23168 move.d x:IE,$r10
23169 nop'
23170 tls_first_major=2
23171 tls_first_minor=20
23172 tls_as_opt=--fatal-warnings
23174 frv*-*-*)
23175 conftest_s='
23176 .section ".tdata","awT",@progbits
23177 x: .long 25
23178 .text
23179 call #gettlsoff(x)'
23180 tls_first_major=2
23181 tls_first_minor=14
23183 hppa*-*-linux*)
23184 conftest_s='
23185 t1: .reg %r20
23186 t2: .reg %r21
23187 gp: .reg %r19
23188 .section ".tdata","awT",@progbits
23189 foo: .long 25
23190 .text
23191 .align 4
23192 addil LT%foo-$tls_gdidx$,gp
23193 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23194 b __tls_get_addr
23196 addil LT%foo-$tls_ldidx$,gp
23197 b __tls_get_addr
23198 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23199 addil LR%foo-$tls_dtpoff$,%ret0
23200 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23201 mfctl %cr27,%t1
23202 addil LT%foo-$tls_ieoff$,gp
23203 ldw RT%foo-$tls_ieoff$(%r1),%t2
23204 add %t1,%t2,%t3
23205 mfctl %cr27,%t1
23206 addil LR%foo-$tls_leoff$,%t1
23207 ldo RR%foo-$tls_leoff$(%r1),%t2'
23208 tls_first_major=2
23209 tls_first_minor=15
23210 tls_as_opt=--fatal-warnings
23212 arm*-*-*)
23213 conftest_s='
23214 .section ".tdata","awT",%progbits
23215 foo: .long 25
23216 .text
23217 .word foo(gottpoff)
23218 .word foo(tpoff)
23219 .word foo(tlsgd)
23220 .word foo(tlsldm)
23221 .word foo(tlsldo)'
23222 tls_first_major=2
23223 tls_first_minor=17
23225 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23226 case "$target" in
23227 i[34567]86-*-solaris2.*)
23228 on_solaris=yes
23229 tga_func=___tls_get_addr
23231 x86_64-*-solaris2.1[0-9]*)
23232 on_solaris=yes
23233 tga_func=__tls_get_addr
23236 on_solaris=no
23238 esac
23239 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23240 conftest_s='
23241 .section .tdata,"awt",@progbits'
23242 tls_first_major=0
23243 tls_first_minor=0
23245 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23247 else
23248 conftest_s='
23249 .section ".tdata","awT",@progbits'
23250 tls_first_major=2
23251 tls_first_minor=14
23252 tls_as_opt="--fatal-warnings"
23254 conftest_s="$conftest_s
23255 foo: .long 25
23256 .text
23257 movl %gs:0, %eax
23258 leal foo@tlsgd(,%ebx,1), %eax
23259 leal foo@tlsldm(%ebx), %eax
23260 leal foo@dtpoff(%eax), %edx
23261 movl foo@gottpoff(%ebx), %eax
23262 subl foo@gottpoff(%ebx), %eax
23263 addl foo@gotntpoff(%ebx), %eax
23264 movl foo@indntpoff, %eax
23265 movl \$foo@tpoff, %eax
23266 subl \$foo@tpoff, %eax
23267 leal foo@ntpoff(%ecx), %eax"
23269 x86_64-*-*)
23270 conftest_s='
23271 .section ".tdata","awT",@progbits
23272 foo: .long 25
23273 .text
23274 movq %fs:0, %rax
23275 leaq foo@TLSGD(%rip), %rdi
23276 leaq foo@TLSLD(%rip), %rdi
23277 leaq foo@DTPOFF(%rax), %rdx
23278 movq foo@GOTTPOFF(%rip), %rax
23279 movq $foo@TPOFF, %rax'
23280 tls_first_major=2
23281 tls_first_minor=14
23282 tls_as_opt=--fatal-warnings
23284 ia64-*-*)
23285 conftest_s='
23286 .section ".tdata","awT",@progbits
23287 foo: data8 25
23288 .text
23289 addl r16 = @ltoff(@dtpmod(foo#)), gp
23290 addl r17 = @ltoff(@dtprel(foo#)), gp
23291 addl r18 = @ltoff(@tprel(foo#)), gp
23292 addl r19 = @dtprel(foo#), gp
23293 adds r21 = @dtprel(foo#), r13
23294 movl r23 = @dtprel(foo#)
23295 addl r20 = @tprel(foo#), gp
23296 adds r22 = @tprel(foo#), r13
23297 movl r24 = @tprel(foo#)'
23298 tls_first_major=2
23299 tls_first_minor=13
23300 tls_as_opt=--fatal-warnings
23302 microblaze*-*-*)
23303 conftest_s='
23304 .section .tdata,"awT",@progbits
23306 .word 2
23307 .text
23308 addik r5,r20,x@TLSGD
23309 addik r5,r20,x@TLSLDM'
23310 tls_first_major=2
23311 tls_first_minor=20
23312 tls_as_opt='--fatal-warnings'
23314 mips*-*-*)
23315 conftest_s='
23316 .section .tdata,"awT",@progbits
23318 .word 2
23319 .text
23320 addiu $4, $28, %tlsgd(x)
23321 addiu $4, $28, %tlsldm(x)
23322 lui $4, %dtprel_hi(x)
23323 addiu $4, $4, %dtprel_lo(x)
23324 lw $4, %gottprel(x)($28)
23325 lui $4, %tprel_hi(x)
23326 addiu $4, $4, %tprel_lo(x)'
23327 tls_first_major=2
23328 tls_first_minor=16
23329 tls_as_opt='-32 --fatal-warnings'
23331 m68k-*-*)
23332 conftest_s='
23333 .section .tdata,"awT",@progbits
23335 .word 2
23336 .text
23337 foo:
23338 move.l x@TLSGD(%a5),%a0
23339 move.l x@TLSLDM(%a5),%a0
23340 move.l x@TLSLDO(%a5),%a0
23341 move.l x@TLSIE(%a5),%a0
23342 move.l x@TLSLE(%a5),%a0'
23343 tls_first_major=2
23344 tls_first_minor=19
23345 tls_as_opt='--fatal-warnings'
23347 aarch64*-*-*)
23348 conftest_s='
23349 .section ".tdata","awT",%progbits
23350 foo: .long 25
23351 .text
23352 adrp x0, :tlsgd:x
23353 add x0, x0, #:tlsgd_lo12:x
23354 bl __tls_get_addr
23355 nop'
23356 tls_first_major=2
23357 tls_first_minor=20
23358 tls_as_opt='--fatal-warnings'
23360 powerpc-ibm-aix*)
23361 conftest_s='
23362 .extern __get_tpointer
23363 .toc
23364 LC..1:
23365 .tc a[TC],a[TL]@le
23366 .csect .text[PR]
23367 .tlstest:
23368 lwz 9,LC..1(2)
23369 bla __get_tpointer
23370 lwzx 3,9,3
23371 .globl a
23372 .csect a[TL],4
23374 .space 4'
23375 tls_first_major=0
23376 tls_first_minor=0
23378 powerpc64*-*-*)
23379 conftest_s='
23380 .section ".tdata","awT",@progbits
23381 .align 3
23382 ld0: .space 8
23383 ld1: .space 8
23384 x1: .space 8
23385 x2: .space 8
23386 x3: .space 8
23387 .text
23388 addi 3,2,ld0@got@tlsgd
23389 bl .__tls_get_addr
23391 addi 3,2,ld1@toc
23392 bl .__tls_get_addr
23394 addi 3,2,x1@got@tlsld
23395 bl .__tls_get_addr
23397 addi 9,3,x1@dtprel
23398 bl .__tls_get_addr
23400 addis 9,3,x2@dtprel@ha
23401 addi 9,9,x2@dtprel@l
23402 bl .__tls_get_addr
23404 ld 9,x3@got@dtprel(2)
23405 add 9,9,3
23406 bl .__tls_get_addr
23407 nop'
23408 tls_first_major=2
23409 tls_first_minor=14
23410 tls_as_opt="-a64 --fatal-warnings"
23412 powerpc*-*-*)
23413 conftest_s='
23414 .section ".tdata","awT",@progbits
23415 .align 2
23416 ld0: .space 4
23417 ld1: .space 4
23418 x1: .space 4
23419 x2: .space 4
23420 x3: .space 4
23421 .text
23422 addi 3,31,ld0@got@tlsgd
23423 bl __tls_get_addr
23424 addi 3,31,x1@got@tlsld
23425 bl __tls_get_addr
23426 addi 9,3,x1@dtprel
23427 addis 9,3,x2@dtprel@ha
23428 addi 9,9,x2@dtprel@l
23429 lwz 9,x3@got@tprel(31)
23430 add 9,9,x@tls
23431 addi 9,2,x1@tprel
23432 addis 9,2,x2@tprel@ha
23433 addi 9,9,x2@tprel@l'
23434 tls_first_major=2
23435 tls_first_minor=14
23436 tls_as_opt="-a32 --fatal-warnings"
23438 s390-*-*)
23439 conftest_s='
23440 .section ".tdata","awT",@progbits
23441 foo: .long 25
23442 .text
23443 .long foo@TLSGD
23444 .long foo@TLSLDM
23445 .long foo@DTPOFF
23446 .long foo@NTPOFF
23447 .long foo@GOTNTPOFF
23448 .long foo@INDNTPOFF
23449 l %r1,foo@GOTNTPOFF(%r12)
23450 l %r1,0(%r1):tls_load:foo
23451 bas %r14,0(%r1,%r13):tls_gdcall:foo
23452 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23453 tls_first_major=2
23454 tls_first_minor=14
23455 tls_as_opt="-m31 --fatal-warnings"
23457 s390x-*-*)
23458 conftest_s='
23459 .section ".tdata","awT",@progbits
23460 foo: .long 25
23461 .text
23462 .quad foo@TLSGD
23463 .quad foo@TLSLDM
23464 .quad foo@DTPOFF
23465 .quad foo@NTPOFF
23466 .quad foo@GOTNTPOFF
23467 lg %r1,foo@GOTNTPOFF(%r12)
23468 larl %r1,foo@INDNTPOFF
23469 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23470 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23471 tls_first_major=2
23472 tls_first_minor=14
23473 tls_as_opt="-m64 -Aesame --fatal-warnings"
23475 sh-*-* | sh[34]-*-*)
23476 conftest_s='
23477 .section ".tdata","awT",@progbits
23478 foo: .long 25
23479 .text
23480 .long foo@TLSGD
23481 .long foo@TLSLDM
23482 .long foo@DTPOFF
23483 .long foo@GOTTPOFF
23484 .long foo@TPOFF'
23485 tls_first_major=2
23486 tls_first_minor=13
23487 tls_as_opt=--fatal-warnings
23489 sparc*-*-*)
23490 case "$target" in
23491 sparc*-sun-solaris2.*)
23492 on_solaris=yes
23493 tga_func=__tls_get_addr
23496 on_solaris=no
23498 esac
23499 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23500 conftest_s='
23501 .section ".tdata",#alloc,#write,#tls'
23502 tls_first_major=0
23503 tls_first_minor=0
23504 else
23505 conftest_s='
23506 .section ".tdata","awT",@progbits'
23507 tls_first_major=2
23508 tls_first_minor=14
23509 tls_as_opt="-32 --fatal-warnings"
23511 conftest_s="$conftest_s
23512 foo: .long 25
23513 .text
23514 sethi %tgd_hi22(foo), %o0
23515 add %o0, %tgd_lo10(foo), %o1
23516 add %l7, %o1, %o0, %tgd_add(foo)
23517 call __tls_get_addr, %tgd_call(foo)
23518 sethi %tldm_hi22(foo), %l1
23519 add %l1, %tldm_lo10(foo), %l2
23520 add %l7, %l2, %o0, %tldm_add(foo)
23521 call __tls_get_addr, %tldm_call(foo)
23522 sethi %tldo_hix22(foo), %l3
23523 xor %l3, %tldo_lox10(foo), %l4
23524 add %o0, %l4, %l5, %tldo_add(foo)
23525 sethi %tie_hi22(foo), %o3
23526 add %o3, %tie_lo10(foo), %o3
23527 ld [%l7 + %o3], %o2, %tie_ld(foo)
23528 add %g7, %o2, %o4, %tie_add(foo)
23529 sethi %tle_hix22(foo), %l1
23530 xor %l1, %tle_lox10(foo), %o5
23531 ld [%g7 + %o5], %o1"
23533 tilepro*-*-*)
23534 conftest_s='
23535 .section ".tdata","awT",@progbits
23536 foo: .long 25
23537 .text
23538 addli r0, zero, tls_gd(foo)
23539 auli r0, zero, tls_gd_ha16(foo)
23540 addli r0, r0, tls_gd_lo16(foo)
23541 jal __tls_get_addr
23542 addli r0, zero, tls_ie(foo)
23543 auli r0, r0, tls_ie_ha16(foo)
23544 addli r0, r0, tls_ie_lo16(foo)'
23545 tls_first_major=2
23546 tls_first_minor=22
23547 tls_as_opt="--fatal-warnings"
23549 tilegx*-*-*)
23550 conftest_s='
23551 .section ".tdata","awT",@progbits
23552 foo: .long 25
23553 .text
23554 shl16insli r0, zero, hw0_last_tls_gd(foo)
23555 shl16insli r0, zero, hw1_last_tls_gd(foo)
23556 shl16insli r0, r0, hw0_tls_gd(foo)
23557 jal __tls_get_addr
23558 shl16insli r0, zero, hw1_last_tls_ie(foo)
23559 shl16insli r0, r0, hw0_tls_ie(foo)'
23560 tls_first_major=2
23561 tls_first_minor=22
23562 tls_as_opt="--fatal-warnings"
23564 xtensa*-*-*)
23565 conftest_s='
23566 .section ".tdata","awT",@progbits
23567 foo: .long 25
23568 .text
23569 movi a8, foo@TLSFUNC
23570 movi a10, foo@TLSARG
23571 callx8.tls a8, foo@TLSCALL'
23572 tls_first_major=2
23573 tls_first_minor=19
23575 esac
23576 set_have_as_tls=no
23577 if test "x$enable_tls" = xno ; then
23578 : # TLS explicitly disabled.
23579 elif test "x$enable_tls" = xyes ; then
23580 set_have_as_tls=yes # TLS explicitly enabled.
23581 elif test -z "$tls_first_major"; then
23582 : # If we don't have a check, assume no support.
23583 else
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23585 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23586 if test "${gcc_cv_as_tls+set}" = set; then :
23587 $as_echo_n "(cached) " >&6
23588 else
23589 gcc_cv_as_tls=no
23590 if test $in_tree_gas = yes; then
23591 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23592 then gcc_cv_as_tls=yes
23594 elif test x$gcc_cv_as != x; then
23595 $as_echo "$conftest_s" > conftest.s
23596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23601 test $ac_status = 0; }; }
23602 then
23603 gcc_cv_as_tls=yes
23604 else
23605 echo "configure: failed program was" >&5
23606 cat conftest.s >&5
23608 rm -f conftest.o conftest.s
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23612 $as_echo "$gcc_cv_as_tls" >&6; }
23613 if test $gcc_cv_as_tls = yes; then
23614 set_have_as_tls=yes
23617 case "$target" in
23618 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23619 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23620 # Sun style that Sun ld and GCC don't support any longer.
23621 *-*-solaris2.*)
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23623 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23624 ld_tls_support=no
23625 # Check ld and ld.so.1 TLS support.
23626 if echo "$ld_ver" | grep GNU > /dev/null; then
23627 # Assume all interesting versions of GNU ld have TLS support.
23628 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23629 ld_tls_support=yes
23630 else
23631 case "$target" in
23632 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23633 i?86-*-solaris2.9)
23634 min_tls_ld_vers_minor=374
23636 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23637 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23638 min_tls_ld_vers_minor=343
23640 esac
23641 if test "$ld_vers_major" -gt 1 || \
23642 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23643 ld_tls_support=yes
23644 else
23645 set_have_as_tls=no
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23649 $as_echo "$ld_tls_support" >&6; }
23651 save_LIBS="$LIBS"
23652 save_LDFLAGS="$LDFLAGS"
23653 LIBS=
23654 LDFLAGS=
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23657 $as_echo_n "checking library containing $tga_func... " >&6; }
23658 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23659 # (32-bit x86) only lived in libthread, so check for that. Keep
23660 # set_have_as_tls if found, disable if not.
23661 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23663 $as_echo_n "checking for library containing $tga_func... " >&6; }
23664 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23667 ac_func_search_save_LIBS=$LIBS
23668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669 /* end confdefs.h. */
23671 /* Override any GCC internal prototype to avoid an error.
23672 Use char because int might match the return type of a GCC
23673 builtin and then its argument prototype would still apply. */
23674 #ifdef __cplusplus
23675 extern "C"
23676 #endif
23677 char $tga_func ();
23679 main ()
23681 return $tga_func ();
23683 return 0;
23685 _ACEOF
23686 for ac_lib in '' thread; do
23687 if test -z "$ac_lib"; then
23688 ac_res="none required"
23689 else
23690 ac_res=-l$ac_lib
23691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23693 if ac_fn_c_try_link "$LINENO"; then :
23694 eval "$as_ac_Search=\$ac_res"
23696 rm -f core conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext
23698 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23699 break
23701 done
23702 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23704 else
23705 eval "$as_ac_Search=no"
23707 rm conftest.$ac_ext
23708 LIBS=$ac_func_search_save_LIBS
23710 eval ac_res=\$$as_ac_Search
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23712 $as_echo "$ac_res" >&6; }
23713 eval ac_res=\$$as_ac_Search
23714 if test "$ac_res" != no; then :
23715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23717 else
23718 set_have_as_tls=no
23721 # Clear LIBS if we cannot support TLS.
23722 if test $set_have_as_tls = no; then
23723 LIBS=
23725 # Always define LIB_TLS_SPEC, even without TLS support.
23727 cat >>confdefs.h <<_ACEOF
23728 #define LIB_TLS_SPEC "$LIBS"
23729 _ACEOF
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23732 $as_echo "$LIBS" >&6; }
23734 LIBS="$save_LIBS"
23735 LDFLAGS="$save_LDFLAGS"
23737 esac
23738 if test $set_have_as_tls = yes ; then
23740 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23744 # Target-specific assembler checks.
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23747 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23748 gcc_cv_ld_static_dynamic=no
23749 gcc_cv_ld_static_option='-Bstatic'
23750 gcc_cv_ld_dynamic_option='-Bdynamic'
23751 if test $in_tree_ld = yes ; then
23752 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
23753 gcc_cv_ld_static_dynamic=yes
23755 elif test x$gcc_cv_ld != x; then
23756 # Check if linker supports -Bstatic/-Bdynamic option
23757 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23758 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23759 gcc_cv_ld_static_dynamic=yes
23760 else
23761 case "$target" in
23762 # AIX ld uses -b flags
23763 *-*-aix4.[23]* | *-*-aix[5-9]*)
23764 gcc_cv_ld_static_dynamic=yes
23765 gcc_cv_ld_static_option="-bstatic"
23766 gcc_cv_ld_dynamic_option="-bdynamic"
23768 # HP-UX ld uses -a flags to select between shared and archive.
23769 *-*-hpux*)
23770 if test x"$gnu_ld" = xno; then
23771 gcc_cv_ld_static_dynamic=yes
23772 gcc_cv_ld_static_option="-aarchive_shared"
23773 gcc_cv_ld_dynamic_option="-adefault"
23776 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23777 *-*-solaris2*)
23778 gcc_cv_ld_static_dynamic=yes
23780 esac
23783 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23785 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23788 cat >>confdefs.h <<_ACEOF
23789 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23790 _ACEOF
23793 cat >>confdefs.h <<_ACEOF
23794 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23795 _ACEOF
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23799 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23801 if test x"$demangler_in_ld" = xyes; then
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23803 $as_echo_n "checking linker --demangle support... " >&6; }
23804 gcc_cv_ld_demangle=no
23805 if test $in_tree_ld = yes; then
23806 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 \
23807 gcc_cv_ld_demangle=yes
23809 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23810 # Check if the GNU linker supports --demangle option
23811 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23812 gcc_cv_ld_demangle=yes
23815 if test x"$gcc_cv_ld_demangle" = xyes; then
23817 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23821 $as_echo "$gcc_cv_ld_demangle" >&6; }
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23825 $as_echo_n "checking linker plugin support... " >&6; }
23826 gcc_cv_lto_plugin=0
23827 if test -f liblto_plugin.la; then
23828 save_ld_ver="$ld_ver"
23829 save_ld_vers_major="$ld_vers_major"
23830 save_ld_vers_minor="$ld_vers_minor"
23831 save_ld_is_gold="$ld_is_gold"
23833 ld_is_gold=no
23835 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23836 ld_ver="GNU ld"
23837 # FIXME: ld_is_gold?
23838 ld_vers_major="$gcc_cv_gld_major_version"
23839 ld_vers_minor="$gcc_cv_gld_minor_version"
23840 else
23841 # Determine plugin linker version.
23842 # FIXME: Partial duplicate from above, generalize.
23843 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23844 if echo "$ld_ver" | grep GNU > /dev/null; then
23845 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23846 ld_is_gold=yes
23847 ld_vers=`echo $ld_ver | sed -n \
23848 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23849 else
23850 ld_vers=`echo $ld_ver | sed -n \
23851 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23853 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23854 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23858 # Determine plugin support.
23859 if echo "$ld_ver" | grep GNU > /dev/null; then
23860 # Require GNU ld or gold 2.21+ for plugin support by default.
23861 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23862 gcc_cv_lto_plugin=2
23863 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23864 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23865 gcc_cv_lto_plugin=1
23869 ld_ver="$save_ld_ver"
23870 ld_vers_major="$save_ld_vers_major"
23871 ld_vers_minor="$save_ld_vers_minor"
23872 ld_is_gold="$save_ld_is_gold"
23875 cat >>confdefs.h <<_ACEOF
23876 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23877 _ACEOF
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23880 $as_echo "$gcc_cv_lto_plugin" >&6; }
23882 case "$target" in
23883 # All TARGET_ABI_OSF targets.
23884 alpha*-*-linux* | alpha*-*-*bsd*)
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23886 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23887 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23888 $as_echo_n "(cached) " >&6
23889 else
23890 gcc_cv_as_alpha_explicit_relocs=no
23891 if test $in_tree_gas = yes; then
23892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23893 then gcc_cv_as_alpha_explicit_relocs=yes
23895 elif test x$gcc_cv_as != x; then
23896 $as_echo ' .set nomacro
23897 .text
23898 extbl $3, $2, $3 !lituse_bytoff!1
23899 ldq $2, a($29) !literal!1
23900 ldq $4, b($29) !literal!2
23901 ldq_u $3, 0($2) !lituse_base!1
23902 ldq $27, f($29) !literal!5
23903 jsr $26, ($27), f !lituse_jsr!5
23904 ldah $29, 0($26) !gpdisp!3
23905 lda $0, c($29) !gprel
23906 ldah $1, d($29) !gprelhigh
23907 lda $1, d($1) !gprellow
23908 lda $29, 0($29) !gpdisp!3' > conftest.s
23909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23915 then
23916 gcc_cv_as_alpha_explicit_relocs=yes
23917 else
23918 echo "configure: failed program was" >&5
23919 cat conftest.s >&5
23921 rm -f conftest.o conftest.s
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23925 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23926 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23928 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23932 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23933 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23936 gcc_cv_as_alpha_jsrdirect_relocs=no
23937 if test $in_tree_gas = yes; then
23938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23939 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23941 elif test x$gcc_cv_as != x; then
23942 $as_echo ' .set nomacro
23943 .text
23944 ldq $27, a($29) !literal!1
23945 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23952 then
23953 gcc_cv_as_alpha_jsrdirect_relocs=yes
23954 else
23955 echo "configure: failed program was" >&5
23956 cat conftest.s >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23962 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23963 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23965 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23970 cris-*-*)
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23972 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23973 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976 gcc_cv_as_cris_no_mul_bug=no
23977 if test $in_tree_gas = yes; then
23978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23979 then gcc_cv_as_cris_no_mul_bug=yes
23981 elif test x$gcc_cv_as != x; then
23982 $as_echo '.text' > conftest.s
23983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23986 ac_status=$?
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23989 then
23990 gcc_cv_as_cris_no_mul_bug=yes
23991 else
23992 echo "configure: failed program was" >&5
23993 cat conftest.s >&5
23995 rm -f conftest.o conftest.s
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23999 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24000 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24002 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24007 sparc*-*-*)
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24009 $as_echo_n "checking assembler for .register... " >&6; }
24010 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24011 $as_echo_n "(cached) " >&6
24012 else
24013 gcc_cv_as_sparc_register_op=no
24014 if test x$gcc_cv_as != x; then
24015 $as_echo '.register %g2, #scratch' > conftest.s
24016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24022 then
24023 gcc_cv_as_sparc_register_op=yes
24024 else
24025 echo "configure: failed program was" >&5
24026 cat conftest.s >&5
24028 rm -f conftest.o conftest.s
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24032 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24033 if test $gcc_cv_as_sparc_register_op = yes; then
24035 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24040 $as_echo_n "checking assembler for #nobits... " >&6; }
24041 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24042 $as_echo_n "(cached) " >&6
24043 else
24044 gcc_cv_as_sparc_nobits=no
24045 if test x$gcc_cv_as != x; then
24046 $as_echo '.section "nobits",#alloc,#write,#nobits
24047 .section "progbits",#alloc,#write,#progbits' > conftest.s
24048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24050 (eval $ac_try) 2>&5
24051 ac_status=$?
24052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24053 test $ac_status = 0; }; }
24054 then
24055 gcc_cv_as_sparc_nobits=yes
24056 else
24057 echo "configure: failed program was" >&5
24058 cat conftest.s >&5
24060 rm -f conftest.o conftest.s
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24064 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24067 cat >>confdefs.h <<_ACEOF
24068 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24069 _ACEOF
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24073 $as_echo_n "checking assembler for -relax option... " >&6; }
24074 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24076 else
24077 gcc_cv_as_sparc_relax=no
24078 if test x$gcc_cv_as != x; then
24079 $as_echo '.text' > conftest.s
24080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24086 then
24087 gcc_cv_as_sparc_relax=yes
24088 else
24089 echo "configure: failed program was" >&5
24090 cat conftest.s >&5
24092 rm -f conftest.o conftest.s
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24096 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24097 if test $gcc_cv_as_sparc_relax = yes; then
24099 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24104 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24105 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24107 else
24108 gcc_cv_as_sparc_gotdata_op=no
24109 if test x$gcc_cv_as != x; then
24110 $as_echo '.text
24111 .align 4
24112 foo:
24114 bar:
24115 sethi %gdop_hix22(foo), %g1
24116 xor %g1, %gdop_lox10(foo), %g1
24117 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24123 test $ac_status = 0; }; }
24124 then
24125 if test x$gcc_cv_ld != x \
24126 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24127 if test x$gcc_cv_objdump != x; then
24128 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24129 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24130 gcc_cv_as_sparc_gotdata_op=no
24131 else
24132 gcc_cv_as_sparc_gotdata_op=yes
24136 rm -f conftest
24137 else
24138 echo "configure: failed program was" >&5
24139 cat conftest.s >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24145 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24146 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24148 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24153 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24154 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24155 $as_echo_n "(cached) " >&6
24156 else
24157 gcc_cv_as_sparc_ua_pcrel=no
24158 if test x$gcc_cv_as != x; then
24159 $as_echo '.text
24160 foo:
24162 .data
24163 .align 4
24164 .byte 0
24165 .uaword %r_disp32(foo)' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
24174 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24175 gcc_cv_as_sparc_ua_pcrel=yes
24177 rm -f conftest
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24186 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24187 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24189 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24193 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24194 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 gcc_cv_as_sparc_ua_pcrel_hidden=no
24198 if test x$gcc_cv_as != x; then
24199 $as_echo '.data
24200 .align 4
24201 .byte 0x31
24202 .uaword %r_disp32(foo)
24203 .byte 0x32, 0x33, 0x34
24204 .global foo
24205 .hidden foo
24206 foo:
24207 .skip 4' > conftest.s
24208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213 test $ac_status = 0; }; }
24214 then
24215 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24216 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24217 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24218 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24219 if $gcc_cv_objdump -R conftest 2> /dev/null \
24220 | grep 'DISP32' > /dev/null 2>&1; then
24222 else
24223 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24226 rm -f conftest
24227 else
24228 echo "configure: failed program was" >&5
24229 cat conftest.s >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24235 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24236 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24238 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24242 fi # unaligned pcrel relocs
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24245 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24246 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24247 $as_echo_n "(cached) " >&6
24248 else
24249 gcc_cv_as_sparc_offsetable_lo10=no
24250 if test x$gcc_cv_as != x; then
24251 $as_echo '.text
24252 or %g1, %lo(ab) + 12, %g1
24253 or %g1, %lo(ab + 12), %g1' > conftest.s
24254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24256 (eval $ac_try) 2>&5
24257 ac_status=$?
24258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24259 test $ac_status = 0; }; }
24260 then
24261 if test x$gcc_cv_objdump != x \
24262 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24263 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24264 gcc_cv_as_sparc_offsetable_lo10=yes
24266 else
24267 echo "configure: failed program was" >&5
24268 cat conftest.s >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24274 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24275 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24277 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24282 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24283 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 gcc_cv_as_sparc_fmaf=no
24287 if test x$gcc_cv_as != x; then
24288 $as_echo '.text
24289 .register %g2, #scratch
24290 .register %g3, #scratch
24291 .align 4
24292 fmaddd %f0, %f2, %f4, %f6
24293 addxccc %g1, %g2, %g3
24294 fsrl32 %f2, %f4, %f8
24295 fnaddd %f10, %f12, %f14' > conftest.s
24296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24299 ac_status=$?
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24302 then
24303 gcc_cv_as_sparc_fmaf=yes
24304 else
24305 echo "configure: failed program was" >&5
24306 cat conftest.s >&5
24308 rm -f conftest.o conftest.s
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24312 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24313 if test $gcc_cv_as_sparc_fmaf = yes; then
24315 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24320 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24321 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24323 else
24324 gcc_cv_as_sparc_sparc4=no
24325 if test x$gcc_cv_as != x; then
24326 $as_echo '.text
24327 .register %g2, #scratch
24328 .register %g3, #scratch
24329 .align 4
24330 cxbe %g2, %g3, 1f
24331 1: cwbneg %g2, %g3, 1f
24332 1: sha1
24334 aes_kexpand0 %f4, %f6, %f8
24335 des_round %f38, %f40, %f42, %f44
24336 camellia_f %f54, %f56, %f58, %f60
24337 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340 (eval $ac_try) 2>&5
24341 ac_status=$?
24342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343 test $ac_status = 0; }; }
24344 then
24345 gcc_cv_as_sparc_sparc4=yes
24346 else
24347 echo "configure: failed program was" >&5
24348 cat conftest.s >&5
24350 rm -f conftest.o conftest.s
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24354 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24355 if test $gcc_cv_as_sparc_sparc4 = yes; then
24357 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24362 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24363 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24365 else
24366 gcc_cv_as_sparc_leon=no
24367 if test x$gcc_cv_as != x; then
24368 $as_echo '.text
24369 .register %g2, #scratch
24370 .register %g3, #scratch
24371 .align 4
24372 smac %g2, %g3, %g1
24373 umac %g2, %g3, %g1
24374 cas [%g2], %g3, %g1' > conftest.s
24375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380 test $ac_status = 0; }; }
24381 then
24382 gcc_cv_as_sparc_leon=yes
24383 else
24384 echo "configure: failed program was" >&5
24385 cat conftest.s >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24391 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24392 if test $gcc_cv_as_sparc_leon = yes; then
24394 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24399 i[34567]86-*-* | x86_64-*-*)
24400 case $target_os in
24401 cygwin*)
24402 # Full C++ conformance when using a shared libstdc++-v3 requires some
24403 # support from the Cygwin DLL, which in more recent versions exports
24404 # wrappers to aid in interposing and redirecting operators new, delete,
24405 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24406 # are configuring for a version of Cygwin that exports the wrappers.
24407 if test x$host = x$target && test x$host_cpu = xi686; then
24408 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24409 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24410 gcc_ac_cygwin_dll_wrappers=yes
24411 else
24412 gcc_ac_cygwin_dll_wrappers=no
24415 else
24416 # Can't check presence of libc functions during cross-compile, so
24417 # we just have to assume we're building for an up-to-date target.
24418 gcc_ac_cygwin_dll_wrappers=yes
24421 cat >>confdefs.h <<_ACEOF
24422 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24423 _ACEOF
24425 esac
24426 case $target_os in
24427 cygwin* | pe | mingw32* | interix*)
24428 # Recent binutils allows the three-operand form of ".comm" on PE. This
24429 # definition is used unconditionally to initialise the default state of
24430 # the target option variable that governs usage of the feature.
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24432 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24433 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 gcc_cv_as_comm_has_align=no
24437 if test $in_tree_gas = yes; then
24438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24439 then gcc_cv_as_comm_has_align=yes
24441 elif test x$gcc_cv_as != x; then
24442 $as_echo '.comm foo,1,32' > conftest.s
24443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24449 then
24450 gcc_cv_as_comm_has_align=yes
24451 else
24452 echo "configure: failed program was" >&5
24453 cat conftest.s >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24459 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24464 _ACEOF
24466 # Used for DWARF 2 in PE
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24468 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24471 else
24472 gcc_cv_as_ix86_pe_secrel32=no
24473 if test $in_tree_gas = yes; then
24474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24475 then gcc_cv_as_ix86_pe_secrel32=yes
24477 elif test x$gcc_cv_as != x; then
24478 $as_echo '.text
24479 foo: nop
24480 .data
24481 .secrel32 foo' > conftest.s
24482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24488 then
24489 if test x$gcc_cv_ld != x \
24490 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24491 gcc_cv_as_ix86_pe_secrel32=yes
24493 rm -f conftest
24494 else
24495 echo "configure: failed program was" >&5
24496 cat conftest.s >&5
24498 rm -f conftest.o conftest.s
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24502 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24505 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24508 # Test if the assembler supports the extended form of the .section
24509 # directive that specifies section alignment. LTO support uses this,
24510 # but normally only after installation, so we warn but don't fail the
24511 # configure if LTO is enabled but the assembler does not support it.
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24513 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24514 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24515 $as_echo_n "(cached) " >&6
24516 else
24517 gcc_cv_as_section_has_align=no
24518 if test $in_tree_gas = yes; then
24519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24520 then gcc_cv_as_section_has_align=yes
24522 elif test x$gcc_cv_as != x; then
24523 $as_echo '.section lto_test,"dr0"' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_section_has_align=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24540 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24542 if test x$gcc_cv_as_section_has_align != xyes; then
24543 case ",$enable_languages," in
24544 *,lto,*)
24545 { $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
24546 $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;}
24548 esac
24550 # Test if the assembler supports the section flag 'e' for specifying
24551 # an excluded section.
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24553 $as_echo_n "checking assembler for .section with e... " >&6; }
24554 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 gcc_cv_as_section_has_e=no
24558 if test $in_tree_gas = yes; then
24559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24560 then gcc_cv_as_section_has_e=yes
24562 elif test x$gcc_cv_as != x; then
24563 $as_echo '.section foo1,"e"
24564 .byte 0,0,0,0' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_section_has_e=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24581 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24584 cat >>confdefs.h <<_ACEOF
24585 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24586 _ACEOF
24589 esac
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24592 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24593 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24595 else
24596 gcc_cv_as_ix86_filds=no
24597 if test x$gcc_cv_as != x; then
24598 $as_echo 'filds mem; fists mem' > conftest.s
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24605 then
24606 gcc_cv_as_ix86_filds=yes
24607 else
24608 echo "configure: failed program was" >&5
24609 cat conftest.s >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24615 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24616 if test $gcc_cv_as_ix86_filds = yes; then
24618 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24623 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24624 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24626 else
24627 gcc_cv_as_ix86_fildq=no
24628 if test x$gcc_cv_as != x; then
24629 $as_echo 'fildq mem; fistpq mem' > conftest.s
24630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24636 then
24637 gcc_cv_as_ix86_fildq=yes
24638 else
24639 echo "configure: failed program was" >&5
24640 cat conftest.s >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24646 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24647 if test $gcc_cv_as_ix86_fildq = yes; then
24649 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24654 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24655 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24657 else
24658 gcc_cv_as_ix86_cmov_sun_syntax=no
24659 if test x$gcc_cv_as != x; then
24660 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24668 gcc_cv_as_ix86_cmov_sun_syntax=yes
24669 else
24670 echo "configure: failed program was" >&5
24671 cat conftest.s >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24677 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24678 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24680 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24685 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24686 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_ix86_ffreep=no
24690 if test x$gcc_cv_as != x; then
24691 $as_echo 'ffreep %st(1)' > conftest.s
24692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24698 then
24699 gcc_cv_as_ix86_ffreep=yes
24700 else
24701 echo "configure: failed program was" >&5
24702 cat conftest.s >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24708 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24709 if test $gcc_cv_as_ix86_ffreep = yes; then
24711 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24716 $as_echo_n "checking assembler for .quad directive... " >&6; }
24717 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24719 else
24720 gcc_cv_as_ix86_quad=no
24721 if test x$gcc_cv_as != x; then
24722 $as_echo '.quad 0' > conftest.s
24723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24729 then
24730 gcc_cv_as_ix86_quad=yes
24731 else
24732 echo "configure: failed program was" >&5
24733 cat conftest.s >&5
24735 rm -f conftest.o conftest.s
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24739 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24740 if test $gcc_cv_as_ix86_quad = yes; then
24742 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24747 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24748 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24750 else
24751 gcc_cv_as_ix86_sahf=no
24752 if test x$gcc_cv_as != x; then
24753 $as_echo '.code64
24754 sahf' > conftest.s
24755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
24759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24760 test $ac_status = 0; }; }
24761 then
24762 gcc_cv_as_ix86_sahf=yes
24763 else
24764 echo "configure: failed program was" >&5
24765 cat conftest.s >&5
24767 rm -f conftest.o conftest.s
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24771 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24772 if test $gcc_cv_as_ix86_sahf = yes; then
24774 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24779 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24780 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24781 $as_echo_n "(cached) " >&6
24782 else
24783 gcc_cv_as_ix86_interunit_movq=no
24784 if test x$gcc_cv_as != x; then
24785 $as_echo '.code64
24786 movq %mm0, %rax
24787 movq %rax, %xmm0' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24794 then
24795 gcc_cv_as_ix86_interunit_movq=yes
24796 else
24797 echo "configure: failed program was" >&5
24798 cat conftest.s >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24804 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24807 cat >>confdefs.h <<_ACEOF
24808 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24809 _ACEOF
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24813 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24814 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24815 $as_echo_n "(cached) " >&6
24816 else
24817 gcc_cv_as_ix86_hle=no
24818 if test x$gcc_cv_as != x; then
24819 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24826 then
24827 gcc_cv_as_ix86_hle=yes
24828 else
24829 echo "configure: failed program was" >&5
24830 cat conftest.s >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24836 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24837 if test $gcc_cv_as_ix86_hle = yes; then
24839 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24844 $as_echo_n "checking assembler for swap suffix... " >&6; }
24845 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848 gcc_cv_as_ix86_swap=no
24849 if test x$gcc_cv_as != x; then
24850 $as_echo 'movl.s %esp, %ebp' > conftest.s
24851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }
24857 then
24858 gcc_cv_as_ix86_swap=yes
24859 else
24860 echo "configure: failed program was" >&5
24861 cat conftest.s >&5
24863 rm -f conftest.o conftest.s
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24867 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24868 if test $gcc_cv_as_ix86_swap = yes; then
24870 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24875 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24876 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24878 else
24879 gcc_cv_as_ix86_diff_sect_delta=no
24880 if test x$gcc_cv_as != x; then
24881 $as_echo '.section .rodata
24882 .L1:
24883 .long .L2-.L1
24884 .long .L3-.L1
24885 .text
24886 .L3: nop
24887 .L2: nop' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 gcc_cv_as_ix86_diff_sect_delta=yes
24896 else
24897 echo "configure: failed program was" >&5
24898 cat conftest.s >&5
24900 rm -f conftest.o conftest.s
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24904 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24905 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24907 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24911 # These two are used unconditionally by i386.[ch]; it is to be defined
24912 # to 1 if the feature is present, 0 otherwise.
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24914 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24915 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 gcc_cv_as_ix86_gotoff_in_data=no
24919 if test $in_tree_gas = yes; then
24920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24921 then gcc_cv_as_ix86_gotoff_in_data=yes
24923 elif test x$gcc_cv_as != x; then
24924 $as_echo ' .text
24925 .L0:
24927 .data
24928 .long .L0@GOTOFF' > conftest.s
24929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24935 then
24936 gcc_cv_as_ix86_gotoff_in_data=yes
24937 else
24938 echo "configure: failed program was" >&5
24939 cat conftest.s >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24945 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24948 cat >>confdefs.h <<_ACEOF
24949 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24950 _ACEOF
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24954 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24955 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24956 $as_echo_n "(cached) " >&6
24957 else
24958 gcc_cv_as_ix86_rep_lock_prefix=no
24959 if test x$gcc_cv_as != x; then
24960 $as_echo 'rep movsl
24961 rep ret
24962 rep nop
24963 rep bsf %ecx, %eax
24964 rep bsr %ecx, %eax
24965 lock addl %edi, (%eax,%esi)
24966 lock orl $0, (%esp)' > conftest.s
24967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24972 test $ac_status = 0; }; }
24973 then
24974 gcc_cv_as_ix86_rep_lock_prefix=yes
24975 else
24976 echo "configure: failed program was" >&5
24977 cat conftest.s >&5
24979 rm -f conftest.o conftest.s
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24983 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24984 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24986 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24991 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24992 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24993 $as_echo_n "(cached) " >&6
24994 else
24995 gcc_cv_as_ix86_tlsgdplt=no
24996 if test x$gcc_cv_as != x; then
24997 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25004 then
25005 if test x$gcc_cv_ld != x \
25006 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25007 gcc_cv_as_ix86_tlsgdplt=yes
25009 rm -f conftest
25010 else
25011 echo "configure: failed program was" >&5
25012 cat conftest.s >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25018 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25019 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25021 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25026 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25027 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25030 gcc_cv_as_ix86_tlsldmplt=no
25031 if test x$gcc_cv_as != x; then
25032 $as_echo 'tls_ld:
25033 call tls_ld@tlsldmplt' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 if test x$gcc_cv_ld != x \
25042 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25043 gcc_cv_as_ix86_tlsldmplt=yes
25045 rm -f conftest
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25054 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25055 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25057 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25063 ia64*-*-*)
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25065 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25066 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25068 else
25069 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25070 if test $in_tree_gas = yes; then
25071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25072 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25074 elif test x$gcc_cv_as != x; then
25075 $as_echo ' .text
25076 addl r15 = @ltoffx(x#), gp
25078 ld8.mov r16 = [r15], x#' > conftest.s
25079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; }
25085 then
25086 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25087 else
25088 echo "configure: failed program was" >&5
25089 cat conftest.s >&5
25091 rm -f conftest.o conftest.s
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25095 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25096 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25098 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25104 powerpc*-*-*)
25105 case $target in
25106 *-*-aix*) conftest_s=' .machine "pwr5"
25107 .csect .text[PR]
25108 mfcr 3,128';;
25109 *-*-darwin*)
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25111 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25112 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 gcc_cv_as_machine_directive=no
25116 if test x$gcc_cv_as != x; then
25117 $as_echo ' .machine ppc7400' > conftest.s
25118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25124 then
25125 gcc_cv_as_machine_directive=yes
25126 else
25127 echo "configure: failed program was" >&5
25128 cat conftest.s >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25134 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25136 if test x$gcc_cv_as_machine_directive != xyes; then
25137 echo "*** This target requires an assembler supporting \".machine\"" >&2
25138 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25139 test x$build = x$target && exit 1
25141 conftest_s=' .text
25142 mfcr r3,128';;
25143 *) conftest_s=' .machine power4
25144 .text
25145 mfcr 3,128';;
25146 esac
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25149 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25150 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25152 else
25153 gcc_cv_as_powerpc_mfcrf=no
25154 if test $in_tree_gas = yes; then
25155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25156 then gcc_cv_as_powerpc_mfcrf=yes
25158 elif test x$gcc_cv_as != x; then
25159 $as_echo "$conftest_s" > conftest.s
25160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25166 then
25167 gcc_cv_as_powerpc_mfcrf=yes
25168 else
25169 echo "configure: failed program was" >&5
25170 cat conftest.s >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25176 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25177 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25179 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25183 case $target in
25184 *-*-aix*) conftest_s=' .machine "pwr5"
25185 .csect .text[PR]
25186 popcntb 3,3';;
25187 *) conftest_s=' .machine power5
25188 .text
25189 popcntb 3,3';;
25190 esac
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25193 $as_echo_n "checking assembler for popcntb support... " >&6; }
25194 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25195 $as_echo_n "(cached) " >&6
25196 else
25197 gcc_cv_as_powerpc_popcntb=no
25198 if test $in_tree_gas = yes; then
25199 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25200 then gcc_cv_as_powerpc_popcntb=yes
25202 elif test x$gcc_cv_as != x; then
25203 $as_echo "$conftest_s" > conftest.s
25204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25210 then
25211 gcc_cv_as_powerpc_popcntb=yes
25212 else
25213 echo "configure: failed program was" >&5
25214 cat conftest.s >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25220 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25221 if test $gcc_cv_as_powerpc_popcntb = yes; then
25223 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25227 case $target in
25228 *-*-aix*) conftest_s=' .machine "pwr5x"
25229 .csect .text[PR]
25230 frin 1,1';;
25231 *) conftest_s=' .machine power5
25232 .text
25233 frin 1,1';;
25234 esac
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25237 $as_echo_n "checking assembler for fp round support... " >&6; }
25238 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25239 $as_echo_n "(cached) " >&6
25240 else
25241 gcc_cv_as_powerpc_fprnd=no
25242 if test $in_tree_gas = yes; then
25243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25244 then gcc_cv_as_powerpc_fprnd=yes
25246 elif test x$gcc_cv_as != x; then
25247 $as_echo "$conftest_s" > conftest.s
25248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25254 then
25255 gcc_cv_as_powerpc_fprnd=yes
25256 else
25257 echo "configure: failed program was" >&5
25258 cat conftest.s >&5
25260 rm -f conftest.o conftest.s
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25264 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25265 if test $gcc_cv_as_powerpc_fprnd = yes; then
25267 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25271 case $target in
25272 *-*-aix*) conftest_s=' .machine "pwr6"
25273 .csect .text[PR]
25274 mffgpr 1,3';;
25275 *) conftest_s=' .machine power6
25276 .text
25277 mffgpr 1,3';;
25278 esac
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25281 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25282 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 gcc_cv_as_powerpc_mfpgpr=no
25286 if test $in_tree_gas = yes; then
25287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25288 then gcc_cv_as_powerpc_mfpgpr=yes
25290 elif test x$gcc_cv_as != x; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25298 then
25299 gcc_cv_as_powerpc_mfpgpr=yes
25300 else
25301 echo "configure: failed program was" >&5
25302 cat conftest.s >&5
25304 rm -f conftest.o conftest.s
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25308 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25309 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25311 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25315 case $target in
25316 *-*-aix*) conftest_s=' .csect .text[PR]
25317 LCF..0:
25318 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25319 *-*-darwin*)
25320 conftest_s=' .text
25321 LCF0:
25322 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25323 *) conftest_s=' .text
25324 .LCF0:
25325 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25326 esac
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25329 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25330 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25332 else
25333 gcc_cv_as_powerpc_rel16=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25336 then gcc_cv_as_powerpc_rel16=yes
25338 elif test x$gcc_cv_as != x; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 gcc_cv_as_powerpc_rel16=yes
25348 else
25349 echo "configure: failed program was" >&5
25350 cat conftest.s >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25356 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25357 if test $gcc_cv_as_powerpc_rel16 = yes; then
25359 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25363 case $target in
25364 *-*-aix*) conftest_s=' .machine "pwr6"
25365 .csect .text[PR]
25366 cmpb 3,4,5';;
25367 *) conftest_s=' .machine power6
25368 .text
25369 cmpb 3,4,5';;
25370 esac
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25373 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25374 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 gcc_cv_as_powerpc_cmpb=no
25378 if test $in_tree_gas = yes; then
25379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25380 then gcc_cv_as_powerpc_cmpb=yes
25382 elif test x$gcc_cv_as != x; then
25383 $as_echo "$conftest_s" > conftest.s
25384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25390 then
25391 gcc_cv_as_powerpc_cmpb=yes
25392 else
25393 echo "configure: failed program was" >&5
25394 cat conftest.s >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25400 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25401 if test $gcc_cv_as_powerpc_cmpb = yes; then
25403 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25407 case $target in
25408 *-*-aix*) conftest_s=' .machine "pwr6"
25409 .csect .text[PR]
25410 dadd 1,2,3';;
25411 *) conftest_s=' .machine power6
25412 .text
25413 dadd 1,2,3';;
25414 esac
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25417 $as_echo_n "checking assembler for decimal float support... " >&6; }
25418 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25420 else
25421 gcc_cv_as_powerpc_dfp=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25424 then gcc_cv_as_powerpc_dfp=yes
25426 elif test x$gcc_cv_as != x; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25434 then
25435 gcc_cv_as_powerpc_dfp=yes
25436 else
25437 echo "configure: failed program was" >&5
25438 cat conftest.s >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25444 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25445 if test $gcc_cv_as_powerpc_dfp = yes; then
25447 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25451 case $target in
25452 *-*-aix*) conftest_s=' .machine "pwr7"
25453 .csect .text[PR]
25454 lxvd2x 1,2,3';;
25455 *) conftest_s=' .machine power7
25456 .text
25457 lxvd2x 1,2,3';;
25458 esac
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25461 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_powerpc_vsx=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_vsx=yes
25470 elif test x$gcc_cv_as != x; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_powerpc_vsx=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25488 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25489 if test $gcc_cv_as_powerpc_vsx = yes; then
25491 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25495 case $target in
25496 *-*-aix*) conftest_s=' .machine "pwr7"
25497 .csect .text[PR]
25498 popcntd 3,3';;
25499 *) conftest_s=' .machine power7
25500 .text
25501 popcntd 3,3';;
25502 esac
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25505 $as_echo_n "checking assembler for popcntd support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25508 else
25509 gcc_cv_as_powerpc_popcntd=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25512 then gcc_cv_as_powerpc_popcntd=yes
25514 elif test x$gcc_cv_as != x; then
25515 $as_echo "$conftest_s" > conftest.s
25516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25522 then
25523 gcc_cv_as_powerpc_popcntd=yes
25524 else
25525 echo "configure: failed program was" >&5
25526 cat conftest.s >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25532 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25533 if test $gcc_cv_as_powerpc_popcntd = yes; then
25535 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25539 case $target in
25540 *-*-aix*) conftest_s=' .machine "pwr8"
25541 .csect .text[PR]';;
25542 *) conftest_s=' .machine power8
25543 .text';;
25544 esac
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25547 $as_echo_n "checking assembler for power8 support... " >&6; }
25548 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25550 else
25551 gcc_cv_as_powerpc_power8=no
25552 if test $in_tree_gas = yes; then
25553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25554 then gcc_cv_as_powerpc_power8=yes
25556 elif test x$gcc_cv_as != x; then
25557 $as_echo "$conftest_s" > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_powerpc_power8=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25574 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25575 if test $gcc_cv_as_powerpc_power8 = yes; then
25577 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25581 case $target in
25582 *-*-aix*) conftest_s=' .csect .text[PR]
25583 lwsync';;
25584 *) conftest_s=' .text
25585 lwsync';;
25586 esac
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25589 $as_echo_n "checking assembler for lwsync support... " >&6; }
25590 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
25592 else
25593 gcc_cv_as_powerpc_lwsync=no
25594 if test $in_tree_gas = yes; then
25595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25596 then gcc_cv_as_powerpc_lwsync=yes
25598 elif test x$gcc_cv_as != x; then
25599 $as_echo "$conftest_s" > conftest.s
25600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25606 then
25607 gcc_cv_as_powerpc_lwsync=yes
25608 else
25609 echo "configure: failed program was" >&5
25610 cat conftest.s >&5
25612 rm -f conftest.o conftest.s
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25616 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25617 if test $gcc_cv_as_powerpc_lwsync = yes; then
25619 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25623 case $target in
25624 *-*-aix*) conftest_s=' .machine "476"
25625 .csect .text[PR]
25626 dci 0';;
25627 *) conftest_s=' .machine "476"
25628 .text
25629 dci 0';;
25630 esac
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25633 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25634 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25635 $as_echo_n "(cached) " >&6
25636 else
25637 gcc_cv_as_powerpc_dci=no
25638 if test $in_tree_gas = yes; then
25639 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25640 then gcc_cv_as_powerpc_dci=yes
25642 elif test x$gcc_cv_as != x; then
25643 $as_echo "$conftest_s" > conftest.s
25644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25649 test $ac_status = 0; }; }
25650 then
25651 gcc_cv_as_powerpc_dci=yes
25652 else
25653 echo "configure: failed program was" >&5
25654 cat conftest.s >&5
25656 rm -f conftest.o conftest.s
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25660 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25661 if test $gcc_cv_as_powerpc_dci = yes; then
25663 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25668 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25669 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25670 $as_echo_n "(cached) " >&6
25671 else
25672 gcc_cv_as_powerpc_gnu_attribute=no
25673 if test $in_tree_gas = yes; then
25674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25675 then gcc_cv_as_powerpc_gnu_attribute=yes
25677 elif test x$gcc_cv_as != x; then
25678 $as_echo '.gnu_attribute 4,1' > conftest.s
25679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25682 ac_status=$?
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25685 then
25686 gcc_cv_as_powerpc_gnu_attribute=yes
25687 else
25688 echo "configure: failed program was" >&5
25689 cat conftest.s >&5
25691 rm -f conftest.o conftest.s
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25695 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25696 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25698 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25703 $as_echo_n "checking assembler for tls marker support... " >&6; }
25704 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25706 else
25707 gcc_cv_as_powerpc_tls_markers=no
25708 if test $in_tree_gas = yes; then
25709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25710 then gcc_cv_as_powerpc_tls_markers=yes
25712 elif test x$gcc_cv_as != x; then
25713 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25720 then
25721 gcc_cv_as_powerpc_tls_markers=yes
25722 else
25723 echo "configure: failed program was" >&5
25724 cat conftest.s >&5
25726 rm -f conftest.o conftest.s
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25730 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25731 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25733 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25737 case $target in
25738 *-*-aix*)
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25740 $as_echo_n "checking assembler for .ref support... " >&6; }
25741 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25743 else
25744 gcc_cv_as_aix_ref=no
25745 if test $in_tree_gas = yes; then
25746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25747 then gcc_cv_as_aix_ref=yes
25749 elif test x$gcc_cv_as != x; then
25750 $as_echo ' .csect stuff[rw]
25751 stuff:
25752 .long 1
25753 .extern sym
25754 .ref sym
25755 ' > conftest.s
25756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25762 then
25763 gcc_cv_as_aix_ref=yes
25764 else
25765 echo "configure: failed program was" >&5
25766 cat conftest.s >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25772 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25773 if test $gcc_cv_as_aix_ref = yes; then
25775 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25779 esac
25782 mips*-*-*)
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25784 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25785 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25787 else
25788 gcc_cv_as_mips_explicit_relocs=no
25789 if test $in_tree_gas = yes; then
25790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25791 then gcc_cv_as_mips_explicit_relocs=yes
25793 elif test x$gcc_cv_as != x; then
25794 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25801 then
25802 gcc_cv_as_mips_explicit_relocs=yes
25803 else
25804 echo "configure: failed program was" >&5
25805 cat conftest.s >&5
25807 rm -f conftest.o conftest.s
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25811 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25812 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25813 if test x$target_cpu_default = x
25814 then target_cpu_default=MASK_EXPLICIT_RELOCS
25815 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25819 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25820 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25822 else
25823 gcc_cv_as_mips_no_shared=no
25824 if test $in_tree_gas = yes; then
25825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25826 then gcc_cv_as_mips_no_shared=yes
25828 elif test x$gcc_cv_as != x; then
25829 $as_echo 'nop' > conftest.s
25830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; }
25836 then
25837 gcc_cv_as_mips_no_shared=yes
25838 else
25839 echo "configure: failed program was" >&5
25840 cat conftest.s >&5
25842 rm -f conftest.o conftest.s
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25846 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25847 if test $gcc_cv_as_mips_no_shared = yes; then
25849 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25854 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25855 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25856 $as_echo_n "(cached) " >&6
25857 else
25858 gcc_cv_as_mips_gnu_attribute=no
25859 if test $in_tree_gas = yes; then
25860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25861 then gcc_cv_as_mips_gnu_attribute=yes
25863 elif test x$gcc_cv_as != x; then
25864 $as_echo '.gnu_attribute 4,1' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 gcc_cv_as_mips_gnu_attribute=yes
25873 else
25874 echo "configure: failed program was" >&5
25875 cat conftest.s >&5
25877 rm -f conftest.o conftest.s
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25881 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25882 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25884 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25889 $as_echo_n "checking assembler for .micromips support... " >&6; }
25890 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_micromips_support=no
25894 if test x$gcc_cv_as != x; then
25895 $as_echo '.set micromips' > conftest.s
25896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25902 then
25903 gcc_cv_as_micromips_support=yes
25904 else
25905 echo "configure: failed program was" >&5
25906 cat conftest.s >&5
25908 rm -f conftest.o conftest.s
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25912 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25913 if test $gcc_cv_as_micromips_support = yes; then
25915 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25920 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25921 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25923 else
25924 gcc_cv_as_mips_dtprelword=no
25925 if test $in_tree_gas = yes; then
25926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25927 then gcc_cv_as_mips_dtprelword=yes
25929 elif test x$gcc_cv_as != x; then
25930 $as_echo '.section .tdata,"awT",@progbits
25932 .word 2
25933 .text
25934 .dtprelword x+0x8000' > conftest.s
25935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25941 then
25942 gcc_cv_as_mips_dtprelword=yes
25943 else
25944 echo "configure: failed program was" >&5
25945 cat conftest.s >&5
25947 rm -f conftest.o conftest.s
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25951 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25952 if test $gcc_cv_as_mips_dtprelword = yes; then
25954 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25959 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25960 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25961 $as_echo_n "(cached) " >&6
25962 else
25963 gcc_cv_as_mips_dspr1_mult=no
25964 if test x$gcc_cv_as != x; then
25965 $as_echo ' .set mips32r2
25966 .set nodspr2
25967 .set dsp
25968 madd $ac3,$4,$5
25969 maddu $ac3,$4,$5
25970 msub $ac3,$4,$5
25971 msubu $ac3,$4,$5
25972 mult $ac3,$4,$5
25973 multu $ac3,$4,$5' > conftest.s
25974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25980 then
25981 gcc_cv_as_mips_dspr1_mult=yes
25982 else
25983 echo "configure: failed program was" >&5
25984 cat conftest.s >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25990 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25991 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25993 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25998 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25999 gcc_cv_as_ld_jalr_reloc=no
26000 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26001 if test $in_tree_ld = yes ; then
26002 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 \
26003 && test $in_tree_ld_is_elf = yes; then
26004 gcc_cv_as_ld_jalr_reloc=yes
26006 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26007 echo ' .ent x' > conftest.s
26008 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26009 echo ' ld $25,%call16(y)($28)' >> conftest.s
26010 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26011 echo '1: jalr $25' >> conftest.s
26012 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26013 echo '1: jalr $25' >> conftest.s
26014 echo ' .end x' >> conftest.s
26015 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26016 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26017 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26018 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26019 gcc_cv_as_ld_jalr_reloc=yes
26022 rm -f conftest.*
26025 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26026 if test x$target_cpu_default = x; then
26027 target_cpu_default=MASK_RELAX_PIC_CALLS
26028 else
26029 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26033 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26036 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26037 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26039 else
26040 gcc_cv_ld_mips_personality_relaxation=no
26041 if test $in_tree_ld = yes ; then
26042 if test "$gcc_cv_gld_major_version" -eq 2 \
26043 -a "$gcc_cv_gld_minor_version" -ge 21 \
26044 -o "$gcc_cv_gld_major_version" -gt 2; then
26045 gcc_cv_ld_mips_personality_relaxation=yes
26047 elif test x$gcc_cv_as != x \
26048 -a x$gcc_cv_ld != x \
26049 -a x$gcc_cv_readelf != x ; then
26050 cat > conftest.s <<EOF
26051 .cfi_startproc
26052 .cfi_personality 0x80,indirect_ptr
26053 .ent test
26054 test:
26056 .end test
26057 .cfi_endproc
26059 .section .data,"aw",@progbits
26060 indirect_ptr:
26061 .dc.a personality
26063 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26064 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26065 if $gcc_cv_readelf -d conftest 2>&1 \
26066 | grep TEXTREL > /dev/null 2>&1; then
26068 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26069 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26071 else
26072 gcc_cv_ld_mips_personality_relaxation=yes
26076 rm -f conftest.s conftest.o conftest
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26079 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26080 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26082 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26087 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26088 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26089 $as_echo_n "(cached) " >&6
26090 else
26091 gcc_cv_as_mips_nan=no
26092 if test x$gcc_cv_as != x; then
26093 $as_echo '' > conftest.s
26094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26100 then
26101 gcc_cv_as_mips_nan=yes
26102 else
26103 echo "configure: failed program was" >&5
26104 cat conftest.s >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26110 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26111 if test $gcc_cv_as_mips_nan = yes; then
26113 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26116 if test x$gcc_cv_as_mips_nan = xno \
26117 && test x$with_nan != x; then
26118 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26121 esac
26123 # Mips and HP-UX need the GNU assembler.
26124 # Linux on IA64 might be able to use the Intel assembler.
26126 case "$target" in
26127 mips*-*-* | *-*-hpux* )
26128 if test x$gas_flag = xyes \
26129 || test x"$host" != x"$build" \
26130 || test ! -x "$gcc_cv_as" \
26131 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26133 else
26134 echo "*** This configuration requires the GNU assembler" >&2
26135 exit 1
26138 esac
26140 # ??? Not all targets support dwarf2 debug_line, even within a version
26141 # of gas. Moreover, we need to emit a valid instruction to trigger any
26142 # info to the output file. So, as supported targets are added to gas 2.11,
26143 # add some instruction here to (also) show we expect this might work.
26144 # ??? Once 2.11 is released, probably need to add first known working
26145 # version to the per-target configury.
26146 case "$cpu_type" in
26147 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26148 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26149 | xtensa)
26150 insn="nop"
26152 ia64 | s390)
26153 insn="nop 0"
26155 mmix)
26156 insn="swym 0"
26158 esac
26159 if test x"$insn" != x; then
26160 conftest_s="\
26161 .file 1 \"conftest.s\"
26162 .loc 1 3 0
26163 $insn"
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26165 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26166 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26168 else
26169 gcc_cv_as_dwarf2_debug_line=no
26170 if test $in_tree_gas = yes; then
26171 if test $in_tree_gas_is_elf = yes \
26172 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26173 then gcc_cv_as_dwarf2_debug_line=yes
26175 elif test x$gcc_cv_as != x; then
26176 $as_echo "$conftest_s" > conftest.s
26177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26182 test $ac_status = 0; }; }
26183 then
26184 if test x$gcc_cv_objdump != x \
26185 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26186 | grep debug_line > /dev/null 2>&1; then
26187 gcc_cv_as_dwarf2_debug_line=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26197 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26200 # The .debug_line file table must be in the exact order that
26201 # we specified the files, since these indices are also used
26202 # by DW_AT_decl_file. Approximate this test by testing if
26203 # the assembler bitches if the same index is assigned twice.
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26205 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26206 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26209 gcc_cv_as_dwarf2_file_buggy=no
26210 if test x$gcc_cv_as != x; then
26211 $as_echo ' .file 1 "foo.s"
26212 .file 1 "bar.s"' > conftest.s
26213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26219 then
26220 gcc_cv_as_dwarf2_file_buggy=yes
26221 else
26222 echo "configure: failed program was" >&5
26223 cat conftest.s >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26229 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26232 if test $gcc_cv_as_dwarf2_debug_line = yes \
26233 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26235 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26240 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26241 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_gdwarf2_flag=no
26245 if test $in_tree_gas = yes; then
26246 if test $in_tree_gas_is_elf = yes \
26247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26248 then gcc_cv_as_gdwarf2_flag=yes
26250 elif test x$gcc_cv_as != x; then
26251 $as_echo "$insn" > conftest.s
26252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26258 then
26259 gcc_cv_as_gdwarf2_flag=yes
26260 else
26261 echo "configure: failed program was" >&5
26262 cat conftest.s >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26268 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26269 if test $gcc_cv_as_gdwarf2_flag = yes; then
26271 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26276 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26277 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26279 else
26280 gcc_cv_as_gstabs_flag=no
26281 if test $in_tree_gas = yes; then
26282 if test $in_tree_gas_is_elf = yes \
26283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26284 then gcc_cv_as_gstabs_flag=yes
26286 elif test x$gcc_cv_as != x; then
26287 $as_echo "$insn" > conftest.s
26288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 then
26295 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26296 # and warns about it, but still exits successfully. So check for
26297 # this.
26298 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26304 then :
26305 else gcc_cv_as_gstabs_flag=yes
26307 else
26308 echo "configure: failed program was" >&5
26309 cat conftest.s >&5
26311 rm -f conftest.o conftest.s
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26315 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26316 if test $gcc_cv_as_gstabs_flag = yes; then
26318 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26323 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26324 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 gcc_cv_as_debug_prefix_map_flag=no
26328 if test $in_tree_gas = yes; then
26329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26330 then gcc_cv_as_debug_prefix_map_flag=yes
26332 elif test x$gcc_cv_as != x; then
26333 $as_echo "$insn" > conftest.s
26334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26336 (eval $ac_try) 2>&5
26337 ac_status=$?
26338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26339 test $ac_status = 0; }; }
26340 then
26341 gcc_cv_as_debug_prefix_map_flag=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_debug_prefix_map_flag" >&5
26350 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26351 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26353 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26359 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26360 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26361 $as_echo_n "(cached) " >&6
26362 else
26363 gcc_cv_as_lcomm_with_alignment=no
26364 if test x$gcc_cv_as != x; then
26365 $as_echo '.lcomm bar,4,16' > 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_lcomm_with_alignment=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_lcomm_with_alignment" >&5
26382 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26383 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26385 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26389 if test x$with_sysroot = x && test x$host = x$target \
26390 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26391 && test "$prefix" != "NONE"; then
26393 cat >>confdefs.h <<_ACEOF
26394 #define PREFIX_INCLUDE_DIR "$prefix/include"
26395 _ACEOF
26399 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26400 if test "x$with_headers" != x; then
26401 target_header_dir=$with_headers
26402 elif test "x$with_sysroot" = x; then
26403 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26404 elif test "x$with_build_sysroot" != "x"; then
26405 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26406 elif test "x$with_sysroot" = xyes; then
26407 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26408 else
26409 target_header_dir="${with_sysroot}${native_system_header_dir}"
26411 else
26412 target_header_dir=${native_system_header_dir}
26415 # Determine the version of glibc, if any, used on the target.
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26417 $as_echo_n "checking for target glibc version... " >&6; }
26419 # Check whether --with-glibc-version was given.
26420 if test "${with_glibc_version+set}" = set; then :
26421 withval=$with_glibc_version;
26422 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26423 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26424 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26425 else
26426 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26428 else
26430 glibc_version_major=0
26431 glibc_version_minor=0
26432 if test -f $target_header_dir/features.h \
26433 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26434 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26435 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26436 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26441 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26443 # Check whether --enable-gnu-unique-object was given.
26444 if test "${enable_gnu_unique_object+set}" = set; then :
26445 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26446 yes | no) ;;
26447 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26448 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26449 esac
26450 else
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26452 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26453 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26454 $as_echo_n "(cached) " >&6
26455 else
26456 gcc_cv_as_gnu_unique_object=no
26457 if test $in_tree_gas = yes; then
26458 if test $in_tree_gas_is_elf = yes \
26459 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26460 then gcc_cv_as_gnu_unique_object=yes
26462 elif test x$gcc_cv_as != x; then
26463 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 then
26471 gcc_cv_as_gnu_unique_object=yes
26472 else
26473 echo "configure: failed program was" >&5
26474 cat conftest.s >&5
26476 rm -f conftest.o conftest.s
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26480 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26481 if test $gcc_cv_as_gnu_unique_object = yes; then
26482 # We need to unquote above to to use the definition from config.gcc.
26483 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26485 if test $glibc_version_major -gt 2 \
26486 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26487 enable_gnu_unique_object=yes
26493 if test x$enable_gnu_unique_object = xyes; then
26495 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26500 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26501 if test "${gcc_cv_as_line_zero+set}" = set; then :
26502 $as_echo_n "(cached) " >&6
26503 else
26504 gcc_cv_as_line_zero=no
26505 if test $in_tree_gas = yes; then
26506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26507 then gcc_cv_as_line_zero=yes
26509 elif test "x$gcc_cv_as" != x; then
26510 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26511 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; } &&
26517 test "x`cat conftest.out`" = x
26518 then
26519 gcc_cv_as_line_zero=yes
26520 else
26521 echo "configure: failed program was" >&5
26522 cat conftest.s >&5
26523 echo "configure: error output was" >&5
26524 cat conftest.out >&5
26526 rm -f conftest.o conftest.s conftest.out
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26530 $as_echo "$gcc_cv_as_line_zero" >&6; }
26531 if test "x$gcc_cv_as_line_zero" = xyes; then
26533 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26538 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26539 gcc_cv_ld_eh_frame_hdr=no
26540 if test $in_tree_ld = yes ; then
26541 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 \
26542 && test $in_tree_ld_is_elf = yes; then
26543 gcc_cv_ld_eh_frame_hdr=yes
26545 elif test x$gcc_cv_ld != x; then
26546 if echo "$ld_ver" | grep GNU > /dev/null; then
26547 # Check if linker supports --eh-frame-hdr option
26548 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26549 gcc_cv_ld_eh_frame_hdr=yes
26551 else
26552 case "$target" in
26553 *-*-solaris2*)
26554 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26555 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26556 gcc_cv_ld_eh_frame_hdr=yes
26559 esac
26563 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26565 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26569 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26572 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26573 gcc_cv_ld_eh_frame_ciev3=no
26574 if test $in_tree_ld = yes ; then
26575 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 \
26576 && test $in_tree_ld_is_elf = yes; then
26577 gcc_cv_ld_eh_frame_ciev3=yes
26579 elif test x$gcc_cv_ld != x; then
26580 if echo "$ld_ver" | grep GNU > /dev/null; then
26581 gcc_cv_ld_eh_frame_ciev3=yes
26582 if test 0"$ld_date" -lt 20040513; then
26583 if test -n "$ld_date"; then
26584 # If there was date string, but was earlier than 2004-05-13, fail
26585 gcc_cv_ld_eh_frame_ciev3=no
26586 elif test "$ld_vers_major" -lt 2; then
26587 gcc_cv_ld_eh_frame_ciev3=no
26588 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26589 gcc_cv_ld_eh_frame_ciev3=no
26592 else
26593 case "$target" in
26594 *-*-solaris2*)
26595 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26596 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26597 gcc_cv_ld_eh_frame_ciev3=yes
26600 esac
26604 cat >>confdefs.h <<_ACEOF
26605 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26606 _ACEOF
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26609 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26612 $as_echo_n "checking linker position independent executable support... " >&6; }
26613 gcc_cv_ld_pie=no
26614 if test $in_tree_ld = yes ; then
26615 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 \
26616 && test $in_tree_ld_is_elf = yes; then
26617 gcc_cv_ld_pie=yes
26619 elif test x$gcc_cv_ld != x; then
26620 # Check if linker supports -pie option
26621 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26622 gcc_cv_ld_pie=yes
26625 if test x"$gcc_cv_ld_pie" = xyes; then
26627 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26631 $as_echo "$gcc_cv_ld_pie" >&6; }
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26634 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26635 gcc_cv_ld_eh_gc_sections=no
26636 if test $in_tree_ld = yes ; then
26637 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 \
26638 && test $in_tree_ld_is_elf = yes; then
26639 gcc_cv_ld_eh_gc_sections=yes
26641 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26642 cat > conftest.s <<EOF
26643 .section .text
26644 .globl _start
26645 .type _start, @function
26646 _start:
26647 .long foo
26648 .size _start, .-_start
26649 .section .text.foo,"ax",@progbits
26650 .type foo, @function
26651 foo:
26652 .long 0
26653 .size foo, .-foo
26654 .section .gcc_except_table.foo,"a",@progbits
26655 .L0:
26656 .long 0
26657 .section .eh_frame,"a",@progbits
26658 .long .L0
26660 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26661 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26662 | grep "gc-sections option ignored" > /dev/null; then
26663 gcc_cv_ld_eh_gc_sections=no
26664 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26665 | grep gcc_except_table > /dev/null; then
26666 gcc_cv_ld_eh_gc_sections=yes
26667 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26668 if test x$gcc_cv_as_comdat_group != xyes; then
26669 gcc_cv_ld_eh_gc_sections=no
26670 cat > conftest.s <<EOF
26671 .section .text
26672 .globl _start
26673 .type _start, @function
26674 _start:
26675 .long foo
26676 .size _start, .-_start
26677 .section .gnu.linkonce.t.foo,"ax",@progbits
26678 .type foo, @function
26679 foo:
26680 .long 0
26681 .size foo, .-foo
26682 .section .gcc_except_table.foo,"a",@progbits
26683 .L0:
26684 .long 0
26685 .section .eh_frame,"a",@progbits
26686 .long .L0
26688 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26689 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26690 | grep "gc-sections option ignored" > /dev/null; then
26691 gcc_cv_ld_eh_gc_sections=no
26692 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26693 | grep gcc_except_table > /dev/null; then
26694 gcc_cv_ld_eh_gc_sections=yes
26700 rm -f conftest.s conftest.o conftest
26702 case "$target" in
26703 hppa*-*-linux*)
26704 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26705 gcc_cv_ld_eh_gc_sections=no
26707 esac
26708 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26710 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26714 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26717 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26718 gcc_cv_ld_eh_gc_sections_bug=no
26719 if test $in_tree_ld = yes ; then
26720 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 \
26721 && test $in_tree_ld_is_elf = yes; then
26722 gcc_cv_ld_eh_gc_sections_bug=yes
26724 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
26725 gcc_cv_ld_eh_gc_sections_bug=yes
26726 cat > conftest.s <<EOF
26727 .section .text
26728 .globl _start
26729 .type _start, @function
26730 _start:
26731 .long foo
26732 .size _start, .-_start
26733 .section .text.startup.foo,"ax",@progbits
26734 .type foo, @function
26735 foo:
26736 .long 0
26737 .size foo, .-foo
26738 .section .gcc_except_table.foo,"a",@progbits
26739 .L0:
26740 .long 0
26741 .section .eh_frame,"a",@progbits
26742 .long .L0
26744 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26745 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26746 | grep "gc-sections option ignored" > /dev/null; then
26748 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26749 | grep gcc_except_table > /dev/null; then
26750 gcc_cv_ld_eh_gc_sections_bug=no
26753 rm -f conftest.s conftest.o conftest
26755 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26757 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26761 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26763 # --------
26764 # UNSORTED
26765 # --------
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26768 $as_echo_n "checking linker --as-needed support... " >&6; }
26769 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26770 $as_echo_n "(cached) " >&6
26771 else
26772 gcc_cv_ld_as_needed=no
26773 gcc_cv_ld_as_needed_option='--as-needed'
26774 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26775 if test $in_tree_ld = yes ; then
26776 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 \
26777 && test $in_tree_ld_is_elf = yes; then
26778 gcc_cv_ld_as_needed=yes
26780 elif test x$gcc_cv_ld != x; then
26781 # Check if linker supports --as-needed and --no-as-needed options
26782 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26783 gcc_cv_ld_as_needed=yes
26784 else
26785 case "$target" in
26786 # Solaris 2 ld always supports -z ignore/-z record.
26787 *-*-solaris2*)
26788 gcc_cv_ld_as_needed=yes
26789 gcc_cv_ld_as_needed_option="-z ignore"
26790 gcc_cv_ld_no_as_needed_option="-z record"
26792 esac
26795 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26796 # dl_iterate_phdr, i.e. since Solaris 11.
26797 case "$target" in
26798 *-*-solaris2.1[1-9]*)
26799 case "$target" in
26800 i?86-*-* | x86_64-*-*)
26801 if echo "$ld_ver" | grep GNU > /dev/null; then
26802 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26803 gcc_cv_ld_as_needed=no
26806 esac
26808 *-*-solaris2*)
26809 gcc_cv_ld_as_needed=no
26811 esac
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26815 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26816 if test x"$gcc_cv_ld_as_needed" = xyes; then
26818 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26821 cat >>confdefs.h <<_ACEOF
26822 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26823 _ACEOF
26826 cat >>confdefs.h <<_ACEOF
26827 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26828 _ACEOF
26832 case "$target:$tm_file" in
26833 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26834 case "$target" in
26835 *le-*-linux*)
26836 emul_name="-melf64lppc"
26838 *-*-linux*)
26839 emul_name="-melf64ppc"
26841 *-*-freebsd*)
26842 emul_name="-melf64ppc_fbsd"
26844 esac
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26846 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26847 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850 gcc_cv_ld_no_dot_syms=no
26851 if test x"$ld_is_gold" = xyes; then
26852 gcc_cv_ld_no_dot_syms=yes
26853 elif test $in_tree_ld = yes ; then
26854 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
26855 gcc_cv_ld_no_dot_syms=yes
26857 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26858 cat > conftest1.s <<EOF
26859 .text
26860 bl .foo
26862 cat > conftest2.s <<EOF
26863 .section ".opd","aw"
26864 .align 3
26865 .globl foo
26866 .type foo,@function
26867 foo:
26868 .quad .LEfoo,.TOC.@tocbase,0
26869 .text
26870 .LEfoo:
26872 .size foo,.-.LEfoo
26874 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26875 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26876 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26877 gcc_cv_ld_no_dot_syms=yes
26879 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26884 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26885 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26887 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26892 $as_echo_n "checking linker large toc support... " >&6; }
26893 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26894 $as_echo_n "(cached) " >&6
26895 else
26896 gcc_cv_ld_large_toc=no
26897 if test x"$ld_is_gold" = xyes; then
26898 gcc_cv_ld_large_toc=yes
26899 elif test $in_tree_ld = yes ; then
26900 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
26901 gcc_cv_ld_large_toc=yes
26903 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26904 cat > conftest.s <<EOF
26905 .section ".tbss","awT",@nobits
26906 .align 3
26907 ie0: .space 8
26908 .global _start
26909 .text
26910 _start:
26911 addis 9,13,ie0@got@tprel@ha
26912 ld 9,ie0@got@tprel@l(9)
26914 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26915 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26916 gcc_cv_ld_large_toc=yes
26918 rm -f conftest conftest.o conftest.s
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26923 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26924 if test x"$gcc_cv_ld_large_toc" = xyes; then
26926 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26930 esac
26932 case "$target" in
26933 *-*-aix*)
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26935 $as_echo_n "checking linker large toc support... " >&6; }
26936 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26937 $as_echo_n "(cached) " >&6
26938 else
26939 gcc_cv_ld_large_toc=no
26940 if test x$gcc_cv_as != x ; then
26941 cat > conftest.s <<EOF
26942 .toc
26943 LC..1:
26944 .tc a[TC],a[RW]
26945 .extern a[RW]
26946 .csect .text[PR]
26947 .largetoctest:
26948 addis 9,LC..1@u(2)
26949 ld 3,LC..1@l(9)
26951 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26952 gcc_cv_ld_large_toc=yes
26954 rm -f conftest conftest.o conftest.s
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26959 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26960 if test x"$gcc_cv_ld_large_toc" = xyes; then
26962 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26966 esac
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26969 $as_echo_n "checking linker --build-id support... " >&6; }
26970 if test "${gcc_cv_ld_buildid+set}" = set; then :
26971 $as_echo_n "(cached) " >&6
26972 else
26973 gcc_cv_ld_buildid=no
26974 if test $in_tree_ld = yes ; then
26975 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26976 "$gcc_cv_gld_minor_version" -ge 18 -o \
26977 "$gcc_cv_gld_major_version" -gt 2 \
26978 && test $in_tree_ld_is_elf = yes; then
26979 gcc_cv_ld_buildid=yes
26981 elif test x$gcc_cv_ld != x; then
26982 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26983 gcc_cv_ld_buildid=yes
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26988 $as_echo "$gcc_cv_ld_buildid" >&6; }
26989 if test x"$gcc_cv_ld_buildid" = xyes; then
26991 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26995 # Check whether --enable-linker-build-id was given.
26996 if test "${enable_linker_build_id+set}" = set; then :
26997 enableval=$enable_linker_build_id;
26998 else
26999 enable_linker_build_id=no
27003 if test x"$enable_linker_build_id" = xyes; then
27004 if test x"$gcc_cv_ld_buildid" = xyes; then
27006 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27008 else
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27010 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27014 # In binutils 2.21, GNU ld gained support for new emulations fully
27015 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27017 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27018 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27019 $as_echo_n "(cached) " >&6
27020 else
27021 gcc_cv_ld_sol2_emulation=no
27022 if test $in_tree_ld = yes ; then
27023 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27024 "$gcc_cv_gld_minor_version" -ge 21 -o \
27025 "$gcc_cv_gld_major_version" -gt 2 \
27026 && test $in_tree_ld_is_elf = yes; then
27027 gcc_cv_ld_sol2_emulation=yes
27029 elif test x$gcc_cv_ld != x; then
27030 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27031 grep _sol2 > /dev/null; then
27032 gcc_cv_ld_sol2_emulation=yes
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27037 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27038 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27040 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27045 $as_echo_n "checking linker --sysroot support... " >&6; }
27046 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27047 $as_echo_n "(cached) " >&6
27048 else
27049 gcc_cv_ld_sysroot=no
27050 if test $in_tree_ld = yes ; then
27051 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
27052 gcc_cv_ld_sysroot=yes
27054 elif test x$gcc_cv_ld != x; then
27055 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27056 gcc_cv_ld_sysroot=yes
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27061 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27062 if test x"$gcc_cv_ld_sysroot" = xyes; then
27064 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27068 # Test for stack protector support in target C library.
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27070 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27071 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27072 $as_echo_n "(cached) " >&6
27073 else
27074 gcc_cv_libc_provides_ssp=no
27075 case "$target" in
27076 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27077 # glibc 2.4 and later provides __stack_chk_fail and
27078 # either __stack_chk_guard, or TLS access to stack guard canary.
27080 if test $glibc_version_major -gt 2 \
27081 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27082 gcc_cv_libc_provides_ssp=yes
27083 else
27085 if test -f $target_header_dir/features.h \
27086 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27087 $target_header_dir/features.h > /dev/null; then
27088 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27089 $target_header_dir/features.h > /dev/null && \
27090 test -f $target_header_dir/bits/uClibc_config.h && \
27091 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27092 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27093 gcc_cv_libc_provides_ssp=yes
27095 # all versions of Bionic support stack protector
27096 elif test -f $target_header_dir/sys/cdefs.h \
27097 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27098 $target_header_dir/sys/cdefs.h > /dev/null; then
27099 gcc_cv_libc_provides_ssp=yes
27103 *-*-gnu*)
27104 # Avoid complicated tests (see
27105 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27106 # simply assert that glibc does provide this, which is true for all
27107 # realistically usable GNU/Hurd configurations.
27108 gcc_cv_libc_provides_ssp=yes;;
27109 *-*-darwin* | *-*-freebsd*)
27110 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27111 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27112 gcc_cv_libc_provides_ssp=yes
27113 else
27114 echo "no __stack_chk_fail on this target"
27118 *) gcc_cv_libc_provides_ssp=no ;;
27119 esac
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27122 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27124 if test x$gcc_cv_libc_provides_ssp = xyes; then
27126 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27130 # Test for <sys/sdt.h> on the target.
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27133 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27134 have_sys_sdt_h=no
27135 if test -f $target_header_dir/sys/sdt.h; then
27136 have_sys_sdt_h=yes
27138 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27142 $as_echo "$have_sys_sdt_h" >&6; }
27144 # Check if TFmode long double should be used by default or not.
27145 # Some glibc targets used DFmode long double, but with glibc 2.4
27146 # and later they can use TFmode.
27147 case "$target" in
27148 powerpc*-*-linux* | \
27149 sparc*-*-linux* | \
27150 s390*-*-linux* | \
27151 alpha*-*-linux*)
27153 # Check whether --with-long-double-128 was given.
27154 if test "${with_long_double_128+set}" = set; then :
27155 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27156 else
27158 if test $glibc_version_major -gt 2 \
27159 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27160 gcc_cv_target_ldbl128=yes
27161 else
27163 gcc_cv_target_ldbl128=no
27164 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27165 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27166 && gcc_cv_target_ldbl128=yes
27172 esac
27173 if test x$gcc_cv_target_ldbl128 = xyes; then
27175 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27180 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27181 gcc_cv_target_dl_iterate_phdr=unknown
27182 case "$target" in
27183 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27184 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27185 # libdl there, both complicating its use and breaking compatibility
27186 # between Solaris 10 updates.
27187 *-*-solaris2.1[1-9]*)
27188 # <link.h> needs both a dl_iterate_phdr declaration and support for
27189 # compilation with largefile support.
27190 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27191 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27192 gcc_cv_target_dl_iterate_phdr=yes
27193 else
27194 gcc_cv_target_dl_iterate_phdr=no
27197 esac
27199 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27201 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27205 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27207 # We no longer support different GC mechanisms. Emit an error if
27208 # the user configures with --with-gc.
27210 # Check whether --with-gc was given.
27211 if test "${with_gc+set}" = set; then :
27212 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27216 # Libraries to use on the host. This will normally be set by the top
27217 # level Makefile. Here we simply capture the value for our Makefile.
27218 if test -z "${HOST_LIBS+set}"; then
27219 HOST_LIBS=
27223 # Use the system's zlib library.
27224 zlibdir=-L../zlib
27225 zlibinc="-I\$(srcdir)/../zlib"
27227 # Check whether --with-system-zlib was given.
27228 if test "${with_system_zlib+set}" = set; then :
27229 withval=$with_system_zlib; zlibdir=
27230 zlibinc=
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27239 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27240 # Check whether --enable-maintainer-mode was given.
27241 if test "${enable_maintainer_mode+set}" = set; then :
27242 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27243 else
27244 maintainer_mode=no
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27249 $as_echo "$maintainer_mode" >&6; }
27251 if test "$maintainer_mode" = "yes"; then
27252 MAINT=''
27253 else
27254 MAINT='#'
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27259 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27260 # Check whether --enable-link-mutex was given.
27261 if test "${enable_link_mutex+set}" = set; then :
27262 enableval=$enable_link_mutex; do_link_mutex=$enableval
27263 else
27264 do_link_mutex=no
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27268 $as_echo "$do_link_mutex" >&6; }
27270 if test "$do_link_mutex" = "yes"; then
27271 DO_LINK_MUTEX=true
27272 else
27273 DO_LINK_MUTEX=false
27277 # --------------
27278 # Language hooks
27279 # --------------
27281 # Make empty files to contain the specs and options for each language.
27282 # Then add #include lines to for a compiler that has specs and/or options.
27284 subdirs=
27285 lang_opt_files=
27286 lang_specs_files=
27287 lang_tree_files=
27288 # These (without "all_") are set in each config-lang.in.
27289 # `language' must be a single word so is spelled singularly.
27290 all_languages=
27291 all_compilers=
27292 all_outputs='Makefile'
27293 # List of language makefile fragments.
27294 all_lang_makefrags=
27295 # Additional files for gengtype
27296 all_gtfiles="$target_gtfiles"
27298 # These are the languages that are set in --enable-languages,
27299 # and are available in the GCC tree.
27300 all_selected_languages=
27302 # Add the language fragments.
27303 # Languages are added via two mechanisms. Some information must be
27304 # recorded in makefile variables, these are defined in config-lang.in.
27305 # We accumulate them and plug them into the main Makefile.
27306 # The other mechanism is a set of hooks for each of the main targets
27307 # like `clean', `install', etc.
27309 language_hooks="Make-hooks"
27311 for lang in ${srcdir}/*/config-lang.in
27313 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27315 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27316 if test "x$lang_alias" = x
27317 then
27318 echo "$lang doesn't set \$language." 1>&2
27319 exit 1
27321 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27322 subdirs="$subdirs $subdir"
27324 # $gcc_subdir is where the gcc integration files are to be found
27325 # for a language, both for internal compiler purposes (compiler
27326 # sources implementing front-end to GCC tree converters), and for
27327 # build infrastructure purposes (Make-lang.in, etc.)
27329 # This will be <subdir> (relative to $srcdir) if a line like
27330 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27331 # is found in <langdir>/config-lang.in, and will remain <langdir>
27332 # otherwise.
27334 # Except for the language alias (fetched above), the regular
27335 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27336 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27337 # only this and the language alias.
27339 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27340 if [ "$gcc_subdir" = "" ]; then
27341 gcc_subdir="$subdir"
27344 case ",$enable_languages," in
27345 *,$lang_alias,*)
27346 all_selected_languages="$all_selected_languages $lang_alias"
27347 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27348 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27351 esac
27353 language=
27354 boot_language=
27355 compilers=
27356 outputs=
27357 gtfiles=
27358 subdir_requires=
27359 . ${srcdir}/$gcc_subdir/config-lang.in
27360 if test "x$language" = x
27361 then
27362 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27363 exit 1
27366 ok=:
27367 case ",$enable_languages," in
27368 *,$lang_alias,*) ;;
27370 for i in $subdir_requires; do
27371 test -f "${srcdir}/$i/config-lang.in" && continue
27372 ok=false
27373 break
27374 done
27376 esac
27377 $ok || continue
27379 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27380 if test -f $srcdir/$gcc_subdir/lang.opt; then
27381 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27382 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27384 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27385 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27387 all_languages="$all_languages $language"
27388 all_compilers="$all_compilers $compilers"
27389 all_outputs="$all_outputs $outputs"
27390 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27391 case ",$enable_languages," in
27392 *,lto,*)
27394 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27396 enable_lto=yes
27399 *) ;;
27400 esac
27401 done
27403 check_languages=
27404 for language in $all_selected_languages
27406 check_languages="$check_languages check-$language"
27407 done
27409 # We link each language in with a set of hooks, reached indirectly via
27410 # lang.${target}. Only do so for selected languages.
27412 rm -f Make-hooks
27413 touch Make-hooks
27414 target_list="all.cross start.encap rest.encap tags \
27415 install-common install-man install-info install-pdf install-html dvi \
27416 pdf html uninstall info man srcextra srcman srcinfo \
27417 mostlyclean clean distclean maintainer-clean install-plugin"
27419 for t in $target_list
27422 for lang in $all_selected_languages
27424 x="$x $lang.$t"
27425 done
27426 echo "lang.$t: $x" >> Make-hooks
27427 done
27429 # --------
27430 # Option include files
27431 # --------
27433 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27434 option_includes="option-includes.mk"
27437 # --------
27438 # UNSORTED
27439 # --------
27441 # Create .gdbinit.
27443 echo "dir ." > .gdbinit
27444 echo "dir ${srcdir}" >> .gdbinit
27445 if test x$gdb_needs_out_file_path = xyes
27446 then
27447 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27449 if test "x$subdirs" != x; then
27450 for s in $subdirs
27452 echo "dir ${srcdir}/$s" >> .gdbinit
27453 done
27455 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27456 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27458 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27462 # Find a directory in which to install a shared libgcc.
27464 # Check whether --enable-version-specific-runtime-libs was given.
27465 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27466 enableval=$enable_version_specific_runtime_libs;
27470 # Substitute configuration variables
27533 # Echo link setup.
27534 if test x${build} = x${host} ; then
27535 if test x${host} = x${target} ; then
27536 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27537 else
27538 echo "Links are now set up to build a cross-compiler" 1>&2
27539 echo " from ${host} to ${target}." 1>&2
27541 else
27542 if test x${host} = x${target} ; then
27543 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27544 echo " for ${target}." 1>&2
27545 else
27546 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27547 echo " from ${host} to ${target}." 1>&2
27559 if test "x${CLOOGLIBS}" != "x" ; then
27561 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27565 # Check for plugin support
27566 # Check whether --enable-plugin was given.
27567 if test "${enable_plugin+set}" = set; then :
27568 enableval=$enable_plugin; enable_plugin=$enableval
27569 else
27570 enable_plugin=yes; default_plugin=yes
27574 pluginlibs=
27576 case "${host}" in
27577 *-*-darwin*)
27578 if test x$build = x$host; then
27579 export_sym_check="nm${exeext} -g"
27580 elif test x$host = x$target; then
27581 export_sym_check="$gcc_cv_nm -g"
27582 else
27583 export_sym_check=
27587 if test x$build = x$host; then
27588 export_sym_check="objdump${exeext} -T"
27589 elif test x$host = x$target; then
27590 export_sym_check="$gcc_cv_objdump -T"
27591 else
27592 export_sym_check=
27595 esac
27597 if test x"$enable_plugin" = x"yes"; then
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27600 $as_echo_n "checking for exported symbols... " >&6; }
27601 if test "x$export_sym_check" != x; then
27602 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27603 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27604 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27605 : # No need to use a flag
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27607 $as_echo "yes" >&6; }
27608 else
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27610 $as_echo "yes" >&6; }
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27612 $as_echo_n "checking for -rdynamic... " >&6; }
27613 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27614 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27615 plugin_rdynamic=yes
27616 pluginlibs="-rdynamic"
27617 else
27618 plugin_rdynamic=no
27619 enable_plugin=no
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27622 $as_echo "$plugin_rdynamic" >&6; }
27624 else
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27626 $as_echo "unable to check" >&6; }
27629 # Check -ldl
27630 saved_LIBS="$LIBS"
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27632 $as_echo_n "checking for library containing dlopen... " >&6; }
27633 if test "${ac_cv_search_dlopen+set}" = set; then :
27634 $as_echo_n "(cached) " >&6
27635 else
27636 ac_func_search_save_LIBS=$LIBS
27637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27638 /* end confdefs.h. */
27640 /* Override any GCC internal prototype to avoid an error.
27641 Use char because int might match the return type of a GCC
27642 builtin and then its argument prototype would still apply. */
27643 #ifdef __cplusplus
27644 extern "C"
27645 #endif
27646 char dlopen ();
27648 main ()
27650 return dlopen ();
27652 return 0;
27654 _ACEOF
27655 for ac_lib in '' dl; do
27656 if test -z "$ac_lib"; then
27657 ac_res="none required"
27658 else
27659 ac_res=-l$ac_lib
27660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27662 if ac_fn_c_try_link "$LINENO"; then :
27663 ac_cv_search_dlopen=$ac_res
27665 rm -f core conftest.err conftest.$ac_objext \
27666 conftest$ac_exeext
27667 if test "${ac_cv_search_dlopen+set}" = set; then :
27668 break
27670 done
27671 if test "${ac_cv_search_dlopen+set}" = set; then :
27673 else
27674 ac_cv_search_dlopen=no
27676 rm conftest.$ac_ext
27677 LIBS=$ac_func_search_save_LIBS
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27680 $as_echo "$ac_cv_search_dlopen" >&6; }
27681 ac_res=$ac_cv_search_dlopen
27682 if test "$ac_res" != no; then :
27683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27687 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27688 pluginlibs="$pluginlibs -ldl"
27690 LIBS="$saved_LIBS"
27692 # Check that we can build shared objects with -fPIC -shared
27693 saved_LDFLAGS="$LDFLAGS"
27694 saved_CFLAGS="$CFLAGS"
27695 case "${host}" in
27696 *-*-darwin*)
27697 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27698 CFLAGS="$CFLAGS -fPIC"
27699 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27702 CFLAGS="$CFLAGS -fPIC"
27703 LDFLAGS="$LDFLAGS -fPIC -shared"
27705 esac
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27707 $as_echo_n "checking for -fPIC -shared... " >&6; }
27708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27709 /* end confdefs.h. */
27710 extern int X;
27712 main ()
27714 return X == 0;
27716 return 0;
27718 _ACEOF
27719 if ac_fn_c_try_link "$LINENO"; then :
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27721 $as_echo "yes" >&6; }; have_pic_shared=yes
27722 else
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27724 $as_echo "no" >&6; }; have_pic_shared=no
27726 rm -f core conftest.err conftest.$ac_objext \
27727 conftest$ac_exeext conftest.$ac_ext
27728 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27729 pluginlibs=
27730 enable_plugin=no
27732 LDFLAGS="$saved_LDFLAGS"
27733 CFLAGS="$saved_CFLAGS"
27735 # If plugin support had been requested but not available, fail.
27736 if test x"$enable_plugin" = x"no" ; then
27737 if test x"$default_plugin" != x"yes"; then
27738 as_fn_error "
27739 Building GCC with plugin support requires a host that supports
27740 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27747 if test x"$enable_plugin" = x"yes"; then
27749 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27754 # Enable --enable-host-shared
27755 # Check whether --enable-host-shared was given.
27756 if test "${enable_host_shared+set}" = set; then :
27757 enableval=$enable_host_shared; PICFLAG=-fPIC
27758 else
27759 PICFLAG=
27766 # Check whether --enable-libquadmath-support was given.
27767 if test "${enable_libquadmath_support+set}" = set; then :
27768 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27769 else
27770 ENABLE_LIBQUADMATH_SUPPORT=yes
27773 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27775 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27780 # Specify what hash style to use by default.
27782 # Check whether --with-linker-hash-style was given.
27783 if test "${with_linker_hash_style+set}" = set; then :
27784 withval=$with_linker_hash_style; case x"$withval" in
27785 xsysv)
27786 LINKER_HASH_STYLE=sysv
27788 xgnu)
27789 LINKER_HASH_STYLE=gnu
27791 xboth)
27792 LINKER_HASH_STYLE=both
27795 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27797 esac
27798 else
27799 LINKER_HASH_STYLE=''
27802 if test x"${LINKER_HASH_STYLE}" != x; then
27804 cat >>confdefs.h <<_ACEOF
27805 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27806 _ACEOF
27810 # Configure the subdirectories
27811 # AC_CONFIG_SUBDIRS($subdirs)
27813 # Create the Makefile
27814 # and configure language subdirectories
27815 ac_config_files="$ac_config_files $all_outputs"
27818 ac_config_commands="$ac_config_commands default"
27820 cat >confcache <<\_ACEOF
27821 # This file is a shell script that caches the results of configure
27822 # tests run on this system so they can be shared between configure
27823 # scripts and configure runs, see configure's option --config-cache.
27824 # It is not useful on other systems. If it contains results you don't
27825 # want to keep, you may remove or edit it.
27827 # config.status only pays attention to the cache file if you give it
27828 # the --recheck option to rerun configure.
27830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27832 # following values.
27834 _ACEOF
27836 # The following way of writing the cache mishandles newlines in values,
27837 # but we know of no workaround that is simple, portable, and efficient.
27838 # So, we kill variables containing newlines.
27839 # Ultrix sh set writes to stderr and can't be redirected directly,
27840 # and sets the high bit in the cache file unless we assign to the vars.
27842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27843 eval ac_val=\$$ac_var
27844 case $ac_val in #(
27845 *${as_nl}*)
27846 case $ac_var in #(
27847 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27849 esac
27850 case $ac_var in #(
27851 _ | IFS | as_nl) ;; #(
27852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27853 *) { eval $ac_var=; unset $ac_var;} ;;
27854 esac ;;
27855 esac
27856 done
27858 (set) 2>&1 |
27859 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27860 *${as_nl}ac_space=\ *)
27861 # `set' does not quote correctly, so add quotes: double-quote
27862 # substitution turns \\\\ into \\, and sed turns \\ into \.
27863 sed -n \
27864 "s/'/'\\\\''/g;
27865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27866 ;; #(
27868 # `set' quotes correctly as required by POSIX, so do not add quotes.
27869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27871 esac |
27872 sort
27874 sed '
27875 /^ac_cv_env_/b end
27876 t clear
27877 :clear
27878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27879 t end
27880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27881 :end' >>confcache
27882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27883 if test -w "$cache_file"; then
27884 test "x$cache_file" != "x/dev/null" &&
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27886 $as_echo "$as_me: updating cache $cache_file" >&6;}
27887 cat confcache >$cache_file
27888 else
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27893 rm -f confcache
27895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27896 # Let make expand exec_prefix.
27897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27899 DEFS=-DHAVE_CONFIG_H
27901 ac_libobjs=
27902 ac_ltlibobjs=
27903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27904 # 1. Remove the extension, and $U if already installed.
27905 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27906 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27907 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27908 # will be set to the directory where LIBOBJS objects are built.
27909 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27910 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27911 done
27912 LIBOBJS=$ac_libobjs
27914 LTLIBOBJS=$ac_ltlibobjs
27919 : ${CONFIG_STATUS=./config.status}
27920 ac_write_fail=0
27921 ac_clean_files_save=$ac_clean_files
27922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27924 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27925 as_write_fail=0
27926 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27927 #! $SHELL
27928 # Generated by $as_me.
27929 # Run this file to recreate the current configuration.
27930 # Compiler output produced by configure, useful for debugging
27931 # configure, is in config.log if it exists.
27933 debug=false
27934 ac_cs_recheck=false
27935 ac_cs_silent=false
27937 SHELL=\${CONFIG_SHELL-$SHELL}
27938 export SHELL
27939 _ASEOF
27940 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27941 ## -------------------- ##
27942 ## M4sh Initialization. ##
27943 ## -------------------- ##
27945 # Be more Bourne compatible
27946 DUALCASE=1; export DUALCASE # for MKS sh
27947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27948 emulate sh
27949 NULLCMD=:
27950 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27951 # is contrary to our usage. Disable this feature.
27952 alias -g '${1+"$@"}'='"$@"'
27953 setopt NO_GLOB_SUBST
27954 else
27955 case `(set -o) 2>/dev/null` in #(
27956 *posix*) :
27957 set -o posix ;; #(
27958 *) :
27960 esac
27964 as_nl='
27966 export as_nl
27967 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27968 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27970 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27971 # Prefer a ksh shell builtin over an external printf program on Solaris,
27972 # but without wasting forks for bash or zsh.
27973 if test -z "$BASH_VERSION$ZSH_VERSION" \
27974 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27975 as_echo='print -r --'
27976 as_echo_n='print -rn --'
27977 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27978 as_echo='printf %s\n'
27979 as_echo_n='printf %s'
27980 else
27981 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27982 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27983 as_echo_n='/usr/ucb/echo -n'
27984 else
27985 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27986 as_echo_n_body='eval
27987 arg=$1;
27988 case $arg in #(
27989 *"$as_nl"*)
27990 expr "X$arg" : "X\\(.*\\)$as_nl";
27991 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27992 esac;
27993 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27995 export as_echo_n_body
27996 as_echo_n='sh -c $as_echo_n_body as_echo'
27998 export as_echo_body
27999 as_echo='sh -c $as_echo_body as_echo'
28002 # The user is always right.
28003 if test "${PATH_SEPARATOR+set}" != set; then
28004 PATH_SEPARATOR=:
28005 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28006 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28007 PATH_SEPARATOR=';'
28012 # IFS
28013 # We need space, tab and new line, in precisely that order. Quoting is
28014 # there to prevent editors from complaining about space-tab.
28015 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28016 # splitting by setting IFS to empty value.)
28017 IFS=" "" $as_nl"
28019 # Find who we are. Look in the path if we contain no directory separator.
28020 case $0 in #((
28021 *[\\/]* ) as_myself=$0 ;;
28022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28023 for as_dir in $PATH
28025 IFS=$as_save_IFS
28026 test -z "$as_dir" && as_dir=.
28027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28028 done
28029 IFS=$as_save_IFS
28032 esac
28033 # We did not find ourselves, most probably we were run as `sh COMMAND'
28034 # in which case we are not to be found in the path.
28035 if test "x$as_myself" = x; then
28036 as_myself=$0
28038 if test ! -f "$as_myself"; then
28039 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28040 exit 1
28043 # Unset variables that we do not need and which cause bugs (e.g. in
28044 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28045 # suppresses any "Segmentation fault" message there. '((' could
28046 # trigger a bug in pdksh 5.2.14.
28047 for as_var in BASH_ENV ENV MAIL MAILPATH
28048 do eval test x\${$as_var+set} = xset \
28049 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28050 done
28051 PS1='$ '
28052 PS2='> '
28053 PS4='+ '
28055 # NLS nuisances.
28056 LC_ALL=C
28057 export LC_ALL
28058 LANGUAGE=C
28059 export LANGUAGE
28061 # CDPATH.
28062 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28065 # as_fn_error ERROR [LINENO LOG_FD]
28066 # ---------------------------------
28067 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28068 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28069 # script with status $?, using 1 if that was 0.
28070 as_fn_error ()
28072 as_status=$?; test $as_status -eq 0 && as_status=1
28073 if test "$3"; then
28074 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28075 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28077 $as_echo "$as_me: error: $1" >&2
28078 as_fn_exit $as_status
28079 } # as_fn_error
28082 # as_fn_set_status STATUS
28083 # -----------------------
28084 # Set $? to STATUS, without forking.
28085 as_fn_set_status ()
28087 return $1
28088 } # as_fn_set_status
28090 # as_fn_exit STATUS
28091 # -----------------
28092 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28093 as_fn_exit ()
28095 set +e
28096 as_fn_set_status $1
28097 exit $1
28098 } # as_fn_exit
28100 # as_fn_unset VAR
28101 # ---------------
28102 # Portably unset VAR.
28103 as_fn_unset ()
28105 { eval $1=; unset $1;}
28107 as_unset=as_fn_unset
28108 # as_fn_append VAR VALUE
28109 # ----------------------
28110 # Append the text in VALUE to the end of the definition contained in VAR. Take
28111 # advantage of any shell optimizations that allow amortized linear growth over
28112 # repeated appends, instead of the typical quadratic growth present in naive
28113 # implementations.
28114 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28115 eval 'as_fn_append ()
28117 eval $1+=\$2
28119 else
28120 as_fn_append ()
28122 eval $1=\$$1\$2
28124 fi # as_fn_append
28126 # as_fn_arith ARG...
28127 # ------------------
28128 # Perform arithmetic evaluation on the ARGs, and store the result in the
28129 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28130 # must be portable across $(()) and expr.
28131 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28132 eval 'as_fn_arith ()
28134 as_val=$(( $* ))
28136 else
28137 as_fn_arith ()
28139 as_val=`expr "$@" || test $? -eq 1`
28141 fi # as_fn_arith
28144 if expr a : '\(a\)' >/dev/null 2>&1 &&
28145 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28146 as_expr=expr
28147 else
28148 as_expr=false
28151 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28152 as_basename=basename
28153 else
28154 as_basename=false
28157 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28158 as_dirname=dirname
28159 else
28160 as_dirname=false
28163 as_me=`$as_basename -- "$0" ||
28164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28165 X"$0" : 'X\(//\)$' \| \
28166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28167 $as_echo X/"$0" |
28168 sed '/^.*\/\([^/][^/]*\)\/*$/{
28169 s//\1/
28172 /^X\/\(\/\/\)$/{
28173 s//\1/
28176 /^X\/\(\/\).*/{
28177 s//\1/
28180 s/.*/./; q'`
28182 # Avoid depending upon Character Ranges.
28183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28186 as_cr_digits='0123456789'
28187 as_cr_alnum=$as_cr_Letters$as_cr_digits
28189 ECHO_C= ECHO_N= ECHO_T=
28190 case `echo -n x` in #(((((
28191 -n*)
28192 case `echo 'xy\c'` in
28193 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28194 xy) ECHO_C='\c';;
28195 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28196 ECHO_T=' ';;
28197 esac;;
28199 ECHO_N='-n';;
28200 esac
28202 rm -f conf$$ conf$$.exe conf$$.file
28203 if test -d conf$$.dir; then
28204 rm -f conf$$.dir/conf$$.file
28205 else
28206 rm -f conf$$.dir
28207 mkdir conf$$.dir 2>/dev/null
28209 if (echo >conf$$.file) 2>/dev/null; then
28210 if ln -s conf$$.file conf$$ 2>/dev/null; then
28211 as_ln_s='ln -s'
28212 # ... but there are two gotchas:
28213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28215 # In both cases, we have to default to `cp -p'.
28216 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28217 as_ln_s='cp -p'
28218 elif ln conf$$.file conf$$ 2>/dev/null; then
28219 as_ln_s=ln
28220 else
28221 as_ln_s='cp -p'
28223 else
28224 as_ln_s='cp -p'
28226 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28227 rmdir conf$$.dir 2>/dev/null
28230 # as_fn_mkdir_p
28231 # -------------
28232 # Create "$as_dir" as a directory, including parents if necessary.
28233 as_fn_mkdir_p ()
28236 case $as_dir in #(
28237 -*) as_dir=./$as_dir;;
28238 esac
28239 test -d "$as_dir" || eval $as_mkdir_p || {
28240 as_dirs=
28241 while :; do
28242 case $as_dir in #(
28243 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28244 *) as_qdir=$as_dir;;
28245 esac
28246 as_dirs="'$as_qdir' $as_dirs"
28247 as_dir=`$as_dirname -- "$as_dir" ||
28248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28249 X"$as_dir" : 'X\(//\)[^/]' \| \
28250 X"$as_dir" : 'X\(//\)$' \| \
28251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28252 $as_echo X"$as_dir" |
28253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28254 s//\1/
28257 /^X\(\/\/\)[^/].*/{
28258 s//\1/
28261 /^X\(\/\/\)$/{
28262 s//\1/
28265 /^X\(\/\).*/{
28266 s//\1/
28269 s/.*/./; q'`
28270 test -d "$as_dir" && break
28271 done
28272 test -z "$as_dirs" || eval "mkdir $as_dirs"
28273 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28276 } # as_fn_mkdir_p
28277 if mkdir -p . 2>/dev/null; then
28278 as_mkdir_p='mkdir -p "$as_dir"'
28279 else
28280 test -d ./-p && rmdir ./-p
28281 as_mkdir_p=false
28284 if test -x / >/dev/null 2>&1; then
28285 as_test_x='test -x'
28286 else
28287 if ls -dL / >/dev/null 2>&1; then
28288 as_ls_L_option=L
28289 else
28290 as_ls_L_option=
28292 as_test_x='
28293 eval sh -c '\''
28294 if test -d "$1"; then
28295 test -d "$1/.";
28296 else
28297 case $1 in #(
28298 -*)set "./$1";;
28299 esac;
28300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28301 ???[sx]*):;;*)false;;esac;fi
28302 '\'' sh
28305 as_executable_p=$as_test_x
28307 # Sed expression to map a string onto a valid CPP name.
28308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28310 # Sed expression to map a string onto a valid variable name.
28311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28314 exec 6>&1
28315 ## ----------------------------------- ##
28316 ## Main body of $CONFIG_STATUS script. ##
28317 ## ----------------------------------- ##
28318 _ASEOF
28319 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28322 # Save the log message, to keep $0 and so on meaningful, and to
28323 # report actual input values of CONFIG_FILES etc. instead of their
28324 # values after options handling.
28325 ac_log="
28326 This file was extended by $as_me, which was
28327 generated by GNU Autoconf 2.64. Invocation command line was
28329 CONFIG_FILES = $CONFIG_FILES
28330 CONFIG_HEADERS = $CONFIG_HEADERS
28331 CONFIG_LINKS = $CONFIG_LINKS
28332 CONFIG_COMMANDS = $CONFIG_COMMANDS
28333 $ $0 $@
28335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28338 _ACEOF
28340 case $ac_config_files in *"
28341 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28342 esac
28344 case $ac_config_headers in *"
28345 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28346 esac
28349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28350 # Files that config.status was made for.
28351 config_files="$ac_config_files"
28352 config_headers="$ac_config_headers"
28353 config_commands="$ac_config_commands"
28355 _ACEOF
28357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28358 ac_cs_usage="\
28359 \`$as_me' instantiates files and other configuration actions
28360 from templates according to the current configuration. Unless the files
28361 and actions are specified as TAGs, all are instantiated by default.
28363 Usage: $0 [OPTION]... [TAG]...
28365 -h, --help print this help, then exit
28366 -V, --version print version number and configuration settings, then exit
28367 -q, --quiet, --silent
28368 do not print progress messages
28369 -d, --debug don't remove temporary files
28370 --recheck update $as_me by reconfiguring in the same conditions
28371 --file=FILE[:TEMPLATE]
28372 instantiate the configuration file FILE
28373 --header=FILE[:TEMPLATE]
28374 instantiate the configuration header FILE
28376 Configuration files:
28377 $config_files
28379 Configuration headers:
28380 $config_headers
28382 Configuration commands:
28383 $config_commands
28385 Report bugs to the package provider."
28387 _ACEOF
28388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28389 ac_cs_version="\\
28390 config.status
28391 configured by $0, generated by GNU Autoconf 2.64,
28392 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28394 Copyright (C) 2009 Free Software Foundation, Inc.
28395 This config.status script is free software; the Free Software Foundation
28396 gives unlimited permission to copy, distribute and modify it."
28398 ac_pwd='$ac_pwd'
28399 srcdir='$srcdir'
28400 AWK='$AWK'
28401 test -n "\$AWK" || AWK=awk
28402 _ACEOF
28404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28405 # The default lists apply if the user does not specify any file.
28406 ac_need_defaults=:
28407 while test $# != 0
28409 case $1 in
28410 --*=*)
28411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28413 ac_shift=:
28416 ac_option=$1
28417 ac_optarg=$2
28418 ac_shift=shift
28420 esac
28422 case $ac_option in
28423 # Handling of the options.
28424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28425 ac_cs_recheck=: ;;
28426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28427 $as_echo "$ac_cs_version"; exit ;;
28428 --debug | --debu | --deb | --de | --d | -d )
28429 debug=: ;;
28430 --file | --fil | --fi | --f )
28431 $ac_shift
28432 case $ac_optarg in
28433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28434 esac
28435 as_fn_append CONFIG_FILES " '$ac_optarg'"
28436 ac_need_defaults=false;;
28437 --header | --heade | --head | --hea )
28438 $ac_shift
28439 case $ac_optarg in
28440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28441 esac
28442 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28443 ac_need_defaults=false;;
28444 --he | --h)
28445 # Conflict between --help and --header
28446 as_fn_error "ambiguous option: \`$1'
28447 Try \`$0 --help' for more information.";;
28448 --help | --hel | -h )
28449 $as_echo "$ac_cs_usage"; exit ;;
28450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28452 ac_cs_silent=: ;;
28454 # This is an error.
28455 -*) as_fn_error "unrecognized option: \`$1'
28456 Try \`$0 --help' for more information." ;;
28458 *) as_fn_append ac_config_targets " $1"
28459 ac_need_defaults=false ;;
28461 esac
28462 shift
28463 done
28465 ac_configure_extra_args=
28467 if $ac_cs_silent; then
28468 exec 6>/dev/null
28469 ac_configure_extra_args="$ac_configure_extra_args --silent"
28472 _ACEOF
28473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28474 if \$ac_cs_recheck; then
28475 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28476 shift
28477 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28478 CONFIG_SHELL='$SHELL'
28479 export CONFIG_SHELL
28480 exec "\$@"
28483 _ACEOF
28484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28485 exec 5>>config.log
28487 echo
28488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28489 ## Running $as_me. ##
28490 _ASBOX
28491 $as_echo "$ac_log"
28492 } >&5
28494 _ACEOF
28495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28497 # INIT-COMMANDS
28499 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28500 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28501 subdirs='$subdirs'
28503 _ACEOF
28505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28507 # Handling of arguments.
28508 for ac_config_target in $ac_config_targets
28510 case $ac_config_target in
28511 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28512 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28513 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28514 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28515 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28516 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28517 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28518 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28520 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28521 esac
28522 done
28525 # If the user did not use the arguments to specify the items to instantiate,
28526 # then the envvar interface is used. Set only those that are not.
28527 # We use the long form for the default assignment because of an extremely
28528 # bizarre bug on SunOS 4.1.3.
28529 if $ac_need_defaults; then
28530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28535 # Have a temporary directory for convenience. Make it in the build tree
28536 # simply because there is no reason against having it here, and in addition,
28537 # creating and moving files from /tmp can sometimes cause problems.
28538 # Hook for its removal unless debugging.
28539 # Note that there is a small window in which the directory will not be cleaned:
28540 # after its creation but before its name has been assigned to `$tmp'.
28541 $debug ||
28543 tmp=
28544 trap 'exit_status=$?
28545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28547 trap 'as_fn_exit 1' 1 2 13 15
28549 # Create a (secure) tmp directory for tmp files.
28552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28553 test -n "$tmp" && test -d "$tmp"
28554 } ||
28556 tmp=./conf$$-$RANDOM
28557 (umask 077 && mkdir "$tmp")
28558 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28560 # Set up the scripts for CONFIG_FILES section.
28561 # No need to generate them if there are no CONFIG_FILES.
28562 # This happens for instance with `./config.status config.h'.
28563 if test -n "$CONFIG_FILES"; then
28565 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28566 ac_cs_awk_getline=:
28567 ac_cs_awk_pipe_init=
28568 ac_cs_awk_read_file='
28569 while ((getline aline < (F[key])) > 0)
28570 print(aline)
28571 close(F[key])'
28572 ac_cs_awk_pipe_fini=
28573 else
28574 ac_cs_awk_getline=false
28575 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28576 ac_cs_awk_read_file='
28577 print "|#_!!_#|"
28578 print "cat " F[key] " &&"
28579 '$ac_cs_awk_pipe_init
28580 # The final `:' finishes the AND list.
28581 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28583 ac_cr=`echo X | tr X '\015'`
28584 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28585 # But we know of no other shell where ac_cr would be empty at this
28586 # point, so we can use a bashism as a fallback.
28587 if test "x$ac_cr" = x; then
28588 eval ac_cr=\$\'\\r\'
28590 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28591 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28592 ac_cs_awk_cr='\r'
28593 else
28594 ac_cs_awk_cr=$ac_cr
28597 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28598 _ACEOF
28600 # Create commands to substitute file output variables.
28602 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28603 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28604 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28605 echo "_ACAWK" &&
28606 echo "_ACEOF"
28607 } >conf$$files.sh &&
28608 . ./conf$$files.sh ||
28609 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28610 rm -f conf$$files.sh
28613 echo "cat >conf$$subs.awk <<_ACEOF" &&
28614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28615 echo "_ACEOF"
28616 } >conf$$subs.sh ||
28617 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28619 ac_delim='%!_!# '
28620 for ac_last_try in false false false false false :; do
28621 . ./conf$$subs.sh ||
28622 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28625 if test $ac_delim_n = $ac_delim_num; then
28626 break
28627 elif $ac_last_try; then
28628 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28629 else
28630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28632 done
28633 rm -f conf$$subs.sh
28635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28636 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28637 _ACEOF
28638 sed -n '
28640 s/^/S["/; s/!.*/"]=/
28643 s/^[^!]*!//
28644 :repl
28645 t repl
28646 s/'"$ac_delim"'$//
28647 t delim
28650 s/\(.\{148\}\).*/\1/
28651 t more1
28652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28655 b repl
28656 :more1
28657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28660 s/.\{148\}//
28661 t nl
28662 :delim
28664 s/\(.\{148\}\).*/\1/
28665 t more2
28666 s/["\\]/\\&/g; s/^/"/; s/$/"/
28669 :more2
28670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28673 s/.\{148\}//
28674 t delim
28675 ' <conf$$subs.awk | sed '
28676 /^[^""]/{
28678 s/\n//
28680 ' >>$CONFIG_STATUS || ac_write_fail=1
28681 rm -f conf$$subs.awk
28682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28683 _ACAWK
28684 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28685 for (key in S) S_is_set[key] = 1
28686 FS = "\a"
28687 \$ac_cs_awk_pipe_init
28690 line = $ 0
28691 nfields = split(line, field, "@")
28692 substed = 0
28693 len = length(field[1])
28694 for (i = 2; i < nfields; i++) {
28695 key = field[i]
28696 keylen = length(key)
28697 if (S_is_set[key]) {
28698 value = S[key]
28699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28700 len += length(value) + length(field[++i])
28701 substed = 1
28702 } else
28703 len += 1 + keylen
28705 if (nfields == 3 && !substed) {
28706 key = field[2]
28707 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28708 \$ac_cs_awk_read_file
28709 next
28712 print line
28714 \$ac_cs_awk_pipe_fini
28715 _ACAWK
28716 _ACEOF
28717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28718 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28719 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28720 else
28722 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28723 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28724 _ACEOF
28726 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28727 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28728 # trailing colons and then remove the whole line if VPATH becomes empty
28729 # (actually we leave an empty line to preserve line numbers).
28730 if test "x$srcdir" = x.; then
28731 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28732 s/:*\$(srcdir):*/:/
28733 s/:*\${srcdir}:*/:/
28734 s/:*@srcdir@:*/:/
28735 s/^\([^=]*=[ ]*\):*/\1/
28736 s/:*$//
28737 s/^[^=]*=[ ]*$//
28741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28742 fi # test -n "$CONFIG_FILES"
28744 # Set up the scripts for CONFIG_HEADERS section.
28745 # No need to generate them if there are no CONFIG_HEADERS.
28746 # This happens for instance with `./config.status Makefile'.
28747 if test -n "$CONFIG_HEADERS"; then
28748 cat >"$tmp/defines.awk" <<\_ACAWK ||
28749 BEGIN {
28750 _ACEOF
28752 # Transform confdefs.h into an awk script `defines.awk', embedded as
28753 # here-document in config.status, that substitutes the proper values into
28754 # config.h.in to produce config.h.
28756 # Create a delimiter string that does not exist in confdefs.h, to ease
28757 # handling of long lines.
28758 ac_delim='%!_!# '
28759 for ac_last_try in false false :; do
28760 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28761 if test -z "$ac_t"; then
28762 break
28763 elif $ac_last_try; then
28764 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28765 else
28766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28768 done
28770 # For the awk script, D is an array of macro values keyed by name,
28771 # likewise P contains macro parameters if any. Preserve backslash
28772 # newline sequences.
28774 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28775 sed -n '
28776 s/.\{148\}/&'"$ac_delim"'/g
28777 t rset
28778 :rset
28779 s/^[ ]*#[ ]*define[ ][ ]*/ /
28780 t def
28782 :def
28783 s/\\$//
28784 t bsnl
28785 s/["\\]/\\&/g
28786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28787 D["\1"]=" \3"/p
28788 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28790 :bsnl
28791 s/["\\]/\\&/g
28792 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28793 D["\1"]=" \3\\\\\\n"\\/p
28794 t cont
28795 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28796 t cont
28798 :cont
28800 s/.\{148\}/&'"$ac_delim"'/g
28801 t clear
28802 :clear
28803 s/\\$//
28804 t bsnlc
28805 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28807 :bsnlc
28808 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28809 b cont
28810 ' <confdefs.h | sed '
28811 s/'"$ac_delim"'/"\\\
28812 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28815 for (key in D) D_is_set[key] = 1
28816 FS = "\a"
28818 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28819 line = \$ 0
28820 split(line, arg, " ")
28821 if (arg[1] == "#") {
28822 defundef = arg[2]
28823 mac1 = arg[3]
28824 } else {
28825 defundef = substr(arg[1], 2)
28826 mac1 = arg[2]
28828 split(mac1, mac2, "(") #)
28829 macro = mac2[1]
28830 prefix = substr(line, 1, index(line, defundef) - 1)
28831 if (D_is_set[macro]) {
28832 # Preserve the white space surrounding the "#".
28833 print prefix "define", macro P[macro] D[macro]
28834 next
28835 } else {
28836 # Replace #undef with comments. This is necessary, for example,
28837 # in the case of _POSIX_SOURCE, which is predefined and required
28838 # on some systems where configure will not decide to define it.
28839 if (defundef == "undef") {
28840 print "/*", prefix defundef, macro, "*/"
28841 next
28845 { print }
28846 _ACAWK
28847 _ACEOF
28848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28849 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28850 fi # test -n "$CONFIG_HEADERS"
28853 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28854 shift
28855 for ac_tag
28857 case $ac_tag in
28858 :[FHLC]) ac_mode=$ac_tag; continue;;
28859 esac
28860 case $ac_mode$ac_tag in
28861 :[FHL]*:*);;
28862 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28863 :[FH]-) ac_tag=-:-;;
28864 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28865 esac
28866 ac_save_IFS=$IFS
28867 IFS=:
28868 set x $ac_tag
28869 IFS=$ac_save_IFS
28870 shift
28871 ac_file=$1
28872 shift
28874 case $ac_mode in
28875 :L) ac_source=$1;;
28876 :[FH])
28877 ac_file_inputs=
28878 for ac_f
28880 case $ac_f in
28881 -) ac_f="$tmp/stdin";;
28882 *) # Look for the file first in the build tree, then in the source tree
28883 # (if the path is not absolute). The absolute path cannot be DOS-style,
28884 # because $ac_f cannot contain `:'.
28885 test -f "$ac_f" ||
28886 case $ac_f in
28887 [\\/$]*) false;;
28888 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28889 esac ||
28890 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28891 esac
28892 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28893 as_fn_append ac_file_inputs " '$ac_f'"
28894 done
28896 # Let's still pretend it is `configure' which instantiates (i.e., don't
28897 # use $as_me), people would be surprised to read:
28898 # /* config.h. Generated by config.status. */
28899 configure_input='Generated from '`
28900 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28901 `' by configure.'
28902 if test x"$ac_file" != x-; then
28903 configure_input="$ac_file. $configure_input"
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28905 $as_echo "$as_me: creating $ac_file" >&6;}
28907 # Neutralize special characters interpreted by sed in replacement strings.
28908 case $configure_input in #(
28909 *\&* | *\|* | *\\* )
28910 ac_sed_conf_input=`$as_echo "$configure_input" |
28911 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28912 *) ac_sed_conf_input=$configure_input;;
28913 esac
28915 case $ac_tag in
28916 *:-:* | *:-) cat >"$tmp/stdin" \
28917 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28918 esac
28920 esac
28922 ac_dir=`$as_dirname -- "$ac_file" ||
28923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28924 X"$ac_file" : 'X\(//\)[^/]' \| \
28925 X"$ac_file" : 'X\(//\)$' \| \
28926 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28927 $as_echo X"$ac_file" |
28928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28929 s//\1/
28932 /^X\(\/\/\)[^/].*/{
28933 s//\1/
28936 /^X\(\/\/\)$/{
28937 s//\1/
28940 /^X\(\/\).*/{
28941 s//\1/
28944 s/.*/./; q'`
28945 as_dir="$ac_dir"; as_fn_mkdir_p
28946 ac_builddir=.
28948 case "$ac_dir" in
28949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28952 # A ".." for each directory in $ac_dir_suffix.
28953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28954 case $ac_top_builddir_sub in
28955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28957 esac ;;
28958 esac
28959 ac_abs_top_builddir=$ac_pwd
28960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28961 # for backward compatibility:
28962 ac_top_builddir=$ac_top_build_prefix
28964 case $srcdir in
28965 .) # We are building in place.
28966 ac_srcdir=.
28967 ac_top_srcdir=$ac_top_builddir_sub
28968 ac_abs_top_srcdir=$ac_pwd ;;
28969 [\\/]* | ?:[\\/]* ) # Absolute name.
28970 ac_srcdir=$srcdir$ac_dir_suffix;
28971 ac_top_srcdir=$srcdir
28972 ac_abs_top_srcdir=$srcdir ;;
28973 *) # Relative name.
28974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28975 ac_top_srcdir=$ac_top_build_prefix$srcdir
28976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28977 esac
28978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28981 case $ac_mode in
28984 # CONFIG_FILE
28987 _ACEOF
28989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28990 # If the template does not know about datarootdir, expand it.
28991 # FIXME: This hack should be removed a few years after 2.60.
28992 ac_datarootdir_hack=; ac_datarootdir_seen=
28993 ac_sed_dataroot='
28994 /datarootdir/ {
28998 /@datadir@/p
28999 /@docdir@/p
29000 /@infodir@/p
29001 /@localedir@/p
29002 /@mandir@/p'
29003 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29004 *datarootdir*) ac_datarootdir_seen=yes;;
29005 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29007 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29008 _ACEOF
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 ac_datarootdir_hack='
29011 s&@datadir@&$datadir&g
29012 s&@docdir@&$docdir&g
29013 s&@infodir@&$infodir&g
29014 s&@localedir@&$localedir&g
29015 s&@mandir@&$mandir&g
29016 s&\\\${datarootdir}&$datarootdir&g' ;;
29017 esac
29018 _ACEOF
29020 # Neutralize VPATH when `$srcdir' = `.'.
29021 # Shell code in configure.ac might set extrasub.
29022 # FIXME: do we really want to maintain this feature?
29023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29024 ac_sed_extra="$ac_vpsub
29025 $extrasub
29026 _ACEOF
29027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29030 s|@configure_input@|$ac_sed_conf_input|;t t
29031 s&@top_builddir@&$ac_top_builddir_sub&;t t
29032 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29033 s&@srcdir@&$ac_srcdir&;t t
29034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29035 s&@top_srcdir@&$ac_top_srcdir&;t t
29036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29037 s&@builddir@&$ac_builddir&;t t
29038 s&@abs_builddir@&$ac_abs_builddir&;t t
29039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29040 $ac_datarootdir_hack
29042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29043 if $ac_cs_awk_getline; then
29044 $AWK -f "$tmp/subs.awk"
29045 else
29046 $AWK -f "$tmp/subs.awk" | $SHELL
29047 fi >$tmp/out \
29048 || as_fn_error "could not create $ac_file" "$LINENO" 5
29050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29054 which seems to be undefined. Please make sure it is defined." >&5
29055 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29056 which seems to be undefined. Please make sure it is defined." >&2;}
29058 rm -f "$tmp/stdin"
29059 case $ac_file in
29060 -) cat "$tmp/out" && rm -f "$tmp/out";;
29061 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29062 esac \
29063 || as_fn_error "could not create $ac_file" "$LINENO" 5
29067 # CONFIG_HEADER
29069 if test x"$ac_file" != x-; then
29071 $as_echo "/* $configure_input */" \
29072 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29073 } >"$tmp/config.h" \
29074 || as_fn_error "could not create $ac_file" "$LINENO" 5
29075 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29077 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29078 else
29079 rm -f "$ac_file"
29080 mv "$tmp/config.h" "$ac_file" \
29081 || as_fn_error "could not create $ac_file" "$LINENO" 5
29083 else
29084 $as_echo "/* $configure_input */" \
29085 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29086 || as_fn_error "could not create -" "$LINENO" 5
29090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29091 $as_echo "$as_me: executing $ac_file commands" >&6;}
29093 esac
29096 case $ac_file$ac_mode in
29097 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29098 "gccdepdir":C)
29099 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29100 for lang in $subdirs c-family common
29102 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29103 done ;;
29104 "as":F) chmod +x as ;;
29105 "collect-ld":F) chmod +x collect-ld ;;
29106 "nm":F) chmod +x nm ;;
29107 "default":C)
29108 case ${CONFIG_HEADERS} in
29109 *auto-host.h:config.in*)
29110 echo > cstamp-h ;;
29111 esac
29112 # Make sure all the subdirs exist.
29113 for d in $subdirs doc build common c-family
29115 test -d $d || mkdir $d
29116 done
29119 esac
29120 done # for ac_tag
29123 as_fn_exit 0
29124 _ACEOF
29125 ac_clean_files=$ac_clean_files_save
29127 test $ac_write_fail = 0 ||
29128 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29131 # configure is writing to config.log, and then calls config.status.
29132 # config.status does its own redirection, appending to config.log.
29133 # Unfortunately, on DOS this fails, as config.log is still kept open
29134 # by configure, so config.status won't be able to write to it; its
29135 # output is simply discarded. So we exec the FD to /dev/null,
29136 # effectively closing config.log, so it can be properly (re)opened and
29137 # appended to by config.status. When coming back to configure, we
29138 # need to make the FD available again.
29139 if test "$no_create" != yes; then
29140 ac_cs_success=:
29141 ac_config_status_args=
29142 test "$silent" = yes &&
29143 ac_config_status_args="$ac_config_status_args --quiet"
29144 exec 5>/dev/null
29145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29146 exec 5>>config.log
29147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29148 # would make configure fail if this is the last instruction.
29149 $ac_cs_success || as_fn_exit $?
29151 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29153 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}