Merge trunk version 207818 into gupc branch.
[official-gcc.git] / gcc / configure
blob5a3c670be599a386b7777663fcba6f347266f055
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 PERL
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 TREEBROWSER
786 nocommon_flag
787 noexception_flags
788 warn_cxxflags
789 warn_cflags
790 c_strict_warn
791 strict_warn
792 c_loose_warn
793 loose_warn
794 EGREP
795 GREP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
810 GENINSRC
811 target_subdir
812 host_subdir
813 build_subdir
814 build_libsubdir
815 target_noncanonical
816 target_os
817 target_vendor
818 target_cpu
819 target
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files='option_includes
867 language_hooks'
868 ac_user_opts='
869 enable_option_checking
870 with_build_libsubdir
871 with_local_prefix
872 with_gxx_include_dir
873 with_cpp_install_dir
874 enable_generated_files_in_srcdir
875 with_gnu_ld
876 with_ld
877 with_demangler_in_ld
878 with_gnu_as
879 with_as
880 enable_largefile
881 enable_build_format_warnings
882 enable_werror_always
883 enable_checking
884 enable_coverage
885 enable_gather_detailed_mem_stats
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_upc_pts
896 with_upc_pts_vaddr_order
897 with_upc_pts_packed_bits
898 enable_upc_link_script
899 with_dwarf2
900 enable_shared
901 with_native_system_header_dir
902 with_build_sysroot
903 with_sysroot
904 with_specs
905 with_pkgversion
906 with_bugurl
907 enable_languages
908 with_multilib_list
909 enable_rpath
910 with_libiconv_prefix
911 enable_sjlj_exceptions
912 enable_secureplt
913 enable_leading_mingw64_underscores
914 enable_cld
915 enable_frame_pointer
916 enable_win32_registry
917 enable_static
918 with_pic
919 enable_fast_install
920 enable_libtool_lock
921 enable_ld
922 enable_gold
923 with_plugin_ld
924 enable_gnu_indirect_function
925 enable_initfini_array
926 enable_comdat
927 with_glibc_version
928 enable_gnu_unique_object
929 enable_linker_build_id
930 with_long_double_128
931 with_gc
932 with_system_zlib
933 enable_maintainer_mode
934 enable_link_mutex
935 enable_version_specific_runtime_libs
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_linker_hash_style
941 ac_precious_vars='build_alias
942 host_alias
943 target_alias
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
950 CXXFLAGS
953 CXXCPP
954 GMPLIBS
955 GMPINC
956 ISLLIBS
957 ISLINC
958 CLOOGLIBS
959 CLOOGINC'
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1030 ac_dashdash=yes ;;
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval enable_$ac_useropt=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1117 with_gas=yes ;;
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 ac_prev=htmldir ;;
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 | --ht=*)
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 ac_prev=infodir ;;
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1150 ac_prev=libdir ;;
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 ac_prev=mandir ;;
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1180 with_fp=no ;;
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1184 no_create=yes ;;
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 no_recursion=yes ;;
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 ac_prev=prefix ;;
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 ac_prev=pdfdir ;;
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1241 ac_prev=psdir ;;
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 psdir=$ac_optarg ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 silent=yes ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1294 -with-* | --with-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information."
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1354 esac
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 esac
1367 done
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415 If a cross compiler is detected then cross compile mode will be used." >&2
1416 elif test "x$build_alias" != "x$host_alias"; then
1417 cross_compiling=yes
1421 ac_tool_prefix=
1422 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424 test "$silent" = yes && exec 6>/dev/null
1427 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di=`ls -di .` &&
1429 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430 as_fn_error "working directory cannot be determined"
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 as_fn_error "pwd does not report name of working directory"
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$as_myself" : 'X\(//\)[^/]' \| \
1442 X"$as_myself" : 'X\(//\)$' \| \
1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 s//\1/
1449 /^X\(\/\/\)[^/].*/{
1450 s//\1/
1453 /^X\(\/\/\)$/{
1454 s//\1/
1457 /^X\(\/\).*/{
1458 s//\1/
1461 s/.*/./; q'`
1462 srcdir=$ac_confdir
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 srcdir=..
1466 else
1467 ac_srcdir_defaulted=no
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1473 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 ac_abs_confdir=`(
1475 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1476 pwd)`
1477 # When building in place, set srcdir=.
1478 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 srcdir=.
1481 # Remove unnecessary trailing slashes from srcdir.
1482 # Double slashes in file names in object file debugging info
1483 # mess up M-x gdb in Emacs.
1484 case $srcdir in
1485 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 esac
1487 for ac_var in $ac_precious_vars; do
1488 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_env_${ac_var}_value=\$${ac_var}
1490 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1492 done
1495 # Report the --help message.
1497 if test "$ac_init_help" = "long"; then
1498 # Omit some internal or obsolete options to make the list less imposing.
1499 # This message is too long to be a string in the A/UX 3.1 sh.
1500 cat <<_ACEOF
1501 \`configure' configures this package to adapt to many kinds of systems.
1503 Usage: $0 [OPTION]... [VAR=VALUE]...
1505 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506 VAR=VALUE. See below for descriptions of some of the useful variables.
1508 Defaults for the options are specified in brackets.
1510 Configuration:
1511 -h, --help display this help and exit
1512 --help=short display options specific to this package
1513 --help=recursive display the short help of all the included packages
1514 -V, --version display version information and exit
1515 -q, --quiet, --silent do not print \`checking...' messages
1516 --cache-file=FILE cache test results in FILE [disabled]
1517 -C, --config-cache alias for \`--cache-file=config.cache'
1518 -n, --no-create do not create output files
1519 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1521 Installation directories:
1522 --prefix=PREFIX install architecture-independent files in PREFIX
1523 [$ac_default_prefix]
1524 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 [PREFIX]
1527 By default, \`make install' will install all the files in
1528 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1529 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530 for instance \`--prefix=\$HOME'.
1532 For better control, use the options below.
1534 Fine tuning of the installation directories:
1535 --bindir=DIR user executables [EPREFIX/bin]
1536 --sbindir=DIR system admin executables [EPREFIX/sbin]
1537 --libexecdir=DIR program executables [EPREFIX/libexec]
1538 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1539 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1540 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1541 --libdir=DIR object code libraries [EPREFIX/lib]
1542 --includedir=DIR C header files [PREFIX/include]
1543 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546 --infodir=DIR info documentation [DATAROOTDIR/info]
1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548 --mandir=DIR man documentation [DATAROOTDIR/man]
1549 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1550 --htmldir=DIR html documentation [DOCDIR]
1551 --dvidir=DIR dvi documentation [DOCDIR]
1552 --pdfdir=DIR pdf documentation [DOCDIR]
1553 --psdir=DIR ps documentation [DOCDIR]
1554 _ACEOF
1556 cat <<\_ACEOF
1558 Program names:
1559 --program-prefix=PREFIX prepend PREFIX to installed program names
1560 --program-suffix=SUFFIX append SUFFIX to installed program names
1561 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1563 System types:
1564 --build=BUILD configure for building on BUILD [guessed]
1565 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1566 --target=TARGET configure for building compilers for TARGET [HOST]
1567 _ACEOF
1570 if test -n "$ac_init_help"; then
1572 cat <<\_ACEOF
1574 Optional Features:
1575 --disable-option-checking ignore unrecognized --enable/--with options
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files in source dir intended
1580 for creating source tarballs for users without
1581 texinfo bison or flex
1582 --disable-largefile omit support for large files
1583 --disable-build-format-warnings
1584 don't use -Wformat while building GCC
1585 --enable-werror-always enable -Werror despite compiler version
1586 --enable-checking[=LIST]
1587 enable expensive run-time checks. With LIST, enable
1588 only specific categories of checks. Categories are:
1589 yes,no,all,none,release. Flags are:
1590 assert,df,fold,gc,gcac,gimple,misc,
1591 rtlflag,rtl,runtime,tree,valgrind,types
1592 --enable-coverage[=LEVEL]
1593 enable compiler's code coverage collection. Use to
1594 measure compiler performance and locate unused parts
1595 of the compiler. With LEVEL, specify optimization.
1596 Values are opt, noopt, default is noopt
1597 --enable-gather-detailed-mem-stats
1598 enable detailed memory allocation stats gathering
1599 --enable-multilib enable library support for multiple ABIs
1600 --enable-multiarch enable support for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit for C++
1602 --enable-decimal-float={no,yes,bid,dpd}
1603 enable decimal float extension to C. Selecting 'bid'
1604 or 'dpd' choses which decimal floating point format
1605 to use
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1608 package
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check for tls support
1611 --enable-objc-gc enable the use of Boehm's garbage collector with the
1612 GNU Objective-C runtime
1613 --enable-upc-link-script
1614 enable UPC's use of a custom linker script; this
1615 will define the UPC shared section as a no load
1616 section on targets where this feature is supported
1617 (requires GNU LD)
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1648 --enable-gnu-unique-object
1649 enable the use of the @gnu_unique_object ELF
1650 extension on glibc systems
1651 --enable-linker-build-id
1652 compiler will always pass --build-id to linker
1653 --enable-maintainer-mode
1654 enable make rules and dependencies not useful (and
1655 sometimes confusing) to the casual installer
1656 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1657 thrashing on the build machine
1658 --enable-version-specific-runtime-libs
1659 specify that runtime libraries should be installed
1660 in a compiler-specific directory
1661 --enable-plugin enable plugin support
1662 --enable-host-shared build host code as shared libraries
1663 --disable-libquadmath-support
1664 disable libquadmath support for Fortran
1666 Optional Packages:
1667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1669 --with-build-libsubdir=DIR Directory where to find libraries for build system
1670 --with-local-prefix=DIR specifies directory to put local include
1671 --with-gxx-include-dir=DIR
1672 specifies directory to put g++ header files
1673 --with-cpp-install-dir=DIR
1674 install the user visible C preprocessor in DIR
1675 (relative to PREFIX) as well as PREFIX/bin
1676 --with-gnu-ld arrange to work with GNU ld
1677 --with-ld arrange to use the specified ld (full pathname)
1678 --with-demangler-in-ld try to use demangler in GNU ld
1679 --with-gnu-as arrange to work with GNU as
1680 --with-as arrange to use the specified as (full pathname)
1681 --with-stabs arrange to use stabs instead of host debug format
1682 --with-upc-pts={struct,packed}
1683 choose the representation of a UPC pointer-to-shared
1684 --with-upc-pts-vaddr-order={last,first}
1685 choose position of the address field in UPC
1686 pointer-to-shared representation
1687 --with-upc-pts-packed-bits=phase,thread,vaddr
1688 choose bit distribution in packed UPC
1689 pointer-to-shared representation
1690 --with-dwarf2 force the default debug format to be DWARF 2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1699 --with-bugurl=URL Direct users to URL to report a bug
1700 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1701 --with-gnu-ld assume the C compiler uses GNU ld default=no
1702 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1703 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1705 both]
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-plugin-ld=[ARG] specify the plugin linker
1708 --with-glibc-version=M.N
1709 assume GCC used with glibc version M.N or later
1710 --with-long-double-128 use 128-bit long double by default
1711 --with-gc={page,zone} this option is not supported anymore. It used to
1712 choose the garbage collection mechanism to use with
1713 the compiler
1714 --with-system-zlib use installed libz
1715 --with-linker-hash-style={sysv,gnu,both}
1716 specify the linker hash style
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 CPP C preprocessor
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1734 CLOOGLIBS How to link CLOOG
1735 CLOOGINC How to find CLOOG include files
1737 Use these variables to override the choices made by `configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1741 _ACEOF
1742 ac_status=$?
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1750 continue
1751 ac_builddir=.
1753 case "$ac_dir" in
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 esac ;;
1763 esac
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1769 case $srcdir in
1770 .) # We are building in place.
1771 ac_srcdir=.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1778 *) # Relative name.
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 esac
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1793 else
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 fi || ac_status=$?
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1797 done
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1802 cat <<\_ACEOF
1803 configure
1804 generated by GNU Autoconf 2.64
1806 Copyright (C) 2009 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1809 _ACEOF
1810 exit
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_c_try_compile LINENO
1818 # --------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 return $ac_retval
1853 } # ac_fn_c_try_compile
1855 # ac_fn_cxx_try_compile LINENO
1856 # ----------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 return $ac_retval
1891 } # ac_fn_cxx_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev/null && {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1928 } # ac_fn_c_try_cpp
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2021 ac_fn_c_try_run ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2042 ac_status=$?
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 return $ac_retval
2057 } # ac_fn_c_try_run
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$3=yes"
2078 else
2079 eval "$3=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2094 # computed
2095 ac_fn_c_compute_int ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if test "$cross_compiling" = yes; then
2099 # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=0 ac_mid=0
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_hi=$ac_mid; break
2131 else
2132 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2133 if test $ac_lo -le $ac_mid; then
2134 ac_lo= ac_hi=
2135 break
2137 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 static int test_array [1 - 2 * !(($2) < 0)];
2149 test_array [0] = 0
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=-1 ac_mid=-1
2157 while :; do
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2165 test_array [0] = 0
2168 return 0;
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_lo=$ac_mid; break
2173 else
2174 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2175 if test $ac_mid -le $ac_hi; then
2176 ac_lo= ac_hi=
2177 break
2179 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 done
2183 else
2184 ac_lo= ac_hi=
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 # Binary search between lo and hi bounds.
2190 while test "x$ac_lo" != "x$ac_hi"; do
2191 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2196 main ()
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 test_array [0] = 0
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid
2207 else
2208 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
2212 case $ac_lo in #((
2213 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2214 '') ac_retval=1 ;;
2215 esac
2216 else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2220 static long int longval () { return $2; }
2221 static unsigned long int ulongval () { return $2; }
2222 #include <stdio.h>
2223 #include <stdlib.h>
2225 main ()
2228 FILE *f = fopen ("conftest.val", "w");
2229 if (! f)
2230 return 1;
2231 if (($2) < 0)
2233 long int i = longval ();
2234 if (i != ($2))
2235 return 1;
2236 fprintf (f, "%ld", i);
2238 else
2240 unsigned long int i = ulongval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%lu", i);
2245 /* Do not output a trailing newline, as this causes \r\n confusion
2246 on some platforms. */
2247 return ferror (f) || fclose (f) != 0;
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_run "$LINENO"; then :
2254 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2255 else
2256 ac_retval=1
2258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2259 conftest.$ac_objext conftest.beam conftest.$ac_ext
2260 rm -f conftest.val
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 return $ac_retval
2266 } # ac_fn_c_compute_int
2268 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2269 # -------------------------------------------
2270 # Tests whether TYPE exists after having included INCLUDES, setting cache
2271 # variable VAR accordingly.
2272 ac_fn_c_check_type ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 eval "$3=no"
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 if (sizeof ($2))
2288 return 0;
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 if (sizeof (($2)))
2301 return 0;
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2308 else
2309 eval "$3=yes"
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 } # ac_fn_c_check_type
2322 # ac_fn_c_find_intX_t LINENO BITS VAR
2323 # -----------------------------------
2324 # Finds a signed integer type with width BITS, setting cache variable VAR
2325 # accordingly.
2326 ac_fn_c_find_intX_t ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2330 $as_echo_n "checking for int$2_t... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=no"
2335 for ac_type in int$2_t 'int' 'long int' \
2336 'long long int' 'short int' 'signed char'; do
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $ac_includes_default
2341 main ()
2343 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 $ac_includes_default
2355 main ()
2357 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2358 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2359 test_array [0] = 0
2362 return 0;
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2367 else
2368 case $ac_type in #(
2369 int$2_t) :
2370 eval "$3=yes" ;; #(
2371 *) :
2372 eval "$3=\$ac_type" ;;
2373 esac
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 eval as_val=\$$3
2379 if test "x$as_val" = x""no; then :
2381 else
2382 break
2384 done
2386 eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_find_intX_t
2393 # ac_fn_c_try_link LINENO
2394 # -----------------------
2395 # Try to link conftest.$ac_ext, and return whether this succeeded.
2396 ac_fn_c_try_link ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { { ac_try="$ac_link"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_link") 2>conftest.err
2408 ac_status=$?
2409 if test -s conftest.err; then
2410 grep -v '^ *+' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2412 mv -f conftest.er1 conftest.err
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest$ac_exeext && {
2419 test "$cross_compiling" = yes ||
2420 $as_test_x conftest$ac_exeext
2421 }; then :
2422 ac_retval=0
2423 else
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 ac_retval=1
2429 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2430 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2431 # interfere with the next link command; also delete a directory that is
2432 # left behind by Apple's compiler. We do this before executing the actions.
2433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2435 return $ac_retval
2437 } # ac_fn_c_try_link
2439 # ac_fn_c_find_uintX_t LINENO BITS VAR
2440 # ------------------------------------
2441 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2442 # accordingly.
2443 ac_fn_c_find_uintX_t ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2447 $as_echo_n "checking for uint$2_t... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 eval "$3=no"
2452 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2453 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 $ac_includes_default
2458 main ()
2460 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2461 test_array [0] = 0
2464 return 0;
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 case $ac_type in #(
2469 uint$2_t) :
2470 eval "$3=yes" ;; #(
2471 *) :
2472 eval "$3=\$ac_type" ;;
2473 esac
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 eval as_val=\$$3
2477 if test "x$as_val" = x""no; then :
2479 else
2480 break
2482 done
2484 eval ac_res=\$$3
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2487 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 } # ac_fn_c_find_uintX_t
2491 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2492 # ----------------------------------------------
2493 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2494 ac_fn_c_check_header_preproc ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2504 #include <$2>
2505 _ACEOF
2506 if ac_fn_c_try_cpp "$LINENO"; then :
2507 eval "$3=yes"
2508 else
2509 eval "$3=no"
2511 rm -f conftest.err conftest.$ac_ext
2513 eval ac_res=\$$3
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_c_check_header_preproc
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2527 case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev/null && {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 }; then :
2545 ac_retval=0
2546 else
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_retval=1
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 return $ac_retval
2555 } # ac_fn_cxx_try_cpp
2557 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2558 # ------------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_cxx_check_header_preproc ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 #include <$2>
2571 _ACEOF
2572 if ac_fn_cxx_try_cpp "$LINENO"; then :
2573 eval "$3=yes"
2574 else
2575 eval "$3=no"
2577 rm -f conftest.err conftest.$ac_ext
2579 eval ac_res=\$$3
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_cxx_check_header_preproc
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2601 #define $2 innocuous_$2
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $2 (); below.
2605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 <limits.h> exists even on freestanding compilers. */
2608 #ifdef __STDC__
2609 # include <limits.h>
2610 #else
2611 # include <assert.h>
2612 #endif
2614 #undef $2
2616 /* Override any GCC internal prototype to avoid an error.
2617 Use char because int might match the return type of a GCC
2618 builtin and then its argument prototype would still apply. */
2619 #ifdef __cplusplus
2620 extern "C"
2621 #endif
2622 char $2 ();
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined __stub_$2 || defined __stub___$2
2627 choke me
2628 #endif
2631 main ()
2633 return $2 ();
2635 return 0;
2637 _ACEOF
2638 if ac_fn_c_try_link "$LINENO"; then :
2639 eval "$3=yes"
2640 else
2641 eval "$3=no"
2643 rm -f core conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2646 eval ac_res=\$$3
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 } # ac_fn_c_check_func
2653 # ac_fn_cxx_try_link LINENO
2654 # -------------------------
2655 # Try to link conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_link ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { { ac_try="$ac_link"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2666 $as_echo "$ac_try_echo"; } >&5
2667 (eval "$ac_link") 2>conftest.err
2668 ac_status=$?
2669 if test -s conftest.err; then
2670 grep -v '^ *+' conftest.err >conftest.er1
2671 cat conftest.er1 >&5
2672 mv -f conftest.er1 conftest.err
2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2675 test $ac_status = 0; } && {
2676 test -z "$ac_cxx_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest$ac_exeext && {
2679 test "$cross_compiling" = yes ||
2680 $as_test_x conftest$ac_exeext
2681 }; then :
2682 ac_retval=0
2683 else
2684 $as_echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2687 ac_retval=1
2689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2691 # interfere with the next link command; also delete a directory that is
2692 # left behind by Apple's compiler. We do this before executing the actions.
2693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2695 return $ac_retval
2697 } # ac_fn_cxx_try_link
2698 cat >config.log <<_ACEOF
2699 This file contains any messages produced by compilers while
2700 running configure, to aid debugging if configure makes a mistake.
2702 It was created by $as_me, which was
2703 generated by GNU Autoconf 2.64. Invocation command line was
2705 $ $0 $@
2707 _ACEOF
2708 exec 5>>config.log
2710 cat <<_ASUNAME
2711 ## --------- ##
2712 ## Platform. ##
2713 ## --------- ##
2715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 _ASUNAME
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 $as_echo "PATH: $as_dir"
2740 done
2741 IFS=$as_save_IFS
2743 } >&5
2745 cat >&5 <<_ACEOF
2748 ## ----------- ##
2749 ## Core tests. ##
2750 ## ----------- ##
2752 _ACEOF
2755 # Keep a trace of the command line.
2756 # Strip out --no-create and --no-recursion so they do not pile up.
2757 # Strip out --silent because we don't want to record it for future runs.
2758 # Also quote any args containing shell meta-characters.
2759 # Make two passes to allow for proper duplicate-argument suppression.
2760 ac_configure_args=
2761 ac_configure_args0=
2762 ac_configure_args1=
2763 ac_must_keep_next=false
2764 for ac_pass in 1 2
2766 for ac_arg
2768 case $ac_arg in
2769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2771 | -silent | --silent | --silen | --sile | --sil)
2772 continue ;;
2773 *\'*)
2774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 esac
2776 case $ac_pass in
2777 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2779 as_fn_append ac_configure_args1 " '$ac_arg'"
2780 if test $ac_must_keep_next = true; then
2781 ac_must_keep_next=false # Got value, back to normal.
2782 else
2783 case $ac_arg in
2784 *=* | --config-cache | -C | -disable-* | --disable-* \
2785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2787 | -with-* | --with-* | -without-* | --without-* | --x)
2788 case "$ac_configure_args0 " in
2789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2790 esac
2792 -* ) ac_must_keep_next=true ;;
2793 esac
2795 as_fn_append ac_configure_args " '$ac_arg'"
2797 esac
2798 done
2799 done
2800 { ac_configure_args0=; unset ac_configure_args0;}
2801 { ac_configure_args1=; unset ac_configure_args1;}
2803 # When interrupted or exit'd, cleanup temporary files, and complete
2804 # config.log. We remove comments because anyway the quotes in there
2805 # would cause problems or look ugly.
2806 # WARNING: Use '\'' to represent an apostrophe within the trap.
2807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2808 trap 'exit_status=$?
2809 # Save into config.log some information that might help in debugging.
2811 echo
2813 cat <<\_ASBOX
2814 ## ---------------- ##
2815 ## Cache variables. ##
2816 ## ---------------- ##
2817 _ASBOX
2818 echo
2819 # The following way of writing the cache mishandles newlines in values,
2821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2822 eval ac_val=\$$ac_var
2823 case $ac_val in #(
2824 *${as_nl}*)
2825 case $ac_var in #(
2826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2828 esac
2829 case $ac_var in #(
2830 _ | IFS | as_nl) ;; #(
2831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2832 *) { eval $ac_var=; unset $ac_var;} ;;
2833 esac ;;
2834 esac
2835 done
2836 (set) 2>&1 |
2837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2838 *${as_nl}ac_space=\ *)
2839 sed -n \
2840 "s/'\''/'\''\\\\'\'''\''/g;
2841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2842 ;; #(
2844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2846 esac |
2847 sort
2849 echo
2851 cat <<\_ASBOX
2852 ## ----------------- ##
2853 ## Output variables. ##
2854 ## ----------------- ##
2855 _ASBOX
2856 echo
2857 for ac_var in $ac_subst_vars
2859 eval ac_val=\$$ac_var
2860 case $ac_val in
2861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2862 esac
2863 $as_echo "$ac_var='\''$ac_val'\''"
2864 done | sort
2865 echo
2867 if test -n "$ac_subst_files"; then
2868 cat <<\_ASBOX
2869 ## ------------------- ##
2870 ## File substitutions. ##
2871 ## ------------------- ##
2872 _ASBOX
2873 echo
2874 for ac_var in $ac_subst_files
2876 eval ac_val=\$$ac_var
2877 case $ac_val in
2878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2879 esac
2880 $as_echo "$ac_var='\''$ac_val'\''"
2881 done | sort
2882 echo
2885 if test -s confdefs.h; then
2886 cat <<\_ASBOX
2887 ## ----------- ##
2888 ## confdefs.h. ##
2889 ## ----------- ##
2890 _ASBOX
2891 echo
2892 cat confdefs.h
2893 echo
2895 test "$ac_signal" != 0 &&
2896 $as_echo "$as_me: caught signal $ac_signal"
2897 $as_echo "$as_me: exit $exit_status"
2898 } >&5
2899 rm -f core *.core core.conftest.* &&
2900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 exit $exit_status
2903 for ac_signal in 1 2 13 15; do
2904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2905 done
2906 ac_signal=0
2908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2909 rm -f -r conftest* confdefs.h
2911 $as_echo "/* confdefs.h */" > confdefs.h
2913 # Predefined preprocessor variables.
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 _ACEOF
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 _ACEOF
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 _ACEOF
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 _ACEOF
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 _ACEOF
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_URL "$PACKAGE_URL"
2937 _ACEOF
2940 # Let the site file select an alternate cache file if it wants to.
2941 # Prefer an explicitly selected file to automatically selected ones.
2942 ac_site_file1=NONE
2943 ac_site_file2=NONE
2944 if test -n "$CONFIG_SITE"; then
2945 ac_site_file1=$CONFIG_SITE
2946 elif test "x$prefix" != xNONE; then
2947 ac_site_file1=$prefix/share/config.site
2948 ac_site_file2=$prefix/etc/config.site
2949 else
2950 ac_site_file1=$ac_default_prefix/share/config.site
2951 ac_site_file2=$ac_default_prefix/etc/config.site
2953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2955 test "x$ac_site_file" = xNONE && continue
2956 if test -r "$ac_site_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2959 sed 's/^/| /' "$ac_site_file" >&5
2960 . "$ac_site_file"
2962 done
2964 if test -r "$cache_file"; then
2965 # Some versions of bash will fail to source /dev/null (special
2966 # files actually), so we avoid doing that.
2967 if test -f "$cache_file"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2969 $as_echo "$as_me: loading cache $cache_file" >&6;}
2970 case $cache_file in
2971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2972 *) . "./$cache_file";;
2973 esac
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2977 $as_echo "$as_me: creating cache $cache_file" >&6;}
2978 >$cache_file
2981 # Check that the precious variables saved in the cache have kept the same
2982 # value.
2983 ac_cache_corrupted=false
2984 for ac_var in $ac_precious_vars; do
2985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986 eval ac_new_set=\$ac_env_${ac_var}_set
2987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988 eval ac_new_val=\$ac_env_${ac_var}_value
2989 case $ac_old_set,$ac_new_set in
2990 set,)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2994 ,set)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
2998 ,);;
3000 if test "x$ac_old_val" != "x$ac_new_val"; then
3001 # differences in whitespace do not lead to failure.
3002 ac_old_val_w=`echo x $ac_old_val`
3003 ac_new_val_w=`echo x $ac_new_val`
3004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3007 ac_cache_corrupted=:
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011 eval $ac_var=\$ac_old_val
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 fi;;
3018 esac
3019 # Pass precious variables to config.status.
3020 if test "$ac_new_set" = set; then
3021 case $ac_new_val in
3022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3023 *) ac_arg=$ac_var=$ac_new_val ;;
3024 esac
3025 case " $ac_configure_args " in
3026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3028 esac
3030 done
3031 if $ac_cache_corrupted; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3038 ## -------------------- ##
3039 ## Main body of script. ##
3040 ## -------------------- ##
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3056 gcc_version=`cat $srcdir/BASE-VER`
3058 # Determine the host, build, and target systems
3059 ac_aux_dir=
3060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3061 for ac_t in install-sh install.sh shtool; do
3062 if test -f "$ac_dir/$ac_t"; then
3063 ac_aux_dir=$ac_dir
3064 ac_install_sh="$ac_aux_dir/$ac_t -c"
3065 break 2
3067 done
3068 done
3069 if test -z "$ac_aux_dir"; then
3070 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3073 # These three variables are undocumented and unsupported,
3074 # and are intended to be withdrawn in a future Autoconf release.
3075 # They can cause serious problems if a builder's source tree is in a directory
3076 # whose full name contains unusual characters.
3077 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3078 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3079 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3082 # Make sure we can run config.sub.
3083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3084 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3087 $as_echo_n "checking build system type... " >&6; }
3088 if test "${ac_cv_build+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 ac_build_alias=$build_alias
3092 test "x$ac_build_alias" = x &&
3093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3094 test "x$ac_build_alias" = x &&
3095 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3097 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3101 $as_echo "$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3103 *-*-*) ;;
3104 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3105 esac
3106 build=$ac_cv_build
3107 ac_save_IFS=$IFS; IFS='-'
3108 set x $ac_cv_build
3109 shift
3110 build_cpu=$1
3111 build_vendor=$2
3112 shift; shift
3113 # Remember, the first character of IFS is used to create $*,
3114 # except with old shells:
3115 build_os=$*
3116 IFS=$ac_save_IFS
3117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3121 $as_echo_n "checking host system type... " >&6; }
3122 if test "${ac_cv_host+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test "x$host_alias" = x; then
3126 ac_cv_host=$ac_cv_build
3127 else
3128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3129 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3134 $as_echo "$ac_cv_host" >&6; }
3135 case $ac_cv_host in
3136 *-*-*) ;;
3137 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3138 esac
3139 host=$ac_cv_host
3140 ac_save_IFS=$IFS; IFS='-'
3141 set x $ac_cv_host
3142 shift
3143 host_cpu=$1
3144 host_vendor=$2
3145 shift; shift
3146 # Remember, the first character of IFS is used to create $*,
3147 # except with old shells:
3148 host_os=$*
3149 IFS=$ac_save_IFS
3150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3154 $as_echo_n "checking target system type... " >&6; }
3155 if test "${ac_cv_target+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test "x$target_alias" = x; then
3159 ac_cv_target=$ac_cv_host
3160 else
3161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3162 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3167 $as_echo "$ac_cv_target" >&6; }
3168 case $ac_cv_target in
3169 *-*-*) ;;
3170 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3171 esac
3172 target=$ac_cv_target
3173 ac_save_IFS=$IFS; IFS='-'
3174 set x $ac_cv_target
3175 shift
3176 target_cpu=$1
3177 target_vendor=$2
3178 shift; shift
3179 # Remember, the first character of IFS is used to create $*,
3180 # except with old shells:
3181 target_os=$*
3182 IFS=$ac_save_IFS
3183 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3186 # The aliases save the names the user supplied, while $host etc.
3187 # will get canonicalized.
3188 test -n "$target_alias" &&
3189 test "$program_prefix$program_suffix$program_transform_name" = \
3190 NONENONEs,x,x, &&
3191 program_prefix=${target_alias}-
3193 # Determine the noncanonical target name, for directory use.
3194 case ${build_alias} in
3195 "") build_noncanonical=${build} ;;
3196 *) build_noncanonical=${build_alias} ;;
3197 esac
3199 case ${host_alias} in
3200 "") host_noncanonical=${build_noncanonical} ;;
3201 *) host_noncanonical=${host_alias} ;;
3202 esac
3204 case ${target_alias} in
3205 "") target_noncanonical=${host_noncanonical} ;;
3206 *) target_noncanonical=${target_alias} ;;
3207 esac
3212 # Determine the target- and build-specific subdirectories
3214 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3215 # have matching libraries, they should use host libraries: Makefile.tpl
3216 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3217 # However, they still use the build modules, because the corresponding
3218 # host modules (e.g. bison) are only built for the host when bootstrap
3219 # finishes. So:
3220 # - build_subdir is where we find build modules, and never changes.
3221 # - build_libsubdir is where we find build libraries, and can be overridden.
3223 # Prefix 'build-' so this never conflicts with target_subdir.
3224 build_subdir="build-${build_noncanonical}"
3226 # Check whether --with-build-libsubdir was given.
3227 if test "${with_build_libsubdir+set}" = set; then :
3228 withval=$with_build_libsubdir; build_libsubdir="$withval"
3229 else
3230 build_libsubdir="$build_subdir"
3233 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3234 if ( test $srcdir = . && test -d gcc ) \
3235 || test -d $srcdir/../host-${host_noncanonical}; then
3236 host_subdir="host-${host_noncanonical}"
3237 else
3238 host_subdir=.
3240 # No prefix.
3241 target_subdir=${target_noncanonical}
3244 # Set program_transform_name
3245 test "$program_prefix" != NONE &&
3246 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3247 # Use a double $ so make ignores it.
3248 test "$program_suffix" != NONE &&
3249 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3250 # Double any \ or $.
3251 # By default was `s,x,x', remove it if useless.
3252 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3253 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3256 # Check for bogus environment variables.
3257 # Test if LIBRARY_PATH contains the notation for the current directory
3258 # since this would lead to problems installing/building glibc.
3259 # LIBRARY_PATH contains the current directory if one of the following
3260 # is true:
3261 # - one of the terminals (":" and ";") is the first or last sign
3262 # - two terminals occur directly after each other
3263 # - the path contains an element with a dot in it
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3265 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3266 case ${LIBRARY_PATH} in
3267 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3268 library_path_setting="contains current directory"
3271 library_path_setting="ok"
3273 esac
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3275 $as_echo "$library_path_setting" >&6; }
3276 if test "$library_path_setting" != "ok"; then
3277 as_fn_error "
3278 *** LIBRARY_PATH shouldn't contain the current directory when
3279 *** building gcc. Please change the environment variable
3280 *** and run configure again." "$LINENO" 5
3283 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3284 # since this would lead to problems installing/building glibc.
3285 # GCC_EXEC_PREFIX contains the current directory if one of the following
3286 # is true:
3287 # - one of the terminals (":" and ";") is the first or last sign
3288 # - two terminals occur directly after each other
3289 # - the path contains an element with a dot in it
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3291 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3292 case ${GCC_EXEC_PREFIX} in
3293 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3294 gcc_exec_prefix_setting="contains current directory"
3297 gcc_exec_prefix_setting="ok"
3299 esac
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3301 $as_echo "$gcc_exec_prefix_setting" >&6; }
3302 if test "$gcc_exec_prefix_setting" != "ok"; then
3303 as_fn_error "
3304 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3305 *** building gcc. Please change the environment variable
3306 *** and run configure again." "$LINENO" 5
3309 # -----------
3310 # Directories
3311 # -----------
3313 # Specify the local prefix
3314 local_prefix=
3316 # Check whether --with-local-prefix was given.
3317 if test "${with_local_prefix+set}" = set; then :
3318 withval=$with_local_prefix; case "${withval}" in
3319 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3320 no) ;;
3321 *) local_prefix=$with_local_prefix ;;
3322 esac
3326 # Default local prefix if it is empty
3327 if test x$local_prefix = x; then
3328 local_prefix=/usr/local
3331 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3332 # passed in by the toplevel make and thus we'd get different behavior
3333 # depending on where we built the sources.
3334 gcc_gxx_include_dir=
3335 # Specify the g++ header file directory
3337 # Check whether --with-gxx-include-dir was given.
3338 if test "${with_gxx_include_dir+set}" = set; then :
3339 withval=$with_gxx_include_dir; case "${withval}" in
3340 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3341 no) ;;
3342 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3343 esac
3347 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3348 if test x${gcc_gxx_include_dir} = x; then
3349 if test x${enable_version_specific_runtime_libs} = xyes; then
3350 gcc_gxx_include_dir='${libsubdir}/include/c++'
3351 else
3352 libstdcxx_incdir='include/c++/$(version)'
3353 if test x$host != x$target; then
3354 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3356 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3360 gcc_gxx_include_dir_add_sysroot=0
3361 if test "${with_sysroot+set}" = set; then
3362 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3363 if test "${gcc_gxx_without_sysroot}"; then
3364 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3365 gcc_gxx_include_dir_add_sysroot=1
3370 # Check whether --with-cpp_install_dir was given.
3371 if test "${with_cpp_install_dir+set}" = set; then :
3372 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3373 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3374 elif test x$withval != xno; then
3375 cpp_install_dir=$withval
3380 # We would like to our source tree to be readonly. However when releases or
3381 # pre-releases are generated, the flex/bison generated files as well as the
3382 # various formats of manuals need to be included along with the rest of the
3383 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3384 # just that.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3387 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3388 # Check whether --enable-generated-files-in-srcdir was given.
3389 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3390 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3391 else
3392 generated_files_in_srcdir=no
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3397 $as_echo "$generated_files_in_srcdir" >&6; }
3399 if test "$generated_files_in_srcdir" = "yes"; then
3400 GENINSRC=''
3401 else
3402 GENINSRC='#'
3406 # -------------------
3407 # Find default linker
3408 # -------------------
3410 # With GNU ld
3412 # Check whether --with-gnu-ld was given.
3413 if test "${with_gnu_ld+set}" = set; then :
3414 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3415 else
3416 gnu_ld_flag=no
3420 # With pre-defined ld
3422 # Check whether --with-ld was given.
3423 if test "${with_ld+set}" = set; then :
3424 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test ! -x "$DEFAULT_LINKER"; then
3429 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3430 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3431 gnu_ld_flag=yes
3434 cat >>confdefs.h <<_ACEOF
3435 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3436 _ACEOF
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3441 $as_echo_n "checking whether a default linker was specified... " >&6; }
3442 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3443 if test x"$gnu_ld_flag" = x"no"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3445 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3448 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 # With demangler in GNU ld
3457 # Check whether --with-demangler-in-ld was given.
3458 if test "${with_demangler_in_ld+set}" = set; then :
3459 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3460 else
3461 demangler_in_ld=yes
3465 # ----------------------
3466 # Find default assembler
3467 # ----------------------
3469 # With GNU as
3471 # Check whether --with-gnu-as was given.
3472 if test "${with_gnu_as+set}" = set; then :
3473 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3474 else
3475 gas_flag=no
3480 # Check whether --with-as was given.
3481 if test "${with_as+set}" = set; then :
3482 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test ! -x "$DEFAULT_ASSEMBLER"; then
3487 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3488 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3489 gas_flag=yes
3492 cat >>confdefs.h <<_ACEOF
3493 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3494 _ACEOF
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3499 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3500 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3501 if test x"$gas_flag" = x"no"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3503 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3506 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3513 # ---------------
3514 # Find C compiler
3515 # ---------------
3517 # If a non-executable a.out is present (e.g. created by GNU as above even if
3518 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3519 # file, even when creating an executable, so an execution test fails.
3520 # Remove possible default executable files to avoid this.
3522 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3523 # Autoconf includes it.
3524 rm -f a.out a.exe b.out
3526 # Find the native compiler
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$ac_cv_prog_CC"; then
3572 ac_ct_CC=$CC
3573 # Extract the first word of "gcc", so it can be a program name with args.
3574 set dummy gcc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC="gcc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601 if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603 $as_echo "$ac_ct_CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3609 if test "x$ac_ct_CC" = x; then
3610 CC=""
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618 CC=$ac_ct_CC
3620 else
3621 CC="$ac_cv_prog_CC"
3624 if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 # Extract the first word of "cc", so it can be a program name with args.
3667 set dummy cc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 ac_prog_rejected=no
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3685 ac_prog_rejected=yes
3686 continue
3688 ac_cv_prog_CC="cc"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3692 done
3693 done
3694 IFS=$as_save_IFS
3696 if test $ac_prog_rejected = yes; then
3697 # We found a bogon in the path, so make sure we never use it.
3698 set dummy $ac_cv_prog_CC
3699 shift
3700 if test $# != 0; then
3701 # We chose a different compiler from the bogus one.
3702 # However, it has the same basename, so the bogon will be chosen
3703 # first if we set CC to just the basename; use the full file name.
3704 shift
3705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog in cl.exe
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$CC" && break
3763 done
3765 if test -z "$CC"; then
3766 ac_ct_CC=$CC
3767 for ac_prog in cl.exe
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_ac_ct_CC="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3792 IFS=$as_save_IFS
3796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797 if test -n "$ac_ct_CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 $as_echo "$ac_ct_CC" >&6; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3806 test -n "$ac_ct_CC" && break
3807 done
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "no acceptable C compiler found in \$PATH
3828 See \`config.log' for more details." "$LINENO" 5; }
3830 # Provide some information about the compiler.
3831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3832 set X $ac_compile
3833 ac_compiler=$2
3834 for ac_option in --version -v -V -qversion; do
3835 { { ac_try="$ac_compiler $ac_option >&5"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3843 ac_status=$?
3844 if test -s conftest.err; then
3845 sed '10a\
3846 ... rest of stderr output deleted ...
3847 10q' conftest.err >conftest.er1
3848 cat conftest.er1 >&5
3849 rm -f conftest.er1 conftest.err
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }
3853 done
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 main ()
3863 return 0;
3865 _ACEOF
3866 ac_clean_files_save=$ac_clean_files
3867 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3868 # Try to create an executable without -o first, disregard a.out.
3869 # It will help us diagnose broken compilers, and finding out an intuition
3870 # of exeext.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3875 # The possible output files:
3876 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3878 ac_rmfiles=
3879 for ac_file in $ac_files
3881 case $ac_file in
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3884 esac
3885 done
3886 rm -f $ac_rmfiles
3888 if { { ac_try="$ac_link_default"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link_default") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3900 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3901 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3902 # so that the user can short-circuit this test for compilers unknown to
3903 # Autoconf.
3904 for ac_file in $ac_files ''
3906 test -f "$ac_file" || continue
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3910 [ab].out )
3911 # We found the default executable, but exeext='' is most
3912 # certainly right.
3913 break;;
3914 *.* )
3915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3916 then :; else
3917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919 # We set ac_cv_exeext here because the later test for it is not
3920 # safe: cross compilers may not add the suffix if given an `-o'
3921 # argument, so we may need to know it at that point already.
3922 # Even if this section looks crufty: it has the advantage of
3923 # actually working.
3924 break;;
3926 break;;
3927 esac
3928 done
3929 test "$ac_cv_exeext" = no && ac_cv_exeext=
3931 else
3932 ac_file=''
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3935 $as_echo "$ac_file" >&6; }
3936 if test -z "$ac_file"; then :
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 { as_fn_set_status 77
3943 as_fn_error "C compiler cannot create executables
3944 See \`config.log' for more details." "$LINENO" 5; }; }
3946 ac_exeext=$ac_cv_exeext
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3951 $as_echo_n "checking whether the C compiler works... " >&6; }
3952 # If not cross compiling, check that we can run a simple program.
3953 if test "$cross_compiling" != yes; then
3954 if { ac_try='./$ac_file'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3988 $as_echo "$cross_compiling" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991 $as_echo_n "checking for suffix of executables... " >&6; }
3992 if { { ac_try="$ac_link"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe'), while it won't with
4006 # `rm'.
4007 for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012 break;;
4013 * ) break;;
4014 esac
4015 done
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details." "$LINENO" 5; }
4022 rm -f conftest$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 $as_echo "$ac_cv_exeext" >&6; }
4026 rm -f conftest.$ac_ext
4027 EXEEXT=$ac_cv_exeext
4028 ac_exeext=$EXEEXT
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if test "${ac_cv_objext+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062 break;;
4063 esac
4064 done
4065 else
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 main ()
4091 #ifndef __GNUC__
4092 choke me
4093 #endif
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_compiler_gnu=yes
4101 else
4102 ac_compiler_gnu=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4111 GCC=yes
4112 else
4113 GCC=
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if test "${ac_cv_prog_cc_g+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4124 ac_cv_prog_cc_g=no
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4139 else
4140 CFLAGS=""
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4154 else
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4188 else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_cv_prog_cc_c89=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdarg.h>
4205 #include <stdio.h>
4206 #include <sys/types.h>
4207 #include <sys/stat.h>
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4212 char **p;
4213 int i;
4215 return p[i];
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4219 char *s;
4220 va_list v;
4221 va_start (v,p);
4222 s = g (p, va_arg (v,int));
4223 va_end (v);
4224 return s;
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4238 #define FOO(x) 'x'
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 int argc;
4246 char **argv;
4248 main ()
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 return 0;
4254 _ACEOF
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4269 # AC_CACHE_VAL
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4274 xno)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 esac
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 ac_ext=cpp
4293 ac_cpp='$CXXCPP $CPPFLAGS'
4294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4297 if test -z "$CXX"; then
4298 if test -n "$CCC"; then
4299 CXX=$CCC
4300 else
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_CXX+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$CXX"; then
4312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 CXX=$ac_cv_prog_CXX
4332 if test -n "$CXX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4334 $as_echo "$CXX" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 test -n "$CXX" && break
4342 done
4344 if test -z "$CXX"; then
4345 ac_ct_CXX=$CXX
4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$ac_ct_CXX"; then
4356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CXX="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4376 if test -n "$ac_ct_CXX"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4378 $as_echo "$ac_ct_CXX" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$ac_ct_CXX" && break
4386 done
4388 if test "x$ac_ct_CXX" = x; then
4389 CXX="g++"
4390 else
4391 case $cross_compiling:$ac_tool_warned in
4392 yes:)
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395 ac_tool_warned=yes ;;
4396 esac
4397 CXX=$ac_ct_CXX
4403 # Provide some information about the compiler.
4404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4405 set X $ac_compile
4406 ac_compiler=$2
4407 for ac_option in --version -v -V -qversion; do
4408 { { ac_try="$ac_compiler $ac_option >&5"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4416 ac_status=$?
4417 if test -s conftest.err; then
4418 sed '10a\
4419 ... rest of stderr output deleted ...
4420 10q' conftest.err >conftest.er1
4421 cat conftest.er1 >&5
4422 rm -f conftest.er1 conftest.err
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 done
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4429 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4430 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4437 main ()
4439 #ifndef __GNUC__
4440 choke me
4441 #endif
4444 return 0;
4446 _ACEOF
4447 if ac_fn_cxx_try_compile "$LINENO"; then :
4448 ac_compiler_gnu=yes
4449 else
4450 ac_compiler_gnu=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4457 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4458 if test $ac_compiler_gnu = yes; then
4459 GXX=yes
4460 else
4461 GXX=
4463 ac_test_CXXFLAGS=${CXXFLAGS+set}
4464 ac_save_CXXFLAGS=$CXXFLAGS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4466 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4467 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4471 ac_cxx_werror_flag=yes
4472 ac_cv_prog_cxx_g=no
4473 CXXFLAGS="-g"
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 main ()
4482 return 0;
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4486 ac_cv_prog_cxx_g=yes
4487 else
4488 CXXFLAGS=""
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4493 main ()
4497 return 0;
4499 _ACEOF
4500 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 else
4503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4504 CXXFLAGS="-g"
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4513 return 0;
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4527 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4528 if test "$ac_test_CXXFLAGS" = set; then
4529 CXXFLAGS=$ac_save_CXXFLAGS
4530 elif test $ac_cv_prog_cxx_g = yes; then
4531 if test "$GXX" = yes; then
4532 CXXFLAGS="-g -O2"
4533 else
4534 CXXFLAGS="-g"
4536 else
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-O2"
4539 else
4540 CXXFLAGS=
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$GNATBIND"; then
4561 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 GNATBIND=$ac_cv_prog_GNATBIND
4581 if test -n "$GNATBIND"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4583 $as_echo "$GNATBIND" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_GNATBIND"; then
4592 ac_ct_GNATBIND=$GNATBIND
4593 # Extract the first word of "gnatbind", so it can be a program name with args.
4594 set dummy gnatbind; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_GNATBIND"; then
4601 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4621 if test -n "$ac_ct_GNATBIND"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4623 $as_echo "$ac_ct_GNATBIND" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_GNATBIND" = x; then
4630 GNATBIND="no"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 GNATBIND=$ac_ct_GNATBIND
4640 else
4641 GNATBIND="$ac_cv_prog_GNATBIND"
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$GNATMAKE"; then
4653 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 GNATMAKE=$ac_cv_prog_GNATMAKE
4673 if test -n "$GNATMAKE"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4675 $as_echo "$GNATMAKE" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATMAKE"; then
4684 ac_ct_GNATMAKE=$GNATMAKE
4685 # Extract the first word of "gnatmake", so it can be a program name with args.
4686 set dummy gnatmake; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_GNATMAKE"; then
4693 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4713 if test -n "$ac_ct_GNATMAKE"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4715 $as_echo "$ac_ct_GNATMAKE" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATMAKE" = x; then
4722 GNATMAKE="no"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 GNATMAKE=$ac_ct_GNATMAKE
4732 else
4733 GNATMAKE="$ac_cv_prog_GNATMAKE"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4737 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4738 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat >conftest.adb <<EOF
4742 procedure conftest is begin null; end conftest;
4744 acx_cv_cc_gcc_supports_ada=no
4745 # There is a bug in old released versions of GCC which causes the
4746 # driver to exit successfully when the appropriate language module
4747 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4748 # Therefore we must check for the error message as well as an
4749 # unsuccessful exit.
4750 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4751 # given a .adb file, but produce no object file. So we must check
4752 # if an object file was really produced to guard against this.
4753 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4754 if test x"$errors" = x && test -f conftest.$ac_objext; then
4755 acx_cv_cc_gcc_supports_ada=yes
4757 rm -f conftest.*
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4760 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4762 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4763 have_gnat=yes
4764 else
4765 have_gnat=no
4769 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4770 # optimizations to be activated explicitly by the toplevel.
4771 case "$CC" in
4772 */prev-gcc/xgcc*) ;;
4773 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4774 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4775 esac
4779 # Determine PICFLAG for target gnatlib.
4784 case "${target}" in
4785 # PIC is the default on some targets or must not be used.
4786 *-*-darwin*)
4787 # PIC is the default on this platform
4788 # Common symbols not allowed in MH_DYLIB files
4789 PICFLAG_FOR_TARGET=-fno-common
4791 alpha*-dec-osf5*)
4792 # PIC is the default.
4794 hppa*64*-*-hpux*)
4795 # PIC is the default for 64-bit PA HP-UX.
4797 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4799 i[34567]86-*-mingw* | x86_64-*-mingw*)
4801 i[34567]86-*-interix[3-9]*)
4802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4803 # Instead, we relocate shared libraries at runtime.
4805 i[34567]86-*-nto-qnx*)
4806 # QNX uses GNU C++, but need to define -shared option too, otherwise
4807 # it will coredump.
4808 PICFLAG_FOR_TARGET='-fPIC -shared'
4810 i[34567]86-pc-msdosdjgpp*)
4811 # DJGPP does not support shared libraries at all.
4813 ia64*-*-hpux*)
4814 # On IA64 HP-UX, PIC is the default but the pic flag
4815 # sets the default TLS model and affects inlining.
4816 PICFLAG_FOR_TARGET=-fPIC
4818 mips-sgi-irix6*)
4819 # PIC is the default.
4821 rs6000-ibm-aix* | powerpc-ibm-aix*)
4822 # All AIX code is PIC.
4825 # Some targets support both -fPIC and -fpic, but prefer the latter.
4826 # FIXME: Why?
4827 i[34567]86-*-* | x86_64-*-*)
4828 PICFLAG_FOR_TARGET=-fpic
4830 # FIXME: Override -fPIC default in libgcc only?
4831 sh-*-linux* | sh[2346lbe]*-*-linux*)
4832 PICFLAG_FOR_TARGET=-fpic
4834 # FIXME: Simplify to sh*-*-netbsd*?
4835 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4836 sh64-*-netbsd* | sh64l*-*-netbsd*)
4837 PICFLAG_FOR_TARGET=-fpic
4839 # Default to -fPIC unless specified otherwise.
4841 PICFLAG_FOR_TARGET=-fPIC
4843 esac
4845 # If the user explicitly uses -fpic/-fPIC, keep that.
4846 case "${CFLAGS_FOR_TARGET}" in
4847 *-fpic*)
4848 PICFLAG_FOR_TARGET=-fpic
4850 *-fPIC*)
4851 PICFLAG_FOR_TARGET=-fPIC
4853 esac
4857 # -------------------------
4858 # Check C compiler features
4859 # -------------------------
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4869 # On Suns, sometimes $CPP names a directory.
4870 if test -n "$CPP" && test -d "$CPP"; then
4871 CPP=
4873 if test -z "$CPP"; then
4874 if test "${ac_cv_prog_CPP+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 # Double quotes because CPP needs to be expanded
4878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4880 ac_preproc_ok=false
4881 for ac_c_preproc_warn_flag in '' yes
4883 # Use a header file that comes with gcc, so configuring glibc
4884 # with a fresh cross-compiler works.
4885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 # <limits.h> exists even on freestanding compilers.
4887 # On the NeXT, cc -E runs the code through the compiler's parser,
4888 # not just through cpp. "Syntax error" is here to catch this case.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #ifdef __STDC__
4892 # include <limits.h>
4893 #else
4894 # include <assert.h>
4895 #endif
4896 Syntax error
4897 _ACEOF
4898 if ac_fn_c_try_cpp "$LINENO"; then :
4900 else
4901 # Broken: fails on valid input.
4902 continue
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether nonexistent headers
4907 # can be detected and how.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 # Passes both tests.
4917 ac_preproc_ok=:
4918 break
4920 rm -f conftest.err conftest.$ac_ext
4922 done
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.$ac_ext
4925 if $ac_preproc_ok; then :
4926 break
4929 done
4930 ac_cv_prog_CPP=$CPP
4933 CPP=$ac_cv_prog_CPP
4934 else
4935 ac_cv_prog_CPP=$CPP
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4938 $as_echo "$CPP" >&6; }
4939 ac_preproc_ok=false
4940 for ac_c_preproc_warn_flag in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if ac_fn_c_try_cpp "$LINENO"; then :
4959 else
4960 # Broken: fails on valid input.
4961 continue
4963 rm -f conftest.err conftest.$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4979 rm -f conftest.err conftest.$ac_ext
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then :
4986 else
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." "$LINENO" 5; }
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5002 if test "${ac_cv_path_GREP+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -z "$GREP"; then
5006 ac_path_GREP_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in grep ggrep; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5017 # Check for GNU ac_path_GREP and select it if it is found.
5018 # Check for GNU $ac_path_GREP
5019 case `"$ac_path_GREP" --version 2>&1` in
5020 *GNU*)
5021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo 'GREP' >> "conftest.nl"
5031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_GREP="$ac_path_GREP"
5037 ac_path_GREP_max=$ac_count
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5045 $ac_path_GREP_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_GREP"; then
5051 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5053 else
5054 ac_cv_path_GREP=$GREP
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5059 $as_echo "$ac_cv_path_GREP" >&6; }
5060 GREP="$ac_cv_path_GREP"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5064 $as_echo_n "checking for egrep... " >&6; }
5065 if test "${ac_cv_path_EGREP+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5069 then ac_cv_path_EGREP="$GREP -E"
5070 else
5071 if test -z "$EGREP"; then
5072 ac_path_EGREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in egrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5083 # Check for GNU ac_path_EGREP and select it if it is found.
5084 # Check for GNU $ac_path_EGREP
5085 case `"$ac_path_EGREP" --version 2>&1` in
5086 *GNU*)
5087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'EGREP' >> "conftest.nl"
5097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_EGREP="$ac_path_EGREP"
5103 ac_path_EGREP_max=$ac_count
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5111 $ac_path_EGREP_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_EGREP"; then
5117 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5119 else
5120 ac_cv_path_EGREP=$EGREP
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5126 $as_echo "$ac_cv_path_EGREP" >&6; }
5127 EGREP="$ac_cv_path_EGREP"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5131 $as_echo_n "checking for ANSI C header files... " >&6; }
5132 if test "${ac_cv_header_stdc+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <stdlib.h>
5138 #include <stdarg.h>
5139 #include <string.h>
5140 #include <float.h>
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_header_stdc=yes
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 if test $ac_cv_header_stdc = yes; then
5158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <string.h>
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "memchr" >/dev/null 2>&1; then :
5167 else
5168 ac_cv_header_stdc=no
5170 rm -f conftest*
5174 if test $ac_cv_header_stdc = yes; then
5175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdlib.h>
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "free" >/dev/null 2>&1; then :
5184 else
5185 ac_cv_header_stdc=no
5187 rm -f conftest*
5191 if test $ac_cv_header_stdc = yes; then
5192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5193 if test "$cross_compiling" = yes; then :
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <ctype.h>
5199 #include <stdlib.h>
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5203 #else
5204 # define ISLOWER(c) \
5205 (('a' <= (c) && (c) <= 'i') \
5206 || ('j' <= (c) && (c) <= 'r') \
5207 || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5209 #endif
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213 main ()
5215 int i;
5216 for (i = 0; i < 256; i++)
5217 if (XOR (islower (i), ISLOWER (i))
5218 || toupper (i) != TOUPPER (i))
5219 return 2;
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_run "$LINENO"; then :
5225 else
5226 ac_cv_header_stdc=no
5228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5229 conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5235 $as_echo "$ac_cv_header_stdc" >&6; }
5236 if test $ac_cv_header_stdc = yes; then
5238 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5244 inttypes.h stdint.h unistd.h
5245 do :
5246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val=\$$as_ac_Header
5250 if test "x$as_val" = x""yes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5257 done
5261 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5263 MINIX=yes
5264 else
5265 MINIX=
5269 if test "$MINIX" = yes; then
5271 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5274 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5277 $as_echo "#define _MINIX 1" >>confdefs.h
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5283 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5284 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 # define __EXTENSIONS__ 1
5291 $ac_includes_default
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_safe_to_define___extensions__=yes
5302 else
5303 ac_cv_safe_to_define___extensions__=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5308 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5309 test $ac_cv_safe_to_define___extensions__ = yes &&
5310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5312 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5314 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5328 # On Suns, sometimes $CPP names a directory.
5329 if test -n "$CPP" && test -d "$CPP"; then
5330 CPP=
5332 if test -z "$CPP"; then
5333 if test "${ac_cv_prog_CPP+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 # Double quotes because CPP needs to be expanded
5337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339 ac_preproc_ok=false
5340 for ac_c_preproc_warn_flag in '' yes
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5355 Syntax error
5356 _ACEOF
5357 if ac_fn_c_try_cpp "$LINENO"; then :
5359 else
5360 # Broken: fails on valid input.
5361 continue
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether nonexistent headers
5366 # can be detected and how.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5370 _ACEOF
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5372 # Broken: success on invalid input.
5373 continue
5374 else
5375 # Passes both tests.
5376 ac_preproc_ok=:
5377 break
5379 rm -f conftest.err conftest.$ac_ext
5381 done
5382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5383 rm -f conftest.err conftest.$ac_ext
5384 if $ac_preproc_ok; then :
5385 break
5388 done
5389 ac_cv_prog_CPP=$CPP
5392 CPP=$ac_cv_prog_CPP
5393 else
5394 ac_cv_prog_CPP=$CPP
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5397 $as_echo "$CPP" >&6; }
5398 ac_preproc_ok=false
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5418 else
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then :
5445 else
5446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5449 See \`config.log' for more details." "$LINENO" 5; }
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5459 $as_echo_n "checking for inline... " >&6; }
5460 if test "${ac_cv_c_inline+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 ac_cv_c_inline=no
5464 for ac_kw in inline __inline__ __inline; do
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #ifndef __cplusplus
5468 typedef int foo_t;
5469 static $ac_kw foo_t static_foo () {return 0; }
5470 $ac_kw foo_t foo () {return 0; }
5471 #endif
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_c_inline=$ac_kw
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 test "$ac_cv_c_inline" != no && break
5479 done
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5483 $as_echo "$ac_cv_c_inline" >&6; }
5485 case $ac_cv_c_inline in
5486 inline | yes) ;;
5488 case $ac_cv_c_inline in
5489 no) ac_val=;;
5490 *) ac_val=$ac_cv_c_inline;;
5491 esac
5492 cat >>confdefs.h <<_ACEOF
5493 #ifndef __cplusplus
5494 #define inline $ac_val
5495 #endif
5496 _ACEOF
5498 esac
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then :
5503 enableval=$enable_largefile;
5506 if test "$enable_largefile" != no; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5509 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 ac_cv_sys_largefile_CC=no
5514 if test "$GCC" != yes; then
5515 ac_save_CC=$CC
5516 while :; do
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5529 ? 1 : -1];
5531 main ()
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 break
5541 rm -f core conftest.err conftest.$ac_objext
5542 CC="$CC -n32"
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ac_cv_sys_largefile_CC=' -n32'; break
5546 rm -f core conftest.err conftest.$ac_objext
5547 break
5548 done
5549 CC=$ac_save_CC
5550 rm -f conftest.$ac_ext
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5554 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5555 if test "$ac_cv_sys_largefile_CC" != no; then
5556 CC=$CC$ac_cv_sys_largefile_CC
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5560 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 while :; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
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=no; break
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #define _FILE_OFFSET_BITS 64
5591 #include <sys/types.h>
5592 /* Check that off_t can represent 2**63 - 1 correctly.
5593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5594 since some C++ compilers masquerading as C compilers
5595 incorrectly reject 9223372036854775807. */
5596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5598 && LARGE_OFF_T % 2147483647 == 1)
5599 ? 1 : -1];
5601 main ()
5605 return 0;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_sys_file_offset_bits=64; break
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 ac_cv_sys_file_offset_bits=unknown
5613 break
5614 done
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5617 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5618 case $ac_cv_sys_file_offset_bits in #(
5619 no | unknown) ;;
5621 cat >>confdefs.h <<_ACEOF
5622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5623 _ACEOF
5625 esac
5626 rm -rf conftest*
5627 if test $ac_cv_sys_file_offset_bits = unknown; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5629 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5630 if test "${ac_cv_sys_large_files+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 while :; do
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
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=no; break
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #define _LARGE_FILES 1
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5670 main ()
5674 return 0;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 ac_cv_sys_large_files=1; break
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sys_large_files=unknown
5682 break
5683 done
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5686 $as_echo "$ac_cv_sys_large_files" >&6; }
5687 case $ac_cv_sys_large_files in #(
5688 no | unknown) ;;
5690 cat >>confdefs.h <<_ACEOF
5691 #define _LARGE_FILES $ac_cv_sys_large_files
5692 _ACEOF
5694 esac
5695 rm -rf conftest*
5700 # sizeof(char) is 1 by definition.
5701 # The cast to long int works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5706 $as_echo_n "checking size of void *... " >&6; }
5707 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5712 else
5713 if test "$ac_cv_type_void_p" = yes; then
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 { as_fn_set_status 77
5717 as_fn_error "cannot compute sizeof (void *)
5718 See \`config.log' for more details." "$LINENO" 5; }; }
5719 else
5720 ac_cv_sizeof_void_p=0
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5726 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5730 cat >>confdefs.h <<_ACEOF
5731 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5732 _ACEOF
5735 # The cast to long int works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5740 $as_echo_n "checking size of short... " >&6; }
5741 if test "${ac_cv_sizeof_short+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5746 else
5747 if test "$ac_cv_type_short" = yes; then
5748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5750 { as_fn_set_status 77
5751 as_fn_error "cannot compute sizeof (short)
5752 See \`config.log' for more details." "$LINENO" 5; }; }
5753 else
5754 ac_cv_sizeof_short=0
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5760 $as_echo "$ac_cv_sizeof_short" >&6; }
5764 cat >>confdefs.h <<_ACEOF
5765 #define SIZEOF_SHORT $ac_cv_sizeof_short
5766 _ACEOF
5769 # The cast to long int works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5774 $as_echo_n "checking size of int... " >&6; }
5775 if test "${ac_cv_sizeof_int+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5780 else
5781 if test "$ac_cv_type_int" = yes; then
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784 { as_fn_set_status 77
5785 as_fn_error "cannot compute sizeof (int)
5786 See \`config.log' for more details." "$LINENO" 5; }; }
5787 else
5788 ac_cv_sizeof_int=0
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5794 $as_echo "$ac_cv_sizeof_int" >&6; }
5798 cat >>confdefs.h <<_ACEOF
5799 #define SIZEOF_INT $ac_cv_sizeof_int
5800 _ACEOF
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5808 $as_echo_n "checking size of long... " >&6; }
5809 if test "${ac_cv_sizeof_long+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5814 else
5815 if test "$ac_cv_type_long" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (long)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_long=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5828 $as_echo "$ac_cv_sizeof_long" >&6; }
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_LONG $ac_cv_sizeof_long
5834 _ACEOF
5837 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5838 if test "x$ac_cv_type_long_long" = x""yes; then :
5840 cat >>confdefs.h <<_ACEOF
5841 #define HAVE_LONG_LONG 1
5842 _ACEOF
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5849 $as_echo_n "checking size of long long... " >&6; }
5850 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5855 else
5856 if test "$ac_cv_type_long_long" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status 77
5860 as_fn_error "cannot compute sizeof (long long)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5862 else
5863 ac_cv_sizeof_long_long=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5873 cat >>confdefs.h <<_ACEOF
5874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5875 _ACEOF
5880 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5881 if test "x$ac_cv_type___int64" = x""yes; then :
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE___INT64 1
5885 _ACEOF
5887 # The cast to long int works around a bug in the HP C Compiler
5888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5890 # This bug is HP SR number 8606223364.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5892 $as_echo_n "checking size of __int64... " >&6; }
5893 if test "${ac_cv_sizeof___int64+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5898 else
5899 if test "$ac_cv_type___int64" = yes; then
5900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902 { as_fn_set_status 77
5903 as_fn_error "cannot compute sizeof (__int64)
5904 See \`config.log' for more details." "$LINENO" 5; }; }
5905 else
5906 ac_cv_sizeof___int64=0
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5912 $as_echo "$ac_cv_sizeof___int64" >&6; }
5916 cat >>confdefs.h <<_ACEOF
5917 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5918 _ACEOF
5923 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5924 case $ac_cv_c_int8_t in #(
5925 no|yes) ;; #(
5928 cat >>confdefs.h <<_ACEOF
5929 #define int8_t $ac_cv_c_int8_t
5930 _ACEOF
5932 esac
5934 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5935 case $ac_cv_c_int16_t in #(
5936 no|yes) ;; #(
5939 cat >>confdefs.h <<_ACEOF
5940 #define int16_t $ac_cv_c_int16_t
5941 _ACEOF
5943 esac
5945 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5946 case $ac_cv_c_int32_t in #(
5947 no|yes) ;; #(
5950 cat >>confdefs.h <<_ACEOF
5951 #define int32_t $ac_cv_c_int32_t
5952 _ACEOF
5954 esac
5956 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5957 case $ac_cv_c_int64_t in #(
5958 no|yes) ;; #(
5961 cat >>confdefs.h <<_ACEOF
5962 #define int64_t $ac_cv_c_int64_t
5963 _ACEOF
5965 esac
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5969 $as_echo_n "checking for long long int... " >&6; }
5970 if test "${ac_cv_type_long_long_int+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5976 /* For now, do not test the preprocessor; as of 2007 there are too many
5977 implementations with broken preprocessors. Perhaps this can
5978 be revisited in 2012. In the meantime, code should not expect
5979 #if to work with literals wider than 32 bits. */
5980 /* Test literals. */
5981 long long int ll = 9223372036854775807ll;
5982 long long int nll = -9223372036854775807LL;
5983 unsigned long long int ull = 18446744073709551615ULL;
5984 /* Test constant expressions. */
5985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5986 ? 1 : -1)];
5987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5988 ? 1 : -1)];
5989 int i = 63;
5991 main ()
5993 /* Test availability of runtime routines for shift and division. */
5994 long long int llmax = 9223372036854775807ll;
5995 unsigned long long int ullmax = 18446744073709551615ull;
5996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5997 | (llmax / ll) | (llmax % ll)
5998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5999 | (ullmax / ull) | (ullmax % ull));
6001 return 0;
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"; then :
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_type_long_long_int=yes
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <limits.h>
6012 #ifndef LLONG_MAX
6013 # define HALF \
6014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6015 # define LLONG_MAX (HALF - 1 + HALF)
6016 #endif
6018 main ()
6020 long long int n = 1;
6021 int i;
6022 for (i = 0; ; i++)
6024 long long int m = n << i;
6025 if (m >> i != n)
6026 return 1;
6027 if (LLONG_MAX / 2 < m)
6028 break;
6030 return 0;
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_run "$LINENO"; then :
6036 ac_cv_type_long_long_int=yes
6037 else
6038 ac_cv_type_long_long_int=no
6040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6041 conftest.$ac_objext conftest.beam conftest.$ac_ext
6044 else
6045 ac_cv_type_long_long_int=no
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6051 $as_echo "$ac_cv_type_long_long_int" >&6; }
6052 if test $ac_cv_type_long_long_int = yes; then
6054 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6060 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6063 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6065 else
6066 test $ac_cv_type_long_long_int = yes \
6067 && ac_type='long long int' \
6068 || ac_type='long int'
6070 cat >>confdefs.h <<_ACEOF
6071 #define intmax_t $ac_type
6072 _ACEOF
6078 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6081 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6083 else
6084 for ac_type in 'int' 'long int' 'long long int'; do
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 $ac_includes_default
6089 main ()
6091 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6092 test_array [0] = 0
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define intptr_t $ac_type
6102 _ACEOF
6104 ac_type=
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 test -z "$ac_type" && break
6108 done
6112 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6113 case $ac_cv_c_uint8_t in #(
6114 no|yes) ;; #(
6117 $as_echo "#define _UINT8_T 1" >>confdefs.h
6120 cat >>confdefs.h <<_ACEOF
6121 #define uint8_t $ac_cv_c_uint8_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6127 case $ac_cv_c_uint16_t in #(
6128 no|yes) ;; #(
6132 cat >>confdefs.h <<_ACEOF
6133 #define uint16_t $ac_cv_c_uint16_t
6134 _ACEOF
6136 esac
6138 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6139 case $ac_cv_c_uint32_t in #(
6140 no|yes) ;; #(
6143 $as_echo "#define _UINT32_T 1" >>confdefs.h
6146 cat >>confdefs.h <<_ACEOF
6147 #define uint32_t $ac_cv_c_uint32_t
6148 _ACEOF
6150 esac
6152 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6153 case $ac_cv_c_uint64_t in #(
6154 no|yes) ;; #(
6157 $as_echo "#define _UINT64_T 1" >>confdefs.h
6160 cat >>confdefs.h <<_ACEOF
6161 #define uint64_t $ac_cv_c_uint64_t
6162 _ACEOF
6164 esac
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6168 $as_echo_n "checking for unsigned long long int... " >&6; }
6169 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 /* For now, do not test the preprocessor; as of 2007 there are too many
6176 implementations with broken preprocessors. Perhaps this can
6177 be revisited in 2012. In the meantime, code should not expect
6178 #if to work with literals wider than 32 bits. */
6179 /* Test literals. */
6180 long long int ll = 9223372036854775807ll;
6181 long long int nll = -9223372036854775807LL;
6182 unsigned long long int ull = 18446744073709551615ULL;
6183 /* Test constant expressions. */
6184 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6185 ? 1 : -1)];
6186 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6187 ? 1 : -1)];
6188 int i = 63;
6190 main ()
6192 /* Test availability of runtime routines for shift and division. */
6193 long long int llmax = 9223372036854775807ll;
6194 unsigned long long int ullmax = 18446744073709551615ull;
6195 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6196 | (llmax / ll) | (llmax % ll)
6197 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6198 | (ullmax / ull) | (ullmax % ull));
6200 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_link "$LINENO"; then :
6205 ac_cv_type_unsigned_long_long_int=yes
6206 else
6207 ac_cv_type_unsigned_long_long_int=no
6209 rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6213 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6214 if test $ac_cv_type_unsigned_long_long_int = yes; then
6216 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6222 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6225 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6227 else
6228 test $ac_cv_type_unsigned_long_long_int = yes \
6229 && ac_type='unsigned long long int' \
6230 || ac_type='unsigned long int'
6232 cat >>confdefs.h <<_ACEOF
6233 #define uintmax_t $ac_type
6234 _ACEOF
6240 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6243 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6245 else
6246 for ac_type in 'unsigned int' 'unsigned long int' \
6247 'unsigned long long int'; do
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 $ac_includes_default
6252 main ()
6254 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6255 test_array [0] = 0
6258 return 0;
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define uintptr_t $ac_type
6265 _ACEOF
6267 ac_type=
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 test -z "$ac_type" && break
6271 done
6288 # ---------------------
6289 # Warnings and checking
6290 # ---------------------
6292 # Check $CC warning features (if it's GCC).
6293 # We want to use -pedantic, but we don't want warnings about
6294 # * 'long long'
6295 # * variadic macros
6296 # * overlong strings
6297 # * C++11 narrowing conversions in { }
6298 # So, we only use -pedantic if we can disable those warnings.
6300 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6301 # Check whether --enable-build-format-warnings was given.
6302 if test "${enable_build_format_warnings+set}" = set; then :
6303 enableval=$enable_build_format_warnings;
6304 else
6305 enable_build_format_warnings=yes
6308 if test $enable_build_format_warnings = no; then :
6309 wf_opt=-Wno-format
6310 else
6311 wf_opt=
6313 loose_warn=
6314 save_CFLAGS="$CFLAGS"
6315 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6316 # Do the check with the no- prefix removed since gcc silently
6317 # accepts any -Wno-* option on purpose
6318 case $real_option in
6319 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6320 *) option=$real_option ;;
6321 esac
6322 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 CFLAGS="$option"
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6334 main ()
6338 return 0;
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6343 else
6344 eval "$as_acx_Woption=no"
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 eval ac_res=\$$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6355 done
6356 CFLAGS="$save_CFLAGS"
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6361 # Do the check with the no- prefix removed since gcc silently
6362 # accepts any -Wno-* option on purpose
6363 case $real_option in
6364 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6365 *) option=$real_option ;;
6366 esac
6367 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6370 $as_echo_n "checking whether $CC supports $option... " >&6; }
6371 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 CFLAGS="$option"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6379 main ()
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 eval "$as_acx_Woption=yes"
6388 else
6389 eval "$as_acx_Woption=no"
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 eval ac_res=\$$as_acx_Woption
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6396 $as_echo "$ac_res" >&6; }
6397 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6398 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6400 done
6401 CFLAGS="$save_CFLAGS"
6403 strict_warn=
6404 save_CFLAGS="$CFLAGS"
6405 for real_option in -Wmissing-format-attribute; do
6406 # Do the check with the no- prefix removed since gcc silently
6407 # accepts any -Wno-* option on purpose
6408 case $real_option in
6409 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6410 *) option=$real_option ;;
6411 esac
6412 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6415 $as_echo_n "checking whether $CC supports $option... " >&6; }
6416 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 CFLAGS="$option"
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6424 main ()
6428 return 0;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 eval "$as_acx_Woption=yes"
6433 else
6434 eval "$as_acx_Woption=no"
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 eval ac_res=\$$as_acx_Woption
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6441 $as_echo "$ac_res" >&6; }
6442 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6443 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6445 done
6446 CFLAGS="$save_CFLAGS"
6448 c_strict_warn=
6449 save_CFLAGS="$CFLAGS"
6450 for real_option in -Wold-style-definition -Wc++-compat; do
6451 # Do the check with the no- prefix removed since gcc silently
6452 # accepts any -Wno-* option on purpose
6453 case $real_option in
6454 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6455 *) option=$real_option ;;
6456 esac
6457 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6460 $as_echo_n "checking whether $CC supports $option... " >&6; }
6461 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 CFLAGS="$option"
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6469 main ()
6473 return 0;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 eval "$as_acx_Woption=yes"
6478 else
6479 eval "$as_acx_Woption=no"
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 eval ac_res=\$$as_acx_Woption
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486 $as_echo "$ac_res" >&6; }
6487 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6488 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6490 done
6491 CFLAGS="$save_CFLAGS"
6493 # Do the check with the no- prefix removed from the warning options
6494 # since gcc silently accepts any -Wno-* option on purpose
6495 if test "$GCC" = yes; then :
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6497 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6498 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 save_CFLAGS="$CFLAGS"
6502 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6507 main ()
6511 return 0;
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6516 else
6517 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CFLAGS="$save_CFLAGS"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6523 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6524 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6530 # Check whether --enable-werror-always was given.
6531 if test "${enable_werror_always+set}" = set; then :
6532 enableval=$enable_werror_always;
6533 else
6534 enable_werror_always=no
6537 if test $enable_werror_always = yes; then :
6538 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6543 # The above macros do nothing if the compiler is not GCC. However, the
6544 # Makefile has more goo to add other flags, so these variables are used
6545 # to enable warnings only for GCC.
6546 warn_cflags=
6547 warn_cxxflags=
6548 if test "x$GCC" = "xyes"; then
6549 warn_cflags='$(GCC_WARN_CFLAGS)'
6550 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6555 # Disable exceptions and RTTI if building with g++
6556 noexception_flags=
6557 save_CFLAGS="$CFLAGS"
6558 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6559 # Do the check with the no- prefix removed since gcc silently
6560 # accepts any -Wno-* option on purpose
6561 case $real_option in
6562 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6563 *) option=$real_option ;;
6564 esac
6565 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6568 $as_echo_n "checking whether $CC supports $option... " >&6; }
6569 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 CFLAGS="$option"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6577 main ()
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 eval "$as_acx_Woption=yes"
6586 else
6587 eval "$as_acx_Woption=no"
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 eval ac_res=\$$as_acx_Woption
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6594 $as_echo "$ac_res" >&6; }
6595 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6596 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6598 done
6599 CFLAGS="$save_CFLAGS"
6602 # Enable expensive internal checks
6603 is_release=
6604 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6605 is_release=yes
6608 # Check whether --enable-checking was given.
6609 if test "${enable_checking+set}" = set; then :
6610 enableval=$enable_checking; ac_checking_flags="${enableval}"
6611 else
6613 # Determine the default checks.
6614 if test x$is_release = x ; then
6615 ac_checking_flags=yes
6616 else
6617 ac_checking_flags=release
6621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6622 for check in release $ac_checking_flags
6624 case $check in
6625 # these set all the flags to specific states
6626 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6627 ac_fold_checking= ; ac_gc_checking=1 ;
6628 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6629 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6630 ac_tree_checking=1 ; ac_valgrind_checking= ;
6631 ac_types_checking=1 ;;
6632 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6633 ac_fold_checking= ; ac_gc_checking= ;
6634 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6635 ac_rtlflag_checking= ; ac_runtime_checking= ;
6636 ac_tree_checking= ; ac_valgrind_checking= ;
6637 ac_types_checking= ;;
6638 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6639 ac_fold_checking=1 ; ac_gc_checking=1 ;
6640 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6641 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6642 ac_tree_checking=1 ; ac_valgrind_checking= ;
6643 ac_types_checking=1 ;;
6644 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6645 ac_fold_checking= ; ac_gc_checking= ;
6646 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6647 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6648 ac_tree_checking= ; ac_valgrind_checking= ;
6649 ac_types_checking= ;;
6650 # these enable particular checks
6651 assert) ac_assert_checking=1 ;;
6652 df) ac_df_checking=1 ;;
6653 fold) ac_fold_checking=1 ;;
6654 gc) ac_gc_checking=1 ;;
6655 gcac) ac_gc_always_collect=1 ;;
6656 gimple) ac_gimple_checking=1 ;;
6657 misc) ac_checking=1 ;;
6658 rtl) ac_rtl_checking=1 ;;
6659 rtlflag) ac_rtlflag_checking=1 ;;
6660 runtime) ac_runtime_checking=1 ;;
6661 tree) ac_tree_checking=1 ;;
6662 types) ac_types_checking=1 ;;
6663 valgrind) ac_valgrind_checking=1 ;;
6664 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6665 esac
6666 done
6667 IFS="$ac_save_IFS"
6669 nocommon_flag=""
6670 if test x$ac_checking != x ; then
6672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6674 nocommon_flag=-fno-common
6677 if test x$ac_df_checking != x ; then
6679 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6682 if test x$ac_assert_checking != x ; then
6684 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6687 if test x$ac_gimple_checking != x ; then
6689 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6693 if test x$ac_runtime_checking != x ; then
6695 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6698 if test x$ac_tree_checking != x ; then
6700 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6702 TREEBROWSER=tree-browser.o
6703 TREECHECKING=yes
6705 if test x$ac_types_checking != x ; then
6707 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6712 if test x$ac_rtl_checking != x ; then
6714 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6717 if test x$ac_rtlflag_checking != x ; then
6719 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6722 if test x$ac_gc_checking != x ; then
6724 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6727 if test x$ac_gc_always_collect != x ; then
6729 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6732 if test x$ac_fold_checking != x ; then
6734 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6737 valgrind_path_defines=
6738 valgrind_command=
6740 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6741 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6742 have_valgrind_h=yes
6743 else
6744 have_valgrind_h=no
6749 if test x$ac_valgrind_checking != x ; then
6750 # It is certainly possible that there's valgrind but no valgrind.h.
6751 # GCC relies on making annotations so we must have both.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6753 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <valgrind/memcheck.h>
6757 #ifndef VALGRIND_DISCARD
6758 #error VALGRIND_DISCARD not defined
6759 #endif
6760 _ACEOF
6761 if ac_fn_c_try_cpp "$LINENO"; then :
6762 gcc_cv_header_valgrind_memcheck_h=yes
6763 else
6764 gcc_cv_header_valgrind_memcheck_h=no
6766 rm -f conftest.err conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6768 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6770 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <memcheck.h>
6774 #ifndef VALGRIND_DISCARD
6775 #error VALGRIND_DISCARD not defined
6776 #endif
6777 _ACEOF
6778 if ac_fn_c_try_cpp "$LINENO"; then :
6779 gcc_cv_header_memcheck_h=yes
6780 else
6781 gcc_cv_header_memcheck_h=no
6783 rm -f conftest.err conftest.$ac_ext
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6785 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6787 # Prepare PATH_SEPARATOR.
6788 # The user is always right.
6789 if test "${PATH_SEPARATOR+set}" != set; then
6790 echo "#! /bin/sh" >conf$$.sh
6791 echo "exit 0" >>conf$$.sh
6792 chmod +x conf$$.sh
6793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6794 PATH_SEPARATOR=';'
6795 else
6796 PATH_SEPARATOR=:
6798 rm -f conf$$.sh
6801 # Find out how to test for executable files. Don't use a zero-byte file,
6802 # as systems may use methods other than mode bits to determine executability.
6803 cat >conf$$.file <<_ASEOF
6804 #! /bin/sh
6805 exit 0
6806 _ASEOF
6807 chmod +x conf$$.file
6808 if test -x conf$$.file >/dev/null 2>&1; then
6809 ac_executable_p="test -x"
6810 else
6811 ac_executable_p="test -f"
6813 rm -f conf$$.file
6815 # Extract the first word of "valgrind", so it can be a program name with args.
6816 set dummy valgrind; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 case "$valgrind_path" in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6828 for ac_dir in $PATH; do
6829 IFS="$ac_save_IFS"
6830 test -z "$ac_dir" && ac_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6833 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6834 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6835 break 2
6838 done
6839 done
6840 IFS="$ac_save_IFS"
6842 esac
6844 valgrind_path="$ac_cv_path_valgrind_path"
6845 if test -n "$valgrind_path"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6847 $as_echo "$valgrind_path" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$valgrind_path" = "x" \
6854 || (test $have_valgrind_h = no \
6855 && test $gcc_cv_header_memcheck_h = no \
6856 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6857 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6859 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6860 valgrind_command="$valgrind_path -q"
6862 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6869 if test $gcc_cv_header_memcheck_h = yes; then
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6878 # Enable code coverage collection
6879 # Check whether --enable-coverage was given.
6880 if test "${enable_coverage+set}" = set; then :
6881 enableval=$enable_coverage; case "${enableval}" in
6882 yes|noopt)
6883 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6885 opt)
6886 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6889 # a.k.a. --disable-coverage
6890 coverage_flags=""
6893 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6895 esac
6896 else
6897 coverage_flags=""
6902 # Check whether --enable-gather-detailed-mem-stats was given.
6903 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6904 enableval=$enable_gather_detailed_mem_stats;
6905 else
6906 enable_gather_detailed_mem_stats=no
6909 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6911 cat >>confdefs.h <<_ACEOF
6912 #define GATHER_STATISTICS $gather_stats
6913 _ACEOF
6916 # -------------------------------
6917 # Miscenalleous configure options
6918 # -------------------------------
6920 # With stabs
6922 # Check whether --with-stabs was given.
6923 if test "${with_stabs+set}" = set; then :
6924 withval=$with_stabs; stabs="$with_stabs"
6925 else
6926 stabs=no
6930 # Determine whether or not multilibs are enabled.
6931 # Check whether --enable-multilib was given.
6932 if test "${enable_multilib+set}" = set; then :
6933 enableval=$enable_multilib;
6934 else
6935 enable_multilib=yes
6940 # Determine whether or not multiarch is enabled.
6941 # Check whether --enable-multiarch was given.
6942 if test "${enable_multiarch+set}" = set; then :
6943 enableval=$enable_multiarch; case "${enableval}" in
6944 yes|no|auto) enable_multiarch=$enableval;;
6945 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6946 esac
6947 else
6948 enable_multiarch=auto
6951 if test x${enable_multiarch} = xauto; then
6952 if test x${with_native_system_header_dir} != x; then
6953 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6954 enable_multiarch=no
6956 if test x$host != x$target && test "x$with_sysroot" = x; then
6957 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6958 enable_multiarch=no
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6962 $as_echo_n "checking for multiarch configuration... " >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6965 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6967 # needed for setting the multiarch name for soft-float/hard-float ABIs
6971 # Enable __cxa_atexit for C++.
6972 # Check whether --enable-__cxa_atexit was given.
6973 if test "${enable___cxa_atexit+set}" = set; then :
6974 enableval=$enable___cxa_atexit;
6978 # Enable C extension for decimal float if target supports it.
6980 # Check whether --enable-decimal-float was given.
6981 if test "${enable_decimal_float+set}" = set; then :
6982 enableval=$enable_decimal_float;
6983 case $enable_decimal_float in
6984 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6985 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6987 esac
6989 else
6991 case $target in
6992 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6993 i?86*-*-gnu* | \
6994 i?86*-*-mingw* | x86_64*-*-mingw* | \
6995 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6996 enable_decimal_float=yes
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7000 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7001 enable_decimal_float=no
7003 esac
7008 # x86's use BID format instead of DPD
7009 case x$enable_decimal_float in
7010 xyes)
7011 case $target in
7012 i?86*-*-* | x86_64*-*-*)
7013 enable_decimal_float=bid
7016 enable_decimal_float=dpd
7018 esac
7019 default_decimal_float=$enable_decimal_float
7021 xno)
7022 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7023 # dependency on libdecnumber.
7024 default_decimal_float=dpd
7026 esac
7031 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033 cat >>confdefs.h <<_ACEOF
7034 #define ENABLE_DECIMAL_FLOAT $dfp
7035 _ACEOF
7038 # Use default_decimal_float for dependency.
7039 enable_decimal_float=$default_decimal_float
7041 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043 cat >>confdefs.h <<_ACEOF
7044 #define ENABLE_DECIMAL_BID_FORMAT $bid
7045 _ACEOF
7048 # Enable C extension for fixed-point arithmetic.
7049 # Check whether --enable-fixed-point was given.
7050 if test "${enable_fixed_point+set}" = set; then :
7051 enableval=$enable_fixed_point;
7052 else
7054 case $target in
7055 arm*)
7056 enable_fixed_point=yes
7059 mips*-*-*)
7060 enable_fixed_point=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7065 enable_fixed_point=no
7067 esac
7073 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7075 cat >>confdefs.h <<_ACEOF
7076 #define ENABLE_FIXED_POINT $fixedpoint
7077 _ACEOF
7080 # Enable threads
7081 # Pass with no value to take the default
7082 # Pass with a value to specify a thread package
7083 # Check whether --enable-threads was given.
7084 if test "${enable_threads+set}" = set; then :
7085 enableval=$enable_threads;
7086 else
7087 enable_threads=''
7091 # Check whether --enable-tls was given.
7092 if test "${enable_tls+set}" = set; then :
7093 enableval=$enable_tls;
7094 case $enable_tls in
7095 yes | no) ;;
7096 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7097 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7098 esac
7100 else
7101 enable_tls=''
7105 # Check whether --enable-objc-gc was given.
7106 if test "${enable_objc_gc+set}" = set; then :
7107 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7108 objc_boehm_gc=''
7109 else
7110 objc_boehm_gc=1
7112 else
7113 objc_boehm_gc=''
7118 # Check whether --with-upc-pts was given.
7119 if test "${with_upc_pts+set}" = set; then :
7120 withval=$with_upc_pts;
7121 case "$withval" in
7122 packed|struct) upc_pts_rep="$withval" ;;
7123 *) as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7125 esac
7127 else
7128 upc_pts_rep="packed"
7133 # Perl is required for checking pts representation
7134 # Extract the first word of "perl", so it can be a program name with args.
7135 set dummy perl; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_PERL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$PERL"; then
7142 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_PERL="perl"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 PERL=$ac_cv_prog_PERL
7162 if test -n "$PERL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7164 $as_echo "$PERL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 # Check whether --with-upc-pts-vaddr-order was given.
7174 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7175 withval=$with_upc_pts_vaddr_order;
7176 upc_vaddr_order="$withval"
7177 case "$upc_vaddr_order" in
7178 first|last) ;;
7179 *) as_fn_error "$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7180 esac
7182 else
7183 upc_vaddr_order="first"
7188 # Check whether --with-upc-pts-packed-bits was given.
7189 if test "${with_upc_pts_packed_bits+set}" = set; then :
7190 withval=$with_upc_pts_packed_bits;
7191 if test x"$upc_pts_rep" = x"packed"; then
7192 UPC_PTS_PHASE_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7193 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7194 UPC_PTS_THREAD_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7195 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7196 UPC_PTS_VADDR_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7197 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7198 if test -z "$UPC_PTS_PHASE_SIZE" \
7199 || test -z "$UPC_PTS_THREAD_SIZE" \
7200 || test -z "$UPC_PTS_VADDR_SIZE" ; then
7201 as_fn_error "--with-upc-pts-packed-bits=phase,thread,vaddr requires
7202 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7204 else
7205 as_fn_error "--with-upc-pts-packed-bits is only supported for
7206 the packed UPC pointer-to-shared representation" "$LINENO" 5
7209 else
7211 # GNU UPC packed pointer representation defaults.
7212 case "$target" in
7213 i35686* )
7214 UPC_PTS_PHASE_SIZE=20
7215 UPC_PTS_THREAD_SIZE=12
7216 UPC_PTS_VADDR_SIZE=32
7219 UPC_PTS_PHASE_SIZE=20
7220 UPC_PTS_THREAD_SIZE=10
7221 UPC_PTS_VADDR_SIZE=34
7222 esac
7227 # Check whether --enable-upc-link-script was given.
7228 if test "${enable_upc_link_script+set}" = set; then :
7229 enableval=$enable_upc_link_script;
7230 case $enableval in
7231 yes | no) ;;
7233 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7234 esac
7236 else
7237 enable_upc_link_script=no
7242 # Process UPC-specific configuration options.
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7245 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7247 $as_echo "$upc_pts_rep" >&6; }
7248 case "$upc_pts_rep" in
7249 packed)
7251 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7254 struct)
7256 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7259 esac
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7261 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7263 $as_echo "$upc_vaddr_order" >&6; }
7264 if test x"$upc_vaddr_order" = x"first"; then
7266 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7269 if test x"$upc_pts_rep" = x"packed"; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7273 _ACEOF
7276 cat >>confdefs.h <<_ACEOF
7277 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7278 _ACEOF
7281 cat >>confdefs.h <<_ACEOF
7282 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7283 _ACEOF
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7286 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7288 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7289 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7290 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7293 $as_echo_n "checking for UPC link script support... " >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7295 $as_echo "$enable_upc_link_script" >&6; }
7296 if test "$enable_upc_link_script" = yes; then
7298 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7303 # Check whether --with-dwarf2 was given.
7304 if test "${with_dwarf2+set}" = set; then :
7305 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7306 else
7307 dwarf2=no
7311 # Check whether --enable-shared was given.
7312 if test "${enable_shared+set}" = set; then :
7313 enableval=$enable_shared;
7314 case $enable_shared in
7315 yes | no) ;;
7317 enable_shared=no
7318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7319 for pkg in $enableval; do
7320 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7321 enable_shared=yes
7323 done
7324 IFS="$ac_save_ifs"
7326 esac
7328 else
7329 enable_shared=yes
7335 # Check whether --with-native-system-header-dir was given.
7336 if test "${with_native_system_header_dir+set}" = set; then :
7337 withval=$with_native_system_header_dir;
7338 case ${with_native_system_header_dir} in
7339 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7340 /* | [A-Za-z]:[\\/]*) ;;
7341 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7342 esac
7343 configured_native_system_header_dir="${withval}"
7345 else
7346 configured_native_system_header_dir=
7351 # Check whether --with-build-sysroot was given.
7352 if test "${with_build_sysroot+set}" = set; then :
7353 withval=$with_build_sysroot; if test x"$withval" != x ; then
7354 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7356 else
7357 SYSROOT_CFLAGS_FOR_TARGET=
7362 if test "x$prefix" = xNONE; then
7363 test_prefix=/usr/local
7364 else
7365 test_prefix=$prefix
7367 if test "x$exec_prefix" = xNONE; then
7368 test_exec_prefix=$test_prefix
7369 else
7370 test_exec_prefix=$exec_prefix
7374 # Check whether --with-sysroot was given.
7375 if test "${with_sysroot+set}" = set; then :
7376 withval=$with_sysroot;
7377 case ${with_sysroot} in
7378 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7379 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7380 esac
7382 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7383 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7385 case ${TARGET_SYSTEM_ROOT} in
7386 "${test_prefix}"|"${test_prefix}/"*|\
7387 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7388 '${prefix}'|'${prefix}/'*|\
7389 '${exec_prefix}'|'${exec_prefix}/'*)
7390 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7391 TARGET_SYSTEM_ROOT_DEFINE="$t"
7393 esac
7395 else
7397 TARGET_SYSTEM_ROOT=
7398 TARGET_SYSTEM_ROOT_DEFINE=
7399 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7408 # Check whether --with-specs was given.
7409 if test "${with_specs+set}" = set; then :
7410 withval=$with_specs; CONFIGURE_SPECS=$withval
7411 else
7412 CONFIGURE_SPECS=
7420 # Check whether --with-pkgversion was given.
7421 if test "${with_pkgversion+set}" = set; then :
7422 withval=$with_pkgversion; case "$withval" in
7423 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7424 no) PKGVERSION= ;;
7425 *) PKGVERSION="($withval) " ;;
7426 esac
7427 else
7428 PKGVERSION="(GCC) "
7436 # Check whether --with-bugurl was given.
7437 if test "${with_bugurl+set}" = set; then :
7438 withval=$with_bugurl; case "$withval" in
7439 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7440 no) BUGURL=
7442 *) BUGURL="$withval"
7444 esac
7445 else
7446 BUGURL="http://gccupc.org/bugs"
7450 case ${BUGURL} in
7452 REPORT_BUGS_TO=
7453 REPORT_BUGS_TEXI=
7456 REPORT_BUGS_TO="<$BUGURL>"
7457 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7459 esac;
7464 # Sanity check enable_languages in case someone does not run the toplevel
7465 # configure # script.
7466 # Check whether --enable-languages was given.
7467 if test "${enable_languages+set}" = set; then :
7468 enableval=$enable_languages; case ,${enable_languages}, in
7469 ,,|,yes,)
7470 # go safe -- we cannot be much sure without the toplevel
7471 # configure's
7472 # analysis of which target libs are present and usable
7473 enable_languages=c
7475 *,all,*)
7476 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7478 *,c,*)
7481 enable_languages=c,${enable_languages}
7483 esac
7484 else
7485 enable_languages=c
7490 # Check whether --with-multilib-list was given.
7491 if test "${with_multilib_list+set}" = set; then :
7492 withval=$with_multilib_list; :
7493 else
7494 with_multilib_list=default
7498 # -------------------------
7499 # Checks for other programs
7500 # -------------------------
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7504 set x ${MAKE-make}
7505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7506 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 cat >conftest.make <<\_ACEOF
7510 SHELL = /bin/sh
7511 all:
7512 @echo '@@@%%%=$(MAKE)=@@@%%%'
7513 _ACEOF
7514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7516 *@@@%%%=?*=@@@%%%*)
7517 eval ac_cv_prog_make_${ac_make}_set=yes;;
7519 eval ac_cv_prog_make_${ac_make}_set=no;;
7520 esac
7521 rm -f conftest.make
7523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7525 $as_echo "yes" >&6; }
7526 SET_MAKE=
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 SET_MAKE="MAKE=${MAKE-make}"
7534 # Find some useful tools
7535 for ac_prog in gawk mawk nawk awk
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_AWK+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$AWK"; then
7545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_AWK="$ac_prog"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 AWK=$ac_cv_prog_AWK
7565 if test -n "$AWK"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7567 $as_echo "$AWK" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7574 test -n "$AWK" && break
7575 done
7577 # We need awk to create options.c and options.h.
7578 # Bail out if it's missing.
7579 case ${AWK} in
7580 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7581 esac
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7584 $as_echo_n "checking whether ln -s works... " >&6; }
7585 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 rm -f conftestdata_t
7589 echo >conftestdata_f
7590 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7591 then
7592 gcc_cv_prog_LN_S="ln -s"
7593 else
7594 if ln conftestdata_f conftestdata_t 2>/dev/null
7595 then
7596 gcc_cv_prog_LN_S=ln
7597 else
7598 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7599 then
7600 gcc_cv_prog_LN_S="cp -p"
7601 else
7602 gcc_cv_prog_LN_S=cp
7606 rm -f conftestdata_f conftestdata_t
7609 LN_S="$gcc_cv_prog_LN_S"
7610 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7612 $as_echo "yes" >&6; }
7613 else
7614 if test "$gcc_cv_prog_LN_S" = "ln"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7616 $as_echo "no, using ln" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7619 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7624 $as_echo_n "checking whether ln works... " >&6; }
7625 if test "${acx_cv_prog_LN+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 rm -f conftestdata_t
7629 echo >conftestdata_f
7630 if ln conftestdata_f conftestdata_t 2>/dev/null
7631 then
7632 acx_cv_prog_LN=ln
7633 else
7634 acx_cv_prog_LN=no
7636 rm -f conftestdata_f conftestdata_t
7639 if test $acx_cv_prog_LN = no; then
7640 LN="$LN_S"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7642 $as_echo "no, using $LN" >&6; }
7643 else
7644 LN="$acx_cv_prog_LN"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646 $as_echo "yes" >&6; }
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$RANLIB"; then
7658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 RANLIB=$ac_cv_prog_RANLIB
7678 if test -n "$RANLIB"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7680 $as_echo "$RANLIB" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_RANLIB"; then
7689 ac_ct_RANLIB=$RANLIB
7690 # Extract the first word of "ranlib", so it can be a program name with args.
7691 set dummy ranlib; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$ac_ct_RANLIB"; then
7698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_ac_ct_RANLIB="ranlib"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7718 if test -n "$ac_ct_RANLIB"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7720 $as_echo "$ac_ct_RANLIB" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_RANLIB" = x; then
7727 RANLIB=":"
7728 else
7729 case $cross_compiling:$ac_tool_warned in
7730 yes:)
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7734 esac
7735 RANLIB=$ac_ct_RANLIB
7737 else
7738 RANLIB="$ac_cv_prog_RANLIB"
7741 ranlib_flags=""
7744 # Find a good install program. We prefer a C program (faster),
7745 # so one script is as good as another. But avoid the broken or
7746 # incompatible versions:
7747 # SysV /etc/install, /usr/sbin/install
7748 # SunOS /usr/etc/install
7749 # IRIX /sbin/install
7750 # AIX /bin/install
7751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7753 # ./install, which can be erroneously created by make from ./install.sh.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7755 $as_echo_n "checking for a BSD compatible install... " >&6; }
7756 if test -z "$INSTALL"; then
7757 if test "${ac_cv_path_install+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7761 for ac_dir in $PATH; do
7762 # Account for people who put trailing slashes in PATH elements.
7763 case "$ac_dir/" in
7764 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7766 # OSF1 and SCO ODT 3.0 have their own names for install.
7767 for ac_prog in ginstall scoinst install; do
7768 if test -f $ac_dir/$ac_prog; then
7769 if test $ac_prog = install &&
7770 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7771 # AIX install. It has an incompatible calling convention.
7772 # OSF/1 installbsd also uses dspmsg, but is usable.
7774 else
7775 ac_cv_path_install="$ac_dir/$ac_prog -c"
7776 break 2
7779 done
7781 esac
7782 done
7783 IFS="$ac_save_IFS"
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL="$ac_cv_path_install"
7788 else
7789 # As a last resort, use the slow shell script. We don't cache a
7790 # path for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the path is relative.
7793 INSTALL="$ac_install_sh"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7797 $as_echo "$INSTALL" >&6; }
7799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800 # It thinks the first close brace ends the variable substitution.
7801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7803 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806 # See if cmp has --ignore-initial.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7808 $as_echo_n "checking for cmp's capabilities... " >&6; }
7809 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 echo abfoo >t1
7813 echo cdfoo >t2
7814 gcc_cv_prog_cmp_skip=slowcompare
7815 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7816 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7818 else
7819 gcc_cv_prog_cmp_skip=gnucompare
7822 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7823 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7824 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7826 else
7827 gcc_cv_prog_cmp_skip=fastcompare
7831 rm t1 t2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7835 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7836 make_compare_target=$gcc_cv_prog_cmp_skip
7840 # See if we have the mktemp command.
7841 # Extract the first word of "mktemp", so it can be a program name with args.
7842 set dummy mktemp; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$have_mktemp_command"; then
7849 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_have_mktemp_command="yes"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7866 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7869 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7870 if test -n "$have_mktemp_command"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7872 $as_echo "$have_mktemp_command" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 # See if makeinfo has been installed and is modern enough
7881 # that we can use it.
7883 # Extract the first word of "makeinfo", so it can be a program name with args.
7884 set dummy makeinfo; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$MAKEINFO"; then
7891 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_MAKEINFO="makeinfo"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 MAKEINFO=$ac_cv_prog_MAKEINFO
7911 if test -n "$MAKEINFO"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7913 $as_echo "$MAKEINFO" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 if test -n "$MAKEINFO"; then
7921 # Found it, now check the version.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7923 $as_echo_n "checking for modern makeinfo... " >&6; }
7924 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7928 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7930 case $ac_prog_version in
7931 '') gcc_cv_prog_makeinfo_modern=no;;
7932 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7933 *) gcc_cv_prog_makeinfo_modern=no;;
7934 esac
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7938 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7939 else
7940 gcc_cv_prog_makeinfo_modern=no
7942 if test $gcc_cv_prog_makeinfo_modern = no; then
7943 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7946 if test $gcc_cv_prog_makeinfo_modern = no; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7948 *** Makeinfo is missing or too old.
7949 *** Info documentation will not be built." >&5
7950 $as_echo "$as_me: WARNING:
7951 *** Makeinfo is missing or too old.
7952 *** Info documentation will not be built." >&2;}
7953 BUILD_INFO=
7954 else
7955 BUILD_INFO=info
7959 # Is pod2man recent enough to regenerate manpages?
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7961 $as_echo_n "checking for recent Pod::Man... " >&6; }
7962 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7964 $as_echo "yes" >&6; }
7965 GENERATED_MANPAGES=generated-manpages
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 GENERATED_MANPAGES=
7973 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7975 # How about lex?
7976 for ac_prog in flex
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy $ac_prog; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_FLEX+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$FLEX"; then
7986 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_FLEX="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8005 FLEX=$ac_cv_prog_FLEX
8006 if test -n "$FLEX"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8008 $as_echo "$FLEX" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8015 test -n "$FLEX" && break
8016 done
8017 test -n "$FLEX" || FLEX="$MISSING flex"
8020 # Bison?
8021 for ac_prog in bison
8023 # Extract the first word of "$ac_prog", so it can be a program name with args.
8024 set dummy $ac_prog; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_BISON+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$BISON"; then
8031 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_BISON="$ac_prog"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8050 BISON=$ac_cv_prog_BISON
8051 if test -n "$BISON"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8053 $as_echo "$BISON" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8060 test -n "$BISON" && break
8061 done
8062 test -n "$BISON" || BISON="$MISSING bison"
8065 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8066 # check for build == host before using them.
8068 # NM
8069 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8070 && test -d ../binutils ; then
8071 NM='${objdir}/../binutils/nm-new'
8072 else
8073 # Extract the first word of "nm", so it can be a program name with args.
8074 set dummy nm; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_NM+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$NM"; then
8081 ac_cv_prog_NM="$NM" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_prog_NM="nm"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8098 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8101 NM=$ac_cv_prog_NM
8102 if test -n "$NM"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8104 $as_echo "$NM" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8113 # AR
8114 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8115 && test -d ../binutils ; then
8116 AR='${objdir}/../binutils/ar'
8117 else
8118 # Extract the first word of "ar", so it can be a program name with args.
8119 set dummy ar; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$AR"; then
8126 ac_cv_prog_AR="$AR" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_AR="ar"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8143 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8146 AR=$ac_cv_prog_AR
8147 if test -n "$AR"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149 $as_echo "$AR" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8159 # --------------------
8160 # Checks for C headers
8161 # --------------------
8163 # Need to reject headers which give warnings, so that the -Werror bootstrap
8164 # works later. *sigh* This needs to come before all header checks.
8166 ac_c_preproc_warn_flag=yes
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8169 $as_echo_n "checking for ANSI C header files... " >&6; }
8170 if test "${ac_cv_header_stdc+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <stdlib.h>
8176 #include <stdarg.h>
8177 #include <string.h>
8178 #include <float.h>
8181 main ()
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 ac_cv_header_stdc=yes
8190 else
8191 ac_cv_header_stdc=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 if test $ac_cv_header_stdc = yes; then
8196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 #include <string.h>
8201 _ACEOF
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "memchr" >/dev/null 2>&1; then :
8205 else
8206 ac_cv_header_stdc=no
8208 rm -f conftest*
8212 if test $ac_cv_header_stdc = yes; then
8213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <stdlib.h>
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "free" >/dev/null 2>&1; then :
8222 else
8223 ac_cv_header_stdc=no
8225 rm -f conftest*
8229 if test $ac_cv_header_stdc = yes; then
8230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8231 if test "$cross_compiling" = yes; then :
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <ctype.h>
8237 #include <stdlib.h>
8238 #if ((' ' & 0x0FF) == 0x020)
8239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8241 #else
8242 # define ISLOWER(c) \
8243 (('a' <= (c) && (c) <= 'i') \
8244 || ('j' <= (c) && (c) <= 'r') \
8245 || ('s' <= (c) && (c) <= 'z'))
8246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8247 #endif
8249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8251 main ()
8253 int i;
8254 for (i = 0; i < 256; i++)
8255 if (XOR (islower (i), ISLOWER (i))
8256 || toupper (i) != TOUPPER (i))
8257 return 2;
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_run "$LINENO"; then :
8263 else
8264 ac_cv_header_stdc=no
8266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8267 conftest.$ac_objext conftest.beam conftest.$ac_ext
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8273 $as_echo "$ac_cv_header_stdc" >&6; }
8274 if test $ac_cv_header_stdc = yes; then
8276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8281 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8282 if test "${ac_cv_header_time+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #include <sys/types.h>
8288 #include <sys/time.h>
8289 #include <time.h>
8292 main ()
8294 if ((struct tm *) 0)
8295 return 0;
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 ac_cv_header_time=yes
8302 else
8303 ac_cv_header_time=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8308 $as_echo "$ac_cv_header_time" >&6; }
8309 if test $ac_cv_header_time = yes; then
8311 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8316 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8317 if test "${gcc_cv_header_string+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <string.h>
8323 #include <strings.h>
8325 main ()
8329 return 0;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 gcc_cv_header_string=yes
8334 else
8335 gcc_cv_header_string=no
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8340 $as_echo "$gcc_cv_header_string" >&6; }
8341 if test $gcc_cv_header_string = yes; then
8343 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8348 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8349 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <sys/types.h>
8355 #include <sys/wait.h>
8356 #ifndef WEXITSTATUS
8357 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8358 #endif
8359 #ifndef WIFEXITED
8360 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8361 #endif
8364 main ()
8366 int s;
8367 wait (&s);
8368 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8370 return 0;
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 ac_cv_header_sys_wait_h=yes
8375 else
8376 ac_cv_header_sys_wait_h=no
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8381 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8382 if test $ac_cv_header_sys_wait_h = yes; then
8384 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8389 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8390 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <termios.h>
8397 #ifdef TIOCGWINSZ
8399 #endif
8401 _ACEOF
8402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8403 $EGREP "yes" >/dev/null 2>&1; then :
8404 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8405 else
8406 ac_cv_sys_tiocgwinsz_in_termios_h=no
8408 rm -f conftest*
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8412 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8414 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8416 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8417 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <sys/types.h>
8423 #include <sys/ioctl.h>
8424 #ifdef TIOCGWINSZ
8426 #endif
8428 _ACEOF
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 $EGREP "yes" >/dev/null 2>&1; then :
8431 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8432 else
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8435 rm -f conftest*
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8439 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8441 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8443 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8448 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8449 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8450 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8451 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8452 do :
8453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8455 eval as_val=\$$as_ac_Header
8456 if test "x$as_val" = x""yes; then :
8457 cat >>confdefs.h <<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459 _ACEOF
8462 done
8465 # Check for thread headers.
8466 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8467 if test "x$ac_cv_header_thread_h" = x""yes; then :
8468 have_thread_h=yes
8469 else
8470 have_thread_h=
8473 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8474 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8475 have_pthread_h=yes
8476 else
8477 have_pthread_h=
8481 # These tests can't be done till we know if we have limits.h.
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8483 $as_echo_n "checking for CHAR_BIT... " >&6; }
8484 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #ifdef HAVE_LIMITS_H
8490 #include <limits.h>
8491 #endif
8492 #ifdef CHAR_BIT
8493 found
8494 #endif
8495 _ACEOF
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 $EGREP "found" >/dev/null 2>&1; then :
8498 gcc_cv_decl_char_bit=yes
8499 else
8500 gcc_cv_decl_char_bit=no
8502 rm -f conftest*
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8507 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8508 if test $gcc_cv_decl_char_bit = no; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8510 $as_echo_n "checking number of bits in a byte... " >&6; }
8511 if test "${gcc_cv_c_nbby+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8515 gcc_cv_c_nbby=
8516 while test $i -lt 65; do
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8521 main ()
8523 switch(0) {
8524 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8525 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8528 return 0;
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532 gcc_cv_c_nbby=$i; break
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 i=`expr $i + 1`
8536 done
8537 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8541 $as_echo "$gcc_cv_c_nbby" >&6; }
8542 if test $gcc_cv_c_nbby = failed; then
8543 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8544 else
8546 cat >>confdefs.h <<_ACEOF
8547 #define CHAR_BIT $gcc_cv_c_nbby
8548 _ACEOF
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8553 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8554 if test "${ac_cv_c_bigendian+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 ac_cv_c_bigendian=unknown
8558 # See if we're dealing with a universal compiler.
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #ifndef __APPLE_CC__
8562 not a universal capable compiler
8563 #endif
8564 typedef int dummy;
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"; then :
8569 # Check for potential -arch flags. It is not universal unless
8570 # there are at least two -arch flags with different values.
8571 ac_arch=
8572 ac_prev=
8573 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8574 if test -n "$ac_prev"; then
8575 case $ac_word in
8576 i?86 | x86_64 | ppc | ppc64)
8577 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8578 ac_arch=$ac_word
8579 else
8580 ac_cv_c_bigendian=universal
8581 break
8584 esac
8585 ac_prev=
8586 elif test "x$ac_word" = "x-arch"; then
8587 ac_prev=arch
8589 done
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 if test $ac_cv_c_bigendian = unknown; then
8593 # See if sys/param.h defines the BYTE_ORDER macro.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/param.h>
8600 main ()
8602 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8603 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8604 && LITTLE_ENDIAN)
8605 bogus endian macros
8606 #endif
8609 return 0;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 # It does; now see whether it defined to BIG_ENDIAN or not.
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/param.h>
8620 main ()
8622 #if BYTE_ORDER != BIG_ENDIAN
8623 not big endian
8624 #endif
8627 return 0;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 ac_cv_c_bigendian=yes
8632 else
8633 ac_cv_c_bigendian=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 if test $ac_cv_c_bigendian = unknown; then
8640 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <limits.h>
8646 main ()
8648 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8649 bogus endian macros
8650 #endif
8653 return 0;
8655 _ACEOF
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 # It does; now see whether it defined to _BIG_ENDIAN or not.
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <limits.h>
8663 main ()
8665 #ifndef _BIG_ENDIAN
8666 not big endian
8667 #endif
8670 return 0;
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"; then :
8674 ac_cv_c_bigendian=yes
8675 else
8676 ac_cv_c_bigendian=no
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 if test $ac_cv_c_bigendian = unknown; then
8683 # Compile a test program.
8684 if test "$cross_compiling" = yes; then :
8685 # Try to guess by grepping values from an object file.
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 short int ascii_mm[] =
8689 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8690 short int ascii_ii[] =
8691 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8692 int use_ascii (int i) {
8693 return ascii_mm[i] + ascii_ii[i];
8695 short int ebcdic_ii[] =
8696 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8697 short int ebcdic_mm[] =
8698 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8699 int use_ebcdic (int i) {
8700 return ebcdic_mm[i] + ebcdic_ii[i];
8702 extern int foo;
8705 main ()
8707 return use_ascii (foo) == use_ebcdic (foo);
8709 return 0;
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8714 ac_cv_c_bigendian=yes
8716 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8717 if test "$ac_cv_c_bigendian" = unknown; then
8718 ac_cv_c_bigendian=no
8719 else
8720 # finding both strings is unlikely to happen, but who knows?
8721 ac_cv_c_bigendian=unknown
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 $ac_includes_default
8731 main ()
8734 /* Are we little or big endian? From Harbison&Steele. */
8735 union
8737 long int l;
8738 char c[sizeof (long int)];
8739 } u;
8740 u.l = 1;
8741 return u.c[sizeof (long int) - 1] == 1;
8744 return 0;
8746 _ACEOF
8747 if ac_fn_c_try_run "$LINENO"; then :
8748 ac_cv_c_bigendian=no
8749 else
8750 ac_cv_c_bigendian=yes
8752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8753 conftest.$ac_objext conftest.beam conftest.$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8759 $as_echo "$ac_cv_c_bigendian" >&6; }
8760 case $ac_cv_c_bigendian in #(
8761 yes)
8762 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8763 ;; #(
8765 ;; #(
8766 universal)
8768 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8770 ;; #(
8772 as_fn_error "unknown endianness
8773 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8774 esac
8777 # ----------------------
8778 # Checks for C++ headers
8779 # ----------------------
8781 ac_ext=cpp
8782 ac_cpp='$CXXCPP $CPPFLAGS'
8783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8787 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8788 if test -z "$CXXCPP"; then
8789 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 # Double quotes because CXXCPP needs to be expanded
8793 for CXXCPP in "$CXX -E" "/lib/cpp"
8795 ac_preproc_ok=false
8796 for ac_cxx_preproc_warn_flag in '' yes
8798 # Use a header file that comes with gcc, so configuring glibc
8799 # with a fresh cross-compiler works.
8800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 # <limits.h> exists even on freestanding compilers.
8802 # On the NeXT, cc -E runs the code through the compiler's parser,
8803 # not just through cpp. "Syntax error" is here to catch this case.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8811 Syntax error
8812 _ACEOF
8813 if ac_fn_cxx_try_cpp "$LINENO"; then :
8815 else
8816 # Broken: fails on valid input.
8817 continue
8819 rm -f conftest.err conftest.$ac_ext
8821 # OK, works on sane cases. Now check whether nonexistent headers
8822 # can be detected and how.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <ac_nonexistent.h>
8826 _ACEOF
8827 if ac_fn_cxx_try_cpp "$LINENO"; then :
8828 # Broken: success on invalid input.
8829 continue
8830 else
8831 # Passes both tests.
8832 ac_preproc_ok=:
8833 break
8835 rm -f conftest.err conftest.$ac_ext
8837 done
8838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8839 rm -f conftest.err conftest.$ac_ext
8840 if $ac_preproc_ok; then :
8841 break
8844 done
8845 ac_cv_prog_CXXCPP=$CXXCPP
8848 CXXCPP=$ac_cv_prog_CXXCPP
8849 else
8850 ac_cv_prog_CXXCPP=$CXXCPP
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8853 $as_echo "$CXXCPP" >&6; }
8854 ac_preproc_ok=false
8855 for ac_cxx_preproc_warn_flag in '' yes
8857 # Use a header file that comes with gcc, so configuring glibc
8858 # with a fresh cross-compiler works.
8859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8860 # <limits.h> exists even on freestanding compilers.
8861 # On the NeXT, cc -E runs the code through the compiler's parser,
8862 # not just through cpp. "Syntax error" is here to catch this case.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #ifdef __STDC__
8866 # include <limits.h>
8867 #else
8868 # include <assert.h>
8869 #endif
8870 Syntax error
8871 _ACEOF
8872 if ac_fn_cxx_try_cpp "$LINENO"; then :
8874 else
8875 # Broken: fails on valid input.
8876 continue
8878 rm -f conftest.err conftest.$ac_ext
8880 # OK, works on sane cases. Now check whether nonexistent headers
8881 # can be detected and how.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <ac_nonexistent.h>
8885 _ACEOF
8886 if ac_fn_cxx_try_cpp "$LINENO"; then :
8887 # Broken: success on invalid input.
8888 continue
8889 else
8890 # Passes both tests.
8891 ac_preproc_ok=:
8892 break
8894 rm -f conftest.err conftest.$ac_ext
8896 done
8897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8898 rm -f conftest.err conftest.$ac_ext
8899 if $ac_preproc_ok; then :
8901 else
8902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8905 See \`config.log' for more details." >&5
8906 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&2;}; }
8910 ac_ext=c
8911 ac_cpp='$CPP $CPPFLAGS'
8912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917 ac_ext=cpp
8918 ac_cpp='$CXXCPP $CPPFLAGS'
8919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8926 for ac_header in unordered_map
8927 do :
8928 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8929 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8930 cat >>confdefs.h <<_ACEOF
8931 #define HAVE_UNORDERED_MAP 1
8932 _ACEOF
8935 done
8937 for ac_header in tr1/unordered_map
8938 do :
8939 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8940 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_TR1_UNORDERED_MAP 1
8943 _ACEOF
8946 done
8948 for ac_header in ext/hash_map
8949 do :
8950 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8951 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_EXT_HASH_MAP 1
8954 _ACEOF
8957 done
8960 ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967 # --------
8968 # Dependency checking.
8969 # --------
8971 ac_ext=cpp
8972 ac_cpp='$CXXCPP $CPPFLAGS'
8973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8977 rm -rf .tst 2>/dev/null
8978 mkdir .tst 2>/dev/null
8979 if test -d .tst; then
8980 am__leading_dot=.
8981 else
8982 am__leading_dot=_
8984 rmdir .tst 2>/dev/null
8986 DEPDIR="${am__leading_dot}deps"
8988 ac_config_commands="$ac_config_commands depdir"
8991 ac_config_commands="$ac_config_commands gccdepdir"
8994 depcc="$CXX" am_compiler_list=
8996 am_depcomp=$ac_aux_dir/depcomp
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8998 $as_echo_n "checking dependency style of $depcc... " >&6; }
8999 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 if test -f "$am_depcomp"; then
9003 # We make a subdir and do the tests there. Otherwise we can end up
9004 # making bogus files that we don't know about and never remove. For
9005 # instance it was reported that on HP-UX the gcc test will end up
9006 # making a dummy file named `D' -- because `-MD' means `put the output
9007 # in D'.
9008 mkdir conftest.dir
9009 # Copy depcomp to subdir because otherwise we won't find it if we're
9010 # using a relative directory.
9011 cp "$am_depcomp" conftest.dir
9012 cd conftest.dir
9013 # We will build objects and dependencies in a subdirectory because
9014 # it helps to detect inapplicable dependency modes. For instance
9015 # both Tru64's cc and ICC support -MD to output dependencies as a
9016 # side effect of compilation, but ICC will put the dependencies in
9017 # the current directory while Tru64 will put them in the object
9018 # directory.
9019 mkdir sub
9021 am_cv_CXX_dependencies_compiler_type=none
9022 if test "$am_compiler_list" = ""; then
9023 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9025 for depmode in $am_compiler_list; do
9026 if test $depmode = none; then break; fi
9028 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9029 # Setup a source with many dependencies, because some compilers
9030 # like to wrap large dependency lists on column 80 (with \), and
9031 # we should not choose a depcomp mode which is confused by this.
9033 # We need to recreate these files for each test, as the compiler may
9034 # overwrite some of them when testing with obscure command lines.
9035 # This happens at least with the AIX C compiler.
9036 : > sub/conftest.c
9037 for i in 1 2 3 4 5 6; do
9038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9040 # Solaris 8's {/usr,}/bin/sh.
9041 touch sub/conftst$i.h
9042 done
9043 echo "include sub/conftest.Po" > confmf
9045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9046 # mode. It turns out that the SunPro C++ compiler does not properly
9047 # handle `-M -o', and we need to detect this.
9048 depcmd="depmode=$depmode \
9049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9052 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9053 if env $depcmd > conftest.err 2>&1 &&
9054 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9056 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9057 # icc doesn't choke on unknown options, it will just issue warnings
9058 # or remarks (even with -Werror). So we grep stderr for any message
9059 # that says an option was ignored or not supported.
9060 # When given -MP, icc 7.0 and 7.1 complain thusly:
9061 # icc: Command line warning: ignoring option '-M'; no argument required
9062 # The diagnosis changed in icc 8.0:
9063 # icc: Command line remark: option '-MP' not supported
9064 if (grep 'ignoring option' conftest.err ||
9065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9066 am_cv_CXX_dependencies_compiler_type=$depmode
9067 $as_echo "$as_me:$LINENO: success" >&5
9068 break
9071 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9072 sed -e 's/^/| /' < conftest.err >&5
9073 done
9075 cd ..
9076 rm -rf conftest.dir
9077 else
9078 am_cv_CXX_dependencies_compiler_type=none
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9083 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9084 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9085 then as_fn_error "no usable dependency style found" "$LINENO" 5
9086 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9090 ac_ext=c
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097 # --------
9098 # UNSORTED
9099 # --------
9102 # These libraries may be used by collect2.
9103 # We may need a special search path to get them linked.
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9105 $as_echo_n "checking for collect2 libraries... " >&6; }
9106 if test "${gcc_cv_collect2_libs+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 save_LIBS="$LIBS"
9110 for libs in '' -lld -lmld \
9111 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9112 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9114 LIBS="$libs"
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 char ldopen ();
9126 main ()
9128 return ldopen ();
9130 return 0;
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 gcc_cv_collect2_libs="$libs"; break
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 done
9139 LIBS="$save_LIBS"
9140 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9143 $as_echo "$gcc_cv_collect2_libs" >&6; }
9144 case $gcc_cv_collect2_libs in
9145 "none required") ;;
9146 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9147 esac
9150 # When building Ada code on Alpha, we need exc_resume which is usually in
9151 # -lexc. So test for it.
9152 save_LIBS="$LIBS"
9153 LIBS=
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9155 $as_echo_n "checking for library containing exc_resume... " >&6; }
9156 if test "${ac_cv_search_exc_resume+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 ac_func_search_save_LIBS=$LIBS
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char exc_resume ();
9171 main ()
9173 return exc_resume ();
9175 return 0;
9177 _ACEOF
9178 for ac_lib in '' exc; do
9179 if test -z "$ac_lib"; then
9180 ac_res="none required"
9181 else
9182 ac_res=-l$ac_lib
9183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 ac_cv_search_exc_resume=$ac_res
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext
9190 if test "${ac_cv_search_exc_resume+set}" = set; then :
9191 break
9193 done
9194 if test "${ac_cv_search_exc_resume+set}" = set; then :
9196 else
9197 ac_cv_search_exc_resume=no
9199 rm conftest.$ac_ext
9200 LIBS=$ac_func_search_save_LIBS
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9203 $as_echo "$ac_cv_search_exc_resume" >&6; }
9204 ac_res=$ac_cv_search_exc_resume
9205 if test "$ac_res" != no; then :
9206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9210 GNAT_LIBEXC="$LIBS"
9211 LIBS="$save_LIBS"
9214 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9215 save_LIBS="$LIBS"
9216 LIBS=
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9218 $as_echo_n "checking for library containing kstat_open... " >&6; }
9219 if test "${ac_cv_search_kstat_open+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 ac_func_search_save_LIBS=$LIBS
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9226 /* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9229 #ifdef __cplusplus
9230 extern "C"
9231 #endif
9232 char kstat_open ();
9234 main ()
9236 return kstat_open ();
9238 return 0;
9240 _ACEOF
9241 for ac_lib in '' kstat; do
9242 if test -z "$ac_lib"; then
9243 ac_res="none required"
9244 else
9245 ac_res=-l$ac_lib
9246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 ac_cv_search_kstat_open=$ac_res
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext
9253 if test "${ac_cv_search_kstat_open+set}" = set; then :
9254 break
9256 done
9257 if test "${ac_cv_search_kstat_open+set}" = set; then :
9259 else
9260 ac_cv_search_kstat_open=no
9262 rm conftest.$ac_ext
9263 LIBS=$ac_func_search_save_LIBS
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9266 $as_echo "$ac_cv_search_kstat_open" >&6; }
9267 ac_res=$ac_cv_search_kstat_open
9268 if test "$ac_res" != no; then :
9269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9273 EXTRA_GCC_LIBS="$LIBS"
9274 LIBS="$save_LIBS"
9277 # Some systems put ldexp and frexp in libm instead of libc; assume
9278 # they're both in the same place. jcf-dump needs them.
9279 save_LIBS="$LIBS"
9280 LIBS=
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9282 $as_echo_n "checking for library containing ldexp... " >&6; }
9283 if test "${ac_cv_search_ldexp+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_func_search_save_LIBS=$LIBS
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 char ldexp ();
9298 main ()
9300 return ldexp ();
9302 return 0;
9304 _ACEOF
9305 for ac_lib in '' m; do
9306 if test -z "$ac_lib"; then
9307 ac_res="none required"
9308 else
9309 ac_res=-l$ac_lib
9310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9312 if ac_fn_c_try_link "$LINENO"; then :
9313 ac_cv_search_ldexp=$ac_res
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext
9317 if test "${ac_cv_search_ldexp+set}" = set; then :
9318 break
9320 done
9321 if test "${ac_cv_search_ldexp+set}" = set; then :
9323 else
9324 ac_cv_search_ldexp=no
9326 rm conftest.$ac_ext
9327 LIBS=$ac_func_search_save_LIBS
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9330 $as_echo "$ac_cv_search_ldexp" >&6; }
9331 ac_res=$ac_cv_search_ldexp
9332 if test "$ac_res" != no; then :
9333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9337 LDEXP_LIB="$LIBS"
9338 LIBS="$save_LIBS"
9341 # Use <inttypes.h> only if it exists,
9342 # doesn't clash with <sys/types.h>, and declares intmax_t.
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9344 $as_echo_n "checking for inttypes.h... " >&6; }
9345 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 #include <sys/types.h>
9351 #include <inttypes.h>
9353 main ()
9355 intmax_t i = -1;
9357 return 0;
9359 _ACEOF
9360 if ac_fn_c_try_compile "$LINENO"; then :
9361 gcc_cv_header_inttypes_h=yes
9362 else
9363 gcc_cv_header_inttypes_h=no
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9369 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9370 if test $gcc_cv_header_inttypes_h = yes; then
9372 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9378 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9379 sysconf strsignal getrusage nl_langinfo \
9380 gettimeofday mbstowcs wcswidth mmap setlocale \
9381 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
9382 do :
9383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9385 eval as_val=\$$as_ac_var
9386 if test "x$as_val" = x""yes; then :
9387 cat >>confdefs.h <<_ACEOF
9388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 _ACEOF
9392 done
9395 if test x$ac_cv_func_mbstowcs = xyes; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9397 $as_echo_n "checking whether mbstowcs works... " >&6; }
9398 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 if test "$cross_compiling" = yes; then :
9402 gcc_cv_func_mbstowcs_works=yes
9403 else
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <stdlib.h>
9407 int main()
9409 mbstowcs(0, "", 0);
9410 return 0;
9412 _ACEOF
9413 if ac_fn_c_try_run "$LINENO"; then :
9414 gcc_cv_func_mbstowcs_works=yes
9415 else
9416 gcc_cv_func_mbstowcs_works=no
9418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9419 conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9424 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9425 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9427 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9432 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9433 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9435 else
9437 cat >>confdefs.h <<_ACEOF
9438 #define ssize_t int
9439 _ACEOF
9443 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9444 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9446 else
9448 cat >>confdefs.h <<_ACEOF
9449 #define caddr_t char *
9450 _ACEOF
9456 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9457 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9458 gcc_header_sys_mman_h=yes
9459 else
9460 gcc_header_sys_mman_h=no
9463 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9464 if test "x$ac_cv_func_mmap" = x""yes; then :
9465 gcc_func_mmap=yes
9466 else
9467 gcc_func_mmap=no
9470 if test "$gcc_header_sys_mman_h" != yes \
9471 || test "$gcc_func_mmap" != yes; then
9472 gcc_cv_func_mmap_file=no
9473 gcc_cv_func_mmap_dev_zero=no
9474 gcc_cv_func_mmap_anon=no
9475 else
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9477 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9478 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 # Add a system to this blacklist if
9482 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9483 # memory area containing the same data that you'd get if you applied
9484 # read() to the same fd. The only system known to have a problem here
9485 # is VMS, where text files have record structure.
9486 case "$host_os" in
9487 *vms* | ultrix*)
9488 gcc_cv_func_mmap_file=no ;;
9490 gcc_cv_func_mmap_file=yes;;
9491 esac
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9494 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9496 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9497 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 # Add a system to this blacklist if it has mmap() but /dev/zero
9501 # does not exist, or if mmapping /dev/zero does not give anonymous
9502 # zeroed pages with both the following properties:
9503 # 1. If you map N consecutive pages in with one call, and then
9504 # unmap any subset of those pages, the pages that were not
9505 # explicitly unmapped remain accessible.
9506 # 2. If you map two adjacent blocks of memory and then unmap them
9507 # both at once, they must both go away.
9508 # Systems known to be in this category are Windows (all variants),
9509 # VMS, and Darwin.
9510 case "$host_os" in
9511 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9512 gcc_cv_func_mmap_dev_zero=no ;;
9514 gcc_cv_func_mmap_dev_zero=yes;;
9515 esac
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9518 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9520 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9522 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9523 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #include <sys/types.h>
9529 #include <sys/mman.h>
9530 #include <unistd.h>
9532 #ifndef MAP_ANONYMOUS
9533 #define MAP_ANONYMOUS MAP_ANON
9534 #endif
9537 main ()
9539 int n = MAP_ANONYMOUS;
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 gcc_cv_decl_map_anon=yes
9546 else
9547 gcc_cv_decl_map_anon=no
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9552 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9554 if test $gcc_cv_decl_map_anon = no; then
9555 gcc_cv_func_mmap_anon=no
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9558 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9559 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9563 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9564 # doesn't give anonymous zeroed pages with the same properties listed
9565 # above for use of /dev/zero.
9566 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9567 case "$host_os" in
9568 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9569 gcc_cv_func_mmap_anon=no ;;
9571 gcc_cv_func_mmap_anon=yes;;
9572 esac
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9575 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9579 if test $gcc_cv_func_mmap_file = yes; then
9581 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9584 if test $gcc_cv_func_mmap_dev_zero = yes; then
9586 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9589 if test $gcc_cv_func_mmap_anon = yes; then
9591 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9596 case "${host}" in
9597 *-*-*vms*)
9598 # Under VMS, vfork works very differently than on Unix. The standard test
9599 # won't work, and it isn't easily adaptable. It makes more sense to
9600 # just force it.
9601 ac_cv_func_vfork_works=yes
9603 esac
9604 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9605 if test "x$ac_cv_type_pid_t" = x""yes; then :
9607 else
9609 cat >>confdefs.h <<_ACEOF
9610 #define pid_t int
9611 _ACEOF
9615 for ac_header in vfork.h
9616 do :
9617 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9618 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_VFORK_H 1
9621 _ACEOF
9624 done
9626 for ac_func in fork vfork
9627 do :
9628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9629 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9630 eval as_val=\$$as_ac_var
9631 if test "x$as_val" = x""yes; then :
9632 cat >>confdefs.h <<_ACEOF
9633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 _ACEOF
9637 done
9639 if test "x$ac_cv_func_fork" = xyes; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9641 $as_echo_n "checking for working fork... " >&6; }
9642 if test "${ac_cv_func_fork_works+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 if test "$cross_compiling" = yes; then :
9646 ac_cv_func_fork_works=cross
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 $ac_includes_default
9652 main ()
9655 /* By Ruediger Kuhlmann. */
9656 return fork () < 0;
9659 return 0;
9661 _ACEOF
9662 if ac_fn_c_try_run "$LINENO"; then :
9663 ac_cv_func_fork_works=yes
9664 else
9665 ac_cv_func_fork_works=no
9667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9668 conftest.$ac_objext conftest.beam conftest.$ac_ext
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9673 $as_echo "$ac_cv_func_fork_works" >&6; }
9675 else
9676 ac_cv_func_fork_works=$ac_cv_func_fork
9678 if test "x$ac_cv_func_fork_works" = xcross; then
9679 case $host in
9680 *-*-amigaos* | *-*-msdosdjgpp*)
9681 # Override, as these systems have only a dummy fork() stub
9682 ac_cv_func_fork_works=no
9685 ac_cv_func_fork_works=yes
9687 esac
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9689 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9691 ac_cv_func_vfork_works=$ac_cv_func_vfork
9692 if test "x$ac_cv_func_vfork" = xyes; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9694 $as_echo_n "checking for working vfork... " >&6; }
9695 if test "${ac_cv_func_vfork_works+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 if test "$cross_compiling" = yes; then :
9699 ac_cv_func_vfork_works=cross
9700 else
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 /* Thanks to Paul Eggert for this test. */
9704 $ac_includes_default
9705 #include <sys/wait.h>
9706 #ifdef HAVE_VFORK_H
9707 # include <vfork.h>
9708 #endif
9709 /* On some sparc systems, changes by the child to local and incoming
9710 argument registers are propagated back to the parent. The compiler
9711 is told about this with #include <vfork.h>, but some compilers
9712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9713 static variable whose address is put into a register that is
9714 clobbered by the vfork. */
9715 static void
9716 #ifdef __cplusplus
9717 sparc_address_test (int arg)
9718 # else
9719 sparc_address_test (arg) int arg;
9720 #endif
9722 static pid_t child;
9723 if (!child) {
9724 child = vfork ();
9725 if (child < 0) {
9726 perror ("vfork");
9727 _exit(2);
9729 if (!child) {
9730 arg = getpid();
9731 write(-1, "", 0);
9732 _exit (arg);
9738 main ()
9740 pid_t parent = getpid ();
9741 pid_t child;
9743 sparc_address_test (0);
9745 child = vfork ();
9747 if (child == 0) {
9748 /* Here is another test for sparc vfork register problems. This
9749 test uses lots of local variables, at least as many local
9750 variables as main has allocated so far including compiler
9751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9753 reuse the register of parent for one of the local variables,
9754 since it will think that parent can't possibly be used any more
9755 in this routine. Assigning to the local variable will thus
9756 munge parent in the parent process. */
9757 pid_t
9758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9760 /* Convince the compiler that p..p7 are live; otherwise, it might
9761 use the same hardware register for all 8 local variables. */
9762 if (p != p1 || p != p2 || p != p3 || p != p4
9763 || p != p5 || p != p6 || p != p7)
9764 _exit(1);
9766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9767 from child file descriptors. If the child closes a descriptor
9768 before it execs or exits, this munges the parent's descriptor
9769 as well. Test for this by closing stdout in the child. */
9770 _exit(close(fileno(stdout)) != 0);
9771 } else {
9772 int status;
9773 struct stat st;
9775 while (wait(&status) != child)
9777 return (
9778 /* Was there some problem with vforking? */
9779 child < 0
9781 /* Did the child fail? (This shouldn't happen.) */
9782 || status
9784 /* Did the vfork/compiler bug occur? */
9785 || parent != getpid()
9787 /* Did the file descriptor bug occur? */
9788 || fstat(fileno(stdout), &st) != 0
9792 _ACEOF
9793 if ac_fn_c_try_run "$LINENO"; then :
9794 ac_cv_func_vfork_works=yes
9795 else
9796 ac_cv_func_vfork_works=no
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9799 conftest.$ac_objext conftest.beam conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9804 $as_echo "$ac_cv_func_vfork_works" >&6; }
9807 if test "x$ac_cv_func_fork_works" = xcross; then
9808 ac_cv_func_vfork_works=$ac_cv_func_vfork
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9810 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9813 if test "x$ac_cv_func_vfork_works" = xyes; then
9815 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9817 else
9819 $as_echo "#define vfork fork" >>confdefs.h
9822 if test "x$ac_cv_func_fork_works" = xyes; then
9824 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9829 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9830 # iconv() prototype.
9831 ac_ext=cpp
9832 ac_cpp='$CXXCPP $CPPFLAGS'
9833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9838 if test "X$prefix" = "XNONE"; then
9839 acl_final_prefix="$ac_default_prefix"
9840 else
9841 acl_final_prefix="$prefix"
9843 if test "X$exec_prefix" = "XNONE"; then
9844 acl_final_exec_prefix='${prefix}'
9845 else
9846 acl_final_exec_prefix="$exec_prefix"
9848 acl_save_prefix="$prefix"
9849 prefix="$acl_final_prefix"
9850 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9851 prefix="$acl_save_prefix"
9854 # Check whether --with-gnu-ld was given.
9855 if test "${with_gnu_ld+set}" = set; then :
9856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9857 else
9858 with_gnu_ld=no
9861 # Prepare PATH_SEPARATOR.
9862 # The user is always right.
9863 if test "${PATH_SEPARATOR+set}" != set; then
9864 echo "#! /bin/sh" >conf$$.sh
9865 echo "exit 0" >>conf$$.sh
9866 chmod +x conf$$.sh
9867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9868 PATH_SEPARATOR=';'
9869 else
9870 PATH_SEPARATOR=:
9872 rm -f conf$$.sh
9874 ac_prog=ld
9875 if test "$GCC" = yes; then
9876 # Check if gcc -print-prog-name=ld gives a path.
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9878 $as_echo_n "checking for ld used by GCC... " >&6; }
9879 case $host in
9880 *-*-mingw*)
9881 # gcc leaves a trailing carriage return which upsets mingw
9882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9885 esac
9886 case $ac_prog in
9887 # Accept absolute paths.
9888 [\\/]* | [A-Za-z]:[\\/]*)
9889 re_direlt='/[^/][^/]*/\.\./'
9890 # Canonicalize the path of ld
9891 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9893 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9894 done
9895 test -z "$LD" && LD="$ac_prog"
9898 # If it fails, then pretend we aren't using GCC.
9899 ac_prog=ld
9902 # If it is relative, then search for the first ld in PATH.
9903 with_gnu_ld=unknown
9905 esac
9906 elif test "$with_gnu_ld" = yes; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9908 $as_echo_n "checking for GNU ld... " >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9911 $as_echo_n "checking for non-GNU ld... " >&6; }
9913 if test "${acl_cv_path_LD+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 if test -z "$LD"; then
9917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9918 for ac_dir in $PATH; do
9919 test -z "$ac_dir" && ac_dir=.
9920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921 acl_cv_path_LD="$ac_dir/$ac_prog"
9922 # Check to see if the program is GNU ld. I'd rather use --version,
9923 # but apparently some GNU ld's only accept -v.
9924 # Break only if it was the GNU/non-GNU ld that we prefer.
9925 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9926 test "$with_gnu_ld" != no && break
9927 else
9928 test "$with_gnu_ld" != yes && break
9931 done
9932 IFS="$ac_save_ifs"
9933 else
9934 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9938 LD="$acl_cv_path_LD"
9939 if test -n "$LD"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9941 $as_echo "$LD" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9946 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9948 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9949 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9953 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9954 acl_cv_prog_gnu_ld=yes
9955 else
9956 acl_cv_prog_gnu_ld=no
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9960 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9961 with_gnu_ld=$acl_cv_prog_gnu_ld
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9966 $as_echo_n "checking for shared library run path origin... " >&6; }
9967 if test "${acl_cv_rpath+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9971 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9972 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9973 . ./conftest.sh
9974 rm -f ./conftest.sh
9975 acl_cv_rpath=done
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9979 $as_echo "$acl_cv_rpath" >&6; }
9980 wl="$acl_cv_wl"
9981 libext="$acl_cv_libext"
9982 shlibext="$acl_cv_shlibext"
9983 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9984 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9985 hardcode_direct="$acl_cv_hardcode_direct"
9986 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9987 # Check whether --enable-rpath was given.
9988 if test "${enable_rpath+set}" = set; then :
9989 enableval=$enable_rpath; :
9990 else
9991 enable_rpath=yes
10001 use_additional=yes
10003 acl_save_prefix="$prefix"
10004 prefix="$acl_final_prefix"
10005 acl_save_exec_prefix="$exec_prefix"
10006 exec_prefix="$acl_final_exec_prefix"
10008 eval additional_includedir=\"$includedir\"
10009 eval additional_libdir=\"$libdir\"
10011 exec_prefix="$acl_save_exec_prefix"
10012 prefix="$acl_save_prefix"
10015 # Check whether --with-libiconv-prefix was given.
10016 if test "${with_libiconv_prefix+set}" = set; then :
10017 withval=$with_libiconv_prefix;
10018 if test "X$withval" = "Xno"; then
10019 use_additional=no
10020 else
10021 if test "X$withval" = "X"; then
10023 acl_save_prefix="$prefix"
10024 prefix="$acl_final_prefix"
10025 acl_save_exec_prefix="$exec_prefix"
10026 exec_prefix="$acl_final_exec_prefix"
10028 eval additional_includedir=\"$includedir\"
10029 eval additional_libdir=\"$libdir\"
10031 exec_prefix="$acl_save_exec_prefix"
10032 prefix="$acl_save_prefix"
10034 else
10035 additional_includedir="$withval/include"
10036 additional_libdir="$withval/lib"
10042 LIBICONV=
10043 LTLIBICONV=
10044 INCICONV=
10045 rpathdirs=
10046 ltrpathdirs=
10047 names_already_handled=
10048 names_next_round='iconv '
10049 while test -n "$names_next_round"; do
10050 names_this_round="$names_next_round"
10051 names_next_round=
10052 for name in $names_this_round; do
10053 already_handled=
10054 for n in $names_already_handled; do
10055 if test "$n" = "$name"; then
10056 already_handled=yes
10057 break
10059 done
10060 if test -z "$already_handled"; then
10061 names_already_handled="$names_already_handled $name"
10062 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10063 eval value=\"\$HAVE_LIB$uppername\"
10064 if test -n "$value"; then
10065 if test "$value" = yes; then
10066 eval value=\"\$LIB$uppername\"
10067 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10068 eval value=\"\$LTLIB$uppername\"
10069 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10070 else
10073 else
10074 found_dir=
10075 found_la=
10076 found_so=
10077 found_a=
10078 if test $use_additional = yes; then
10079 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10080 found_dir="$additional_libdir"
10081 found_so="$additional_libdir/lib$name.$shlibext"
10082 if test -f "$additional_libdir/lib$name.la"; then
10083 found_la="$additional_libdir/lib$name.la"
10085 else
10086 if test -f "$additional_libdir/lib$name.$libext"; then
10087 found_dir="$additional_libdir"
10088 found_a="$additional_libdir/lib$name.$libext"
10089 if test -f "$additional_libdir/lib$name.la"; then
10090 found_la="$additional_libdir/lib$name.la"
10095 if test "X$found_dir" = "X"; then
10096 for x in $LDFLAGS $LTLIBICONV; do
10098 acl_save_prefix="$prefix"
10099 prefix="$acl_final_prefix"
10100 acl_save_exec_prefix="$exec_prefix"
10101 exec_prefix="$acl_final_exec_prefix"
10102 eval x=\"$x\"
10103 exec_prefix="$acl_save_exec_prefix"
10104 prefix="$acl_save_prefix"
10106 case "$x" in
10107 -L*)
10108 dir=`echo "X$x" | sed -e 's/^X-L//'`
10109 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10110 found_dir="$dir"
10111 found_so="$dir/lib$name.$shlibext"
10112 if test -f "$dir/lib$name.la"; then
10113 found_la="$dir/lib$name.la"
10115 else
10116 if test -f "$dir/lib$name.$libext"; then
10117 found_dir="$dir"
10118 found_a="$dir/lib$name.$libext"
10119 if test -f "$dir/lib$name.la"; then
10120 found_la="$dir/lib$name.la"
10125 esac
10126 if test "X$found_dir" != "X"; then
10127 break
10129 done
10131 if test "X$found_dir" != "X"; then
10132 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10133 if test "X$found_so" != "X"; then
10134 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10135 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10136 else
10137 haveit=
10138 for x in $ltrpathdirs; do
10139 if test "X$x" = "X$found_dir"; then
10140 haveit=yes
10141 break
10143 done
10144 if test -z "$haveit"; then
10145 ltrpathdirs="$ltrpathdirs $found_dir"
10147 if test "$hardcode_direct" = yes; then
10148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10149 else
10150 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10151 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10152 haveit=
10153 for x in $rpathdirs; do
10154 if test "X$x" = "X$found_dir"; then
10155 haveit=yes
10156 break
10158 done
10159 if test -z "$haveit"; then
10160 rpathdirs="$rpathdirs $found_dir"
10162 else
10163 haveit=
10164 for x in $LDFLAGS $LIBICONV; do
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 acl_save_exec_prefix="$exec_prefix"
10169 exec_prefix="$acl_final_exec_prefix"
10170 eval x=\"$x\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
10174 if test "X$x" = "X-L$found_dir"; then
10175 haveit=yes
10176 break
10178 done
10179 if test -z "$haveit"; then
10180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10182 if test "$hardcode_minus_L" != no; then
10183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10184 else
10185 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10190 else
10191 if test "X$found_a" != "X"; then
10192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10193 else
10194 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10197 additional_includedir=
10198 case "$found_dir" in
10199 */lib | */lib/)
10200 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10201 additional_includedir="$basedir/include"
10203 esac
10204 if test "X$additional_includedir" != "X"; then
10205 if test "X$additional_includedir" != "X/usr/include"; then
10206 haveit=
10207 if test "X$additional_includedir" = "X/usr/local/include"; then
10208 if test -n "$GCC"; then
10209 case $host_os in
10210 linux*) haveit=yes;;
10211 esac
10214 if test -z "$haveit"; then
10215 for x in $CPPFLAGS $INCICONV; do
10217 acl_save_prefix="$prefix"
10218 prefix="$acl_final_prefix"
10219 acl_save_exec_prefix="$exec_prefix"
10220 exec_prefix="$acl_final_exec_prefix"
10221 eval x=\"$x\"
10222 exec_prefix="$acl_save_exec_prefix"
10223 prefix="$acl_save_prefix"
10225 if test "X$x" = "X-I$additional_includedir"; then
10226 haveit=yes
10227 break
10229 done
10230 if test -z "$haveit"; then
10231 if test -d "$additional_includedir"; then
10232 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10238 if test -n "$found_la"; then
10239 save_libdir="$libdir"
10240 case "$found_la" in
10241 */* | *\\*) . "$found_la" ;;
10242 *) . "./$found_la" ;;
10243 esac
10244 libdir="$save_libdir"
10245 for dep in $dependency_libs; do
10246 case "$dep" in
10247 -L*)
10248 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10249 if test "X$additional_libdir" != "X/usr/lib"; then
10250 haveit=
10251 if test "X$additional_libdir" = "X/usr/local/lib"; then
10252 if test -n "$GCC"; then
10253 case $host_os in
10254 linux*) haveit=yes;;
10255 esac
10258 if test -z "$haveit"; then
10259 haveit=
10260 for x in $LDFLAGS $LIBICONV; do
10262 acl_save_prefix="$prefix"
10263 prefix="$acl_final_prefix"
10264 acl_save_exec_prefix="$exec_prefix"
10265 exec_prefix="$acl_final_exec_prefix"
10266 eval x=\"$x\"
10267 exec_prefix="$acl_save_exec_prefix"
10268 prefix="$acl_save_prefix"
10270 if test "X$x" = "X-L$additional_libdir"; then
10271 haveit=yes
10272 break
10274 done
10275 if test -z "$haveit"; then
10276 if test -d "$additional_libdir"; then
10277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10280 haveit=
10281 for x in $LDFLAGS $LTLIBICONV; do
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287 eval x=\"$x\"
10288 exec_prefix="$acl_save_exec_prefix"
10289 prefix="$acl_save_prefix"
10291 if test "X$x" = "X-L$additional_libdir"; then
10292 haveit=yes
10293 break
10295 done
10296 if test -z "$haveit"; then
10297 if test -d "$additional_libdir"; then
10298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10304 -R*)
10305 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10306 if test "$enable_rpath" != no; then
10307 haveit=
10308 for x in $rpathdirs; do
10309 if test "X$x" = "X$dir"; then
10310 haveit=yes
10311 break
10313 done
10314 if test -z "$haveit"; then
10315 rpathdirs="$rpathdirs $dir"
10317 haveit=
10318 for x in $ltrpathdirs; do
10319 if test "X$x" = "X$dir"; then
10320 haveit=yes
10321 break
10323 done
10324 if test -z "$haveit"; then
10325 ltrpathdirs="$ltrpathdirs $dir"
10329 -l*)
10330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10332 *.la)
10333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10336 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10339 esac
10340 done
10342 else
10343 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10348 done
10349 done
10350 if test "X$rpathdirs" != "X"; then
10351 if test -n "$hardcode_libdir_separator"; then
10352 alldirs=
10353 for found_dir in $rpathdirs; do
10354 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10355 done
10356 acl_save_libdir="$libdir"
10357 libdir="$alldirs"
10358 eval flag=\"$hardcode_libdir_flag_spec\"
10359 libdir="$acl_save_libdir"
10360 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10361 else
10362 for found_dir in $rpathdirs; do
10363 acl_save_libdir="$libdir"
10364 libdir="$found_dir"
10365 eval flag=\"$hardcode_libdir_flag_spec\"
10366 libdir="$acl_save_libdir"
10367 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10368 done
10371 if test "X$ltrpathdirs" != "X"; then
10372 for found_dir in $ltrpathdirs; do
10373 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10374 done
10383 am_save_CPPFLAGS="$CPPFLAGS"
10385 for element in $INCICONV; do
10386 haveit=
10387 for x in $CPPFLAGS; do
10389 acl_save_prefix="$prefix"
10390 prefix="$acl_final_prefix"
10391 acl_save_exec_prefix="$exec_prefix"
10392 exec_prefix="$acl_final_exec_prefix"
10393 eval x=\"$x\"
10394 exec_prefix="$acl_save_exec_prefix"
10395 prefix="$acl_save_prefix"
10397 if test "X$x" = "X$element"; then
10398 haveit=yes
10399 break
10401 done
10402 if test -z "$haveit"; then
10403 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10405 done
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10409 $as_echo_n "checking for iconv... " >&6; }
10410 if test "${am_cv_func_iconv+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10414 am_cv_func_iconv="no, consider installing GNU libiconv"
10415 am_cv_lib_iconv=no
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <stdlib.h>
10419 #include <iconv.h>
10421 main ()
10423 iconv_t cd = iconv_open("","");
10424 iconv(cd,NULL,NULL,NULL,NULL);
10425 iconv_close(cd);
10427 return 0;
10429 _ACEOF
10430 if ac_fn_cxx_try_link "$LINENO"; then :
10431 am_cv_func_iconv=yes
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 if test "$am_cv_func_iconv" != yes; then
10436 am_save_LIBS="$LIBS"
10437 LIBS="$LIBS $LIBICONV"
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 #include <stdlib.h>
10441 #include <iconv.h>
10443 main ()
10445 iconv_t cd = iconv_open("","");
10446 iconv(cd,NULL,NULL,NULL,NULL);
10447 iconv_close(cd);
10449 return 0;
10451 _ACEOF
10452 if ac_fn_cxx_try_link "$LINENO"; then :
10453 am_cv_lib_iconv=yes
10454 am_cv_func_iconv=yes
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS="$am_save_LIBS"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10463 $as_echo "$am_cv_func_iconv" >&6; }
10464 if test "$am_cv_func_iconv" = yes; then
10466 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10469 if test "$am_cv_lib_iconv" = yes; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10471 $as_echo_n "checking how to link with libiconv... " >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10473 $as_echo "$LIBICONV" >&6; }
10474 else
10475 CPPFLAGS="$am_save_CPPFLAGS"
10476 LIBICONV=
10477 LTLIBICONV=
10482 if test "$am_cv_func_iconv" = yes; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10484 $as_echo_n "checking for iconv declaration... " >&6; }
10485 if test "${am_cv_proto_iconv+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 #include <stdlib.h>
10493 #include <iconv.h>
10494 extern
10495 #ifdef __cplusplus
10497 #endif
10498 #if defined(__STDC__) || defined(__cplusplus)
10499 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10500 #else
10501 size_t iconv();
10502 #endif
10505 main ()
10509 return 0;
10511 _ACEOF
10512 if ac_fn_cxx_try_compile "$LINENO"; then :
10513 am_cv_proto_iconv_arg1=""
10514 else
10515 am_cv_proto_iconv_arg1="const"
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 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);"
10521 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10523 }$am_cv_proto_iconv" >&5
10524 $as_echo "${ac_t:-
10525 }$am_cv_proto_iconv" >&6; }
10527 cat >>confdefs.h <<_ACEOF
10528 #define ICONV_CONST $am_cv_proto_iconv_arg1
10529 _ACEOF
10533 ac_ext=c
10534 ac_cpp='$CPP $CPPFLAGS'
10535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540 # Until we have in-tree GNU iconv:
10541 LIBICONV_DEP=
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10546 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10547 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 #include <locale.h>
10554 main ()
10556 return LC_MESSAGES
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 am_cv_val_LC_MESSAGES=yes
10563 else
10564 am_cv_val_LC_MESSAGES=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10570 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10571 if test $am_cv_val_LC_MESSAGES = yes; then
10573 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10580 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10581 if test "${am_cv_langinfo_codeset+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #include <langinfo.h>
10588 main ()
10590 char* cs = nl_langinfo(CODESET);
10592 return 0;
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 am_cv_langinfo_codeset=yes
10597 else
10598 am_cv_langinfo_codeset=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10605 $as_echo "$am_cv_langinfo_codeset" >&6; }
10606 if test $am_cv_langinfo_codeset = yes; then
10608 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10613 # We will need to find libiberty.h and ansidecl.h
10614 saved_CFLAGS="$CFLAGS"
10615 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10616 saved_CXXFLAGS="$CXXFLAGS"
10617 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10618 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10619 strsignal strstr stpcpy strverscmp \
10620 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10621 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
10623 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10625 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10626 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #undef $ac_tr_decl
10632 #define $ac_tr_decl 1
10634 #include "ansidecl.h"
10635 #include "system.h"
10638 main ()
10640 #ifndef $ac_func
10641 char *(*pfn) = (char *(*)) $ac_func ;
10642 #endif
10644 return 0;
10646 _ACEOF
10647 if ac_fn_c_try_compile "$LINENO"; then :
10648 eval "gcc_cv_have_decl_$ac_func=yes"
10649 else
10650 eval "gcc_cv_have_decl_$ac_func=no"
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 1
10659 _ACEOF
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10664 #define $ac_tr_decl 0
10665 _ACEOF
10669 done
10672 for ac_func in getrlimit setrlimit getrusage
10674 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10676 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10677 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682 #undef $ac_tr_decl
10683 #define $ac_tr_decl 1
10685 #include "ansidecl.h"
10686 #include "system.h"
10687 #ifdef HAVE_SYS_RESOURCE_H
10688 #include <sys/resource.h>
10689 #endif
10693 main ()
10695 #ifndef $ac_func
10696 char *(*pfn) = (char *(*)) $ac_func ;
10697 #endif
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 eval "gcc_cv_have_decl_$ac_func=yes"
10704 else
10705 eval "gcc_cv_have_decl_$ac_func=no"
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10713 #define $ac_tr_decl 1
10714 _ACEOF
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10719 #define $ac_tr_decl 0
10720 _ACEOF
10724 done
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 #include "ansidecl.h"
10731 #include "system.h"
10732 #ifdef HAVE_SYS_RESOURCE_H
10733 #include <sys/resource.h>
10734 #endif
10737 main ()
10739 rlim_t l = 0;
10741 return 0;
10743 _ACEOF
10744 if ac_fn_c_try_compile "$LINENO"; then :
10746 else
10748 $as_echo "#define rlim_t long" >>confdefs.h
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10754 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10755 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10756 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10757 for ac_func in ldgetname
10759 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10762 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 #undef $ac_tr_decl
10768 #define $ac_tr_decl 1
10770 #include "ansidecl.h"
10771 #include "system.h"
10772 #ifdef HAVE_LDFCN_H
10773 #undef FREAD
10774 #undef FWRITE
10775 #include <ldfcn.h>
10776 #endif
10780 main ()
10782 #ifndef $ac_func
10783 char *(*pfn) = (char *(*)) $ac_func ;
10784 #endif
10786 return 0;
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"; then :
10790 eval "gcc_cv_have_decl_$ac_func=yes"
10791 else
10792 eval "gcc_cv_have_decl_$ac_func=no"
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10799 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10800 #define $ac_tr_decl 1
10801 _ACEOF
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10806 #define $ac_tr_decl 0
10807 _ACEOF
10811 done
10814 for ac_func in times
10816 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10818 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10819 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #undef $ac_tr_decl
10825 #define $ac_tr_decl 1
10827 #include "ansidecl.h"
10828 #include "system.h"
10829 #ifdef HAVE_SYS_TIMES_H
10830 #include <sys/times.h>
10831 #endif
10835 main ()
10837 #ifndef $ac_func
10838 char *(*pfn) = (char *(*)) $ac_func ;
10839 #endif
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 eval "gcc_cv_have_decl_$ac_func=yes"
10846 else
10847 eval "gcc_cv_have_decl_$ac_func=no"
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10855 #define $ac_tr_decl 1
10856 _ACEOF
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10861 #define $ac_tr_decl 0
10862 _ACEOF
10866 done
10869 for ac_func in sigaltstack
10871 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10873 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10874 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 #undef $ac_tr_decl
10880 #define $ac_tr_decl 1
10882 #include "ansidecl.h"
10883 #include "system.h"
10884 #include <signal.h>
10888 main ()
10890 #ifndef $ac_func
10891 char *(*pfn) = (char *(*)) $ac_func ;
10892 #endif
10894 return 0;
10896 _ACEOF
10897 if ac_fn_c_try_compile "$LINENO"; then :
10898 eval "gcc_cv_have_decl_$ac_func=yes"
10899 else
10900 eval "gcc_cv_have_decl_$ac_func=no"
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10907 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10908 #define $ac_tr_decl 1
10909 _ACEOF
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10914 #define $ac_tr_decl 0
10915 _ACEOF
10919 done
10922 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10923 # prototype.
10924 ac_ext=cpp
10925 ac_cpp='$CXXCPP $CPPFLAGS'
10926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10930 for ac_func in madvise
10932 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10934 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10935 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 #undef $ac_tr_decl
10941 #define $ac_tr_decl 1
10943 #include "ansidecl.h"
10944 #include "system.h"
10948 main ()
10950 #ifndef $ac_func
10951 char *(*pfn) = (char *(*)) $ac_func ;
10952 #endif
10954 return 0;
10956 _ACEOF
10957 if ac_fn_cxx_try_compile "$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10959 else
10960 eval "gcc_cv_have_decl_$ac_func=no"
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10968 #define $ac_tr_decl 1
10969 _ACEOF
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10974 #define $ac_tr_decl 0
10975 _ACEOF
10979 done
10981 ac_ext=c
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988 # More time-related stuff.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10990 $as_echo_n "checking for struct tms... " >&6; }
10991 if test "${ac_cv_struct_tms+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #include "ansidecl.h"
10999 #include "system.h"
11000 #ifdef HAVE_SYS_TIMES_H
11001 #include <sys/times.h>
11002 #endif
11005 main ()
11007 struct tms tms;
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 ac_cv_struct_tms=yes
11014 else
11015 ac_cv_struct_tms=no
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11020 $as_echo "$ac_cv_struct_tms" >&6; }
11021 if test $ac_cv_struct_tms = yes; then
11023 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11027 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11028 # revisit after autoconf 2.50.
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11030 $as_echo_n "checking for clock_t... " >&6; }
11031 if test "${gcc_cv_type_clock_t+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 #include "ansidecl.h"
11039 #include "system.h"
11042 main ()
11044 clock_t x;
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_compile "$LINENO"; then :
11050 gcc_cv_type_clock_t=yes
11051 else
11052 gcc_cv_type_clock_t=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11057 $as_echo "$gcc_cv_type_clock_t" >&6; }
11058 if test $gcc_cv_type_clock_t = yes; then
11060 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11064 # Check if F_SETLKW is supported by fcntl.
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11066 $as_echo_n "checking for F_SETLKW... " >&6; }
11067 if test "${ac_cv_f_setlkw+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 #include <fcntl.h>
11076 main ()
11079 struct flock fl;
11080 fl.l_whence = 0;
11081 fl.l_start = 0;
11082 fl.l_len = 0;
11083 fl.l_pid = 0;
11084 return fcntl (1, F_SETLKW, &fl);
11086 return 0;
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 ac_cv_f_setlkw=yes
11091 else
11092 ac_cv_f_setlkw=no
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11097 $as_echo "$ac_cv_f_setlkw" >&6; }
11098 if test $ac_cv_f_setlkw = yes; then
11100 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11104 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11105 CFLAGS="$saved_CFLAGS"
11106 CXXFLAGS="$saved_CXXFLAGS"
11108 # mkdir takes a single argument on some systems.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11110 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11111 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 #include <sys/types.h>
11118 #ifdef HAVE_SYS_STAT_H
11119 # include <sys/stat.h>
11120 #endif
11121 #ifdef HAVE_UNISTD_H
11122 # include <unistd.h>
11123 #endif
11124 #ifdef HAVE_DIRECT_H
11125 # include <direct.h>
11126 #endif
11128 main ()
11130 mkdir ("foo", 0);
11132 return 0;
11134 _ACEOF
11135 if ac_fn_c_try_compile "$LINENO"; then :
11136 gcc_cv_mkdir_takes_one_arg=no
11137 else
11138 gcc_cv_mkdir_takes_one_arg=yes
11140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11143 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11144 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11146 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11151 # File extensions
11152 manext='.1'
11153 objext='.o'
11157 # With Setjmp/Longjmp based exception handling.
11158 # Check whether --enable-sjlj-exceptions was given.
11159 if test "${enable_sjlj_exceptions+set}" = set; then :
11160 enableval=$enable_sjlj_exceptions; case $target in
11161 *-*-hpux10*)
11162 if test $enableval != yes; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11164 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11165 enableval=yes
11168 esac
11169 force_sjlj_exceptions=yes
11170 else
11171 case $target in
11172 *-*-hpux10*)
11173 force_sjlj_exceptions=yes
11174 enableval=yes
11177 force_sjlj_exceptions=no
11179 esac
11182 if test $force_sjlj_exceptions = yes; then
11183 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11185 cat >>confdefs.h <<_ACEOF
11186 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11187 _ACEOF
11191 # --------------------------------------------------------
11192 # Build, host, and target specific configuration fragments
11193 # --------------------------------------------------------
11195 # Collect build-machine-specific information.
11196 . ${srcdir}/config.build
11198 # Collect host-machine-specific information.
11199 . ${srcdir}/config.host
11201 target_gtfiles=
11203 # Collect target-machine-specific information.
11204 . ${srcdir}/config.gcc
11206 extra_objs="${host_extra_objs} ${extra_objs}"
11207 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11209 # Default the target-machine variables that were not explicitly set.
11210 if test x"$tm_file" = x
11211 then tm_file=$cpu_type/$cpu_type.h; fi
11213 if test x"$extra_headers" = x
11214 then extra_headers=; fi
11216 if test x$md_file = x
11217 then md_file=$cpu_type/$cpu_type.md; fi
11219 if test x$out_file = x
11220 then out_file=$cpu_type/$cpu_type.c; fi
11222 if test x"$tmake_file" = x
11223 then tmake_file=$cpu_type/t-$cpu_type
11226 # Support --enable-initfini-array.
11227 if test x$enable_initfini_array != xno; then
11228 tm_file="${tm_file} initfini-array.h"
11231 if test x"$dwarf2" = xyes
11232 then tm_file="$tm_file tm-dwarf2.h"
11235 # Say what files are being used for the output code and MD file.
11236 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11237 echo "Using \`$srcdir/config/$md_file' as machine description file."
11239 # If any of the xm_file variables contain nonexistent files, warn
11240 # about them and drop them.
11243 for x in $build_xm_file; do
11244 if test -f $srcdir/config/$x
11245 then bx="$bx $x"
11246 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11247 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11249 done
11250 build_xm_file="$bx"
11253 for x in $host_xm_file; do
11254 if test -f $srcdir/config/$x
11255 then hx="$hx $x"
11256 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11257 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11259 done
11260 host_xm_file="$hx"
11263 for x in $xm_file; do
11264 if test -f $srcdir/config/$x
11265 then tx="$tx $x"
11266 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11267 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11269 done
11270 xm_file="$tx"
11272 count=a
11273 for f in $tm_file; do
11274 count=${count}x
11275 done
11276 if test $count = ax; then
11277 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11278 else
11279 echo "Using the following target machine macro files:"
11280 for f in $tm_file; do
11281 echo " $srcdir/config/$f"
11282 done
11285 if test x$need_64bit_hwint = xyes; then
11287 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11291 if test x$use_long_long_for_widest_fast_int = xyes; then
11293 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11297 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_GNU_LD $gnu_ld_bool
11301 _ACEOF
11304 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11306 cat >>confdefs.h <<_ACEOF
11307 #define HAVE_GNU_AS $gnu_as_bool
11308 _ACEOF
11311 count=a
11312 for f in $host_xm_file; do
11313 count=${count}x
11314 done
11315 if test $count = a; then
11317 elif test $count = ax; then
11318 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11319 else
11320 echo "Using the following host machine macro files:"
11321 for f in $host_xm_file; do
11322 echo " $srcdir/config/$f"
11323 done
11325 echo "Using ${out_host_hook_obj} for host machine hooks."
11327 if test "$host_xm_file" != "$build_xm_file"; then
11328 count=a
11329 for f in $build_xm_file; do
11330 count=${count}x
11331 done
11332 if test $count = a; then
11334 elif test $count = ax; then
11335 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11336 else
11337 echo "Using the following build machine macro files:"
11338 for f in $build_xm_file; do
11339 echo " $srcdir/config/$f"
11340 done
11344 if test -n "$configured_native_system_header_dir"; then
11345 native_system_header_dir=$configured_native_system_header_dir
11347 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11350 case ${host} in
11351 powerpc*-*-darwin*)
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11353 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11354 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11360 #include <sys/cdefs.h>
11361 #include <sys/signal.h>
11362 #include <ucontext.h>
11363 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11365 _ACEOF
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367 gcc_cv_mcontext_underscores=no
11368 else
11369 gcc_cv_mcontext_underscores=yes
11371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11374 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11375 if test $gcc_cv_mcontext_underscores = yes; then
11377 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11381 esac
11383 # ---------
11384 # Threading
11385 # ---------
11387 # Check if a valid thread package
11388 case ${enable_threads} in
11389 "" | no)
11390 # No threads
11391 target_thread_file='single'
11393 yes)
11394 # default
11395 target_thread_file='single'
11397 aix | dce | lynx | mipssde | posix | rtems | \
11398 single | tpf | vxworks | win32)
11399 target_thread_file=${enable_threads}
11402 echo "${enable_threads} is an unknown thread package" 1>&2
11403 exit 1
11405 esac
11407 if test x${thread_file} = x; then
11408 # No thread file set by target-specific clauses in config.gcc,
11409 # so use file chosen by default logic above
11410 thread_file=${target_thread_file}
11413 # --------
11414 # UNSORTED
11415 # --------
11417 use_cxa_atexit=no
11418 if test x$enable___cxa_atexit = xyes || \
11419 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11420 if test x$host = x$target; then
11421 case $host in
11422 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11423 # keyed to flag_use_cxa_atexit
11424 *-*-mingw32*)
11425 use_cxa_atexit=yes
11427 powerpc-ibm-aix*)
11428 use_cxa_atexit=yes
11431 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11432 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11433 use_cxa_atexit=yes
11434 else
11435 echo "__cxa_atexit can't be enabled on this target"
11439 esac
11440 else
11441 # We can't check for __cxa_atexit when building a cross, so assume
11442 # it is available
11443 use_cxa_atexit=yes
11445 if test x$use_cxa_atexit = xyes; then
11447 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11452 # Look for a file containing extra machine modes.
11453 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11454 extra_modes_file='$(srcdir)'/config/${extra_modes}
11457 cat >>confdefs.h <<_ACEOF
11458 #define EXTRA_MODES_FILE "config/$extra_modes"
11459 _ACEOF
11463 # Convert extra_options into a form suitable for Makefile use.
11464 extra_opt_files=
11465 all_opt_files=
11466 for f in $extra_options; do
11467 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11468 all_opt_files="$all_opt_files $srcdir/config/$f"
11469 done
11472 # auto-host.h is the file containing items generated by autoconf and is
11473 # the first file included by config.h.
11474 # If host=build, it is correct to have bconfig include auto-host.h
11475 # as well. If host!=build, we are in error and need to do more
11476 # work to find out the build config parameters.
11477 if test x$host = x$build
11478 then
11479 build_auto=auto-host.h
11480 else
11481 # We create a subdir, then run autoconf in the subdir.
11482 # To prevent recursion we set host and build for the new
11483 # invocation of configure to the build for this invocation
11484 # of configure.
11485 tempdir=build.$$
11486 rm -rf $tempdir
11487 mkdir $tempdir
11488 cd $tempdir
11489 case ${srcdir} in
11490 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11491 *) realsrcdir=../${srcdir};;
11492 esac
11493 # Clearing GMPINC is necessary to prevent host headers being
11494 # used by the build compiler. Defining GENERATOR_FILE stops
11495 # system.h from including gmp.h.
11496 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11497 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11498 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11499 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11500 ${realsrcdir}/configure \
11501 --enable-languages=${enable_languages-all} \
11502 --target=$target_alias --host=$build_alias --build=$build_alias
11504 # We just finished tests for the build machine, so rename
11505 # the file auto-build.h in the gcc directory.
11506 mv auto-host.h ../auto-build.h
11507 cd ..
11508 rm -rf $tempdir
11509 build_auto=auto-build.h
11513 tm_file="${tm_file} defaults.h"
11514 tm_p_file="${tm_p_file} tm-preds.h"
11515 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11516 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11517 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11518 # put this back in temporarily.
11519 xm_file="auto-host.h ansidecl.h ${xm_file}"
11521 # --------
11522 # UNSORTED
11523 # --------
11525 # Compile in configure arguments.
11526 if test -f configargs.h ; then
11527 # Being re-configured.
11528 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11529 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11530 else
11531 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11534 # Double all backslashes and backslash all quotes to turn
11535 # gcc_config_arguments into a C string.
11536 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11537 $gcc_config_arguments
11539 gcc_config_arguments_str=`cat conftest.out`
11540 rm -f conftest.out
11542 cat > configargs.h <<EOF
11543 /* Generated automatically. */
11544 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11545 static const char thread_model[] = "$thread_file";
11547 static const struct {
11548 const char *name, *value;
11549 } configure_default_options[] = $configure_default_options;
11552 gcc_BASEVER=`cat $srcdir/BASE-VER`
11553 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11554 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11555 if test -f $srcdir/REVISION ; then
11556 gcc_REVISION=`cat $srcdir/REVISION`
11557 else
11558 gcc_REVISION=""
11560 cat > plugin-version.h <<EOF
11561 #include "configargs.h"
11563 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11564 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11565 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11566 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11568 static char basever[] = "$gcc_BASEVER";
11569 static char datestamp[] = "$gcc_DATESTAMP";
11570 static char devphase[] = "$gcc_DEVPHASE";
11571 static char revision[] = "$gcc_REVISION";
11573 /* FIXME plugins: We should make the version information more precise.
11574 One way to do is to add a checksum. */
11576 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11577 devphase, revision,
11578 configuration_arguments};
11581 # Internationalization
11582 # If we haven't got the data from the intl directory,
11583 # assume NLS is disabled.
11584 USE_NLS=no
11585 LIBINTL=
11586 LIBINTL_DEP=
11587 INCINTL=
11588 XGETTEXT=
11589 GMSGFMT=
11590 POSUB=
11592 if test -f ../intl/config.intl; then
11593 . ../intl/config.intl
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11596 $as_echo_n "checking whether NLS is requested... " >&6; }
11597 if test x"$USE_NLS" != xyes; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11604 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11608 $as_echo_n "checking for catalogs to be installed... " >&6; }
11609 # Look for .po and .gmo files in the source directory.
11610 CATALOGS=
11611 XLINGUAS=
11612 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11613 # If there aren't any .gmo files the shell will give us the
11614 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11615 # weeded out.
11616 case "$cat" in *\**)
11617 continue;;
11618 esac
11619 # The quadruple backslash is collapsed to a double backslash
11620 # by the backticks, then collapsed again by the double quotes,
11621 # leaving us with one backslash in the sed expression (right
11622 # before the dot that mustn't act as a wildcard).
11623 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11624 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11625 # The user is allowed to set LINGUAS to a list of languages to
11626 # install catalogs for. If it's empty that means "all of them."
11627 if test "x$LINGUAS" = x; then
11628 CATALOGS="$CATALOGS $cat"
11629 XLINGUAS="$XLINGUAS $lang"
11630 else
11631 case "$LINGUAS" in *$lang*)
11632 CATALOGS="$CATALOGS $cat"
11633 XLINGUAS="$XLINGUAS $lang"
11635 esac
11637 done
11638 LINGUAS="$XLINGUAS"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11640 $as_echo "$LINGUAS" >&6; }
11643 DATADIRNAME=share
11645 INSTOBJEXT=.mo
11647 GENCAT=gencat
11649 CATOBJEXT=.gmo
11653 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11654 # -liconv on the link line twice.
11655 case "$LIBINTL" in *$LIBICONV*)
11656 LIBICONV= ;;
11657 esac
11659 # Check whether --enable-secureplt was given.
11660 if test "${enable_secureplt+set}" = set; then :
11661 enableval=$enable_secureplt;
11665 # Check whether --enable-leading-mingw64-underscores was given.
11666 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11667 enableval=$enable_leading_mingw64_underscores;
11670 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11672 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11676 # Check whether --enable-cld was given.
11677 if test "${enable_cld+set}" = set; then :
11678 enableval=$enable_cld;
11679 else
11680 enable_cld=no
11684 # Check whether --enable-frame-pointer was given.
11685 if test "${enable_frame_pointer+set}" = set; then :
11686 enableval=$enable_frame_pointer;
11687 else
11689 case $target_os in
11690 linux* | darwin[8912]*)
11691 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11692 # DWARF2.
11693 enable_frame_pointer=no
11696 enable_frame_pointer=yes
11698 esac
11703 # Windows32 Registry support for specifying GCC installation paths.
11704 # Check whether --enable-win32-registry was given.
11705 if test "${enable_win32_registry+set}" = set; then :
11706 enableval=$enable_win32_registry;
11710 case $host_os in
11711 win32 | pe | cygwin* | mingw32* | uwin*)
11712 if test "x$enable_win32_registry" != xno; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11714 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11715 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 ac_func_search_save_LIBS=$LIBS
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char RegOpenKeyExA ();
11730 main ()
11732 return RegOpenKeyExA ();
11734 return 0;
11736 _ACEOF
11737 for ac_lib in '' advapi32; do
11738 if test -z "$ac_lib"; then
11739 ac_res="none required"
11740 else
11741 ac_res=-l$ac_lib
11742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11744 if ac_fn_c_try_link "$LINENO"; then :
11745 ac_cv_search_RegOpenKeyExA=$ac_res
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext
11749 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11750 break
11752 done
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11755 else
11756 ac_cv_search_RegOpenKeyExA=no
11758 rm conftest.$ac_ext
11759 LIBS=$ac_func_search_save_LIBS
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11762 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11763 ac_res=$ac_cv_search_RegOpenKeyExA
11764 if test "$ac_res" != no; then :
11765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11767 else
11768 enable_win32_registry=no
11773 if test "x$enable_win32_registry" != xno; then
11775 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11778 if test "x$enable_win32_registry" != xyes \
11779 && test "x$enable_win32_registry" != x; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11783 _ACEOF
11788 esac
11790 # Get an absolute path to the GCC top-level source directory
11791 holddir=`${PWDCMD-pwd}`
11792 cd $srcdir
11793 topdir=`${PWDCMD-pwd}`
11794 cd $holddir
11796 # Conditionalize the makefile for this host machine.
11797 xmake_file=
11798 for f in ${host_xmake_file}
11800 if test -f ${srcdir}/config/$f
11801 then
11802 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11804 done
11806 # Conditionalize the makefile for this target machine.
11807 tmake_file_=
11808 for f in ${tmake_file}
11810 if test -f ${srcdir}/config/$f
11811 then
11812 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11814 done
11815 tmake_file="${tmake_file_}"
11817 out_object_file=`basename $out_file .c`.o
11818 common_out_object_file=`basename $common_out_file .c`.o
11820 tm_file_list="options.h"
11821 tm_include_list="options.h insn-constants.h"
11822 for f in $tm_file; do
11823 case $f in
11824 ./* )
11825 f=`echo $f | sed 's/^..//'`
11826 tm_file_list="${tm_file_list} $f"
11827 tm_include_list="${tm_include_list} $f"
11829 defaults.h )
11830 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11831 tm_include_list="${tm_include_list} $f"
11834 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11835 tm_include_list="${tm_include_list} config/$f"
11837 esac
11838 done
11840 tm_p_file_list=
11841 tm_p_include_list=
11842 for f in $tm_p_file; do
11843 case $f in
11844 tm-preds.h )
11845 tm_p_file_list="${tm_p_file_list} $f"
11846 tm_p_include_list="${tm_p_include_list} $f"
11849 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11850 tm_p_include_list="${tm_p_include_list} config/$f"
11851 esac
11852 done
11854 xm_file_list=
11855 xm_include_list=
11856 for f in $xm_file; do
11857 case $f in
11858 ansidecl.h )
11859 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11860 xm_include_list="${xm_include_list} $f"
11862 auto-host.h )
11863 xm_file_list="${xm_file_list} $f"
11864 xm_include_list="${xm_include_list} $f"
11867 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11868 xm_include_list="${xm_include_list} config/$f"
11870 esac
11871 done
11873 host_xm_file_list=
11874 host_xm_include_list=
11875 for f in $host_xm_file; do
11876 case $f in
11877 ansidecl.h )
11878 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11879 host_xm_include_list="${host_xm_include_list} $f"
11881 auto-host.h )
11882 host_xm_file_list="${host_xm_file_list} $f"
11883 host_xm_include_list="${host_xm_include_list} $f"
11886 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11887 host_xm_include_list="${host_xm_include_list} config/$f"
11889 esac
11890 done
11892 build_xm_file_list=
11893 for f in $build_xm_file; do
11894 case $f in
11895 ansidecl.h )
11896 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11897 build_xm_include_list="${build_xm_include_list} $f"
11899 auto-build.h | auto-host.h )
11900 build_xm_file_list="${build_xm_file_list} $f"
11901 build_xm_include_list="${build_xm_include_list} $f"
11904 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11905 build_xm_include_list="${build_xm_include_list} config/$f"
11907 esac
11908 done
11910 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11911 # cross-compiler which does not use the native headers and libraries.
11912 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11913 CROSS=
11914 ALL=all.internal
11915 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11917 if test "x$with_build_sysroot" != x; then
11918 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11919 else
11920 # This value is used, even on a native system, because
11921 # CROSS_SYSTEM_HEADER_DIR is just
11922 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11923 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11926 if test x$host != x$target
11927 then
11928 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11929 ALL=all.cross
11930 SYSTEM_HEADER_DIR=$build_system_header_dir
11931 case "$host","$target" in
11932 # Darwin crosses can use the host system's libraries and headers,
11933 # because of the fat library support. Of course, it must be the
11934 # same version of Darwin on both sides. Allow the user to
11935 # just say --target=foo-darwin without a version number to mean
11936 # "the version on this system".
11937 *-*-darwin*,*-*-darwin*)
11938 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11939 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11940 if test $hostos = $targetos -o $targetos = darwin ; then
11941 CROSS=
11942 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11943 with_headers=yes
11947 i?86-*-*,x86_64-*-* \
11948 | powerpc*-*-*,powerpc64*-*-*)
11949 CROSS="$CROSS -DNATIVE_CROSS" ;;
11950 esac
11952 case $target in
11953 *-*-mingw*)
11954 if test "x$with_headers" = x; then
11955 with_headers=yes
11960 esac
11961 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11962 SYSTEM_HEADER_DIR=$build_system_header_dir
11965 # If this is a cross-compiler that does not
11966 # have its own set of headers then define
11967 # inhibit_libc
11969 # If this is using newlib, without having the headers available now,
11970 # then define inhibit_libc in LIBGCC2_CFLAGS.
11971 # This prevents libgcc2 from containing any code which requires libc
11972 # support.
11973 : ${inhibit_libc=false}
11974 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11975 test x$with_newlib = xyes ; } &&
11976 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11977 inhibit_libc=true
11981 # When building gcc with a cross-compiler, we need to adjust things so
11982 # that the generator programs are still built with the native compiler.
11983 # Also, we cannot run fixincludes.
11985 # These are the normal (build=host) settings:
11986 CC_FOR_BUILD='$(CC)'
11987 CXX_FOR_BUILD='$(CXX)'
11988 BUILD_CFLAGS='$(ALL_CFLAGS)'
11989 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11990 BUILD_LDFLAGS='$(LDFLAGS)'
11991 STMP_FIXINC=stmp-fixinc
11993 # And these apply if build != host, or we are generating coverage data
11994 if test x$build != x$host || test "x$coverage_flags" != x
11995 then
11996 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11997 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11998 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12001 # Expand extra_headers to include complete path.
12002 # This substitutes for lots of t-* files.
12003 extra_headers_list=
12004 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12005 for file in ${extra_headers} ; do
12006 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12007 done
12009 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12010 if test x"$use_gcc_tgmath" = xyes
12011 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12014 # Define collect2 in Makefile.
12015 case $host_can_use_collect2 in
12016 no) collect2= ;;
12017 *) collect2='collect2$(exeext)' ;;
12018 esac
12021 # Add a definition of USE_COLLECT2 if system wants one.
12022 case $use_collect2 in
12023 no) use_collect2= ;;
12024 "") ;;
12026 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12027 xm_defines="${xm_defines} USE_COLLECT2"
12028 case $host_can_use_collect2 in
12030 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12032 esac
12034 esac
12037 cat >>confdefs.h <<_ACEOF
12038 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12039 _ACEOF
12042 # ---------------------------
12043 # Assembler & linker features
12044 # ---------------------------
12046 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12047 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12048 # However when ld-new is first executed from the build tree, libtool will
12049 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12050 # to the build tree. While doing this we need to use the previous-stage
12051 # linker, or we have an infinite loop. The presence of a shell script as
12052 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12053 # the gcc/collect-ld script. So we need to know how libtool works, or
12054 # exec-tool will fail.
12057 case `pwd` in
12058 *\ * | *\ *)
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12060 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12061 esac
12065 macro_version='2.2.7a'
12066 macro_revision='1.3134'
12080 ltmain="$ac_aux_dir/ltmain.sh"
12082 # Backslashify metacharacters that are still active within
12083 # double-quoted strings.
12084 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12086 # Same as above, but do not quote variable references.
12087 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12089 # Sed substitution to delay expansion of an escaped shell variable in a
12090 # double_quote_subst'ed string.
12091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12093 # Sed substitution to delay expansion of an escaped single quote.
12094 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12096 # Sed substitution to avoid accidental globbing in evaled expressions
12097 no_glob_subst='s/\*/\\\*/g'
12099 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12100 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12104 $as_echo_n "checking how to print strings... " >&6; }
12105 # Test print first, because it will be a builtin if present.
12106 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12107 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12108 ECHO='print -r --'
12109 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12110 ECHO='printf %s\n'
12111 else
12112 # Use this function as a fallback that always works.
12113 func_fallback_echo ()
12115 eval 'cat <<_LTECHO_EOF
12117 _LTECHO_EOF'
12119 ECHO='func_fallback_echo'
12122 # func_echo_all arg...
12123 # Invoke $ECHO with all args, space-separated.
12124 func_echo_all ()
12126 $ECHO ""
12129 case "$ECHO" in
12130 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12131 $as_echo "printf" >&6; } ;;
12132 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12133 $as_echo "print -r" >&6; } ;;
12134 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12135 $as_echo "cat" >&6; } ;;
12136 esac
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12153 if test "${ac_cv_path_SED+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12157 for ac_i in 1 2 3 4 5 6 7; do
12158 ac_script="$ac_script$as_nl$ac_script"
12159 done
12160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12161 { ac_script=; unset ac_script;}
12162 if test -z "$SED"; then
12163 ac_path_SED_found=false
12164 # Loop through the user's path and test for each of PROGNAME-LIST
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166 for as_dir in $PATH
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
12170 for ac_prog in sed gsed; do
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12174 # Check for GNU ac_path_SED and select it if it is found.
12175 # Check for GNU $ac_path_SED
12176 case `"$ac_path_SED" --version 2>&1` in
12177 *GNU*)
12178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12180 ac_count=0
12181 $as_echo_n 0123456789 >"conftest.in"
12182 while :
12184 cat "conftest.in" "conftest.in" >"conftest.tmp"
12185 mv "conftest.tmp" "conftest.in"
12186 cp "conftest.in" "conftest.nl"
12187 $as_echo '' >> "conftest.nl"
12188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12190 as_fn_arith $ac_count + 1 && ac_count=$as_val
12191 if test $ac_count -gt ${ac_path_SED_max-0}; then
12192 # Best one so far, save it but keep looking for a better one
12193 ac_cv_path_SED="$ac_path_SED"
12194 ac_path_SED_max=$ac_count
12196 # 10*(2^10) chars as input seems more than enough
12197 test $ac_count -gt 10 && break
12198 done
12199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12200 esac
12202 $ac_path_SED_found && break 3
12203 done
12204 done
12205 done
12206 IFS=$as_save_IFS
12207 if test -z "$ac_cv_path_SED"; then
12208 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12210 else
12211 ac_cv_path_SED=$SED
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12216 $as_echo "$ac_cv_path_SED" >&6; }
12217 SED="$ac_cv_path_SED"
12218 rm -f conftest.sed
12220 test -z "$SED" && SED=sed
12221 Xsed="$SED -e 1s/^X//"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12234 $as_echo_n "checking for fgrep... " >&6; }
12235 if test "${ac_cv_path_FGREP+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12239 then ac_cv_path_FGREP="$GREP -F"
12240 else
12241 if test -z "$FGREP"; then
12242 ac_path_FGREP_found=false
12243 # Loop through the user's path and test for each of PROGNAME-LIST
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_prog in fgrep; do
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12253 # Check for GNU ac_path_FGREP and select it if it is found.
12254 # Check for GNU $ac_path_FGREP
12255 case `"$ac_path_FGREP" --version 2>&1` in
12256 *GNU*)
12257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12259 ac_count=0
12260 $as_echo_n 0123456789 >"conftest.in"
12261 while :
12263 cat "conftest.in" "conftest.in" >"conftest.tmp"
12264 mv "conftest.tmp" "conftest.in"
12265 cp "conftest.in" "conftest.nl"
12266 $as_echo 'FGREP' >> "conftest.nl"
12267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12269 as_fn_arith $ac_count + 1 && ac_count=$as_val
12270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12271 # Best one so far, save it but keep looking for a better one
12272 ac_cv_path_FGREP="$ac_path_FGREP"
12273 ac_path_FGREP_max=$ac_count
12275 # 10*(2^10) chars as input seems more than enough
12276 test $ac_count -gt 10 && break
12277 done
12278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12279 esac
12281 $ac_path_FGREP_found && break 3
12282 done
12283 done
12284 done
12285 IFS=$as_save_IFS
12286 if test -z "$ac_cv_path_FGREP"; then
12287 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12289 else
12290 ac_cv_path_FGREP=$FGREP
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12296 $as_echo "$ac_cv_path_FGREP" >&6; }
12297 FGREP="$ac_cv_path_FGREP"
12300 test -z "$GREP" && GREP=grep
12320 # Check whether --with-gnu-ld was given.
12321 if test "${with_gnu_ld+set}" = set; then :
12322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12323 else
12324 with_gnu_ld=no
12327 ac_prog=ld
12328 if test "$GCC" = yes; then
12329 # Check if gcc -print-prog-name=ld gives a path.
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12331 $as_echo_n "checking for ld used by $CC... " >&6; }
12332 case $host in
12333 *-*-mingw*)
12334 # gcc leaves a trailing carriage return which upsets mingw
12335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12338 esac
12339 case $ac_prog in
12340 # Accept absolute paths.
12341 [\\/]* | ?:[\\/]*)
12342 re_direlt='/[^/][^/]*/\.\./'
12343 # Canonicalize the pathname of ld
12344 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12345 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12346 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12347 done
12348 test -z "$LD" && LD="$ac_prog"
12351 # If it fails, then pretend we aren't using GCC.
12352 ac_prog=ld
12355 # If it is relative, then search for the first ld in PATH.
12356 with_gnu_ld=unknown
12358 esac
12359 elif test "$with_gnu_ld" = yes; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12361 $as_echo_n "checking for GNU ld... " >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12364 $as_echo_n "checking for non-GNU ld... " >&6; }
12366 if test "${lt_cv_path_LD+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test -z "$LD"; then
12370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12371 for ac_dir in $PATH; do
12372 IFS="$lt_save_ifs"
12373 test -z "$ac_dir" && ac_dir=.
12374 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12375 lt_cv_path_LD="$ac_dir/$ac_prog"
12376 # Check to see if the program is GNU ld. I'd rather use --version,
12377 # but apparently some variants of GNU ld only accept -v.
12378 # Break only if it was the GNU/non-GNU ld that we prefer.
12379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12380 *GNU* | *'with BFD'*)
12381 test "$with_gnu_ld" != no && break
12384 test "$with_gnu_ld" != yes && break
12386 esac
12388 done
12389 IFS="$lt_save_ifs"
12390 else
12391 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12395 LD="$lt_cv_path_LD"
12396 if test -n "$LD"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12398 $as_echo "$LD" >&6; }
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12403 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12405 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12406 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12410 case `$LD -v 2>&1 </dev/null` in
12411 *GNU* | *'with BFD'*)
12412 lt_cv_prog_gnu_ld=yes
12415 lt_cv_prog_gnu_ld=no
12417 esac
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12420 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld=$lt_cv_prog_gnu_ld
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12432 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12433 if test "${lt_cv_path_NM+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test -n "$NM"; then
12437 # Let the user override the test.
12438 lt_cv_path_NM="$NM"
12439 else
12440 lt_nm_to_check="${ac_tool_prefix}nm"
12441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12442 lt_nm_to_check="$lt_nm_to_check nm"
12444 for lt_tmp_nm in $lt_nm_to_check; do
12445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12447 IFS="$lt_save_ifs"
12448 test -z "$ac_dir" && ac_dir=.
12449 tmp_nm="$ac_dir/$lt_tmp_nm"
12450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12451 # Check to see if the nm accepts a BSD-compat flag.
12452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12453 # nm: unknown option "B" ignored
12454 # Tru64's nm complains that /dev/null is an invalid object file
12455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12456 */dev/null* | *'Invalid file or object type'*)
12457 lt_cv_path_NM="$tmp_nm -B"
12458 break
12461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12462 */dev/null*)
12463 lt_cv_path_NM="$tmp_nm -p"
12464 break
12467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12468 continue # so that we can try to find one that supports BSD flags
12470 esac
12472 esac
12474 done
12475 IFS="$lt_save_ifs"
12476 done
12477 : ${lt_cv_path_NM=no}
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12481 $as_echo "$lt_cv_path_NM" >&6; }
12482 if test "$lt_cv_path_NM" != "no"; then
12483 NM="$lt_cv_path_NM"
12484 else
12485 # Didn't find any BSD compatible name lister, look for dumpbin.
12486 if test -n "$DUMPBIN"; then :
12487 # Let the user override the test.
12488 else
12489 if test -n "$ac_tool_prefix"; then
12490 for ac_prog in dumpbin "link -dump"
12492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -n "$DUMPBIN"; then
12500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12519 DUMPBIN=$ac_cv_prog_DUMPBIN
12520 if test -n "$DUMPBIN"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12522 $as_echo "$DUMPBIN" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12529 test -n "$DUMPBIN" && break
12530 done
12532 if test -z "$DUMPBIN"; then
12533 ac_ct_DUMPBIN=$DUMPBIN
12534 for ac_prog in dumpbin "link -dump"
12536 # Extract the first word of "$ac_prog", so it can be a program name with args.
12537 set dummy $ac_prog; ac_word=$2
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539 $as_echo_n "checking for $ac_word... " >&6; }
12540 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 if test -n "$ac_ct_DUMPBIN"; then
12544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12545 else
12546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $PATH
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12557 done
12558 done
12559 IFS=$as_save_IFS
12563 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12564 if test -n "$ac_ct_DUMPBIN"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12566 $as_echo "$ac_ct_DUMPBIN" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12573 test -n "$ac_ct_DUMPBIN" && break
12574 done
12576 if test "x$ac_ct_DUMPBIN" = x; then
12577 DUMPBIN=":"
12578 else
12579 case $cross_compiling:$ac_tool_warned in
12580 yes:)
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12583 ac_tool_warned=yes ;;
12584 esac
12585 DUMPBIN=$ac_ct_DUMPBIN
12589 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12590 *COFF*)
12591 DUMPBIN="$DUMPBIN -symbols"
12594 DUMPBIN=:
12596 esac
12599 if test "$DUMPBIN" != ":"; then
12600 NM="$DUMPBIN"
12603 test -z "$NM" && NM=nm
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12611 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12612 if test "${lt_cv_nm_interface+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 lt_cv_nm_interface="BSD nm"
12616 echo "int some_variable = 0;" > conftest.$ac_ext
12617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12618 (eval "$ac_compile" 2>conftest.err)
12619 cat conftest.err >&5
12620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12622 cat conftest.err >&5
12623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12624 cat conftest.out >&5
12625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12626 lt_cv_nm_interface="MS dumpbin"
12628 rm -f conftest*
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12631 $as_echo "$lt_cv_nm_interface" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12634 $as_echo_n "checking whether ln -s works... " >&6; }
12635 LN_S=$as_ln_s
12636 if test "$LN_S" = "ln -s"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12641 $as_echo "no, using $LN_S" >&6; }
12644 # find the maximum length of command line arguments
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12646 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12651 teststring="ABCD"
12653 case $build_os in
12654 msdosdjgpp*)
12655 # On DJGPP, this test can blow up pretty badly due to problems in libc
12656 # (any single argument exceeding 2000 bytes causes a buffer overrun
12657 # during glob expansion). Even if it were fixed, the result of this
12658 # check would be larger than it should be.
12659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12662 gnu*)
12663 # Under GNU Hurd, this test is not required because there is
12664 # no limit to the length of command line arguments.
12665 # Libtool will interpret -1 as no limit whatsoever
12666 lt_cv_sys_max_cmd_len=-1;
12669 cygwin* | mingw* | cegcc*)
12670 # On Win9x/ME, this test blows up -- it succeeds, but takes
12671 # about 5 minutes as the teststring grows exponentially.
12672 # Worse, since 9x/ME are not pre-emptively multitasking,
12673 # you end up with a "frozen" computer, even though with patience
12674 # the test eventually succeeds (with a max line length of 256k).
12675 # Instead, let's just punt: use the minimum linelength reported by
12676 # all of the supported platforms: 8192 (on NT/2K/XP).
12677 lt_cv_sys_max_cmd_len=8192;
12680 mint*)
12681 # On MiNT this can take a long time and run out of memory.
12682 lt_cv_sys_max_cmd_len=8192;
12685 amigaos*)
12686 # On AmigaOS with pdksh, this test takes hours, literally.
12687 # So we just punt and use a minimum line length of 8192.
12688 lt_cv_sys_max_cmd_len=8192;
12691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12692 # This has been around since 386BSD, at least. Likely further.
12693 if test -x /sbin/sysctl; then
12694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12695 elif test -x /usr/sbin/sysctl; then
12696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12697 else
12698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12700 # And add a safety zone
12701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12705 interix*)
12706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12707 lt_cv_sys_max_cmd_len=196608
12710 osf*)
12711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12713 # nice to cause kernel panics so lets avoid the loop below.
12714 # First set a reasonable default.
12715 lt_cv_sys_max_cmd_len=16384
12717 if test -x /sbin/sysconfig; then
12718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12720 esac
12723 sco3.2v5*)
12724 lt_cv_sys_max_cmd_len=102400
12726 sysv5* | sco5v6* | sysv4.2uw2*)
12727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12728 if test -n "$kargmax"; then
12729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12730 else
12731 lt_cv_sys_max_cmd_len=32768
12735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12736 if test -n "$lt_cv_sys_max_cmd_len"; then
12737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12739 else
12740 # Make teststring a little bigger before we do anything with it.
12741 # a 1K string should be a reasonable start.
12742 for i in 1 2 3 4 5 6 7 8 ; do
12743 teststring=$teststring$teststring
12744 done
12745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12746 # If test is not a shell built-in, we'll probably end up computing a
12747 # maximum length that is only half of the actual maximum length, but
12748 # we can't tell.
12749 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12750 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12751 test $i != 17 # 1/2 MB should be enough
12753 i=`expr $i + 1`
12754 teststring=$teststring$teststring
12755 done
12756 # Only check the string length outside the loop.
12757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12758 teststring=
12759 # Add a significant safety factor because C++ compilers can tack on
12760 # massive amounts of additional arguments before passing them to the
12761 # linker. It appears as though 1/2 is a usable value.
12762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12765 esac
12769 if test -n $lt_cv_sys_max_cmd_len ; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12771 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12774 $as_echo "none" >&6; }
12776 max_cmd_len=$lt_cv_sys_max_cmd_len
12783 : ${CP="cp -f"}
12784 : ${MV="mv -f"}
12785 : ${RM="rm -f"}
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12788 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12789 # Try some XSI features
12790 xsi_shell=no
12791 ( _lt_dummy="a/b/c"
12792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12793 = c,a/b,, \
12794 && eval 'test $(( 1 + 1 )) -eq 2 \
12795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12796 && xsi_shell=yes
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12798 $as_echo "$xsi_shell" >&6; }
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12802 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12803 lt_shell_append=no
12804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12805 >/dev/null 2>&1 \
12806 && lt_shell_append=yes
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12808 $as_echo "$lt_shell_append" >&6; }
12811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12812 lt_unset=unset
12813 else
12814 lt_unset=false
12821 # test EBCDIC or ASCII
12822 case `echo X|tr X '\101'` in
12823 A) # ASCII based system
12824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12825 lt_SP2NL='tr \040 \012'
12826 lt_NL2SP='tr \015\012 \040\040'
12828 *) # EBCDIC based system
12829 lt_SP2NL='tr \100 \n'
12830 lt_NL2SP='tr \r\n \100\100'
12832 esac
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12843 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12844 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 lt_cv_ld_reload_flag='-r'
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12850 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12851 reload_flag=$lt_cv_ld_reload_flag
12852 case $reload_flag in
12853 "" | " "*) ;;
12854 *) reload_flag=" $reload_flag" ;;
12855 esac
12856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12857 case $host_os in
12858 darwin*)
12859 if test "$GCC" = yes; then
12860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12861 else
12862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12865 esac
12875 if test -n "$ac_tool_prefix"; then
12876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 if test -n "$OBJDUMP"; then
12884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12885 else
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 break 2
12897 done
12898 done
12899 IFS=$as_save_IFS
12903 OBJDUMP=$ac_cv_prog_OBJDUMP
12904 if test -n "$OBJDUMP"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12906 $as_echo "$OBJDUMP" >&6; }
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12914 if test -z "$ac_cv_prog_OBJDUMP"; then
12915 ac_ct_OBJDUMP=$OBJDUMP
12916 # Extract the first word of "objdump", so it can be a program name with args.
12917 set dummy objdump; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 if test -n "$ac_ct_OBJDUMP"; then
12924 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12937 done
12938 done
12939 IFS=$as_save_IFS
12943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12944 if test -n "$ac_ct_OBJDUMP"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12946 $as_echo "$ac_ct_OBJDUMP" >&6; }
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12952 if test "x$ac_ct_OBJDUMP" = x; then
12953 OBJDUMP="false"
12954 else
12955 case $cross_compiling:$ac_tool_warned in
12956 yes:)
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12959 ac_tool_warned=yes ;;
12960 esac
12961 OBJDUMP=$ac_ct_OBJDUMP
12963 else
12964 OBJDUMP="$ac_cv_prog_OBJDUMP"
12967 test -z "$OBJDUMP" && OBJDUMP=objdump
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12978 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12979 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 lt_cv_file_magic_cmd='$MAGIC_CMD'
12983 lt_cv_file_magic_test_file=
12984 lt_cv_deplibs_check_method='unknown'
12985 # Need to set the preceding variable on all platforms that support
12986 # interlibrary dependencies.
12987 # 'none' -- dependencies not supported.
12988 # `unknown' -- same as none, but documents that we really don't know.
12989 # 'pass_all' -- all dependencies passed with no checks.
12990 # 'test_compile' -- check by making test program.
12991 # 'file_magic [[regex]]' -- check by looking for files in library path
12992 # which responds to the $file_magic_cmd with a given extended regex.
12993 # If you have `file' or equivalent on your system and you're not sure
12994 # whether `pass_all' will *always* work, you probably want this one.
12996 case $host_os in
12997 aix[4-9]*)
12998 lt_cv_deplibs_check_method=pass_all
13001 beos*)
13002 lt_cv_deplibs_check_method=pass_all
13005 bsdi[45]*)
13006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13007 lt_cv_file_magic_cmd='/usr/bin/file -L'
13008 lt_cv_file_magic_test_file=/shlib/libc.so
13011 cygwin*)
13012 # func_win32_libid is a shell function defined in ltmain.sh
13013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13014 lt_cv_file_magic_cmd='func_win32_libid'
13017 mingw* | pw32*)
13018 # Base MSYS/MinGW do not provide the 'file' command needed by
13019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13020 # unless we find 'file', for example because we are cross-compiling.
13021 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13022 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13024 lt_cv_file_magic_cmd='func_win32_libid'
13025 else
13026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13027 lt_cv_file_magic_cmd='$OBJDUMP -f'
13031 cegcc*)
13032 # use the weaker test based on 'objdump'. See mingw*.
13033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13034 lt_cv_file_magic_cmd='$OBJDUMP -f'
13037 darwin* | rhapsody*)
13038 lt_cv_deplibs_check_method=pass_all
13041 freebsd* | dragonfly*)
13042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13043 case $host_cpu in
13044 i*86 )
13045 # Not sure whether the presence of OpenBSD here was a mistake.
13046 # Let's accept both of them until this is cleared up.
13047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13048 lt_cv_file_magic_cmd=/usr/bin/file
13049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13051 esac
13052 else
13053 lt_cv_deplibs_check_method=pass_all
13057 gnu*)
13058 lt_cv_deplibs_check_method=pass_all
13061 haiku*)
13062 lt_cv_deplibs_check_method=pass_all
13065 hpux10.20* | hpux11*)
13066 lt_cv_file_magic_cmd=/usr/bin/file
13067 case $host_cpu in
13068 ia64*)
13069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13072 hppa*64*)
13073 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]'
13074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13080 esac
13083 interix[3-9]*)
13084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13088 irix5* | irix6* | nonstopux*)
13089 case $LD in
13090 *-32|*"-32 ") libmagic=32-bit;;
13091 *-n32|*"-n32 ") libmagic=N32;;
13092 *-64|*"-64 ") libmagic=64-bit;;
13093 *) libmagic=never-match;;
13094 esac
13095 lt_cv_deplibs_check_method=pass_all
13098 # This must be Linux ELF.
13099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13100 lt_cv_deplibs_check_method=pass_all
13103 netbsd*)
13104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13106 else
13107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13111 newos6*)
13112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13113 lt_cv_file_magic_cmd=/usr/bin/file
13114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13117 *nto* | *qnx*)
13118 lt_cv_deplibs_check_method=pass_all
13121 openbsd*)
13122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13124 else
13125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13129 osf3* | osf4* | osf5*)
13130 lt_cv_deplibs_check_method=pass_all
13133 rdos*)
13134 lt_cv_deplibs_check_method=pass_all
13137 solaris*)
13138 lt_cv_deplibs_check_method=pass_all
13141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13142 lt_cv_deplibs_check_method=pass_all
13145 sysv4 | sysv4.3*)
13146 case $host_vendor in
13147 motorola)
13148 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]'
13149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13151 ncr)
13152 lt_cv_deplibs_check_method=pass_all
13154 sequent)
13155 lt_cv_file_magic_cmd='/bin/file'
13156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13158 sni)
13159 lt_cv_file_magic_cmd='/bin/file'
13160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13161 lt_cv_file_magic_test_file=/lib/libc.so
13163 siemens)
13164 lt_cv_deplibs_check_method=pass_all
13167 lt_cv_deplibs_check_method=pass_all
13169 esac
13172 tpf*)
13173 lt_cv_deplibs_check_method=pass_all
13175 esac
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13179 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13180 file_magic_cmd=$lt_cv_file_magic_cmd
13181 deplibs_check_method=$lt_cv_deplibs_check_method
13182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13195 if test -n "$ac_tool_prefix"; then
13196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13197 set dummy ${ac_tool_prefix}ar; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_AR+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 if test -n "$AR"; then
13204 ac_cv_prog_AR="$AR" # Let the user override the test.
13205 else
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_prog_AR="${ac_tool_prefix}ar"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 break 2
13217 done
13218 done
13219 IFS=$as_save_IFS
13223 AR=$ac_cv_prog_AR
13224 if test -n "$AR"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13226 $as_echo "$AR" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 if test -z "$ac_cv_prog_AR"; then
13235 ac_ct_AR=$AR
13236 # Extract the first word of "ar", so it can be a program name with args.
13237 set dummy ar; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 if test -n "$ac_ct_AR"; then
13244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_ac_ct_AR="ar"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13257 done
13258 done
13259 IFS=$as_save_IFS
13263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13264 if test -n "$ac_ct_AR"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13266 $as_echo "$ac_ct_AR" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13272 if test "x$ac_ct_AR" = x; then
13273 AR="false"
13274 else
13275 case $cross_compiling:$ac_tool_warned in
13276 yes:)
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279 ac_tool_warned=yes ;;
13280 esac
13281 AR=$ac_ct_AR
13283 else
13284 AR="$ac_cv_prog_AR"
13287 test -z "$AR" && AR=ar
13288 test -z "$AR_FLAGS" && AR_FLAGS=cru
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}strip; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_STRIP+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$STRIP"; then
13309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13322 done
13323 done
13324 IFS=$as_save_IFS
13328 STRIP=$ac_cv_prog_STRIP
13329 if test -n "$STRIP"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13331 $as_echo "$STRIP" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 if test -z "$ac_cv_prog_STRIP"; then
13340 ac_ct_STRIP=$STRIP
13341 # Extract the first word of "strip", so it can be a program name with args.
13342 set dummy strip; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if test -n "$ac_ct_STRIP"; then
13349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358 ac_cv_prog_ac_ct_STRIP="strip"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13362 done
13363 done
13364 IFS=$as_save_IFS
13368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13369 if test -n "$ac_ct_STRIP"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13371 $as_echo "$ac_ct_STRIP" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13377 if test "x$ac_ct_STRIP" = x; then
13378 STRIP=":"
13379 else
13380 case $cross_compiling:$ac_tool_warned in
13381 yes:)
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13384 ac_tool_warned=yes ;;
13385 esac
13386 STRIP=$ac_ct_STRIP
13388 else
13389 STRIP="$ac_cv_prog_STRIP"
13392 test -z "$STRIP" && STRIP=:
13399 if test -n "$ac_tool_prefix"; then
13400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 if test -n "$RANLIB"; then
13408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13409 else
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13421 done
13422 done
13423 IFS=$as_save_IFS
13427 RANLIB=$ac_cv_prog_RANLIB
13428 if test -n "$RANLIB"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13430 $as_echo "$RANLIB" >&6; }
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13438 if test -z "$ac_cv_prog_RANLIB"; then
13439 ac_ct_RANLIB=$RANLIB
13440 # Extract the first word of "ranlib", so it can be a program name with args.
13441 set dummy ranlib; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 if test -n "$ac_ct_RANLIB"; then
13448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13449 else
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457 ac_cv_prog_ac_ct_RANLIB="ranlib"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 break 2
13461 done
13462 done
13463 IFS=$as_save_IFS
13467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13468 if test -n "$ac_ct_RANLIB"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13470 $as_echo "$ac_ct_RANLIB" >&6; }
13471 else
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13476 if test "x$ac_ct_RANLIB" = x; then
13477 RANLIB=":"
13478 else
13479 case $cross_compiling:$ac_tool_warned in
13480 yes:)
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13483 ac_tool_warned=yes ;;
13484 esac
13485 RANLIB=$ac_ct_RANLIB
13487 else
13488 RANLIB="$ac_cv_prog_RANLIB"
13491 test -z "$RANLIB" && RANLIB=:
13498 # Determine commands to create old-style static archives.
13499 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13500 old_postinstall_cmds='chmod 644 $oldlib'
13501 old_postuninstall_cmds=
13503 if test -n "$RANLIB"; then
13504 case $host_os in
13505 openbsd*)
13506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13511 esac
13512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13515 case $host_os in
13516 darwin*)
13517 lock_old_archive_extraction=yes ;;
13519 lock_old_archive_extraction=no ;;
13520 esac
13560 # If no C compiler was specified, use CC.
13561 LTCC=${LTCC-"$CC"}
13563 # If no C compiler flags were specified, use CFLAGS.
13564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13566 # Allow CC to be a program name with arguments.
13567 compiler=$CC
13570 # Check for command to grab the raw symbol name followed by C symbol from nm.
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13577 # These are sane defaults that work on at least a few old systems.
13578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13580 # Character class describing NM global symbol codes.
13581 symcode='[BCDEGRST]'
13583 # Regexp to match symbols that can be accessed directly from C.
13584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13586 # Define system-specific variables.
13587 case $host_os in
13588 aix*)
13589 symcode='[BCDT]'
13591 cygwin* | mingw* | pw32* | cegcc*)
13592 symcode='[ABCDGISTW]'
13594 hpux*)
13595 if test "$host_cpu" = ia64; then
13596 symcode='[ABCDEGRST]'
13599 irix* | nonstopux*)
13600 symcode='[BCDEGRST]'
13602 osf*)
13603 symcode='[BCDEGQRST]'
13605 solaris*)
13606 symcode='[BDRT]'
13608 sco3.2v5*)
13609 symcode='[DT]'
13611 sysv4.2uw2*)
13612 symcode='[DT]'
13614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13615 symcode='[ABDT]'
13617 sysv4)
13618 symcode='[DFNSTU]'
13620 esac
13622 # If we're using GNU nm, then use its standard symbol codes.
13623 case `$NM -V 2>&1` in
13624 *GNU* | *'with BFD'*)
13625 symcode='[ABCDGIRSTW]' ;;
13626 esac
13628 # Transform an extracted symbol line into a proper C declaration.
13629 # Some systems (esp. on ia64) link data and code symbols differently,
13630 # so use this general approach.
13631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633 # Transform an extracted symbol line into symbol name and symbol address
13634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13635 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'"
13637 # Handle CRLF in mingw tool chain
13638 opt_cr=
13639 case $build_os in
13640 mingw*)
13641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13643 esac
13645 # Try without a prefix underscore, then with it.
13646 for ac_symprfx in "" "_"; do
13648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13649 symxfrm="\\1 $ac_symprfx\\2 \\2"
13651 # Write the raw and C identifiers.
13652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13653 # Fake it for dumpbin and say T for any non-static function
13654 # and D for any global variable.
13655 # Also find C++ and __fastcall symbols from MSVC++,
13656 # which start with @ or ?.
13657 lt_cv_sys_global_symbol_pipe="$AWK '"\
13658 " {last_section=section; section=\$ 3};"\
13659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13660 " \$ 0!~/External *\|/{next};"\
13661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13662 " {if(hide[section]) next};"\
13663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13667 " ' prfx=^$ac_symprfx"
13668 else
13669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13672 # Check to see that the pipe works correctly.
13673 pipe_works=no
13675 rm -f conftest*
13676 cat > conftest.$ac_ext <<_LT_EOF
13677 #ifdef __cplusplus
13678 extern "C" {
13679 #endif
13680 char nm_test_var;
13681 void nm_test_func(void);
13682 void nm_test_func(void){}
13683 #ifdef __cplusplus
13685 #endif
13686 int main(){nm_test_var='a';nm_test_func();return(0);}
13687 _LT_EOF
13689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13690 (eval $ac_compile) 2>&5
13691 ac_status=$?
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693 test $ac_status = 0; }; then
13694 # Now try to grab the symbols.
13695 nlist=conftest.nm
13696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; } && test -s "$nlist"; then
13701 # Try sorting and uniquifying the output.
13702 if sort "$nlist" | uniq > "$nlist"T; then
13703 mv -f "$nlist"T "$nlist"
13704 else
13705 rm -f "$nlist"T
13708 # Make sure that we snagged all the symbols we need.
13709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13711 cat <<_LT_EOF > conftest.$ac_ext
13712 #ifdef __cplusplus
13713 extern "C" {
13714 #endif
13716 _LT_EOF
13717 # Now generate the symbol file.
13718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13720 cat <<_LT_EOF >> conftest.$ac_ext
13722 /* The mapping between symbol names and symbols. */
13723 const struct {
13724 const char *name;
13725 void *address;
13727 lt__PROGRAM__LTX_preloaded_symbols[] =
13729 { "@PROGRAM@", (void *) 0 },
13730 _LT_EOF
13731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13732 cat <<\_LT_EOF >> conftest.$ac_ext
13733 {0, (void *) 0}
13736 /* This works around a problem in FreeBSD linker */
13737 #ifdef FREEBSD_WORKAROUND
13738 static const void *lt_preloaded_setup() {
13739 return lt__PROGRAM__LTX_preloaded_symbols;
13741 #endif
13743 #ifdef __cplusplus
13745 #endif
13746 _LT_EOF
13747 # Now try linking the two files.
13748 mv conftest.$ac_objext conftstm.$ac_objext
13749 lt_save_LIBS="$LIBS"
13750 lt_save_CFLAGS="$CFLAGS"
13751 LIBS="conftstm.$ac_objext"
13752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13754 (eval $ac_link) 2>&5
13755 ac_status=$?
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13758 pipe_works=yes
13760 LIBS="$lt_save_LIBS"
13761 CFLAGS="$lt_save_CFLAGS"
13762 else
13763 echo "cannot find nm_test_func in $nlist" >&5
13765 else
13766 echo "cannot find nm_test_var in $nlist" >&5
13768 else
13769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13771 else
13772 echo "$progname: failed program was:" >&5
13773 cat conftest.$ac_ext >&5
13775 rm -rf conftest* conftst*
13777 # Do not use the global_symbol_pipe unless it works.
13778 if test "$pipe_works" = yes; then
13779 break
13780 else
13781 lt_cv_sys_global_symbol_pipe=
13783 done
13787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13788 lt_cv_sys_global_symbol_to_cdecl=
13790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13792 $as_echo "failed" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13795 $as_echo "ok" >&6; }
13819 # Check whether --enable-libtool-lock was given.
13820 if test "${enable_libtool_lock+set}" = set; then :
13821 enableval=$enable_libtool_lock;
13824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13826 # Some flags need to be propagated to the compiler or linker for good
13827 # libtool support.
13828 case $host in
13829 ia64-*-hpux*)
13830 # Find out which ABI we are using.
13831 echo 'int i;' > conftest.$ac_ext
13832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13833 (eval $ac_compile) 2>&5
13834 ac_status=$?
13835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13836 test $ac_status = 0; }; then
13837 case `/usr/bin/file conftest.$ac_objext` in
13838 *ELF-32*)
13839 HPUX_IA64_MODE="32"
13841 *ELF-64*)
13842 HPUX_IA64_MODE="64"
13844 esac
13846 rm -rf conftest*
13848 *-*-irix6*)
13849 # Find out which ABI we are using.
13850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13852 (eval $ac_compile) 2>&5
13853 ac_status=$?
13854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13855 test $ac_status = 0; }; then
13856 if test "$lt_cv_prog_gnu_ld" = yes; then
13857 case `/usr/bin/file conftest.$ac_objext` in
13858 *32-bit*)
13859 LD="${LD-ld} -melf32bsmip"
13861 *N32*)
13862 LD="${LD-ld} -melf32bmipn32"
13864 *64-bit*)
13865 LD="${LD-ld} -melf64bmip"
13867 esac
13868 else
13869 case `/usr/bin/file conftest.$ac_objext` in
13870 *32-bit*)
13871 LD="${LD-ld} -32"
13873 *N32*)
13874 LD="${LD-ld} -n32"
13876 *64-bit*)
13877 LD="${LD-ld} -64"
13879 esac
13882 rm -rf conftest*
13885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13887 # Find out which ABI we are using.
13888 echo 'int i;' > conftest.$ac_ext
13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; then
13894 case `/usr/bin/file conftest.o` in
13895 *32-bit*)
13896 case $host in
13897 x86_64-*kfreebsd*-gnu)
13898 LD="${LD-ld} -m elf_i386_fbsd"
13900 x86_64-*linux*)
13901 case `/usr/bin/file conftest.o` in
13902 *x86-64*)
13903 LD="${LD-ld} -m elf32_x86_64"
13906 LD="${LD-ld} -m elf_i386"
13908 esac
13910 powerpc64le-*linux*)
13911 LD="${LD-ld} -m elf32lppclinux"
13913 powerpc64-*linux*)
13914 LD="${LD-ld} -m elf32ppclinux"
13916 s390x-*linux*)
13917 LD="${LD-ld} -m elf_s390"
13919 sparc64-*linux*)
13920 LD="${LD-ld} -m elf32_sparc"
13922 esac
13924 *64-bit*)
13925 case $host in
13926 x86_64-*kfreebsd*-gnu)
13927 LD="${LD-ld} -m elf_x86_64_fbsd"
13929 x86_64-*linux*)
13930 LD="${LD-ld} -m elf_x86_64"
13932 powerpcle-*linux*)
13933 LD="${LD-ld} -m elf64lppc"
13935 powerpc-*linux*)
13936 LD="${LD-ld} -m elf64ppc"
13938 s390*-*linux*|s390*-*tpf*)
13939 LD="${LD-ld} -m elf64_s390"
13941 sparc*-*linux*)
13942 LD="${LD-ld} -m elf64_sparc"
13944 esac
13946 esac
13948 rm -rf conftest*
13951 *-*-sco3.2v5*)
13952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13953 SAVE_CFLAGS="$CFLAGS"
13954 CFLAGS="$CFLAGS -belf"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13957 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 ac_ext=c
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13970 main ()
13974 return 0;
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 lt_cv_cc_needs_belf=yes
13979 else
13980 lt_cv_cc_needs_belf=no
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13995 CFLAGS="$SAVE_CFLAGS"
13998 sparc*-*solaris*)
13999 # Find out which ABI we are using.
14000 echo 'int i;' > conftest.$ac_ext
14001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14002 (eval $ac_compile) 2>&5
14003 ac_status=$?
14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14005 test $ac_status = 0; }; then
14006 case `/usr/bin/file conftest.o` in
14007 *64-bit*)
14008 case $lt_cv_prog_gnu_ld in
14009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14012 LD="${LD-ld} -64"
14015 esac
14017 esac
14019 rm -rf conftest*
14021 esac
14023 need_locks="$enable_libtool_lock"
14026 case $host_os in
14027 rhapsody* | darwin*)
14028 if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 if test -n "$DSYMUTIL"; then
14037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14038 else
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14050 done
14051 done
14052 IFS=$as_save_IFS
14056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14057 if test -n "$DSYMUTIL"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14059 $as_echo "$DSYMUTIL" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14067 if test -z "$ac_cv_prog_DSYMUTIL"; then
14068 ac_ct_DSYMUTIL=$DSYMUTIL
14069 # Extract the first word of "dsymutil", so it can be a program name with args.
14070 set dummy dsymutil; ac_word=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 $as_echo_n "checking for $ac_word... " >&6; }
14073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 if test -n "$ac_ct_DSYMUTIL"; then
14077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14078 else
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 break 2
14090 done
14091 done
14092 IFS=$as_save_IFS
14096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14097 if test -n "$ac_ct_DSYMUTIL"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14100 else
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14105 if test "x$ac_ct_DSYMUTIL" = x; then
14106 DSYMUTIL=":"
14107 else
14108 case $cross_compiling:$ac_tool_warned in
14109 yes:)
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14112 ac_tool_warned=yes ;;
14113 esac
14114 DSYMUTIL=$ac_ct_DSYMUTIL
14116 else
14117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14120 if test -n "$ac_tool_prefix"; then
14121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 if test -n "$NMEDIT"; then
14129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14142 done
14143 done
14144 IFS=$as_save_IFS
14148 NMEDIT=$ac_cv_prog_NMEDIT
14149 if test -n "$NMEDIT"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14151 $as_echo "$NMEDIT" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14159 if test -z "$ac_cv_prog_NMEDIT"; then
14160 ac_ct_NMEDIT=$NMEDIT
14161 # Extract the first word of "nmedit", so it can be a program name with args.
14162 set dummy nmedit; ac_word=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 if test -n "$ac_ct_NMEDIT"; then
14169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14170 else
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14182 done
14183 done
14184 IFS=$as_save_IFS
14188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14189 if test -n "$ac_ct_NMEDIT"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14191 $as_echo "$ac_ct_NMEDIT" >&6; }
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14197 if test "x$ac_ct_NMEDIT" = x; then
14198 NMEDIT=":"
14199 else
14200 case $cross_compiling:$ac_tool_warned in
14201 yes:)
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14204 ac_tool_warned=yes ;;
14205 esac
14206 NMEDIT=$ac_ct_NMEDIT
14208 else
14209 NMEDIT="$ac_cv_prog_NMEDIT"
14212 if test -n "$ac_tool_prefix"; then
14213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 $as_echo_n "checking for $ac_word... " >&6; }
14217 if test "${ac_cv_prog_LIPO+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 if test -n "$LIPO"; then
14221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14222 else
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14234 done
14235 done
14236 IFS=$as_save_IFS
14240 LIPO=$ac_cv_prog_LIPO
14241 if test -n "$LIPO"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14243 $as_echo "$LIPO" >&6; }
14244 else
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14251 if test -z "$ac_cv_prog_LIPO"; then
14252 ac_ct_LIPO=$LIPO
14253 # Extract the first word of "lipo", so it can be a program name with args.
14254 set dummy lipo; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 if test -n "$ac_ct_LIPO"; then
14261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14262 else
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_prog_ac_ct_LIPO="lipo"
14271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14274 done
14275 done
14276 IFS=$as_save_IFS
14280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14281 if test -n "$ac_ct_LIPO"; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14283 $as_echo "$ac_ct_LIPO" >&6; }
14284 else
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14289 if test "x$ac_ct_LIPO" = x; then
14290 LIPO=":"
14291 else
14292 case $cross_compiling:$ac_tool_warned in
14293 yes:)
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14296 ac_tool_warned=yes ;;
14297 esac
14298 LIPO=$ac_ct_LIPO
14300 else
14301 LIPO="$ac_cv_prog_LIPO"
14304 if test -n "$ac_tool_prefix"; then
14305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14306 set dummy ${ac_tool_prefix}otool; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 if test -n "$OTOOL"; then
14313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14314 else
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14326 done
14327 done
14328 IFS=$as_save_IFS
14332 OTOOL=$ac_cv_prog_OTOOL
14333 if test -n "$OTOOL"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14335 $as_echo "$OTOOL" >&6; }
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14343 if test -z "$ac_cv_prog_OTOOL"; then
14344 ac_ct_OTOOL=$OTOOL
14345 # Extract the first word of "otool", so it can be a program name with args.
14346 set dummy otool; ac_word=$2
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 $as_echo_n "checking for $ac_word... " >&6; }
14349 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 if test -n "$ac_ct_OTOOL"; then
14353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14354 else
14355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356 for as_dir in $PATH
14358 IFS=$as_save_IFS
14359 test -z "$as_dir" && as_dir=.
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14362 ac_cv_prog_ac_ct_OTOOL="otool"
14363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 break 2
14366 done
14367 done
14368 IFS=$as_save_IFS
14372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14373 if test -n "$ac_ct_OTOOL"; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14375 $as_echo "$ac_ct_OTOOL" >&6; }
14376 else
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 $as_echo "no" >&6; }
14381 if test "x$ac_ct_OTOOL" = x; then
14382 OTOOL=":"
14383 else
14384 case $cross_compiling:$ac_tool_warned in
14385 yes:)
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14388 ac_tool_warned=yes ;;
14389 esac
14390 OTOOL=$ac_ct_OTOOL
14392 else
14393 OTOOL="$ac_cv_prog_OTOOL"
14396 if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14400 $as_echo_n "checking for $ac_word... " >&6; }
14401 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 if test -n "$OTOOL64"; then
14405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14406 else
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14410 IFS=$as_save_IFS
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14416 break 2
14418 done
14419 done
14420 IFS=$as_save_IFS
14424 OTOOL64=$ac_cv_prog_OTOOL64
14425 if test -n "$OTOOL64"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14427 $as_echo "$OTOOL64" >&6; }
14428 else
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14435 if test -z "$ac_cv_prog_OTOOL64"; then
14436 ac_ct_OTOOL64=$OTOOL64
14437 # Extract the first word of "otool64", so it can be a program name with args.
14438 set dummy otool64; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 if test -n "$ac_ct_OTOOL64"; then
14445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14454 ac_cv_prog_ac_ct_OTOOL64="otool64"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14458 done
14459 done
14460 IFS=$as_save_IFS
14464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14465 if test -n "$ac_ct_OTOOL64"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14467 $as_echo "$ac_ct_OTOOL64" >&6; }
14468 else
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470 $as_echo "no" >&6; }
14473 if test "x$ac_ct_OTOOL64" = x; then
14474 OTOOL64=":"
14475 else
14476 case $cross_compiling:$ac_tool_warned in
14477 yes:)
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14480 ac_tool_warned=yes ;;
14481 esac
14482 OTOOL64=$ac_ct_OTOOL64
14484 else
14485 OTOOL64="$ac_cv_prog_OTOOL64"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14515 $as_echo_n "checking for -single_module linker flag... " >&6; }
14516 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14517 $as_echo_n "(cached) " >&6
14518 else
14519 lt_cv_apple_cc_single_mod=no
14520 if test -z "${LT_MULTI_MODULE}"; then
14521 # By default we will add the -single_module flag. You can override
14522 # by either setting the environment variable LT_MULTI_MODULE
14523 # non-empty at configure time, or by adding -multi_module to the
14524 # link flags.
14525 rm -rf libconftest.dylib*
14526 echo "int foo(void){return 1;}" > conftest.c
14527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14528 -dynamiclib -Wl,-single_module conftest.c" >&5
14529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14531 _lt_result=$?
14532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14533 lt_cv_apple_cc_single_mod=yes
14534 else
14535 cat conftest.err >&5
14537 rm -rf libconftest.dylib*
14538 rm -f conftest.*
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14545 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 lt_cv_ld_exported_symbols_list=no
14549 save_LDFLAGS=$LDFLAGS
14550 echo "_main" > conftest.sym
14551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14556 main ()
14560 return 0;
14562 _ACEOF
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 lt_cv_ld_exported_symbols_list=yes
14565 else
14566 lt_cv_ld_exported_symbols_list=no
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LDFLAGS="$save_LDFLAGS"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14576 $as_echo_n "checking for -force_load linker flag... " >&6; }
14577 if test "${lt_cv_ld_force_load+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580 lt_cv_ld_force_load=no
14581 cat > conftest.c << _LT_EOF
14582 int forced_loaded() { return 2;}
14583 _LT_EOF
14584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14586 echo "$AR cru libconftest.a conftest.o" >&5
14587 $AR cru libconftest.a conftest.o 2>&5
14588 cat > conftest.c << _LT_EOF
14589 int main() { return 0;}
14590 _LT_EOF
14591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14593 _lt_result=$?
14594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14595 lt_cv_ld_force_load=yes
14596 else
14597 cat conftest.err >&5
14599 rm -f conftest.err libconftest.a conftest conftest.c
14600 rm -rf conftest.dSYM
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14604 $as_echo "$lt_cv_ld_force_load" >&6; }
14605 case $host_os in
14606 rhapsody* | darwin1.[012])
14607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14608 darwin1.*)
14609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14610 darwin*) # darwin 5.x on
14611 # if running on 10.5 or later, the deployment target defaults
14612 # to the OS version, if on x86, and 10.4, the deployment
14613 # target defaults to 10.4. Don't you love it?
14614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14617 10.[012]*)
14618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14619 10.*)
14620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14621 esac
14623 esac
14624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14625 _lt_dar_single_mod='$single_module'
14627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14629 else
14630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14633 _lt_dsymutil='~$DSYMUTIL $lib || :'
14634 else
14635 _lt_dsymutil=
14638 esac
14640 for ac_header in dlfcn.h
14641 do :
14642 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14643 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define HAVE_DLFCN_H 1
14646 _ACEOF
14649 done
14655 # Set options
14659 enable_dlopen=no
14662 enable_win32_dll=no
14665 # Check whether --enable-shared was given.
14666 if test "${enable_shared+set}" = set; then :
14667 enableval=$enable_shared; p=${PACKAGE-default}
14668 case $enableval in
14669 yes) enable_shared=yes ;;
14670 no) enable_shared=no ;;
14672 enable_shared=no
14673 # Look at the argument we got. We use all the common list separators.
14674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14675 for pkg in $enableval; do
14676 IFS="$lt_save_ifs"
14677 if test "X$pkg" = "X$p"; then
14678 enable_shared=yes
14680 done
14681 IFS="$lt_save_ifs"
14683 esac
14684 else
14685 enable_shared=yes
14696 # Check whether --enable-static was given.
14697 if test "${enable_static+set}" = set; then :
14698 enableval=$enable_static; p=${PACKAGE-default}
14699 case $enableval in
14700 yes) enable_static=yes ;;
14701 no) enable_static=no ;;
14703 enable_static=no
14704 # Look at the argument we got. We use all the common list separators.
14705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14706 for pkg in $enableval; do
14707 IFS="$lt_save_ifs"
14708 if test "X$pkg" = "X$p"; then
14709 enable_static=yes
14711 done
14712 IFS="$lt_save_ifs"
14714 esac
14715 else
14716 enable_static=yes
14728 # Check whether --with-pic was given.
14729 if test "${with_pic+set}" = set; then :
14730 withval=$with_pic; pic_mode="$withval"
14731 else
14732 pic_mode=default
14736 test -z "$pic_mode" && pic_mode=default
14744 # Check whether --enable-fast-install was given.
14745 if test "${enable_fast_install+set}" = set; then :
14746 enableval=$enable_fast_install; p=${PACKAGE-default}
14747 case $enableval in
14748 yes) enable_fast_install=yes ;;
14749 no) enable_fast_install=no ;;
14751 enable_fast_install=no
14752 # Look at the argument we got. We use all the common list separators.
14753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14754 for pkg in $enableval; do
14755 IFS="$lt_save_ifs"
14756 if test "X$pkg" = "X$p"; then
14757 enable_fast_install=yes
14759 done
14760 IFS="$lt_save_ifs"
14762 esac
14763 else
14764 enable_fast_install=yes
14777 # This can be used to rebuild libtool when needed
14778 LIBTOOL_DEPS="$ltmain"
14780 # Always use our own libtool.
14781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14808 test -z "$LN_S" && LN_S="ln -s"
14823 if test -n "${ZSH_VERSION+set}" ; then
14824 setopt NO_GLOB_SUBST
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14828 $as_echo_n "checking for objdir... " >&6; }
14829 if test "${lt_cv_objdir+set}" = set; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 rm -f .libs 2>/dev/null
14833 mkdir .libs 2>/dev/null
14834 if test -d .libs; then
14835 lt_cv_objdir=.libs
14836 else
14837 # MS-DOS does not allow filenames that begin with a dot.
14838 lt_cv_objdir=_libs
14840 rmdir .libs 2>/dev/null
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14843 $as_echo "$lt_cv_objdir" >&6; }
14844 objdir=$lt_cv_objdir
14850 cat >>confdefs.h <<_ACEOF
14851 #define LT_OBJDIR "$lt_cv_objdir/"
14852 _ACEOF
14857 case $host_os in
14858 aix3*)
14859 # AIX sometimes has problems with the GCC collect2 program. For some
14860 # reason, if we set the COLLECT_NAMES environment variable, the problems
14861 # vanish in a puff of smoke.
14862 if test "X${COLLECT_NAMES+set}" != Xset; then
14863 COLLECT_NAMES=
14864 export COLLECT_NAMES
14867 esac
14869 # Global variables:
14870 ofile=libtool
14871 can_build_shared=yes
14873 # All known linkers require a `.a' archive for static linking (except MSVC,
14874 # which needs '.lib').
14875 libext=a
14877 with_gnu_ld="$lt_cv_prog_gnu_ld"
14879 old_CC="$CC"
14880 old_CFLAGS="$CFLAGS"
14882 # Set sane defaults for various variables
14883 test -z "$CC" && CC=cc
14884 test -z "$LTCC" && LTCC=$CC
14885 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14886 test -z "$LD" && LD=ld
14887 test -z "$ac_objext" && ac_objext=o
14889 for cc_temp in $compiler""; do
14890 case $cc_temp in
14891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14893 \-*) ;;
14894 *) break;;
14895 esac
14896 done
14897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14900 # Only perform the check for file, if the check method requires it
14901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14902 case $deplibs_check_method in
14903 file_magic*)
14904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14906 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 case $MAGIC_CMD in
14911 [\\/*] | ?:[\\/]*)
14912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14915 lt_save_MAGIC_CMD="$MAGIC_CMD"
14916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14918 for ac_dir in $ac_dummy; do
14919 IFS="$lt_save_ifs"
14920 test -z "$ac_dir" && ac_dir=.
14921 if test -f $ac_dir/${ac_tool_prefix}file; then
14922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14923 if test -n "$file_magic_test_file"; then
14924 case $deplibs_check_method in
14925 "file_magic "*)
14926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14929 $EGREP "$file_magic_regex" > /dev/null; then
14931 else
14932 cat <<_LT_EOF 1>&2
14934 *** Warning: the command libtool uses to detect shared libraries,
14935 *** $file_magic_cmd, produces output that libtool cannot recognize.
14936 *** The result is that libtool may fail to recognize shared libraries
14937 *** as such. This will affect the creation of libtool libraries that
14938 *** depend on shared libraries, but programs linked with such libtool
14939 *** libraries will work regardless of this problem. Nevertheless, you
14940 *** may want to report the problem to your system manager and/or to
14941 *** bug-libtool@gnu.org
14943 _LT_EOF
14944 fi ;;
14945 esac
14947 break
14949 done
14950 IFS="$lt_save_ifs"
14951 MAGIC_CMD="$lt_save_MAGIC_CMD"
14953 esac
14956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14957 if test -n "$MAGIC_CMD"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14959 $as_echo "$MAGIC_CMD" >&6; }
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14969 if test -z "$lt_cv_path_MAGIC_CMD"; then
14970 if test -n "$ac_tool_prefix"; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14972 $as_echo_n "checking for file... " >&6; }
14973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 case $MAGIC_CMD in
14977 [\\/*] | ?:[\\/]*)
14978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14981 lt_save_MAGIC_CMD="$MAGIC_CMD"
14982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14984 for ac_dir in $ac_dummy; do
14985 IFS="$lt_save_ifs"
14986 test -z "$ac_dir" && ac_dir=.
14987 if test -f $ac_dir/file; then
14988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14989 if test -n "$file_magic_test_file"; then
14990 case $deplibs_check_method in
14991 "file_magic "*)
14992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14995 $EGREP "$file_magic_regex" > /dev/null; then
14997 else
14998 cat <<_LT_EOF 1>&2
15000 *** Warning: the command libtool uses to detect shared libraries,
15001 *** $file_magic_cmd, produces output that libtool cannot recognize.
15002 *** The result is that libtool may fail to recognize shared libraries
15003 *** as such. This will affect the creation of libtool libraries that
15004 *** depend on shared libraries, but programs linked with such libtool
15005 *** libraries will work regardless of this problem. Nevertheless, you
15006 *** may want to report the problem to your system manager and/or to
15007 *** bug-libtool@gnu.org
15009 _LT_EOF
15010 fi ;;
15011 esac
15013 break
15015 done
15016 IFS="$lt_save_ifs"
15017 MAGIC_CMD="$lt_save_MAGIC_CMD"
15019 esac
15022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15023 if test -n "$MAGIC_CMD"; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15025 $as_echo "$MAGIC_CMD" >&6; }
15026 else
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 $as_echo "no" >&6; }
15032 else
15033 MAGIC_CMD=:
15039 esac
15041 # Use C for the default configuration in the libtool script
15043 lt_save_CC="$CC"
15044 ac_ext=c
15045 ac_cpp='$CPP $CPPFLAGS'
15046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15051 # Source file extension for C test sources.
15052 ac_ext=c
15054 # Object file extension for compiled C test sources.
15055 objext=o
15056 objext=$objext
15058 # Code to be used in simple compile tests
15059 lt_simple_compile_test_code="int some_variable = 0;"
15061 # Code to be used in simple link tests
15062 lt_simple_link_test_code='int main(){return(0);}'
15070 # If no C compiler was specified, use CC.
15071 LTCC=${LTCC-"$CC"}
15073 # If no C compiler flags were specified, use CFLAGS.
15074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15076 # Allow CC to be a program name with arguments.
15077 compiler=$CC
15079 # Save the default compiler, since it gets overwritten when the other
15080 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15081 compiler_DEFAULT=$CC
15083 # save warnings/boilerplate of simple test code
15084 ac_outfile=conftest.$ac_objext
15085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15087 _lt_compiler_boilerplate=`cat conftest.err`
15088 $RM conftest*
15090 ac_outfile=conftest.$ac_objext
15091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15093 _lt_linker_boilerplate=`cat conftest.err`
15094 $RM -r conftest*
15097 ## CAVEAT EMPTOR:
15098 ## There is no encapsulation within the following macros, do not change
15099 ## the running order or otherwise move them around unless you know exactly
15100 ## what you are doing...
15101 if test -n "$compiler"; then
15103 lt_prog_compiler_no_builtin_flag=
15105 if test "$GCC" = yes; then
15106 case $cc_basename in
15107 nvcc*)
15108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15111 esac
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15114 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15115 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 lt_cv_prog_compiler_rtti_exceptions=no
15119 ac_outfile=conftest.$ac_objext
15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121 lt_compiler_flag="-fno-rtti -fno-exceptions"
15122 # Insert the option either (1) after the last *FLAGS variable, or
15123 # (2) before a word containing "conftest.", or (3) at the end.
15124 # Note that $ac_compile itself does not contain backslashes and begins
15125 # with a dollar sign (not a hyphen), so the echo should work correctly.
15126 # The option is referenced via a variable to avoid confusing sed.
15127 lt_compile=`echo "$ac_compile" | $SED \
15128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130 -e 's:$: $lt_compiler_flag:'`
15131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15132 (eval "$lt_compile" 2>conftest.err)
15133 ac_status=$?
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 if (exit $ac_status) && test -s "$ac_outfile"; then
15137 # The compiler can only warn and ignore the option if not recognized
15138 # So say no if there are warnings other than the usual output.
15139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15142 lt_cv_prog_compiler_rtti_exceptions=yes
15145 $RM conftest*
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15149 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15151 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15153 else
15164 lt_prog_compiler_wl=
15165 lt_prog_compiler_pic=
15166 lt_prog_compiler_static=
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15171 if test "$GCC" = yes; then
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_static='-static'
15175 case $host_os in
15176 aix*)
15177 # All AIX code is PIC.
15178 if test "$host_cpu" = ia64; then
15179 # AIX 5 now supports IA64 processor
15180 lt_prog_compiler_static='-Bstatic'
15182 lt_prog_compiler_pic='-fPIC'
15185 amigaos*)
15186 case $host_cpu in
15187 powerpc)
15188 # see comment about AmigaOS4 .so support
15189 lt_prog_compiler_pic='-fPIC'
15191 m68k)
15192 # FIXME: we need at least 68020 code to build shared libraries, but
15193 # adding the `-m68020' flag to GCC prevents building anything better,
15194 # like `-m68040'.
15195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15197 esac
15200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15201 # PIC is the default for these OSes.
15204 mingw* | cygwin* | pw32* | os2* | cegcc*)
15205 # This hack is so that the source file can tell whether it is being
15206 # built for inclusion in a dll (and should export symbols for example).
15207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15208 # (--disable-auto-import) libraries
15209 lt_prog_compiler_pic='-DDLL_EXPORT'
15212 darwin* | rhapsody*)
15213 # PIC is the default on this platform
15214 # Common symbols not allowed in MH_DYLIB files
15215 lt_prog_compiler_pic='-fno-common'
15218 haiku*)
15219 # PIC is the default for Haiku.
15220 # The "-static" flag exists, but is broken.
15221 lt_prog_compiler_static=
15224 hpux*)
15225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15227 # sets the default TLS model and affects inlining.
15228 case $host_cpu in
15229 hppa*64*)
15230 # +Z the default
15233 lt_prog_compiler_pic='-fPIC'
15235 esac
15238 interix[3-9]*)
15239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15240 # Instead, we relocate shared libraries at runtime.
15243 msdosdjgpp*)
15244 # Just because we use GCC doesn't mean we suddenly get shared libraries
15245 # on systems that don't support them.
15246 lt_prog_compiler_can_build_shared=no
15247 enable_shared=no
15250 *nto* | *qnx*)
15251 # QNX uses GNU C++, but need to define -shared option too, otherwise
15252 # it will coredump.
15253 lt_prog_compiler_pic='-fPIC -shared'
15256 sysv4*MP*)
15257 if test -d /usr/nec; then
15258 lt_prog_compiler_pic=-Kconform_pic
15263 lt_prog_compiler_pic='-fPIC'
15265 esac
15267 case $cc_basename in
15268 nvcc*) # Cuda Compiler Driver 2.2
15269 lt_prog_compiler_wl='-Xlinker '
15270 lt_prog_compiler_pic='-Xcompiler -fPIC'
15272 esac
15273 else
15274 # PORTME Check for flag to pass linker flags through the system compiler.
15275 case $host_os in
15276 aix*)
15277 lt_prog_compiler_wl='-Wl,'
15278 if test "$host_cpu" = ia64; then
15279 # AIX 5 now supports IA64 processor
15280 lt_prog_compiler_static='-Bstatic'
15281 else
15282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15286 mingw* | cygwin* | pw32* | os2* | cegcc*)
15287 # This hack is so that the source file can tell whether it is being
15288 # built for inclusion in a dll (and should export symbols for example).
15289 lt_prog_compiler_pic='-DDLL_EXPORT'
15292 hpux9* | hpux10* | hpux11*)
15293 lt_prog_compiler_wl='-Wl,'
15294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15295 # not for PA HP-UX.
15296 case $host_cpu in
15297 hppa*64*|ia64*)
15298 # +Z the default
15301 lt_prog_compiler_pic='+Z'
15303 esac
15304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15305 lt_prog_compiler_static='${wl}-a ${wl}archive'
15308 irix5* | irix6* | nonstopux*)
15309 lt_prog_compiler_wl='-Wl,'
15310 # PIC (with -KPIC) is the default.
15311 lt_prog_compiler_static='-non_shared'
15314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15315 case $cc_basename in
15316 # old Intel for x86_64 which still supported -KPIC.
15317 ecc*)
15318 lt_prog_compiler_wl='-Wl,'
15319 lt_prog_compiler_pic='-KPIC'
15320 lt_prog_compiler_static='-static'
15322 # icc used to be incompatible with GCC.
15323 # ICC 10 doesn't accept -KPIC any more.
15324 icc* | ifort*)
15325 lt_prog_compiler_wl='-Wl,'
15326 lt_prog_compiler_pic='-fPIC'
15327 lt_prog_compiler_static='-static'
15329 # Lahey Fortran 8.1.
15330 lf95*)
15331 lt_prog_compiler_wl='-Wl,'
15332 lt_prog_compiler_pic='--shared'
15333 lt_prog_compiler_static='--static'
15335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15336 # Portland Group compilers (*not* the Pentium gcc compiler,
15337 # which looks to be a dead project)
15338 lt_prog_compiler_wl='-Wl,'
15339 lt_prog_compiler_pic='-fpic'
15340 lt_prog_compiler_static='-Bstatic'
15342 ccc*)
15343 lt_prog_compiler_wl='-Wl,'
15344 # All Alpha code is PIC.
15345 lt_prog_compiler_static='-non_shared'
15347 xl* | bgxl* | bgf* | mpixl*)
15348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15349 lt_prog_compiler_wl='-Wl,'
15350 lt_prog_compiler_pic='-qpic'
15351 lt_prog_compiler_static='-qstaticlink'
15354 case `$CC -V 2>&1 | sed 5q` in
15355 *Sun\ F* | *Sun*Fortran*)
15356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-Bstatic'
15359 lt_prog_compiler_wl=''
15361 *Sun\ C*)
15362 # Sun C 5.9
15363 lt_prog_compiler_pic='-KPIC'
15364 lt_prog_compiler_static='-Bstatic'
15365 lt_prog_compiler_wl='-Wl,'
15367 esac
15369 esac
15372 newsos6)
15373 lt_prog_compiler_pic='-KPIC'
15374 lt_prog_compiler_static='-Bstatic'
15377 *nto* | *qnx*)
15378 # QNX uses GNU C++, but need to define -shared option too, otherwise
15379 # it will coredump.
15380 lt_prog_compiler_pic='-fPIC -shared'
15383 osf3* | osf4* | osf5*)
15384 lt_prog_compiler_wl='-Wl,'
15385 # All OSF/1 code is PIC.
15386 lt_prog_compiler_static='-non_shared'
15389 rdos*)
15390 lt_prog_compiler_static='-non_shared'
15393 solaris*)
15394 lt_prog_compiler_pic='-KPIC'
15395 lt_prog_compiler_static='-Bstatic'
15396 case $cc_basename in
15397 f77* | f90* | f95*)
15398 lt_prog_compiler_wl='-Qoption ld ';;
15400 lt_prog_compiler_wl='-Wl,';;
15401 esac
15404 sunos4*)
15405 lt_prog_compiler_wl='-Qoption ld '
15406 lt_prog_compiler_pic='-PIC'
15407 lt_prog_compiler_static='-Bstatic'
15410 sysv4 | sysv4.2uw2* | sysv4.3*)
15411 lt_prog_compiler_wl='-Wl,'
15412 lt_prog_compiler_pic='-KPIC'
15413 lt_prog_compiler_static='-Bstatic'
15416 sysv4*MP*)
15417 if test -d /usr/nec ;then
15418 lt_prog_compiler_pic='-Kconform_pic'
15419 lt_prog_compiler_static='-Bstatic'
15423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15424 lt_prog_compiler_wl='-Wl,'
15425 lt_prog_compiler_pic='-KPIC'
15426 lt_prog_compiler_static='-Bstatic'
15429 unicos*)
15430 lt_prog_compiler_wl='-Wl,'
15431 lt_prog_compiler_can_build_shared=no
15434 uts4*)
15435 lt_prog_compiler_pic='-pic'
15436 lt_prog_compiler_static='-Bstatic'
15440 lt_prog_compiler_can_build_shared=no
15442 esac
15445 case $host_os in
15446 # For platforms which do not support PIC, -DPIC is meaningless:
15447 *djgpp*)
15448 lt_prog_compiler_pic=
15451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15453 esac
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15455 $as_echo "$lt_prog_compiler_pic" >&6; }
15463 # Check to make sure the PIC flag actually works.
15465 if test -n "$lt_prog_compiler_pic"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15467 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15468 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 lt_cv_prog_compiler_pic_works=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15486 ac_status=$?
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_pic_works=yes
15498 $RM conftest*
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15502 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15504 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15505 case $lt_prog_compiler_pic in
15506 "" | " "*) ;;
15507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15508 esac
15509 else
15510 lt_prog_compiler_pic=
15511 lt_prog_compiler_can_build_shared=no
15522 # Check to make sure the static flag actually works.
15524 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15526 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15527 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 lt_cv_prog_compiler_static_works=no
15531 save_LDFLAGS="$LDFLAGS"
15532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15533 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15535 # The linker can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 if test -s conftest.err; then
15538 # Append any errors to the config.log.
15539 cat conftest.err 1>&5
15540 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542 if diff conftest.exp conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_static_works=yes
15545 else
15546 lt_cv_prog_compiler_static_works=yes
15549 $RM -r conftest*
15550 LDFLAGS="$save_LDFLAGS"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15554 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15556 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15558 else
15559 lt_prog_compiler_static=
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15569 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15570 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15571 $as_echo_n "(cached) " >&6
15572 else
15573 lt_cv_prog_compiler_c_o=no
15574 $RM -r conftest 2>/dev/null
15575 mkdir conftest
15576 cd conftest
15577 mkdir out
15578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580 lt_compiler_flag="-o out/conftest2.$ac_objext"
15581 # Insert the option either (1) after the last *FLAGS variable, or
15582 # (2) before a word containing "conftest.", or (3) at the end.
15583 # Note that $ac_compile itself does not contain backslashes and begins
15584 # with a dollar sign (not a hyphen), so the echo should work correctly.
15585 lt_compile=`echo "$ac_compile" | $SED \
15586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15588 -e 's:$: $lt_compiler_flag:'`
15589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15590 (eval "$lt_compile" 2>out/conftest.err)
15591 ac_status=$?
15592 cat out/conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15595 then
15596 # The compiler can only warn and ignore the option if not recognized
15597 # So say no if there are warnings
15598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15601 lt_cv_prog_compiler_c_o=yes
15604 chmod u+w . 2>&5
15605 $RM conftest*
15606 # SGI C++ compiler will create directory out/ii_files/ for
15607 # template instantiation
15608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15609 $RM out/* && rmdir out
15610 cd ..
15611 $RM -r conftest
15612 $RM conftest*
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15616 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15624 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15625 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15626 $as_echo_n "(cached) " >&6
15627 else
15628 lt_cv_prog_compiler_c_o=no
15629 $RM -r conftest 2>/dev/null
15630 mkdir conftest
15631 cd conftest
15632 mkdir out
15633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15635 lt_compiler_flag="-o out/conftest2.$ac_objext"
15636 # Insert the option either (1) after the last *FLAGS variable, or
15637 # (2) before a word containing "conftest.", or (3) at the end.
15638 # Note that $ac_compile itself does not contain backslashes and begins
15639 # with a dollar sign (not a hyphen), so the echo should work correctly.
15640 lt_compile=`echo "$ac_compile" | $SED \
15641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15643 -e 's:$: $lt_compiler_flag:'`
15644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15645 (eval "$lt_compile" 2>out/conftest.err)
15646 ac_status=$?
15647 cat out/conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15650 then
15651 # The compiler can only warn and ignore the option if not recognized
15652 # So say no if there are warnings
15653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15656 lt_cv_prog_compiler_c_o=yes
15659 chmod u+w . 2>&5
15660 $RM conftest*
15661 # SGI C++ compiler will create directory out/ii_files/ for
15662 # template instantiation
15663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15664 $RM out/* && rmdir out
15665 cd ..
15666 $RM -r conftest
15667 $RM conftest*
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15671 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15676 hard_links="nottested"
15677 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15678 # do not overwrite the value of need_locks provided by the user
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15680 $as_echo_n "checking if we can lock with hard links... " >&6; }
15681 hard_links=yes
15682 $RM conftest*
15683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15684 touch conftest.a
15685 ln conftest.a conftest.b 2>&5 || hard_links=no
15686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15688 $as_echo "$hard_links" >&6; }
15689 if test "$hard_links" = no; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15691 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15692 need_locks=warn
15694 else
15695 need_locks=no
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15704 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15706 runpath_var=
15707 allow_undefined_flag=
15708 always_export_symbols=no
15709 archive_cmds=
15710 archive_expsym_cmds=
15711 compiler_needs_object=no
15712 enable_shared_with_static_runtimes=no
15713 export_dynamic_flag_spec=
15714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15715 hardcode_automatic=no
15716 hardcode_direct=no
15717 hardcode_direct_absolute=no
15718 hardcode_libdir_flag_spec=
15719 hardcode_libdir_flag_spec_ld=
15720 hardcode_libdir_separator=
15721 hardcode_minus_L=no
15722 hardcode_shlibpath_var=unsupported
15723 inherit_rpath=no
15724 link_all_deplibs=unknown
15725 module_cmds=
15726 module_expsym_cmds=
15727 old_archive_from_new_cmds=
15728 old_archive_from_expsyms_cmds=
15729 thread_safe_flag_spec=
15730 whole_archive_flag_spec=
15731 # include_expsyms should be a list of space-separated symbols to be *always*
15732 # included in the symbol list
15733 include_expsyms=
15734 # exclude_expsyms can be an extended regexp of symbols to exclude
15735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15737 # as well as any symbol that contains `d'.
15738 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15740 # platforms (ab)use it in PIC code, but their linkers get confused if
15741 # the symbol is explicitly referenced. Since portable code cannot
15742 # rely on this symbol name, it's probably fine to never include it in
15743 # preloaded symbol tables.
15744 # Exclude shared library initialization/finalization symbols.
15745 extract_expsyms_cmds=
15747 case $host_os in
15748 cygwin* | mingw* | pw32* | cegcc*)
15749 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15750 # When not using gcc, we currently assume that we are using
15751 # Microsoft Visual C++.
15752 if test "$GCC" != yes; then
15753 with_gnu_ld=no
15756 interix*)
15757 # we just hope/assume this is gcc and not c89 (= MSVC++)
15758 with_gnu_ld=yes
15760 openbsd*)
15761 with_gnu_ld=no
15763 esac
15765 ld_shlibs=yes
15767 # On some targets, GNU ld is compatible enough with the native linker
15768 # that we're better off using the native interface for both.
15769 lt_use_gnu_ld_interface=no
15770 if test "$with_gnu_ld" = yes; then
15771 case $host_os in
15772 aix*)
15773 # The AIX port of GNU ld has always aspired to compatibility
15774 # with the native linker. However, as the warning in the GNU ld
15775 # block says, versions before 2.19.5* couldn't really create working
15776 # shared libraries, regardless of the interface used.
15777 case `$LD -v 2>&1` in
15778 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15779 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15780 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15782 lt_use_gnu_ld_interface=yes
15784 esac
15787 lt_use_gnu_ld_interface=yes
15789 esac
15792 if test "$lt_use_gnu_ld_interface" = yes; then
15793 # If archive_cmds runs LD, not CC, wlarc should be empty
15794 wlarc='${wl}'
15796 # Set some defaults for GNU ld with shared library support. These
15797 # are reset later if shared libraries are not supported. Putting them
15798 # here allows them to be overridden if necessary.
15799 runpath_var=LD_RUN_PATH
15800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15801 export_dynamic_flag_spec='${wl}--export-dynamic'
15802 # ancient GNU ld didn't support --whole-archive et. al.
15803 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15805 else
15806 whole_archive_flag_spec=
15808 supports_anon_versioning=no
15809 case `$LD -v 2>&1` in
15810 *GNU\ gold*) supports_anon_versioning=yes ;;
15811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15814 *\ 2.11.*) ;; # other 2.11 versions
15815 *) supports_anon_versioning=yes ;;
15816 esac
15818 # See if GNU ld supports shared libraries.
15819 case $host_os in
15820 aix[3-9]*)
15821 # On AIX/PPC, the GNU linker is very broken
15822 if test "$host_cpu" != ia64; then
15823 ld_shlibs=no
15824 cat <<_LT_EOF 1>&2
15826 *** Warning: the GNU linker, at least up to release 2.19, is reported
15827 *** to be unable to reliably create shared libraries on AIX.
15828 *** Therefore, libtool is disabling shared libraries support. If you
15829 *** really care for shared libraries, you may want to install binutils
15830 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15831 *** You will then need to restart the configuration process.
15833 _LT_EOF
15837 amigaos*)
15838 case $host_cpu in
15839 powerpc)
15840 # see comment about AmigaOS4 .so support
15841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_expsym_cmds=''
15844 m68k)
15845 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)'
15846 hardcode_libdir_flag_spec='-L$libdir'
15847 hardcode_minus_L=yes
15849 esac
15852 beos*)
15853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15854 allow_undefined_flag=unsupported
15855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15856 # support --undefined. This deserves some investigation. FIXME
15857 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 else
15859 ld_shlibs=no
15863 cygwin* | mingw* | pw32* | cegcc*)
15864 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15865 # as there is no search path for DLLs.
15866 hardcode_libdir_flag_spec='-L$libdir'
15867 export_dynamic_flag_spec='${wl}--export-all-symbols'
15868 allow_undefined_flag=unsupported
15869 always_export_symbols=no
15870 enable_shared_with_static_runtimes=yes
15871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15875 # If the export-symbols file already is a .def file (1st line
15876 # is EXPORTS), use it as is; otherwise, prepend...
15877 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15878 cp $export_symbols $output_objdir/$soname.def;
15879 else
15880 echo EXPORTS > $output_objdir/$soname.def;
15881 cat $export_symbols >> $output_objdir/$soname.def;
15883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15884 else
15885 ld_shlibs=no
15889 haiku*)
15890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15891 link_all_deplibs=yes
15894 interix[3-9]*)
15895 hardcode_direct=no
15896 hardcode_shlibpath_var=no
15897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15898 export_dynamic_flag_spec='${wl}-E'
15899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15900 # Instead, shared libraries are loaded at an image base (0x10000000 by
15901 # default) and relocated if they conflict, which is a slow very memory
15902 # consuming and fragmenting process. To avoid this, we pick a random,
15903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15906 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'
15909 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15910 tmp_diet=no
15911 if test "$host_os" = linux-dietlibc; then
15912 case $cc_basename in
15913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15914 esac
15916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15917 && test "$tmp_diet" = no
15918 then
15919 tmp_addflag=
15920 tmp_sharedflag='-shared'
15921 case $cc_basename,$host_cpu in
15922 pgcc*) # Portland Group C compiler
15923 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'
15924 tmp_addflag=' $pic_flag'
15926 pgf77* | pgf90* | pgf95* | pgfortran*)
15927 # Portland Group f77 and f90 compilers
15928 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'
15929 tmp_addflag=' $pic_flag -Mnomain' ;;
15930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15931 tmp_addflag=' -i_dynamic' ;;
15932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15933 tmp_addflag=' -i_dynamic -nofor_main' ;;
15934 ifc* | ifort*) # Intel Fortran compiler
15935 tmp_addflag=' -nofor_main' ;;
15936 lf95*) # Lahey Fortran 8.1
15937 whole_archive_flag_spec=
15938 tmp_sharedflag='--shared' ;;
15939 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15940 tmp_sharedflag='-qmkshrobj'
15941 tmp_addflag= ;;
15942 nvcc*) # Cuda Compiler Driver 2.2
15943 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'
15944 compiler_needs_object=yes
15946 esac
15947 case `$CC -V 2>&1 | sed 5q` in
15948 *Sun\ C*) # Sun C 5.9
15949 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'
15950 compiler_needs_object=yes
15951 tmp_sharedflag='-G' ;;
15952 *Sun\ F*) # Sun Fortran 8.3
15953 tmp_sharedflag='-G' ;;
15954 esac
15955 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 if test "x$supports_anon_versioning" = xyes; then
15958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15960 echo "local: *; };" >> $output_objdir/$libname.ver~
15961 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15964 case $cc_basename in
15965 xlf* | bgf* | bgxlf* | mpixlf*)
15966 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15967 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15968 hardcode_libdir_flag_spec=
15969 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15970 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15971 if test "x$supports_anon_versioning" = xyes; then
15972 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15974 echo "local: *; };" >> $output_objdir/$libname.ver~
15975 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15978 esac
15979 else
15980 ld_shlibs=no
15984 netbsd*)
15985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15986 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15987 wlarc=
15988 else
15989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15994 solaris*)
15995 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15996 ld_shlibs=no
15997 cat <<_LT_EOF 1>&2
15999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16000 *** create shared libraries on Solaris systems. Therefore, libtool
16001 *** is disabling shared libraries support. We urge you to upgrade GNU
16002 *** binutils to release 2.9.1 or newer. Another option is to modify
16003 *** your PATH or compiler configuration so that the native linker is
16004 *** used, and then restart.
16006 _LT_EOF
16007 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16010 else
16011 ld_shlibs=no
16015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16016 case `$LD -v 2>&1` in
16017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16018 ld_shlibs=no
16019 cat <<_LT_EOF 1>&2
16021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16022 *** reliably create shared libraries on SCO systems. Therefore, libtool
16023 *** is disabling shared libraries support. We urge you to upgrade GNU
16024 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16025 *** your PATH or compiler configuration so that the native linker is
16026 *** used, and then restart.
16028 _LT_EOF
16031 # For security reasons, it is highly recommended that you always
16032 # use absolute paths for naming shared libraries, and exclude the
16033 # DT_RUNPATH tag from executables and libraries. But doing so
16034 # requires that you compile everything twice, which is a pain.
16035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16039 else
16040 ld_shlibs=no
16043 esac
16046 sunos4*)
16047 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16048 wlarc=
16049 hardcode_direct=yes
16050 hardcode_shlibpath_var=no
16054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16057 else
16058 ld_shlibs=no
16061 esac
16063 if test "$ld_shlibs" = no; then
16064 runpath_var=
16065 hardcode_libdir_flag_spec=
16066 export_dynamic_flag_spec=
16067 whole_archive_flag_spec=
16069 else
16070 # PORTME fill in a description of your system's linker (not GNU ld)
16071 case $host_os in
16072 aix3*)
16073 allow_undefined_flag=unsupported
16074 always_export_symbols=yes
16075 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'
16076 # Note: this linker hardcodes the directories in LIBPATH if there
16077 # are no directories specified by -L.
16078 hardcode_minus_L=yes
16079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16080 # Neither direct hardcoding nor static linking is supported with a
16081 # broken collect2.
16082 hardcode_direct=unsupported
16086 aix[4-9]*)
16087 if test "$host_cpu" = ia64; then
16088 # On IA64, the linker does run time linking by default, so we don't
16089 # have to do anything special.
16090 aix_use_runtimelinking=no
16091 exp_sym_flag='-Bexport'
16092 no_entry_flag=""
16093 else
16094 # If we're using GNU nm, then we don't want the "-C" option.
16095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16096 # Also, AIX nm treats weak defined symbols like other global
16097 # defined symbols, whereas GNU nm marks them as "W".
16098 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16099 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'
16100 else
16101 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'
16103 aix_use_runtimelinking=no
16105 # Test if we are trying to use run time linking or normal
16106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16107 # need to do runtime linking.
16108 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16109 for ld_flag in $LDFLAGS; do
16110 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16111 aix_use_runtimelinking=yes
16112 break
16114 done
16116 esac
16118 exp_sym_flag='-bexport'
16119 no_entry_flag='-bnoentry'
16122 # When large executables or shared objects are built, AIX ld can
16123 # have problems creating the table of contents. If linking a library
16124 # or program results in "error TOC overflow" add -mminimal-toc to
16125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16128 archive_cmds=''
16129 hardcode_direct=yes
16130 hardcode_direct_absolute=yes
16131 hardcode_libdir_separator=':'
16132 link_all_deplibs=yes
16133 file_list_spec='${wl}-f,'
16135 if test "$GCC" = yes; then
16136 case $host_os in aix4.[012]|aix4.[012].*)
16137 # We only want to do this on AIX 4.2 and lower, the check
16138 # below for broken collect2 doesn't work under 4.3+
16139 collect2name=`${CC} -print-prog-name=collect2`
16140 if test -f "$collect2name" &&
16141 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16142 then
16143 # We have reworked collect2
16145 else
16146 # We have old collect2
16147 hardcode_direct=unsupported
16148 # It fails to find uninstalled libraries when the uninstalled
16149 # path is not listed in the libpath. Setting hardcode_minus_L
16150 # to unsupported forces relinking
16151 hardcode_minus_L=yes
16152 hardcode_libdir_flag_spec='-L$libdir'
16153 hardcode_libdir_separator=
16156 esac
16157 shared_flag='-shared'
16158 if test "$aix_use_runtimelinking" = yes; then
16159 shared_flag="$shared_flag "'${wl}-G'
16161 else
16162 # not using gcc
16163 if test "$host_cpu" = ia64; then
16164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16165 # chokes on -Wl,-G. The following line is correct:
16166 shared_flag='-G'
16167 else
16168 if test "$aix_use_runtimelinking" = yes; then
16169 shared_flag='${wl}-G'
16170 else
16171 shared_flag='${wl}-bM:SRE'
16176 export_dynamic_flag_spec='${wl}-bexpall'
16177 # It seems that -bexpall does not export symbols beginning with
16178 # underscore (_), so it is better to generate a list of symbols to export.
16179 always_export_symbols=yes
16180 if test "$aix_use_runtimelinking" = yes; then
16181 # Warning - without using the other runtime loading flags (-brtl),
16182 # -berok will link without error, but may produce a broken library.
16183 allow_undefined_flag='-berok'
16184 # Determine the default libpath from the value encoded in an
16185 # empty executable.
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16190 main ()
16194 return 0;
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16199 lt_aix_libpath_sed='
16200 /Import File Strings/,/^$/ {
16201 /^0/ {
16202 s/^0 *\(.*\)$/\1/
16206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16207 # Check for a 64-bit object if we didn't find anything.
16208 if test -z "$aix_libpath"; then
16209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16212 rm -f core conftest.err conftest.$ac_objext \
16213 conftest$ac_exeext conftest.$ac_ext
16214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16217 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"
16218 else
16219 if test "$host_cpu" = ia64; then
16220 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16221 allow_undefined_flag="-z nodefs"
16222 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"
16223 else
16224 # Determine the default libpath from the value encoded in an
16225 # empty executable.
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16230 main ()
16234 return 0;
16236 _ACEOF
16237 if ac_fn_c_try_link "$LINENO"; then :
16239 lt_aix_libpath_sed='
16240 /Import File Strings/,/^$/ {
16241 /^0/ {
16242 s/^0 *\(.*\)$/\1/
16246 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16247 # Check for a 64-bit object if we didn't find anything.
16248 if test -z "$aix_libpath"; then
16249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16257 # Warning - without using the other run time loading flags,
16258 # -berok will link without error, but may produce a broken library.
16259 no_undefined_flag=' ${wl}-bernotok'
16260 allow_undefined_flag=' ${wl}-berok'
16261 if test "$with_gnu_ld" = yes; then
16262 # We only use this code for GNU lds that support --whole-archive.
16263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16264 else
16265 # Exported symbols can be pulled into shared objects from archives
16266 whole_archive_flag_spec='$convenience'
16268 archive_cmds_need_lc=yes
16269 # This is similar to how AIX traditionally builds its shared libraries.
16270 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'
16275 amigaos*)
16276 case $host_cpu in
16277 powerpc)
16278 # see comment about AmigaOS4 .so support
16279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16280 archive_expsym_cmds=''
16282 m68k)
16283 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)'
16284 hardcode_libdir_flag_spec='-L$libdir'
16285 hardcode_minus_L=yes
16287 esac
16290 bsdi[45]*)
16291 export_dynamic_flag_spec=-rdynamic
16294 cygwin* | mingw* | pw32* | cegcc*)
16295 # When not using gcc, we currently assume that we are using
16296 # Microsoft Visual C++.
16297 # hardcode_libdir_flag_spec is actually meaningless, as there is
16298 # no search path for DLLs.
16299 hardcode_libdir_flag_spec=' '
16300 allow_undefined_flag=unsupported
16301 # Tell ltmain to make .lib files, not .a files.
16302 libext=lib
16303 # Tell ltmain to make .dll files, not .so files.
16304 shrext_cmds=".dll"
16305 # FIXME: Setting linknames here is a bad hack.
16306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16307 # The linker will automatically build a .lib file if we build a DLL.
16308 old_archive_from_new_cmds='true'
16309 # FIXME: Should let the user specify the lib program.
16310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16311 fix_srcfile_path='`cygpath -w "$srcfile"`'
16312 enable_shared_with_static_runtimes=yes
16315 darwin* | rhapsody*)
16318 archive_cmds_need_lc=no
16319 hardcode_direct=no
16320 hardcode_automatic=yes
16321 hardcode_shlibpath_var=unsupported
16322 if test "$lt_cv_ld_force_load" = "yes"; then
16323 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\"`'
16324 else
16325 whole_archive_flag_spec=''
16327 link_all_deplibs=yes
16328 allow_undefined_flag="$_lt_dar_allow_undefined"
16329 case $cc_basename in
16330 ifort*) _lt_dar_can_shared=yes ;;
16331 *) _lt_dar_can_shared=$GCC ;;
16332 esac
16333 if test "$_lt_dar_can_shared" = "yes"; then
16334 output_verbose_link_cmd=func_echo_all
16335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16337 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}"
16338 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}"
16340 else
16341 ld_shlibs=no
16346 dgux*)
16347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_libdir_flag_spec='-L$libdir'
16349 hardcode_shlibpath_var=no
16352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16353 # support. Future versions do this automatically, but an explicit c++rt0.o
16354 # does not break anything, and helps significantly (at the cost of a little
16355 # extra space).
16356 freebsd2.2*)
16357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16358 hardcode_libdir_flag_spec='-R$libdir'
16359 hardcode_direct=yes
16360 hardcode_shlibpath_var=no
16363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16364 freebsd2.*)
16365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16366 hardcode_direct=yes
16367 hardcode_minus_L=yes
16368 hardcode_shlibpath_var=no
16371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16372 freebsd* | dragonfly*)
16373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16374 hardcode_libdir_flag_spec='-R$libdir'
16375 hardcode_direct=yes
16376 hardcode_shlibpath_var=no
16379 hpux9*)
16380 if test "$GCC" = yes; then
16381 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'
16382 else
16383 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'
16385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16386 hardcode_libdir_separator=:
16387 hardcode_direct=yes
16389 # hardcode_minus_L: Not really in the search PATH,
16390 # but as the default location of the library.
16391 hardcode_minus_L=yes
16392 export_dynamic_flag_spec='${wl}-E'
16395 hpux10*)
16396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16398 else
16399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16401 if test "$with_gnu_ld" = no; then
16402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16403 hardcode_libdir_flag_spec_ld='+b $libdir'
16404 hardcode_libdir_separator=:
16405 hardcode_direct=yes
16406 hardcode_direct_absolute=yes
16407 export_dynamic_flag_spec='${wl}-E'
16408 # hardcode_minus_L: Not really in the search PATH,
16409 # but as the default location of the library.
16410 hardcode_minus_L=yes
16414 hpux11*)
16415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16416 case $host_cpu in
16417 hppa*64*)
16418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 ia64*)
16421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16426 esac
16427 else
16428 case $host_cpu in
16429 hppa*64*)
16430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16432 ia64*)
16433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16437 # Older versions of the 11.00 compiler do not understand -b yet
16438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16440 $as_echo_n "checking if $CC understands -b... " >&6; }
16441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 lt_cv_prog_compiler__b=no
16445 save_LDFLAGS="$LDFLAGS"
16446 LDFLAGS="$LDFLAGS -b"
16447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16449 # The linker can only warn and ignore the option if not recognized
16450 # So say no if there are warnings
16451 if test -s conftest.err; then
16452 # Append any errors to the config.log.
16453 cat conftest.err 1>&5
16454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16456 if diff conftest.exp conftest.er2 >/dev/null; then
16457 lt_cv_prog_compiler__b=yes
16459 else
16460 lt_cv_prog_compiler__b=yes
16463 $RM -r conftest*
16464 LDFLAGS="$save_LDFLAGS"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16470 if test x"$lt_cv_prog_compiler__b" = xyes; then
16471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16472 else
16473 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16477 esac
16479 if test "$with_gnu_ld" = no; then
16480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16481 hardcode_libdir_separator=:
16483 case $host_cpu in
16484 hppa*64*|ia64*)
16485 hardcode_direct=no
16486 hardcode_shlibpath_var=no
16489 hardcode_direct=yes
16490 hardcode_direct_absolute=yes
16491 export_dynamic_flag_spec='${wl}-E'
16493 # hardcode_minus_L: Not really in the search PATH,
16494 # but as the default location of the library.
16495 hardcode_minus_L=yes
16497 esac
16501 irix5* | irix6* | nonstopux*)
16502 if test "$GCC" = yes; then
16503 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'
16504 # Try to use the -exported_symbol ld option, if it does not
16505 # work, assume that -exports_file does not work either and
16506 # implicitly export all symbols.
16507 save_LDFLAGS="$LDFLAGS"
16508 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 int foo(void) {}
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16514 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'
16517 rm -f core conftest.err conftest.$ac_objext \
16518 conftest$ac_exeext conftest.$ac_ext
16519 LDFLAGS="$save_LDFLAGS"
16520 else
16521 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'
16522 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'
16524 archive_cmds_need_lc='no'
16525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16526 hardcode_libdir_separator=:
16527 inherit_rpath=yes
16528 link_all_deplibs=yes
16531 netbsd*)
16532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16534 else
16535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16537 hardcode_libdir_flag_spec='-R$libdir'
16538 hardcode_direct=yes
16539 hardcode_shlibpath_var=no
16542 newsos6)
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_direct=yes
16545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16546 hardcode_libdir_separator=:
16547 hardcode_shlibpath_var=no
16550 *nto* | *qnx*)
16553 openbsd*)
16554 if test -f /usr/libexec/ld.so; then
16555 hardcode_direct=yes
16556 hardcode_shlibpath_var=no
16557 hardcode_direct_absolute=yes
16558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16562 export_dynamic_flag_spec='${wl}-E'
16563 else
16564 case $host_os in
16565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_libdir_flag_spec='-R$libdir'
16570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16573 esac
16575 else
16576 ld_shlibs=no
16580 os2*)
16581 hardcode_libdir_flag_spec='-L$libdir'
16582 hardcode_minus_L=yes
16583 allow_undefined_flag=unsupported
16584 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'
16585 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16588 osf3*)
16589 if test "$GCC" = yes; then
16590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16591 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'
16592 else
16593 allow_undefined_flag=' -expect_unresolved \*'
16594 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'
16596 archive_cmds_need_lc='no'
16597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16598 hardcode_libdir_separator=:
16601 osf4* | osf5*) # as osf3* with the addition of -msym flag
16602 if test "$GCC" = yes; then
16603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16604 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'
16605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16606 else
16607 allow_undefined_flag=' -expect_unresolved \*'
16608 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'
16609 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~
16610 $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'
16612 # Both c and cxx compiler support -rpath directly
16613 hardcode_libdir_flag_spec='-rpath $libdir'
16615 archive_cmds_need_lc='no'
16616 hardcode_libdir_separator=:
16619 solaris*)
16620 no_undefined_flag=' -z defs'
16621 if test "$GCC" = yes; then
16622 wlarc='${wl}'
16623 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16626 else
16627 case `$CC -V 2>&1` in
16628 *"Compilers 5.0"*)
16629 wlarc=''
16630 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16635 wlarc='${wl}'
16636 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16640 esac
16642 hardcode_libdir_flag_spec='-R$libdir'
16643 hardcode_shlibpath_var=no
16644 case $host_os in
16645 solaris2.[0-5] | solaris2.[0-5].*) ;;
16647 # The compiler driver will combine and reorder linker options,
16648 # but understands `-z linker_flag'. GCC discards it without `$wl',
16649 # but is careful enough not to reorder.
16650 # Supported since Solaris 2.6 (maybe 2.5.1?)
16651 if test "$GCC" = yes; then
16652 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16653 else
16654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16657 esac
16658 link_all_deplibs=yes
16661 sunos4*)
16662 if test "x$host_vendor" = xsequent; then
16663 # Use $CC to link under sequent, because it throws in some extra .o
16664 # files that make .init and .fini sections work.
16665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16666 else
16667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_libdir_flag_spec='-L$libdir'
16670 hardcode_direct=yes
16671 hardcode_minus_L=yes
16672 hardcode_shlibpath_var=no
16675 sysv4)
16676 case $host_vendor in
16677 sni)
16678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_direct=yes # is this really true???
16681 siemens)
16682 ## LD is ld it makes a PLAMLIB
16683 ## CC just makes a GrossModule.
16684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16685 reload_cmds='$CC -r -o $output$reload_objs'
16686 hardcode_direct=no
16688 motorola)
16689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16692 esac
16693 runpath_var='LD_RUN_PATH'
16694 hardcode_shlibpath_var=no
16697 sysv4.3*)
16698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_shlibpath_var=no
16700 export_dynamic_flag_spec='-Bexport'
16703 sysv4*MP*)
16704 if test -d /usr/nec; then
16705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_shlibpath_var=no
16707 runpath_var=LD_RUN_PATH
16708 hardcode_runpath_var=yes
16709 ld_shlibs=yes
16713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16714 no_undefined_flag='${wl}-z,text'
16715 archive_cmds_need_lc=no
16716 hardcode_shlibpath_var=no
16717 runpath_var='LD_RUN_PATH'
16719 if test "$GCC" = yes; then
16720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722 else
16723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 sysv5* | sco3.2v5* | sco5v6*)
16729 # Note: We can NOT use -z defs as we might desire, because we do not
16730 # link with -lc, and that would cause any symbols used from libc to
16731 # always be unresolved, which means just about no library would
16732 # ever link correctly. If we're not using GNU ld we use -z text
16733 # though, which does catch some bad symbols but isn't as heavy-handed
16734 # as -z defs.
16735 no_undefined_flag='${wl}-z,text'
16736 allow_undefined_flag='${wl}-z,nodefs'
16737 archive_cmds_need_lc=no
16738 hardcode_shlibpath_var=no
16739 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16740 hardcode_libdir_separator=':'
16741 link_all_deplibs=yes
16742 export_dynamic_flag_spec='${wl}-Bexport'
16743 runpath_var='LD_RUN_PATH'
16745 if test "$GCC" = yes; then
16746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 else
16749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 uts4*)
16755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_libdir_flag_spec='-L$libdir'
16757 hardcode_shlibpath_var=no
16761 ld_shlibs=no
16763 esac
16765 if test x$host_vendor = xsni; then
16766 case $host in
16767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16768 export_dynamic_flag_spec='${wl}-Blargedynsym'
16770 esac
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16775 $as_echo "$ld_shlibs" >&6; }
16776 test "$ld_shlibs" = no && can_build_shared=no
16778 with_gnu_ld=$with_gnu_ld
16795 # Do we need to explicitly link libc?
16797 case "x$archive_cmds_need_lc" in
16798 x|xyes)
16799 # Assume -lc should be added
16800 archive_cmds_need_lc=yes
16802 if test "$enable_shared" = yes && test "$GCC" = yes; then
16803 case $archive_cmds in
16804 *'~'*)
16805 # FIXME: we may have to deal with multi-command sequences.
16807 '$CC '*)
16808 # Test whether the compiler implicitly links with -lc since on some
16809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16810 # to ld, don't add -lc before -lgcc.
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 $RM conftest*
16817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16820 (eval $ac_compile) 2>&5
16821 ac_status=$?
16822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16823 test $ac_status = 0; } 2>conftest.err; then
16824 soname=conftest
16825 lib=conftest
16826 libobjs=conftest.$ac_objext
16827 deplibs=
16828 wl=$lt_prog_compiler_wl
16829 pic_flag=$lt_prog_compiler_pic
16830 compiler_flags=-v
16831 linker_flags=-v
16832 verstring=
16833 output_objdir=.
16834 libname=conftest
16835 lt_save_allow_undefined_flag=$allow_undefined_flag
16836 allow_undefined_flag=
16837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16838 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839 ac_status=$?
16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841 test $ac_status = 0; }
16842 then
16843 lt_cv_archive_cmds_need_lc=no
16844 else
16845 lt_cv_archive_cmds_need_lc=yes
16847 allow_undefined_flag=$lt_save_allow_undefined_flag
16848 else
16849 cat conftest.err 1>&5
16851 $RM conftest*
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16858 esac
16861 esac
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17022 if test "$GCC" = yes; then
17023 case $host_os in
17024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17025 *) lt_awk_arg="/^libraries:/" ;;
17026 esac
17027 case $host_os in
17028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17029 *) lt_sed_strip_eq="s,=/,/,g" ;;
17030 esac
17031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17032 case $lt_search_path_spec in
17033 *\;*)
17034 # if the path contains ";" then we assume it to be the separator
17035 # otherwise default to the standard path separator (i.e. ":") - it is
17036 # assumed that no part of a normal pathname contains ";" but that should
17037 # okay in the real world where ";" in dirpaths is itself problematic.
17038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17043 esac
17044 # Ok, now we have the path, separated by spaces, we can step through it
17045 # and add multilib dir if necessary.
17046 lt_tmp_lt_search_path_spec=
17047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17048 for lt_sys_path in $lt_search_path_spec; do
17049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17051 else
17052 test -d "$lt_sys_path" && \
17053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17055 done
17056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17057 BEGIN {RS=" "; FS="/|\n";} {
17058 lt_foo="";
17059 lt_count=0;
17060 for (lt_i = NF; lt_i > 0; lt_i--) {
17061 if ($lt_i != "" && $lt_i != ".") {
17062 if ($lt_i == "..") {
17063 lt_count++;
17064 } else {
17065 if (lt_count == 0) {
17066 lt_foo="/" $lt_i lt_foo;
17067 } else {
17068 lt_count--;
17073 if (lt_foo != "") { lt_freq[lt_foo]++; }
17074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17076 # AWK program above erroneously prepends '/' to C:/dos/paths
17077 # for these hosts.
17078 case $host_os in
17079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17081 esac
17082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17083 else
17084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17086 library_names_spec=
17087 libname_spec='lib$name'
17088 soname_spec=
17089 shrext_cmds=".so"
17090 postinstall_cmds=
17091 postuninstall_cmds=
17092 finish_cmds=
17093 finish_eval=
17094 shlibpath_var=
17095 shlibpath_overrides_runpath=unknown
17096 version_type=none
17097 dynamic_linker="$host_os ld.so"
17098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17099 need_lib_prefix=unknown
17100 hardcode_into_libs=no
17102 # when you set need_version to no, make sure it does not cause -set_version
17103 # flags to be left without arguments
17104 need_version=unknown
17106 case $host_os in
17107 aix3*)
17108 version_type=linux
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17110 shlibpath_var=LIBPATH
17112 # AIX 3 has no versioning support, so we append a major version to the name.
17113 soname_spec='${libname}${release}${shared_ext}$major'
17116 aix[4-9]*)
17117 version_type=linux
17118 need_lib_prefix=no
17119 need_version=no
17120 hardcode_into_libs=yes
17121 if test "$host_cpu" = ia64; then
17122 # AIX 5 supports IA64
17123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 else
17126 # With GCC up to 2.95.x, collect2 would create an import file
17127 # for dependence libraries. The import file would start with
17128 # the line `#! .'. This would cause the generated library to
17129 # depend on `.', always an invalid library. This was fixed in
17130 # development snapshots of GCC prior to 3.0.
17131 case $host_os in
17132 aix4 | aix4.[01] | aix4.[01].*)
17133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17134 echo ' yes '
17135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17137 else
17138 can_build_shared=no
17141 esac
17142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17143 # soname into executable. Probably we can add versioning support to
17144 # collect2, so additional links can be useful in future.
17145 if test "$aix_use_runtimelinking" = yes; then
17146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17147 # instead of lib<name>.a to let people know that these are not
17148 # typical AIX shared libraries.
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 else
17151 # We preserve .a as extension for shared libraries through AIX4.2
17152 # and later when we are not doing run time linking.
17153 library_names_spec='${libname}${release}.a $libname.a'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17156 shlibpath_var=LIBPATH
17160 amigaos*)
17161 case $host_cpu in
17162 powerpc)
17163 # Since July 2007 AmigaOS4 officially supports .so libraries.
17164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 m68k)
17168 library_names_spec='$libname.ixlibrary $libname.a'
17169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17170 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'
17172 esac
17175 beos*)
17176 library_names_spec='${libname}${shared_ext}'
17177 dynamic_linker="$host_os ld.so"
17178 shlibpath_var=LIBRARY_PATH
17181 bsdi[45]*)
17182 version_type=linux
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17190 # the default ld.so.conf also contains /usr/contrib/lib and
17191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17192 # libtool to hard-code these into programs
17195 cygwin* | mingw* | pw32* | cegcc*)
17196 version_type=windows
17197 shrext_cmds=".dll"
17198 need_version=no
17199 need_lib_prefix=no
17201 case $GCC,$host_os in
17202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17203 library_names_spec='$libname.dll.a'
17204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17205 postinstall_cmds='base_file=`basename \${file}`~
17206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17207 dldir=$destdir/`dirname \$dlpath`~
17208 test -d \$dldir || mkdir -p \$dldir~
17209 $install_prog $dir/$dlname \$dldir/$dlname~
17210 chmod a+x \$dldir/$dlname~
17211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17215 dlpath=$dir/\$dldll~
17216 $RM \$dlpath'
17217 shlibpath_overrides_runpath=yes
17219 case $host_os in
17220 cygwin*)
17221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17226 mingw* | cegcc*)
17227 # MinGW DLLs use traditional 'lib' prefix
17228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17230 pw32*)
17231 # pw32 DLLs use 'pw' prefix rather than 'lib'
17232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17234 esac
17238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17240 esac
17241 dynamic_linker='Win32 ld.exe'
17242 # FIXME: first we should search . and the directory the executable is in
17243 shlibpath_var=PATH
17246 darwin* | rhapsody*)
17247 dynamic_linker="$host_os dyld"
17248 version_type=darwin
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17252 soname_spec='${libname}${release}${major}$shared_ext'
17253 shlibpath_overrides_runpath=yes
17254 shlibpath_var=DYLD_LIBRARY_PATH
17255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17261 dgux*)
17262 version_type=linux
17263 need_lib_prefix=no
17264 need_version=no
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 shlibpath_var=LD_LIBRARY_PATH
17270 freebsd* | dragonfly*)
17271 # DragonFly does not have aout. When/if they implement a new
17272 # versioning mechanism, adjust this.
17273 if test -x /usr/bin/objformat; then
17274 objformat=`/usr/bin/objformat`
17275 else
17276 case $host_os in
17277 freebsd[23].*) objformat=aout ;;
17278 *) objformat=elf ;;
17279 esac
17281 version_type=freebsd-$objformat
17282 case $version_type in
17283 freebsd-elf*)
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17285 need_version=no
17286 need_lib_prefix=no
17288 freebsd-*)
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17290 need_version=yes
17292 esac
17293 shlibpath_var=LD_LIBRARY_PATH
17294 case $host_os in
17295 freebsd2.*)
17296 shlibpath_overrides_runpath=yes
17298 freebsd3.[01]* | freebsdelf3.[01]*)
17299 shlibpath_overrides_runpath=yes
17300 hardcode_into_libs=yes
17302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17304 shlibpath_overrides_runpath=no
17305 hardcode_into_libs=yes
17307 *) # from 4.6 on, and DragonFly
17308 shlibpath_overrides_runpath=yes
17309 hardcode_into_libs=yes
17311 esac
17314 gnu*)
17315 version_type=linux
17316 need_lib_prefix=no
17317 need_version=no
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 hardcode_into_libs=yes
17324 haiku*)
17325 version_type=linux
17326 need_lib_prefix=no
17327 need_version=no
17328 dynamic_linker="$host_os runtime_loader"
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 shlibpath_var=LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17334 hardcode_into_libs=yes
17337 hpux9* | hpux10* | hpux11*)
17338 # Give a soname corresponding to the major version so that dld.sl refuses to
17339 # link against other versions.
17340 version_type=sunos
17341 need_lib_prefix=no
17342 need_version=no
17343 case $host_cpu in
17344 ia64*)
17345 shrext_cmds='.so'
17346 hardcode_into_libs=yes
17347 dynamic_linker="$host_os dld.so"
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 if test "X$HPUX_IA64_MODE" = X32; then
17353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17354 else
17355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17359 hppa*64*)
17360 shrext_cmds='.sl'
17361 hardcode_into_libs=yes
17362 dynamic_linker="$host_os dld.sl"
17363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17371 shrext_cmds='.sl'
17372 dynamic_linker="$host_os dld.sl"
17373 shlibpath_var=SHLIB_PATH
17374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17378 esac
17379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17380 postinstall_cmds='chmod 555 $lib'
17381 # or fails outright, so override atomically:
17382 install_override_mode=555
17385 interix[3-9]*)
17386 version_type=linux
17387 need_lib_prefix=no
17388 need_version=no
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17390 soname_spec='${libname}${release}${shared_ext}$major'
17391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=no
17394 hardcode_into_libs=yes
17397 irix5* | irix6* | nonstopux*)
17398 case $host_os in
17399 nonstopux*) version_type=nonstopux ;;
17401 if test "$lt_cv_prog_gnu_ld" = yes; then
17402 version_type=linux
17403 else
17404 version_type=irix
17405 fi ;;
17406 esac
17407 need_lib_prefix=no
17408 need_version=no
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17411 case $host_os in
17412 irix5* | nonstopux*)
17413 libsuff= shlibsuff=
17416 case $LD in # libtool.m4 will add one of these switches to LD
17417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17418 libsuff= shlibsuff= libmagic=32-bit;;
17419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17420 libsuff=32 shlibsuff=N32 libmagic=N32;;
17421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17423 *) libsuff= shlibsuff= libmagic=never-match;;
17424 esac
17426 esac
17427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17428 shlibpath_overrides_runpath=no
17429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17431 hardcode_into_libs=yes
17434 # No shared lib support for Linux oldld, aout, or coff.
17435 linux*oldld* | linux*aout* | linux*coff*)
17436 dynamic_linker=no
17439 # This must be Linux ELF.
17440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17441 version_type=linux
17442 need_lib_prefix=no
17443 need_version=no
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath=no
17450 # Some binutils ld are patched to set DT_RUNPATH
17451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 lt_cv_shlibpath_overrides_runpath=no
17455 save_LDFLAGS=$LDFLAGS
17456 save_libdir=$libdir
17457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17463 main ()
17467 return 0;
17469 _ACEOF
17470 if ac_fn_c_try_link "$LINENO"; then :
17471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17472 lt_cv_shlibpath_overrides_runpath=yes
17475 rm -f core conftest.err conftest.$ac_objext \
17476 conftest$ac_exeext conftest.$ac_ext
17477 LDFLAGS=$save_LDFLAGS
17478 libdir=$save_libdir
17482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17484 # This implies no fast_install, which is unacceptable.
17485 # Some rework will be needed to allow for fast_install
17486 # before this can be enabled.
17487 hardcode_into_libs=yes
17489 # Append ld.so.conf contents to the search path
17490 if test -f /etc/ld.so.conf; then
17491 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' ' '`
17492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17495 # We used to test for /lib/ld.so.1 and disable shared libraries on
17496 # powerpc, because MkLinux only supported shared libraries with the
17497 # GNU dynamic linker. Since this was broken with cross compilers,
17498 # most powerpc-linux boxes support dynamic linking these days and
17499 # people can always --disable-shared, the test was removed, and we
17500 # assume the GNU/Linux dynamic linker is in use.
17501 dynamic_linker='GNU/Linux ld.so'
17504 netbsd*)
17505 version_type=sunos
17506 need_lib_prefix=no
17507 need_version=no
17508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17511 dynamic_linker='NetBSD (a.out) ld.so'
17512 else
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 dynamic_linker='NetBSD ld.elf_so'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17519 hardcode_into_libs=yes
17522 newsos6)
17523 version_type=linux
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=yes
17529 *nto* | *qnx*)
17530 version_type=qnx
17531 need_lib_prefix=no
17532 need_version=no
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 shlibpath_overrides_runpath=no
17537 hardcode_into_libs=yes
17538 dynamic_linker='ldqnx.so'
17541 openbsd*)
17542 version_type=sunos
17543 sys_lib_dlsearch_path_spec="/usr/lib"
17544 need_lib_prefix=no
17545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17546 case $host_os in
17547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17548 *) need_version=no ;;
17549 esac
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17554 case $host_os in
17555 openbsd2.[89] | openbsd2.[89].*)
17556 shlibpath_overrides_runpath=no
17559 shlibpath_overrides_runpath=yes
17561 esac
17562 else
17563 shlibpath_overrides_runpath=yes
17567 os2*)
17568 libname_spec='$name'
17569 shrext_cmds=".dll"
17570 need_lib_prefix=no
17571 library_names_spec='$libname${shared_ext} $libname.a'
17572 dynamic_linker='OS/2 ld.exe'
17573 shlibpath_var=LIBPATH
17576 osf3* | osf4* | osf5*)
17577 version_type=osf
17578 need_lib_prefix=no
17579 need_version=no
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582 shlibpath_var=LD_LIBRARY_PATH
17583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17587 rdos*)
17588 dynamic_linker=no
17591 solaris*)
17592 version_type=linux
17593 need_lib_prefix=no
17594 need_version=no
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 shlibpath_var=LD_LIBRARY_PATH
17598 shlibpath_overrides_runpath=yes
17599 hardcode_into_libs=yes
17600 # ldd complains unless libraries are executable
17601 postinstall_cmds='chmod +x $lib'
17604 sunos4*)
17605 version_type=sunos
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=yes
17610 if test "$with_gnu_ld" = yes; then
17611 need_lib_prefix=no
17613 need_version=yes
17616 sysv4 | sysv4.3*)
17617 version_type=linux
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 case $host_vendor in
17622 sni)
17623 shlibpath_overrides_runpath=no
17624 need_lib_prefix=no
17625 runpath_var=LD_RUN_PATH
17627 siemens)
17628 need_lib_prefix=no
17630 motorola)
17631 need_lib_prefix=no
17632 need_version=no
17633 shlibpath_overrides_runpath=no
17634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17636 esac
17639 sysv4*MP*)
17640 if test -d /usr/nec ;then
17641 version_type=linux
17642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17643 soname_spec='$libname${shared_ext}.$major'
17644 shlibpath_var=LD_LIBRARY_PATH
17648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17649 version_type=freebsd-elf
17650 need_lib_prefix=no
17651 need_version=no
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=yes
17656 hardcode_into_libs=yes
17657 if test "$with_gnu_ld" = yes; then
17658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17659 else
17660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17661 case $host_os in
17662 sco3.2v5*)
17663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17665 esac
17667 sys_lib_dlsearch_path_spec='/usr/lib'
17670 tpf*)
17671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17672 version_type=linux
17673 need_lib_prefix=no
17674 need_version=no
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath=no
17678 hardcode_into_libs=yes
17681 uts4*)
17682 version_type=linux
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 shlibpath_var=LD_LIBRARY_PATH
17689 dynamic_linker=no
17691 esac
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17693 $as_echo "$dynamic_linker" >&6; }
17694 test "$dynamic_linker" = no && can_build_shared=no
17696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17697 if test "$GCC" = yes; then
17698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17800 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17801 hardcode_action=
17802 if test -n "$hardcode_libdir_flag_spec" ||
17803 test -n "$runpath_var" ||
17804 test "X$hardcode_automatic" = "Xyes" ; then
17806 # We can hardcode non-existent directories.
17807 if test "$hardcode_direct" != no &&
17808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17809 # have to relink, otherwise we might link with an installed library
17810 # when we should be linking with a yet-to-be-installed one
17811 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17812 test "$hardcode_minus_L" != no; then
17813 # Linking always hardcodes the temporary library directory.
17814 hardcode_action=relink
17815 else
17816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17817 hardcode_action=immediate
17819 else
17820 # We cannot hardcode anything, or else we can only hardcode existing
17821 # directories.
17822 hardcode_action=unsupported
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17825 $as_echo "$hardcode_action" >&6; }
17827 if test "$hardcode_action" = relink ||
17828 test "$inherit_rpath" = yes; then
17829 # Fast installation is not supported
17830 enable_fast_install=no
17831 elif test "$shlibpath_overrides_runpath" = yes ||
17832 test "$enable_shared" = no; then
17833 # Fast installation is not necessary
17834 enable_fast_install=needless
17842 if test "x$enable_dlopen" != xyes; then
17843 enable_dlopen=unknown
17844 enable_dlopen_self=unknown
17845 enable_dlopen_self_static=unknown
17846 else
17847 lt_cv_dlopen=no
17848 lt_cv_dlopen_libs=
17850 case $host_os in
17851 beos*)
17852 lt_cv_dlopen="load_add_on"
17853 lt_cv_dlopen_libs=
17854 lt_cv_dlopen_self=yes
17857 mingw* | pw32* | cegcc*)
17858 lt_cv_dlopen="LoadLibrary"
17859 lt_cv_dlopen_libs=
17862 cygwin*)
17863 lt_cv_dlopen="dlopen"
17864 lt_cv_dlopen_libs=
17867 darwin*)
17868 # if libdl is installed we need to link against it
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17872 $as_echo_n "(cached) " >&6
17873 else
17874 ac_check_lib_save_LIBS=$LIBS
17875 LIBS="-ldl $LIBS"
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17879 /* Override any GCC internal prototype to avoid an error.
17880 Use char because int might match the return type of a GCC
17881 builtin and then its argument prototype would still apply. */
17882 #ifdef __cplusplus
17883 extern "C"
17884 #endif
17885 char dlopen ();
17887 main ()
17889 return dlopen ();
17891 return 0;
17893 _ACEOF
17894 if ac_fn_c_try_link "$LINENO"; then :
17895 ac_cv_lib_dl_dlopen=yes
17896 else
17897 ac_cv_lib_dl_dlopen=no
17899 rm -f core conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17907 else
17909 lt_cv_dlopen="dyld"
17910 lt_cv_dlopen_libs=
17911 lt_cv_dlopen_self=yes
17918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17919 if test "x$ac_cv_func_shl_load" = x""yes; then :
17920 lt_cv_dlopen="shl_load"
17921 else
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17923 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-ldld $LIBS"
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17935 #ifdef __cplusplus
17936 extern "C"
17937 #endif
17938 char shl_load ();
17940 main ()
17942 return shl_load ();
17944 return 0;
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 ac_cv_lib_dld_shl_load=yes
17949 else
17950 ac_cv_lib_dld_shl_load=no
17952 rm -f core conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954 LIBS=$ac_check_lib_save_LIBS
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17957 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17958 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17960 else
17961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17962 if test "x$ac_cv_func_dlopen" = x""yes; then :
17963 lt_cv_dlopen="dlopen"
17964 else
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970 ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-ldl $LIBS"
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 char dlopen ();
17983 main ()
17985 return dlopen ();
17987 return 0;
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17991 ac_cv_lib_dl_dlopen=yes
17992 else
17993 ac_cv_lib_dl_dlopen=no
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 LIBS=$ac_check_lib_save_LIBS
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18001 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18003 else
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18006 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18008 else
18009 ac_check_lib_save_LIBS=$LIBS
18010 LIBS="-lsvld $LIBS"
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 char dlopen ();
18022 main ()
18024 return dlopen ();
18026 return 0;
18028 _ACEOF
18029 if ac_fn_c_try_link "$LINENO"; then :
18030 ac_cv_lib_svld_dlopen=yes
18031 else
18032 ac_cv_lib_svld_dlopen=no
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 LIBS=$ac_check_lib_save_LIBS
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18039 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18040 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18042 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18044 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18045 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18046 $as_echo_n "(cached) " >&6
18047 else
18048 ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-ldld $LIBS"
18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h. */
18053 /* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18056 #ifdef __cplusplus
18057 extern "C"
18058 #endif
18059 char dld_link ();
18061 main ()
18063 return dld_link ();
18065 return 0;
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 ac_cv_lib_dld_dld_link=yes
18070 else
18071 ac_cv_lib_dld_dld_link=no
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075 LIBS=$ac_check_lib_save_LIBS
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18079 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18099 esac
18101 if test "x$lt_cv_dlopen" != xno; then
18102 enable_dlopen=yes
18103 else
18104 enable_dlopen=no
18107 case $lt_cv_dlopen in
18108 dlopen)
18109 save_CPPFLAGS="$CPPFLAGS"
18110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18112 save_LDFLAGS="$LDFLAGS"
18113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18115 save_LIBS="$LIBS"
18116 LIBS="$lt_cv_dlopen_libs $LIBS"
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18120 if test "${lt_cv_dlopen_self+set}" = set; then :
18121 $as_echo_n "(cached) " >&6
18122 else
18123 if test "$cross_compiling" = yes; then :
18124 lt_cv_dlopen_self=cross
18125 else
18126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18127 lt_status=$lt_dlunknown
18128 cat > conftest.$ac_ext <<_LT_EOF
18129 #line 18129 "configure"
18130 #include "confdefs.h"
18132 #if HAVE_DLFCN_H
18133 #include <dlfcn.h>
18134 #endif
18136 #include <stdio.h>
18138 #ifdef RTLD_GLOBAL
18139 # define LT_DLGLOBAL RTLD_GLOBAL
18140 #else
18141 # ifdef DL_GLOBAL
18142 # define LT_DLGLOBAL DL_GLOBAL
18143 # else
18144 # define LT_DLGLOBAL 0
18145 # endif
18146 #endif
18148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18149 find out it does not work in some platform. */
18150 #ifndef LT_DLLAZY_OR_NOW
18151 # ifdef RTLD_LAZY
18152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18153 # else
18154 # ifdef DL_LAZY
18155 # define LT_DLLAZY_OR_NOW DL_LAZY
18156 # else
18157 # ifdef RTLD_NOW
18158 # define LT_DLLAZY_OR_NOW RTLD_NOW
18159 # else
18160 # ifdef DL_NOW
18161 # define LT_DLLAZY_OR_NOW DL_NOW
18162 # else
18163 # define LT_DLLAZY_OR_NOW 0
18164 # endif
18165 # endif
18166 # endif
18167 # endif
18168 #endif
18170 /* When -fvisbility=hidden is used, assume the code has been annotated
18171 correspondingly for the symbols needed. */
18172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18173 void fnord () __attribute__((visibility("default")));
18174 #endif
18176 void fnord () { int i=42; }
18177 int main ()
18179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18180 int status = $lt_dlunknown;
18182 if (self)
18184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18185 else
18187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18188 else puts (dlerror ());
18190 /* dlclose (self); */
18192 else
18193 puts (dlerror ());
18195 return status;
18197 _LT_EOF
18198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18199 (eval $ac_link) 2>&5
18200 ac_status=$?
18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18203 (./conftest; exit; ) >&5 2>/dev/null
18204 lt_status=$?
18205 case x$lt_status in
18206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18209 esac
18210 else :
18211 # compilation failed
18212 lt_cv_dlopen_self=no
18215 rm -fr conftest*
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18220 $as_echo "$lt_cv_dlopen_self" >&6; }
18222 if test "x$lt_cv_dlopen_self" = xyes; then
18223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18226 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 if test "$cross_compiling" = yes; then :
18230 lt_cv_dlopen_self_static=cross
18231 else
18232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18233 lt_status=$lt_dlunknown
18234 cat > conftest.$ac_ext <<_LT_EOF
18235 #line 18235 "configure"
18236 #include "confdefs.h"
18238 #if HAVE_DLFCN_H
18239 #include <dlfcn.h>
18240 #endif
18242 #include <stdio.h>
18244 #ifdef RTLD_GLOBAL
18245 # define LT_DLGLOBAL RTLD_GLOBAL
18246 #else
18247 # ifdef DL_GLOBAL
18248 # define LT_DLGLOBAL DL_GLOBAL
18249 # else
18250 # define LT_DLGLOBAL 0
18251 # endif
18252 #endif
18254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18255 find out it does not work in some platform. */
18256 #ifndef LT_DLLAZY_OR_NOW
18257 # ifdef RTLD_LAZY
18258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18259 # else
18260 # ifdef DL_LAZY
18261 # define LT_DLLAZY_OR_NOW DL_LAZY
18262 # else
18263 # ifdef RTLD_NOW
18264 # define LT_DLLAZY_OR_NOW RTLD_NOW
18265 # else
18266 # ifdef DL_NOW
18267 # define LT_DLLAZY_OR_NOW DL_NOW
18268 # else
18269 # define LT_DLLAZY_OR_NOW 0
18270 # endif
18271 # endif
18272 # endif
18273 # endif
18274 #endif
18276 /* When -fvisbility=hidden is used, assume the code has been annotated
18277 correspondingly for the symbols needed. */
18278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18279 void fnord () __attribute__((visibility("default")));
18280 #endif
18282 void fnord () { int i=42; }
18283 int main ()
18285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18286 int status = $lt_dlunknown;
18288 if (self)
18290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18291 else
18293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18294 else puts (dlerror ());
18296 /* dlclose (self); */
18298 else
18299 puts (dlerror ());
18301 return status;
18303 _LT_EOF
18304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18305 (eval $ac_link) 2>&5
18306 ac_status=$?
18307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18309 (./conftest; exit; ) >&5 2>/dev/null
18310 lt_status=$?
18311 case x$lt_status in
18312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18315 esac
18316 else :
18317 # compilation failed
18318 lt_cv_dlopen_self_static=no
18321 rm -fr conftest*
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18329 CPPFLAGS="$save_CPPFLAGS"
18330 LDFLAGS="$save_LDFLAGS"
18331 LIBS="$save_LIBS"
18333 esac
18335 case $lt_cv_dlopen_self in
18336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18337 *) enable_dlopen_self=unknown ;;
18338 esac
18340 case $lt_cv_dlopen_self_static in
18341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18342 *) enable_dlopen_self_static=unknown ;;
18343 esac
18362 striplib=
18363 old_striplib=
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18365 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18366 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18370 $as_echo "yes" >&6; }
18371 else
18372 # FIXME - insert some real tests, host_os isn't really good enough
18373 case $host_os in
18374 darwin*)
18375 if test -n "$STRIP" ; then
18376 striplib="$STRIP -x"
18377 old_striplib="$STRIP -S"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18379 $as_echo "yes" >&6; }
18380 else
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18389 esac
18403 # Report which library types will actually be built
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18405 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18407 $as_echo "$can_build_shared" >&6; }
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18410 $as_echo_n "checking whether to build shared libraries... " >&6; }
18411 test "$can_build_shared" = "no" && enable_shared=no
18413 # On AIX, shared libraries and static libraries use the same namespace, and
18414 # are all built from PIC.
18415 case $host_os in
18416 aix3*)
18417 test "$enable_shared" = yes && enable_static=no
18418 if test -n "$RANLIB"; then
18419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18420 postinstall_cmds='$RANLIB $lib'
18424 aix[4-9]*)
18425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18426 test "$enable_shared" = yes && enable_static=no
18429 esac
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18431 $as_echo "$enable_shared" >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18434 $as_echo_n "checking whether to build static libraries... " >&6; }
18435 # Make sure either enable_shared or enable_static is yes.
18436 test "$enable_shared" = yes || enable_static=yes
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18438 $as_echo "$enable_static" >&6; }
18444 ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18450 CC="$lt_save_CC"
18452 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18453 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18454 (test "X$CXX" != "Xg++"))) ; then
18455 ac_ext=cpp
18456 ac_cpp='$CXXCPP $CPPFLAGS'
18457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18461 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18462 if test -z "$CXXCPP"; then
18463 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18464 $as_echo_n "(cached) " >&6
18465 else
18466 # Double quotes because CXXCPP needs to be expanded
18467 for CXXCPP in "$CXX -E" "/lib/cpp"
18469 ac_preproc_ok=false
18470 for ac_cxx_preproc_warn_flag in '' yes
18472 # Use a header file that comes with gcc, so configuring glibc
18473 # with a fresh cross-compiler works.
18474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 # <limits.h> exists even on freestanding compilers.
18476 # On the NeXT, cc -E runs the code through the compiler's parser,
18477 # not just through cpp. "Syntax error" is here to catch this case.
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480 #ifdef __STDC__
18481 # include <limits.h>
18482 #else
18483 # include <assert.h>
18484 #endif
18485 Syntax error
18486 _ACEOF
18487 if ac_fn_cxx_try_cpp "$LINENO"; then :
18489 else
18490 # Broken: fails on valid input.
18491 continue
18493 rm -f conftest.err conftest.$ac_ext
18495 # OK, works on sane cases. Now check whether nonexistent headers
18496 # can be detected and how.
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499 #include <ac_nonexistent.h>
18500 _ACEOF
18501 if ac_fn_cxx_try_cpp "$LINENO"; then :
18502 # Broken: success on invalid input.
18503 continue
18504 else
18505 # Passes both tests.
18506 ac_preproc_ok=:
18507 break
18509 rm -f conftest.err conftest.$ac_ext
18511 done
18512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18513 rm -f conftest.err conftest.$ac_ext
18514 if $ac_preproc_ok; then :
18515 break
18518 done
18519 ac_cv_prog_CXXCPP=$CXXCPP
18522 CXXCPP=$ac_cv_prog_CXXCPP
18523 else
18524 ac_cv_prog_CXXCPP=$CXXCPP
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18527 $as_echo "$CXXCPP" >&6; }
18528 ac_preproc_ok=false
18529 for ac_cxx_preproc_warn_flag in '' yes
18531 # Use a header file that comes with gcc, so configuring glibc
18532 # with a fresh cross-compiler works.
18533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534 # <limits.h> exists even on freestanding compilers.
18535 # On the NeXT, cc -E runs the code through the compiler's parser,
18536 # not just through cpp. "Syntax error" is here to catch this case.
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 #ifdef __STDC__
18540 # include <limits.h>
18541 #else
18542 # include <assert.h>
18543 #endif
18544 Syntax error
18545 _ACEOF
18546 if ac_fn_cxx_try_cpp "$LINENO"; then :
18548 else
18549 # Broken: fails on valid input.
18550 continue
18552 rm -f conftest.err conftest.$ac_ext
18554 # OK, works on sane cases. Now check whether nonexistent headers
18555 # can be detected and how.
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18558 #include <ac_nonexistent.h>
18559 _ACEOF
18560 if ac_fn_cxx_try_cpp "$LINENO"; then :
18561 # Broken: success on invalid input.
18562 continue
18563 else
18564 # Passes both tests.
18565 ac_preproc_ok=:
18566 break
18568 rm -f conftest.err conftest.$ac_ext
18570 done
18571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18572 rm -f conftest.err conftest.$ac_ext
18573 if $ac_preproc_ok; then :
18575 else
18576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18578 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18579 See \`config.log' for more details." "$LINENO" 5; }
18582 ac_ext=c
18583 ac_cpp='$CPP $CPPFLAGS'
18584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588 else
18589 _lt_caught_CXX_error=yes
18592 ac_ext=cpp
18593 ac_cpp='$CXXCPP $CPPFLAGS'
18594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18598 archive_cmds_need_lc_CXX=no
18599 allow_undefined_flag_CXX=
18600 always_export_symbols_CXX=no
18601 archive_expsym_cmds_CXX=
18602 compiler_needs_object_CXX=no
18603 export_dynamic_flag_spec_CXX=
18604 hardcode_direct_CXX=no
18605 hardcode_direct_absolute_CXX=no
18606 hardcode_libdir_flag_spec_CXX=
18607 hardcode_libdir_flag_spec_ld_CXX=
18608 hardcode_libdir_separator_CXX=
18609 hardcode_minus_L_CXX=no
18610 hardcode_shlibpath_var_CXX=unsupported
18611 hardcode_automatic_CXX=no
18612 inherit_rpath_CXX=no
18613 module_cmds_CXX=
18614 module_expsym_cmds_CXX=
18615 link_all_deplibs_CXX=unknown
18616 old_archive_cmds_CXX=$old_archive_cmds
18617 reload_flag_CXX=$reload_flag
18618 reload_cmds_CXX=$reload_cmds
18619 no_undefined_flag_CXX=
18620 whole_archive_flag_spec_CXX=
18621 enable_shared_with_static_runtimes_CXX=no
18623 # Source file extension for C++ test sources.
18624 ac_ext=cpp
18626 # Object file extension for compiled C++ test sources.
18627 objext=o
18628 objext_CXX=$objext
18630 # No sense in running all these tests if we already determined that
18631 # the CXX compiler isn't working. Some variables (like enable_shared)
18632 # are currently assumed to apply to all compilers on this platform,
18633 # and will be corrupted by setting them based on a non-working compiler.
18634 if test "$_lt_caught_CXX_error" != yes; then
18635 # Code to be used in simple compile tests
18636 lt_simple_compile_test_code="int some_variable = 0;"
18638 # Code to be used in simple link tests
18639 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18648 # If no C compiler was specified, use CC.
18649 LTCC=${LTCC-"$CC"}
18651 # If no C compiler flags were specified, use CFLAGS.
18652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18654 # Allow CC to be a program name with arguments.
18655 compiler=$CC
18658 # save warnings/boilerplate of simple test code
18659 ac_outfile=conftest.$ac_objext
18660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18662 _lt_compiler_boilerplate=`cat conftest.err`
18663 $RM conftest*
18665 ac_outfile=conftest.$ac_objext
18666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18668 _lt_linker_boilerplate=`cat conftest.err`
18669 $RM -r conftest*
18672 # Allow CC to be a program name with arguments.
18673 lt_save_CC=$CC
18674 lt_save_LD=$LD
18675 lt_save_GCC=$GCC
18676 GCC=$GXX
18677 lt_save_with_gnu_ld=$with_gnu_ld
18678 lt_save_path_LD=$lt_cv_path_LD
18679 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18680 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18681 else
18682 $as_unset lt_cv_prog_gnu_ld
18684 if test -n "${lt_cv_path_LDCXX+set}"; then
18685 lt_cv_path_LD=$lt_cv_path_LDCXX
18686 else
18687 $as_unset lt_cv_path_LD
18689 test -z "${LDCXX+set}" || LD=$LDCXX
18690 CC=${CXX-"c++"}
18691 compiler=$CC
18692 compiler_CXX=$CC
18693 for cc_temp in $compiler""; do
18694 case $cc_temp in
18695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18697 \-*) ;;
18698 *) break;;
18699 esac
18700 done
18701 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18704 if test -n "$compiler"; then
18705 # We don't want -fno-exception when compiling C++ code, so set the
18706 # no_builtin_flag separately
18707 if test "$GXX" = yes; then
18708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18709 else
18710 lt_prog_compiler_no_builtin_flag_CXX=
18713 if test "$GXX" = yes; then
18714 # Set up default GNU C++ configuration
18718 # Check whether --with-gnu-ld was given.
18719 if test "${with_gnu_ld+set}" = set; then :
18720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18721 else
18722 with_gnu_ld=no
18725 ac_prog=ld
18726 if test "$GCC" = yes; then
18727 # Check if gcc -print-prog-name=ld gives a path.
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18729 $as_echo_n "checking for ld used by $CC... " >&6; }
18730 case $host in
18731 *-*-mingw*)
18732 # gcc leaves a trailing carriage return which upsets mingw
18733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18736 esac
18737 case $ac_prog in
18738 # Accept absolute paths.
18739 [\\/]* | ?:[\\/]*)
18740 re_direlt='/[^/][^/]*/\.\./'
18741 # Canonicalize the pathname of ld
18742 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18743 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18744 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18745 done
18746 test -z "$LD" && LD="$ac_prog"
18749 # If it fails, then pretend we aren't using GCC.
18750 ac_prog=ld
18753 # If it is relative, then search for the first ld in PATH.
18754 with_gnu_ld=unknown
18756 esac
18757 elif test "$with_gnu_ld" = yes; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18759 $as_echo_n "checking for GNU ld... " >&6; }
18760 else
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18762 $as_echo_n "checking for non-GNU ld... " >&6; }
18764 if test "${lt_cv_path_LD+set}" = set; then :
18765 $as_echo_n "(cached) " >&6
18766 else
18767 if test -z "$LD"; then
18768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18769 for ac_dir in $PATH; do
18770 IFS="$lt_save_ifs"
18771 test -z "$ac_dir" && ac_dir=.
18772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18773 lt_cv_path_LD="$ac_dir/$ac_prog"
18774 # Check to see if the program is GNU ld. I'd rather use --version,
18775 # but apparently some variants of GNU ld only accept -v.
18776 # Break only if it was the GNU/non-GNU ld that we prefer.
18777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18778 *GNU* | *'with BFD'*)
18779 test "$with_gnu_ld" != no && break
18782 test "$with_gnu_ld" != yes && break
18784 esac
18786 done
18787 IFS="$lt_save_ifs"
18788 else
18789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18793 LD="$lt_cv_path_LD"
18794 if test -n "$LD"; then
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18796 $as_echo "$LD" >&6; }
18797 else
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18799 $as_echo "no" >&6; }
18801 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18804 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18805 $as_echo_n "(cached) " >&6
18806 else
18807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18808 case `$LD -v 2>&1 </dev/null` in
18809 *GNU* | *'with BFD'*)
18810 lt_cv_prog_gnu_ld=yes
18813 lt_cv_prog_gnu_ld=no
18815 esac
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18819 with_gnu_ld=$lt_cv_prog_gnu_ld
18827 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18828 # archiving commands below assume that GNU ld is being used.
18829 if test "$with_gnu_ld" = yes; then
18830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18831 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'
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18836 # If archive_cmds runs LD, not CC, wlarc should be empty
18837 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18838 # investigate it a little bit more. (MM)
18839 wlarc='${wl}'
18841 # ancient GNU ld didn't support --whole-archive et. al.
18842 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18843 $GREP 'no-whole-archive' > /dev/null; then
18844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18845 else
18846 whole_archive_flag_spec_CXX=
18848 else
18849 with_gnu_ld=no
18850 wlarc=
18852 # A generic and very simple default shared library creation
18853 # command for GNU C++ for the case where it uses the native
18854 # linker, instead of GNU ld. If possible, this setting should
18855 # overridden to take advantage of the native linker features on
18856 # the platform it is being used on.
18857 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18865 else
18866 GXX=no
18867 with_gnu_ld=no
18868 wlarc=
18871 # PORTME: fill in a description of your system's C++ link characteristics
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18873 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18874 ld_shlibs_CXX=yes
18875 case $host_os in
18876 aix3*)
18877 # FIXME: insert proper C++ library support
18878 ld_shlibs_CXX=no
18880 aix[4-9]*)
18881 if test "$host_cpu" = ia64; then
18882 # On IA64, the linker does run time linking by default, so we don't
18883 # have to do anything special.
18884 aix_use_runtimelinking=no
18885 exp_sym_flag='-Bexport'
18886 no_entry_flag=""
18887 else
18888 aix_use_runtimelinking=no
18890 # Test if we are trying to use run time linking or normal
18891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18892 # need to do runtime linking.
18893 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18894 for ld_flag in $LDFLAGS; do
18895 case $ld_flag in
18896 *-brtl*)
18897 aix_use_runtimelinking=yes
18898 break
18900 esac
18901 done
18903 esac
18905 exp_sym_flag='-bexport'
18906 no_entry_flag='-bnoentry'
18909 # When large executables or shared objects are built, AIX ld can
18910 # have problems creating the table of contents. If linking a library
18911 # or program results in "error TOC overflow" add -mminimal-toc to
18912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18915 archive_cmds_CXX=''
18916 hardcode_direct_CXX=yes
18917 hardcode_direct_absolute_CXX=yes
18918 hardcode_libdir_separator_CXX=':'
18919 link_all_deplibs_CXX=yes
18920 file_list_spec_CXX='${wl}-f,'
18922 if test "$GXX" = yes; then
18923 case $host_os in aix4.[012]|aix4.[012].*)
18924 # We only want to do this on AIX 4.2 and lower, the check
18925 # below for broken collect2 doesn't work under 4.3+
18926 collect2name=`${CC} -print-prog-name=collect2`
18927 if test -f "$collect2name" &&
18928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18929 then
18930 # We have reworked collect2
18932 else
18933 # We have old collect2
18934 hardcode_direct_CXX=unsupported
18935 # It fails to find uninstalled libraries when the uninstalled
18936 # path is not listed in the libpath. Setting hardcode_minus_L
18937 # to unsupported forces relinking
18938 hardcode_minus_L_CXX=yes
18939 hardcode_libdir_flag_spec_CXX='-L$libdir'
18940 hardcode_libdir_separator_CXX=
18942 esac
18943 shared_flag='-shared'
18944 if test "$aix_use_runtimelinking" = yes; then
18945 shared_flag="$shared_flag "'${wl}-G'
18947 else
18948 # not using gcc
18949 if test "$host_cpu" = ia64; then
18950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18951 # chokes on -Wl,-G. The following line is correct:
18952 shared_flag='-G'
18953 else
18954 if test "$aix_use_runtimelinking" = yes; then
18955 shared_flag='${wl}-G'
18956 else
18957 shared_flag='${wl}-bM:SRE'
18962 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18963 # It seems that -bexpall does not export symbols beginning with
18964 # underscore (_), so it is better to generate a list of symbols to
18965 # export.
18966 always_export_symbols_CXX=yes
18967 if test "$aix_use_runtimelinking" = yes; then
18968 # Warning - without using the other runtime loading flags (-brtl),
18969 # -berok will link without error, but may produce a broken library.
18970 allow_undefined_flag_CXX='-berok'
18971 # Determine the default libpath from the value encoded in an empty
18972 # executable.
18973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974 /* end confdefs.h. */
18977 main ()
18981 return 0;
18983 _ACEOF
18984 if ac_fn_cxx_try_link "$LINENO"; then :
18986 lt_aix_libpath_sed='
18987 /Import File Strings/,/^$/ {
18988 /^0/ {
18989 s/^0 *\(.*\)$/\1/
18993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18994 # Check for a 64-bit object if we didn't find anything.
18995 if test -z "$aix_libpath"; then
18996 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18999 rm -f core conftest.err conftest.$ac_objext \
19000 conftest$ac_exeext conftest.$ac_ext
19001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19003 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19005 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"
19006 else
19007 if test "$host_cpu" = ia64; then
19008 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19009 allow_undefined_flag_CXX="-z nodefs"
19010 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"
19011 else
19012 # Determine the default libpath from the value encoded in an
19013 # empty executable.
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19018 main ()
19022 return 0;
19024 _ACEOF
19025 if ac_fn_cxx_try_link "$LINENO"; then :
19027 lt_aix_libpath_sed='
19028 /Import File Strings/,/^$/ {
19029 /^0/ {
19030 s/^0 *\(.*\)$/\1/
19034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19035 # Check for a 64-bit object if we didn't find anything.
19036 if test -z "$aix_libpath"; then
19037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19044 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19045 # Warning - without using the other run time loading flags,
19046 # -berok will link without error, but may produce a broken library.
19047 no_undefined_flag_CXX=' ${wl}-bernotok'
19048 allow_undefined_flag_CXX=' ${wl}-berok'
19049 if test "$with_gnu_ld" = yes; then
19050 # We only use this code for GNU lds that support --whole-archive.
19051 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19052 else
19053 # Exported symbols can be pulled into shared objects from archives
19054 whole_archive_flag_spec_CXX='$convenience'
19056 archive_cmds_need_lc_CXX=yes
19057 # This is similar to how AIX traditionally builds its shared
19058 # libraries.
19059 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'
19064 beos*)
19065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19066 allow_undefined_flag_CXX=unsupported
19067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19068 # support --undefined. This deserves some investigation. FIXME
19069 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 else
19071 ld_shlibs_CXX=no
19075 chorus*)
19076 case $cc_basename in
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19081 esac
19084 cygwin* | mingw* | pw32* | cegcc*)
19085 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19086 # as there is no search path for DLLs.
19087 hardcode_libdir_flag_spec_CXX='-L$libdir'
19088 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19089 allow_undefined_flag_CXX=unsupported
19090 always_export_symbols_CXX=no
19091 enable_shared_with_static_runtimes_CXX=yes
19093 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19094 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'
19095 # If the export-symbols file already is a .def file (1st line
19096 # is EXPORTS), use it as is; otherwise, prepend...
19097 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19098 cp $export_symbols $output_objdir/$soname.def;
19099 else
19100 echo EXPORTS > $output_objdir/$soname.def;
19101 cat $export_symbols >> $output_objdir/$soname.def;
19103 $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'
19104 else
19105 ld_shlibs_CXX=no
19108 darwin* | rhapsody*)
19111 archive_cmds_need_lc_CXX=no
19112 hardcode_direct_CXX=no
19113 hardcode_automatic_CXX=yes
19114 hardcode_shlibpath_var_CXX=unsupported
19115 if test "$lt_cv_ld_force_load" = "yes"; then
19116 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\"`'
19117 else
19118 whole_archive_flag_spec_CXX=''
19120 link_all_deplibs_CXX=yes
19121 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19122 case $cc_basename in
19123 ifort*) _lt_dar_can_shared=yes ;;
19124 *) _lt_dar_can_shared=$GCC ;;
19125 esac
19126 if test "$_lt_dar_can_shared" = "yes"; then
19127 output_verbose_link_cmd=func_echo_all
19128 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}"
19129 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19130 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}"
19131 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}"
19132 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19133 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}"
19134 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}"
19137 else
19138 ld_shlibs_CXX=no
19143 dgux*)
19144 case $cc_basename in
19145 ec++*)
19146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19149 ghcx*)
19150 # Green Hills C++ Compiler
19151 # FIXME: insert proper C++ library support
19152 ld_shlibs_CXX=no
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19158 esac
19161 freebsd2.*)
19162 # C++ shared libraries reported to be fairly broken before
19163 # switch to ELF
19164 ld_shlibs_CXX=no
19167 freebsd-elf*)
19168 archive_cmds_need_lc_CXX=no
19171 freebsd* | dragonfly*)
19172 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19173 # conventions
19174 ld_shlibs_CXX=yes
19177 gnu*)
19180 haiku*)
19181 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19182 link_all_deplibs_CXX=yes
19185 hpux9*)
19186 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19187 hardcode_libdir_separator_CXX=:
19188 export_dynamic_flag_spec_CXX='${wl}-E'
19189 hardcode_direct_CXX=yes
19190 hardcode_minus_L_CXX=yes # Not in the search PATH,
19191 # but as the default
19192 # location of the library.
19194 case $cc_basename in
19195 CC*)
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19199 aCC*)
19200 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'
19201 # Commands to make compiler produce verbose output that lists
19202 # what "hidden" libraries, object files and flags are used when
19203 # linking a shared library.
19205 # There doesn't appear to be a way to prevent this compiler from
19206 # explicitly linking system object files so we need to strip them
19207 # from the output so that they don't get included in the library
19208 # dependencies.
19209 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"'
19212 if test "$GXX" = yes; then
19213 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'
19214 else
19215 # FIXME: insert proper C++ library support
19216 ld_shlibs_CXX=no
19219 esac
19222 hpux10*|hpux11*)
19223 if test $with_gnu_ld = no; then
19224 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19225 hardcode_libdir_separator_CXX=:
19227 case $host_cpu in
19228 hppa*64*|ia64*)
19231 export_dynamic_flag_spec_CXX='${wl}-E'
19233 esac
19235 case $host_cpu in
19236 hppa*64*|ia64*)
19237 hardcode_direct_CXX=no
19238 hardcode_shlibpath_var_CXX=no
19241 hardcode_direct_CXX=yes
19242 hardcode_direct_absolute_CXX=yes
19243 hardcode_minus_L_CXX=yes # Not in the search PATH,
19244 # but as the default
19245 # location of the library.
19247 esac
19249 case $cc_basename in
19250 CC*)
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19254 aCC*)
19255 case $host_cpu in
19256 hppa*64*)
19257 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19259 ia64*)
19260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19263 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19265 esac
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19270 # There doesn't appear to be a way to prevent this compiler from
19271 # explicitly linking system object files so we need to strip them
19272 # from the output so that they don't get included in the library
19273 # dependencies.
19274 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"'
19277 if test "$GXX" = yes; then
19278 if test $with_gnu_ld = no; then
19279 case $host_cpu in
19280 hppa*64*)
19281 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19283 ia64*)
19284 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19287 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'
19289 esac
19291 else
19292 # FIXME: insert proper C++ library support
19293 ld_shlibs_CXX=no
19296 esac
19299 interix[3-9]*)
19300 hardcode_direct_CXX=no
19301 hardcode_shlibpath_var_CXX=no
19302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19303 export_dynamic_flag_spec_CXX='${wl}-E'
19304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19305 # Instead, shared libraries are loaded at an image base (0x10000000 by
19306 # default) and relocated if they conflict, which is a slow very memory
19307 # consuming and fragmenting process. To avoid this, we pick a random,
19308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19310 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'
19311 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'
19313 irix5* | irix6*)
19314 case $cc_basename in
19315 CC*)
19316 # SGI C++
19317 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'
19319 # Archives containing C++ object files must be created using
19320 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19321 # necessary to make sure instantiated templates are included
19322 # in the archive.
19323 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19326 if test "$GXX" = yes; then
19327 if test "$with_gnu_ld" = no; then
19328 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'
19329 else
19330 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'
19333 link_all_deplibs_CXX=yes
19335 esac
19336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19337 hardcode_libdir_separator_CXX=:
19338 inherit_rpath_CXX=yes
19341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19342 case $cc_basename in
19343 KCC*)
19344 # Kuck and Associates, Inc. (KAI) C++ Compiler
19346 # KCC will only create a shared library if the output file
19347 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19348 # to its proper name (with version) after linking.
19349 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'
19350 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'
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19358 # dependencies.
19359 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"'
19361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19362 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19364 # Archives containing C++ object files must be created using
19365 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19366 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19368 icpc* | ecpc* )
19369 # Intel C++
19370 with_gnu_ld=yes
19371 # version 8.0 and above of icpc choke on multiply defined symbols
19372 # if we add $predep_objects and $postdep_objects, however 7.1 and
19373 # earlier do not add the objects themselves.
19374 case `$CC -V 2>&1` in
19375 *"Version 7."*)
19376 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19377 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'
19379 *) # Version 8.0 or newer
19380 tmp_idyn=
19381 case $host_cpu in
19382 ia64*) tmp_idyn=' -i_dynamic';;
19383 esac
19384 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19385 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'
19387 esac
19388 archive_cmds_need_lc_CXX=no
19389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19393 pgCC* | pgcpp*)
19394 # Portland Group C++ compiler
19395 case `$CC -V` in
19396 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19397 prelink_cmds_CXX='tpldir=Template.dir~
19398 rm -rf $tpldir~
19399 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19400 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19401 old_archive_cmds_CXX='tpldir=Template.dir~
19402 rm -rf $tpldir~
19403 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19404 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19405 $RANLIB $oldlib'
19406 archive_cmds_CXX='tpldir=Template.dir~
19407 rm -rf $tpldir~
19408 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19409 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19410 archive_expsym_cmds_CXX='tpldir=Template.dir~
19411 rm -rf $tpldir~
19412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19413 $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'
19415 *) # Version 6 and above use weak symbols
19416 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19417 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'
19419 esac
19421 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19423 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'
19425 cxx*)
19426 # Compaq C++
19427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428 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'
19430 runpath_var=LD_RUN_PATH
19431 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19432 hardcode_libdir_separator_CXX=:
19434 # Commands to make compiler produce verbose output that lists
19435 # what "hidden" libraries, object files and flags are used when
19436 # linking a shared library.
19438 # There doesn't appear to be a way to prevent this compiler from
19439 # explicitly linking system object files so we need to strip them
19440 # from the output so that they don't get included in the library
19441 # dependencies.
19442 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'
19444 xl* | mpixl* | bgxl*)
19445 # IBM XL 8.0 on PPC, with GNU ld
19446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19448 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 if test "x$supports_anon_versioning" = xyes; then
19450 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19452 echo "local: *; };" >> $output_objdir/$libname.ver~
19453 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19457 case `$CC -V 2>&1 | sed 5q` in
19458 *Sun\ C*)
19459 # Sun C++ 5.9
19460 no_undefined_flag_CXX=' -zdefs'
19461 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19462 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'
19463 hardcode_libdir_flag_spec_CXX='-R$libdir'
19464 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'
19465 compiler_needs_object_CXX=yes
19467 # Not sure whether something based on
19468 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19469 # would be better.
19470 output_verbose_link_cmd='func_echo_all'
19472 # Archives containing C++ object files must be created using
19473 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19474 # necessary to make sure instantiated templates are included
19475 # in the archive.
19476 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19478 esac
19480 esac
19483 lynxos*)
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19488 m88k*)
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19493 mvs*)
19494 case $cc_basename in
19495 cxx*)
19496 # FIXME: insert proper C++ library support
19497 ld_shlibs_CXX=no
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19503 esac
19506 netbsd*)
19507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19508 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19509 wlarc=
19510 hardcode_libdir_flag_spec_CXX='-R$libdir'
19511 hardcode_direct_CXX=yes
19512 hardcode_shlibpath_var_CXX=no
19514 # Workaround some broken pre-1.5 toolchains
19515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19518 *nto* | *qnx*)
19519 ld_shlibs_CXX=yes
19522 openbsd2*)
19523 # C++ shared libraries are fairly broken
19524 ld_shlibs_CXX=no
19527 openbsd*)
19528 if test -f /usr/libexec/ld.so; then
19529 hardcode_direct_CXX=yes
19530 hardcode_shlibpath_var_CXX=no
19531 hardcode_direct_absolute_CXX=yes
19532 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19535 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19536 export_dynamic_flag_spec_CXX='${wl}-E'
19537 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19539 output_verbose_link_cmd=func_echo_all
19540 else
19541 ld_shlibs_CXX=no
19545 osf3* | osf4* | osf5*)
19546 case $cc_basename in
19547 KCC*)
19548 # Kuck and Associates, Inc. (KAI) C++ Compiler
19550 # KCC will only create a shared library if the output file
19551 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19552 # to its proper name (with version) after linking.
19553 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'
19555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19556 hardcode_libdir_separator_CXX=:
19558 # Archives containing C++ object files must be created using
19559 # the KAI C++ compiler.
19560 case $host in
19561 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19562 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19563 esac
19565 RCC*)
19566 # Rational C++ 2.4.1
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19570 cxx*)
19571 case $host in
19572 osf3*)
19573 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19574 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'
19575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19578 allow_undefined_flag_CXX=' -expect_unresolved \*'
19579 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'
19580 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19581 echo "-hidden">> $lib.exp~
19582 $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~
19583 $RM $lib.exp'
19584 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19586 esac
19588 hardcode_libdir_separator_CXX=:
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19594 # There doesn't appear to be a way to prevent this compiler from
19595 # explicitly linking system object files so we need to strip them
19596 # from the output so that they don't get included in the library
19597 # dependencies.
19598 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"'
19601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19602 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19603 case $host in
19604 osf3*)
19605 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'
19608 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'
19610 esac
19612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19613 hardcode_libdir_separator_CXX=:
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19620 else
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19625 esac
19628 psos*)
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19633 sunos4*)
19634 case $cc_basename in
19635 CC*)
19636 # Sun C++ 4.x
19637 # FIXME: insert proper C++ library support
19638 ld_shlibs_CXX=no
19640 lcc*)
19641 # Lucid
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19646 # FIXME: insert proper C++ library support
19647 ld_shlibs_CXX=no
19649 esac
19652 solaris*)
19653 case $cc_basename in
19654 CC*)
19655 # Sun C++ 4.2, 5.x and Centerline C++
19656 archive_cmds_need_lc_CXX=yes
19657 no_undefined_flag_CXX=' -zdefs'
19658 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19659 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19660 $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'
19662 hardcode_libdir_flag_spec_CXX='-R$libdir'
19663 hardcode_shlibpath_var_CXX=no
19664 case $host_os in
19665 solaris2.[0-5] | solaris2.[0-5].*) ;;
19667 # The compiler driver will combine and reorder linker options,
19668 # but understands `-z linker_flag'.
19669 # Supported since Solaris 2.6 (maybe 2.5.1?)
19670 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19672 esac
19673 link_all_deplibs_CXX=yes
19675 output_verbose_link_cmd='func_echo_all'
19677 # Archives containing C++ object files must be created using
19678 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19679 # necessary to make sure instantiated templates are included
19680 # in the archive.
19681 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19683 gcx*)
19684 # Green Hills C++ Compiler
19685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19687 # The C++ compiler must be used to create the archive.
19688 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19691 # GNU C++ compiler with Solaris linker
19692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19693 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19694 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19695 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19696 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19697 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19699 # Commands to make compiler produce verbose output that lists
19700 # what "hidden" libraries, object files and flags are used when
19701 # linking a shared library.
19702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19703 else
19704 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19705 # platform.
19706 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19707 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19708 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19710 # Commands to make compiler produce verbose output that lists
19711 # what "hidden" libraries, object files and flags are used when
19712 # linking a shared library.
19713 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19716 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19717 case $host_os in
19718 solaris2.[0-5] | solaris2.[0-5].*) ;;
19720 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19722 esac
19725 esac
19728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19729 no_undefined_flag_CXX='${wl}-z,text'
19730 archive_cmds_need_lc_CXX=no
19731 hardcode_shlibpath_var_CXX=no
19732 runpath_var='LD_RUN_PATH'
19734 case $cc_basename in
19735 CC*)
19736 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19740 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19743 esac
19746 sysv5* | sco3.2v5* | sco5v6*)
19747 # Note: We can NOT use -z defs as we might desire, because we do not
19748 # link with -lc, and that would cause any symbols used from libc to
19749 # always be unresolved, which means just about no library would
19750 # ever link correctly. If we're not using GNU ld we use -z text
19751 # though, which does catch some bad symbols but isn't as heavy-handed
19752 # as -z defs.
19753 no_undefined_flag_CXX='${wl}-z,text'
19754 allow_undefined_flag_CXX='${wl}-z,nodefs'
19755 archive_cmds_need_lc_CXX=no
19756 hardcode_shlibpath_var_CXX=no
19757 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19758 hardcode_libdir_separator_CXX=':'
19759 link_all_deplibs_CXX=yes
19760 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19761 runpath_var='LD_RUN_PATH'
19763 case $cc_basename in
19764 CC*)
19765 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19766 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19768 '"$old_archive_cmds_CXX"
19769 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19770 '"$reload_cmds_CXX"
19773 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19776 esac
19779 tandem*)
19780 case $cc_basename in
19781 NCC*)
19782 # NonStop-UX NCC 3.20
19783 # FIXME: insert proper C++ library support
19784 ld_shlibs_CXX=no
19787 # FIXME: insert proper C++ library support
19788 ld_shlibs_CXX=no
19790 esac
19793 vxworks*)
19794 # FIXME: insert proper C++ library support
19795 ld_shlibs_CXX=no
19799 # FIXME: insert proper C++ library support
19800 ld_shlibs_CXX=no
19802 esac
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19805 $as_echo "$ld_shlibs_CXX" >&6; }
19806 test "$ld_shlibs_CXX" = no && can_build_shared=no
19808 GCC_CXX="$GXX"
19809 LD_CXX="$LD"
19811 ## CAVEAT EMPTOR:
19812 ## There is no encapsulation within the following macros, do not change
19813 ## the running order or otherwise move them around unless you know exactly
19814 ## what you are doing...
19815 # Dependencies to place before and after the object being linked:
19816 predep_objects_CXX=
19817 postdep_objects_CXX=
19818 predeps_CXX=
19819 postdeps_CXX=
19820 compiler_lib_search_path_CXX=
19822 cat > conftest.$ac_ext <<_LT_EOF
19823 class Foo
19825 public:
19826 Foo (void) { a = 0; }
19827 private:
19828 int a;
19830 _LT_EOF
19832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19833 (eval $ac_compile) 2>&5
19834 ac_status=$?
19835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19836 test $ac_status = 0; }; then
19837 # Parse the compiler output and extract the necessary
19838 # objects, libraries and library flags.
19840 # Sentinel used to keep track of whether or not we are before
19841 # the conftest object file.
19842 pre_test_object_deps_done=no
19844 for p in `eval "$output_verbose_link_cmd"`; do
19845 case $p in
19847 -L* | -R* | -l*)
19848 # Some compilers place space between "-{L,R}" and the path.
19849 # Remove the space.
19850 if test $p = "-L" ||
19851 test $p = "-R"; then
19852 prev=$p
19853 continue
19854 else
19855 prev=
19858 if test "$pre_test_object_deps_done" = no; then
19859 case $p in
19860 -L* | -R*)
19861 # Internal compiler library paths should come after those
19862 # provided the user. The postdeps already come after the
19863 # user supplied libs so there is no need to process them.
19864 if test -z "$compiler_lib_search_path_CXX"; then
19865 compiler_lib_search_path_CXX="${prev}${p}"
19866 else
19867 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19870 # The "-l" case would never come before the object being
19871 # linked, so don't bother handling this case.
19872 esac
19873 else
19874 if test -z "$postdeps_CXX"; then
19875 postdeps_CXX="${prev}${p}"
19876 else
19877 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19882 *.$objext)
19883 # This assumes that the test object file only shows up
19884 # once in the compiler output.
19885 if test "$p" = "conftest.$objext"; then
19886 pre_test_object_deps_done=yes
19887 continue
19890 if test "$pre_test_object_deps_done" = no; then
19891 if test -z "$predep_objects_CXX"; then
19892 predep_objects_CXX="$p"
19893 else
19894 predep_objects_CXX="$predep_objects_CXX $p"
19896 else
19897 if test -z "$postdep_objects_CXX"; then
19898 postdep_objects_CXX="$p"
19899 else
19900 postdep_objects_CXX="$postdep_objects_CXX $p"
19905 *) ;; # Ignore the rest.
19907 esac
19908 done
19910 # Clean up.
19911 rm -f a.out a.exe
19912 else
19913 echo "libtool.m4: error: problem compiling CXX test program"
19916 $RM -f confest.$objext
19918 # PORTME: override above test on systems where it is broken
19919 case $host_os in
19920 interix[3-9]*)
19921 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19922 # hack all around it, let's just trust "g++" to DTRT.
19923 predep_objects_CXX=
19924 postdep_objects_CXX=
19925 postdeps_CXX=
19928 linux*)
19929 case `$CC -V 2>&1 | sed 5q` in
19930 *Sun\ C*)
19931 # Sun C++ 5.9
19933 # The more standards-conforming stlport4 library is
19934 # incompatible with the Cstd library. Avoid specifying
19935 # it if it's in CXXFLAGS. Ignore libCrun as
19936 # -library=stlport4 depends on it.
19937 case " $CXX $CXXFLAGS " in
19938 *" -library=stlport4 "*)
19939 solaris_use_stlport4=yes
19941 esac
19943 if test "$solaris_use_stlport4" != yes; then
19944 postdeps_CXX='-library=Cstd -library=Crun'
19947 esac
19950 solaris*)
19951 case $cc_basename in
19952 CC*)
19953 # The more standards-conforming stlport4 library is
19954 # incompatible with the Cstd library. Avoid specifying
19955 # it if it's in CXXFLAGS. Ignore libCrun as
19956 # -library=stlport4 depends on it.
19957 case " $CXX $CXXFLAGS " in
19958 *" -library=stlport4 "*)
19959 solaris_use_stlport4=yes
19961 esac
19963 # Adding this requires a known-good setup of shared libraries for
19964 # Sun compiler versions before 5.6, else PIC objects from an old
19965 # archive will be linked into the output, leading to subtle bugs.
19966 if test "$solaris_use_stlport4" != yes; then
19967 postdeps_CXX='-library=Cstd -library=Crun'
19970 esac
19972 esac
19975 case " $postdeps_CXX " in
19976 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19977 esac
19978 compiler_lib_search_dirs_CXX=
19979 if test -n "${compiler_lib_search_path_CXX}"; then
19980 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20013 lt_prog_compiler_wl_CXX=
20014 lt_prog_compiler_pic_CXX=
20015 lt_prog_compiler_static_CXX=
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20020 # C++ specific cases for pic, static, wl, etc.
20021 if test "$GXX" = yes; then
20022 lt_prog_compiler_wl_CXX='-Wl,'
20023 lt_prog_compiler_static_CXX='-static'
20025 case $host_os in
20026 aix*)
20027 # All AIX code is PIC.
20028 if test "$host_cpu" = ia64; then
20029 # AIX 5 now supports IA64 processor
20030 lt_prog_compiler_static_CXX='-Bstatic'
20032 lt_prog_compiler_pic_CXX='-fPIC'
20035 amigaos*)
20036 case $host_cpu in
20037 powerpc)
20038 # see comment about AmigaOS4 .so support
20039 lt_prog_compiler_pic_CXX='-fPIC'
20041 m68k)
20042 # FIXME: we need at least 68020 code to build shared libraries, but
20043 # adding the `-m68020' flag to GCC prevents building anything better,
20044 # like `-m68040'.
20045 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20047 esac
20050 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20051 # PIC is the default for these OSes.
20053 mingw* | cygwin* | os2* | pw32* | cegcc*)
20054 # This hack is so that the source file can tell whether it is being
20055 # built for inclusion in a dll (and should export symbols for example).
20056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20057 # (--disable-auto-import) libraries
20058 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20060 darwin* | rhapsody*)
20061 # PIC is the default on this platform
20062 # Common symbols not allowed in MH_DYLIB files
20063 lt_prog_compiler_pic_CXX='-fno-common'
20065 *djgpp*)
20066 # DJGPP does not support shared libraries at all
20067 lt_prog_compiler_pic_CXX=
20069 haiku*)
20070 # PIC is the default for Haiku.
20071 # The "-static" flag exists, but is broken.
20072 lt_prog_compiler_static_CXX=
20074 interix[3-9]*)
20075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20076 # Instead, we relocate shared libraries at runtime.
20078 sysv4*MP*)
20079 if test -d /usr/nec; then
20080 lt_prog_compiler_pic_CXX=-Kconform_pic
20083 hpux*)
20084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20086 # sets the default TLS model and affects inlining.
20087 case $host_cpu in
20088 hppa*64*)
20091 lt_prog_compiler_pic_CXX='-fPIC'
20093 esac
20095 *qnx* | *nto*)
20096 # QNX uses GNU C++, but need to define -shared option too, otherwise
20097 # it will coredump.
20098 lt_prog_compiler_pic_CXX='-fPIC -shared'
20101 lt_prog_compiler_pic_CXX='-fPIC'
20103 esac
20104 else
20105 case $host_os in
20106 aix[4-9]*)
20107 # All AIX code is PIC.
20108 if test "$host_cpu" = ia64; then
20109 # AIX 5 now supports IA64 processor
20110 lt_prog_compiler_static_CXX='-Bstatic'
20111 else
20112 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20115 chorus*)
20116 case $cc_basename in
20117 cxch68*)
20118 # Green Hills C++ Compiler
20119 # _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"
20121 esac
20123 dgux*)
20124 case $cc_basename in
20125 ec++*)
20126 lt_prog_compiler_pic_CXX='-KPIC'
20128 ghcx*)
20129 # Green Hills C++ Compiler
20130 lt_prog_compiler_pic_CXX='-pic'
20134 esac
20136 freebsd* | dragonfly*)
20137 # FreeBSD uses GNU C++
20139 hpux9* | hpux10* | hpux11*)
20140 case $cc_basename in
20141 CC*)
20142 lt_prog_compiler_wl_CXX='-Wl,'
20143 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20144 if test "$host_cpu" != ia64; then
20145 lt_prog_compiler_pic_CXX='+Z'
20148 aCC*)
20149 lt_prog_compiler_wl_CXX='-Wl,'
20150 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20151 case $host_cpu in
20152 hppa*64*|ia64*)
20153 # +Z the default
20156 lt_prog_compiler_pic_CXX='+Z'
20158 esac
20162 esac
20164 interix*)
20165 # This is c89, which is MS Visual C++ (no shared libs)
20166 # Anyone wants to do a port?
20168 irix5* | irix6* | nonstopux*)
20169 case $cc_basename in
20170 CC*)
20171 lt_prog_compiler_wl_CXX='-Wl,'
20172 lt_prog_compiler_static_CXX='-non_shared'
20173 # CC pic flag -KPIC is the default.
20177 esac
20179 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20180 case $cc_basename in
20181 KCC*)
20182 # KAI C++ Compiler
20183 lt_prog_compiler_wl_CXX='--backend -Wl,'
20184 lt_prog_compiler_pic_CXX='-fPIC'
20186 ecpc* )
20187 # old Intel C++ for x86_64 which still supported -KPIC.
20188 lt_prog_compiler_wl_CXX='-Wl,'
20189 lt_prog_compiler_pic_CXX='-KPIC'
20190 lt_prog_compiler_static_CXX='-static'
20192 icpc* )
20193 # Intel C++, used to be incompatible with GCC.
20194 # ICC 10 doesn't accept -KPIC any more.
20195 lt_prog_compiler_wl_CXX='-Wl,'
20196 lt_prog_compiler_pic_CXX='-fPIC'
20197 lt_prog_compiler_static_CXX='-static'
20199 pgCC* | pgcpp*)
20200 # Portland Group C++ compiler
20201 lt_prog_compiler_wl_CXX='-Wl,'
20202 lt_prog_compiler_pic_CXX='-fpic'
20203 lt_prog_compiler_static_CXX='-Bstatic'
20205 cxx*)
20206 # Compaq C++
20207 # Make sure the PIC flag is empty. It appears that all Alpha
20208 # Linux and Compaq Tru64 Unix objects are PIC.
20209 lt_prog_compiler_pic_CXX=
20210 lt_prog_compiler_static_CXX='-non_shared'
20212 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20213 # IBM XL 8.0, 9.0 on PPC and BlueGene
20214 lt_prog_compiler_wl_CXX='-Wl,'
20215 lt_prog_compiler_pic_CXX='-qpic'
20216 lt_prog_compiler_static_CXX='-qstaticlink'
20219 case `$CC -V 2>&1 | sed 5q` in
20220 *Sun\ C*)
20221 # Sun C++ 5.9
20222 lt_prog_compiler_pic_CXX='-KPIC'
20223 lt_prog_compiler_static_CXX='-Bstatic'
20224 lt_prog_compiler_wl_CXX='-Qoption ld '
20226 esac
20228 esac
20230 lynxos*)
20232 m88k*)
20234 mvs*)
20235 case $cc_basename in
20236 cxx*)
20237 lt_prog_compiler_pic_CXX='-W c,exportall'
20241 esac
20243 netbsd*)
20245 *qnx* | *nto*)
20246 # QNX uses GNU C++, but need to define -shared option too, otherwise
20247 # it will coredump.
20248 lt_prog_compiler_pic_CXX='-fPIC -shared'
20250 osf3* | osf4* | osf5*)
20251 case $cc_basename in
20252 KCC*)
20253 lt_prog_compiler_wl_CXX='--backend -Wl,'
20255 RCC*)
20256 # Rational C++ 2.4.1
20257 lt_prog_compiler_pic_CXX='-pic'
20259 cxx*)
20260 # Digital/Compaq C++
20261 lt_prog_compiler_wl_CXX='-Wl,'
20262 # Make sure the PIC flag is empty. It appears that all Alpha
20263 # Linux and Compaq Tru64 Unix objects are PIC.
20264 lt_prog_compiler_pic_CXX=
20265 lt_prog_compiler_static_CXX='-non_shared'
20269 esac
20271 psos*)
20273 solaris*)
20274 case $cc_basename in
20275 CC*)
20276 # Sun C++ 4.2, 5.x and Centerline C++
20277 lt_prog_compiler_pic_CXX='-KPIC'
20278 lt_prog_compiler_static_CXX='-Bstatic'
20279 lt_prog_compiler_wl_CXX='-Qoption ld '
20281 gcx*)
20282 # Green Hills C++ Compiler
20283 lt_prog_compiler_pic_CXX='-PIC'
20287 esac
20289 sunos4*)
20290 case $cc_basename in
20291 CC*)
20292 # Sun C++ 4.x
20293 lt_prog_compiler_pic_CXX='-pic'
20294 lt_prog_compiler_static_CXX='-Bstatic'
20296 lcc*)
20297 # Lucid
20298 lt_prog_compiler_pic_CXX='-pic'
20302 esac
20304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20305 case $cc_basename in
20306 CC*)
20307 lt_prog_compiler_wl_CXX='-Wl,'
20308 lt_prog_compiler_pic_CXX='-KPIC'
20309 lt_prog_compiler_static_CXX='-Bstatic'
20311 esac
20313 tandem*)
20314 case $cc_basename in
20315 NCC*)
20316 # NonStop-UX NCC 3.20
20317 lt_prog_compiler_pic_CXX='-KPIC'
20321 esac
20323 vxworks*)
20326 lt_prog_compiler_can_build_shared_CXX=no
20328 esac
20331 case $host_os in
20332 # For platforms which do not support PIC, -DPIC is meaningless:
20333 *djgpp*)
20334 lt_prog_compiler_pic_CXX=
20337 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20339 esac
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20341 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20346 # Check to make sure the PIC flag actually works.
20348 if test -n "$lt_prog_compiler_pic_CXX"; then
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20350 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20351 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 lt_cv_prog_compiler_pic_works_CXX=no
20355 ac_outfile=conftest.$ac_objext
20356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20357 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20358 # Insert the option either (1) after the last *FLAGS variable, or
20359 # (2) before a word containing "conftest.", or (3) at the end.
20360 # Note that $ac_compile itself does not contain backslashes and begins
20361 # with a dollar sign (not a hyphen), so the echo should work correctly.
20362 # The option is referenced via a variable to avoid confusing sed.
20363 lt_compile=`echo "$ac_compile" | $SED \
20364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20366 -e 's:$: $lt_compiler_flag:'`
20367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20368 (eval "$lt_compile" 2>conftest.err)
20369 ac_status=$?
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 if (exit $ac_status) && test -s "$ac_outfile"; then
20373 # The compiler can only warn and ignore the option if not recognized
20374 # So say no if there are warnings other than the usual output.
20375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20378 lt_cv_prog_compiler_pic_works_CXX=yes
20381 $RM conftest*
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20385 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20387 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20388 case $lt_prog_compiler_pic_CXX in
20389 "" | " "*) ;;
20390 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20391 esac
20392 else
20393 lt_prog_compiler_pic_CXX=
20394 lt_prog_compiler_can_build_shared_CXX=no
20402 # Check to make sure the static flag actually works.
20404 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20406 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20407 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410 lt_cv_prog_compiler_static_works_CXX=no
20411 save_LDFLAGS="$LDFLAGS"
20412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20415 # The linker can only warn and ignore the option if not recognized
20416 # So say no if there are warnings
20417 if test -s conftest.err; then
20418 # Append any errors to the config.log.
20419 cat conftest.err 1>&5
20420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20422 if diff conftest.exp conftest.er2 >/dev/null; then
20423 lt_cv_prog_compiler_static_works_CXX=yes
20425 else
20426 lt_cv_prog_compiler_static_works_CXX=yes
20429 $RM -r conftest*
20430 LDFLAGS="$save_LDFLAGS"
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20434 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20436 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20438 else
20439 lt_prog_compiler_static_CXX=
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20447 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20448 $as_echo_n "(cached) " >&6
20449 else
20450 lt_cv_prog_compiler_c_o_CXX=no
20451 $RM -r conftest 2>/dev/null
20452 mkdir conftest
20453 cd conftest
20454 mkdir out
20455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20457 lt_compiler_flag="-o out/conftest2.$ac_objext"
20458 # Insert the option either (1) after the last *FLAGS variable, or
20459 # (2) before a word containing "conftest.", or (3) at the end.
20460 # Note that $ac_compile itself does not contain backslashes and begins
20461 # with a dollar sign (not a hyphen), so the echo should work correctly.
20462 lt_compile=`echo "$ac_compile" | $SED \
20463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20465 -e 's:$: $lt_compiler_flag:'`
20466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20467 (eval "$lt_compile" 2>out/conftest.err)
20468 ac_status=$?
20469 cat out/conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20472 then
20473 # The compiler can only warn and ignore the option if not recognized
20474 # So say no if there are warnings
20475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20478 lt_cv_prog_compiler_c_o_CXX=yes
20481 chmod u+w . 2>&5
20482 $RM conftest*
20483 # SGI C++ compiler will create directory out/ii_files/ for
20484 # template instantiation
20485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20486 $RM out/* && rmdir out
20487 cd ..
20488 $RM -r conftest
20489 $RM conftest*
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20493 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20499 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20500 $as_echo_n "(cached) " >&6
20501 else
20502 lt_cv_prog_compiler_c_o_CXX=no
20503 $RM -r conftest 2>/dev/null
20504 mkdir conftest
20505 cd conftest
20506 mkdir out
20507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20509 lt_compiler_flag="-o out/conftest2.$ac_objext"
20510 # Insert the option either (1) after the last *FLAGS variable, or
20511 # (2) before a word containing "conftest.", or (3) at the end.
20512 # Note that $ac_compile itself does not contain backslashes and begins
20513 # with a dollar sign (not a hyphen), so the echo should work correctly.
20514 lt_compile=`echo "$ac_compile" | $SED \
20515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20517 -e 's:$: $lt_compiler_flag:'`
20518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20519 (eval "$lt_compile" 2>out/conftest.err)
20520 ac_status=$?
20521 cat out/conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20524 then
20525 # The compiler can only warn and ignore the option if not recognized
20526 # So say no if there are warnings
20527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20530 lt_cv_prog_compiler_c_o_CXX=yes
20533 chmod u+w . 2>&5
20534 $RM conftest*
20535 # SGI C++ compiler will create directory out/ii_files/ for
20536 # template instantiation
20537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20538 $RM out/* && rmdir out
20539 cd ..
20540 $RM -r conftest
20541 $RM conftest*
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20545 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20550 hard_links="nottested"
20551 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20552 # do not overwrite the value of need_locks provided by the user
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20554 $as_echo_n "checking if we can lock with hard links... " >&6; }
20555 hard_links=yes
20556 $RM conftest*
20557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20558 touch conftest.a
20559 ln conftest.a conftest.b 2>&5 || hard_links=no
20560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20562 $as_echo "$hard_links" >&6; }
20563 if test "$hard_links" = no; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20565 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20566 need_locks=warn
20568 else
20569 need_locks=no
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20578 case $host_os in
20579 aix[4-9]*)
20580 # If we're using GNU nm, then we don't want the "-C" option.
20581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20582 # Also, AIX nm treats weak defined symbols like other global defined
20583 # symbols, whereas GNU nm marks them as "W".
20584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20585 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'
20586 else
20587 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'
20590 pw32*)
20591 export_symbols_cmds_CXX="$ltdll_cmds"
20593 cygwin* | mingw* | cegcc*)
20594 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'
20597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20599 esac
20600 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20603 $as_echo "$ld_shlibs_CXX" >&6; }
20604 test "$ld_shlibs_CXX" = no && can_build_shared=no
20606 with_gnu_ld_CXX=$with_gnu_ld
20614 # Do we need to explicitly link libc?
20616 case "x$archive_cmds_need_lc_CXX" in
20617 x|xyes)
20618 # Assume -lc should be added
20619 archive_cmds_need_lc_CXX=yes
20621 if test "$enable_shared" = yes && test "$GCC" = yes; then
20622 case $archive_cmds_CXX in
20623 *'~'*)
20624 # FIXME: we may have to deal with multi-command sequences.
20626 '$CC '*)
20627 # Test whether the compiler implicitly links with -lc since on some
20628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20629 # to ld, don't add -lc before -lgcc.
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20632 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20633 $as_echo_n "(cached) " >&6
20634 else
20635 $RM conftest*
20636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20639 (eval $ac_compile) 2>&5
20640 ac_status=$?
20641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20642 test $ac_status = 0; } 2>conftest.err; then
20643 soname=conftest
20644 lib=conftest
20645 libobjs=conftest.$ac_objext
20646 deplibs=
20647 wl=$lt_prog_compiler_wl_CXX
20648 pic_flag=$lt_prog_compiler_pic_CXX
20649 compiler_flags=-v
20650 linker_flags=-v
20651 verstring=
20652 output_objdir=.
20653 libname=conftest
20654 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20655 allow_undefined_flag_CXX=
20656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20657 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20658 ac_status=$?
20659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20660 test $ac_status = 0; }
20661 then
20662 lt_cv_archive_cmds_need_lc_CXX=no
20663 else
20664 lt_cv_archive_cmds_need_lc_CXX=yes
20666 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20667 else
20668 cat conftest.err 1>&5
20670 $RM conftest*
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20674 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20675 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20677 esac
20680 esac
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20746 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20748 library_names_spec=
20749 libname_spec='lib$name'
20750 soname_spec=
20751 shrext_cmds=".so"
20752 postinstall_cmds=
20753 postuninstall_cmds=
20754 finish_cmds=
20755 finish_eval=
20756 shlibpath_var=
20757 shlibpath_overrides_runpath=unknown
20758 version_type=none
20759 dynamic_linker="$host_os ld.so"
20760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20761 need_lib_prefix=unknown
20762 hardcode_into_libs=no
20764 # when you set need_version to no, make sure it does not cause -set_version
20765 # flags to be left without arguments
20766 need_version=unknown
20768 case $host_os in
20769 aix3*)
20770 version_type=linux
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20772 shlibpath_var=LIBPATH
20774 # AIX 3 has no versioning support, so we append a major version to the name.
20775 soname_spec='${libname}${release}${shared_ext}$major'
20778 aix[4-9]*)
20779 version_type=linux
20780 need_lib_prefix=no
20781 need_version=no
20782 hardcode_into_libs=yes
20783 if test "$host_cpu" = ia64; then
20784 # AIX 5 supports IA64
20785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 else
20788 # With GCC up to 2.95.x, collect2 would create an import file
20789 # for dependence libraries. The import file would start with
20790 # the line `#! .'. This would cause the generated library to
20791 # depend on `.', always an invalid library. This was fixed in
20792 # development snapshots of GCC prior to 3.0.
20793 case $host_os in
20794 aix4 | aix4.[01] | aix4.[01].*)
20795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20796 echo ' yes '
20797 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20799 else
20800 can_build_shared=no
20803 esac
20804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20805 # soname into executable. Probably we can add versioning support to
20806 # collect2, so additional links can be useful in future.
20807 if test "$aix_use_runtimelinking" = yes; then
20808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20809 # instead of lib<name>.a to let people know that these are not
20810 # typical AIX shared libraries.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 else
20813 # We preserve .a as extension for shared libraries through AIX4.2
20814 # and later when we are not doing run time linking.
20815 library_names_spec='${libname}${release}.a $libname.a'
20816 soname_spec='${libname}${release}${shared_ext}$major'
20818 shlibpath_var=LIBPATH
20822 amigaos*)
20823 case $host_cpu in
20824 powerpc)
20825 # Since July 2007 AmigaOS4 officially supports .so libraries.
20826 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 m68k)
20830 library_names_spec='$libname.ixlibrary $libname.a'
20831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20832 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'
20834 esac
20837 beos*)
20838 library_names_spec='${libname}${shared_ext}'
20839 dynamic_linker="$host_os ld.so"
20840 shlibpath_var=LIBRARY_PATH
20843 bsdi[45]*)
20844 version_type=linux
20845 need_version=no
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20852 # the default ld.so.conf also contains /usr/contrib/lib and
20853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20854 # libtool to hard-code these into programs
20857 cygwin* | mingw* | pw32* | cegcc*)
20858 version_type=windows
20859 shrext_cmds=".dll"
20860 need_version=no
20861 need_lib_prefix=no
20863 case $GCC,$host_os in
20864 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20865 library_names_spec='$libname.dll.a'
20866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20867 postinstall_cmds='base_file=`basename \${file}`~
20868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20869 dldir=$destdir/`dirname \$dlpath`~
20870 test -d \$dldir || mkdir -p \$dldir~
20871 $install_prog $dir/$dlname \$dldir/$dlname~
20872 chmod a+x \$dldir/$dlname~
20873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20877 dlpath=$dir/\$dldll~
20878 $RM \$dlpath'
20879 shlibpath_overrides_runpath=yes
20881 case $host_os in
20882 cygwin*)
20883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20887 mingw* | cegcc*)
20888 # MinGW DLLs use traditional 'lib' prefix
20889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20891 pw32*)
20892 # pw32 DLLs use 'pw' prefix rather than 'lib'
20893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20895 esac
20899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20901 esac
20902 dynamic_linker='Win32 ld.exe'
20903 # FIXME: first we should search . and the directory the executable is in
20904 shlibpath_var=PATH
20907 darwin* | rhapsody*)
20908 dynamic_linker="$host_os dyld"
20909 version_type=darwin
20910 need_lib_prefix=no
20911 need_version=no
20912 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20913 soname_spec='${libname}${release}${major}$shared_ext'
20914 shlibpath_overrides_runpath=yes
20915 shlibpath_var=DYLD_LIBRARY_PATH
20916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20921 dgux*)
20922 version_type=linux
20923 need_lib_prefix=no
20924 need_version=no
20925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20926 soname_spec='${libname}${release}${shared_ext}$major'
20927 shlibpath_var=LD_LIBRARY_PATH
20930 freebsd* | dragonfly*)
20931 # DragonFly does not have aout. When/if they implement a new
20932 # versioning mechanism, adjust this.
20933 if test -x /usr/bin/objformat; then
20934 objformat=`/usr/bin/objformat`
20935 else
20936 case $host_os in
20937 freebsd[23].*) objformat=aout ;;
20938 *) objformat=elf ;;
20939 esac
20941 version_type=freebsd-$objformat
20942 case $version_type in
20943 freebsd-elf*)
20944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20945 need_version=no
20946 need_lib_prefix=no
20948 freebsd-*)
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20950 need_version=yes
20952 esac
20953 shlibpath_var=LD_LIBRARY_PATH
20954 case $host_os in
20955 freebsd2.*)
20956 shlibpath_overrides_runpath=yes
20958 freebsd3.[01]* | freebsdelf3.[01]*)
20959 shlibpath_overrides_runpath=yes
20960 hardcode_into_libs=yes
20962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20964 shlibpath_overrides_runpath=no
20965 hardcode_into_libs=yes
20967 *) # from 4.6 on, and DragonFly
20968 shlibpath_overrides_runpath=yes
20969 hardcode_into_libs=yes
20971 esac
20974 gnu*)
20975 version_type=linux
20976 need_lib_prefix=no
20977 need_version=no
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 hardcode_into_libs=yes
20984 haiku*)
20985 version_type=linux
20986 need_lib_prefix=no
20987 need_version=no
20988 dynamic_linker="$host_os runtime_loader"
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20990 soname_spec='${libname}${release}${shared_ext}$major'
20991 shlibpath_var=LIBRARY_PATH
20992 shlibpath_overrides_runpath=yes
20993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20994 hardcode_into_libs=yes
20997 hpux9* | hpux10* | hpux11*)
20998 # Give a soname corresponding to the major version so that dld.sl refuses to
20999 # link against other versions.
21000 version_type=sunos
21001 need_lib_prefix=no
21002 need_version=no
21003 case $host_cpu in
21004 ia64*)
21005 shrext_cmds='.so'
21006 hardcode_into_libs=yes
21007 dynamic_linker="$host_os dld.so"
21008 shlibpath_var=LD_LIBRARY_PATH
21009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21011 soname_spec='${libname}${release}${shared_ext}$major'
21012 if test "X$HPUX_IA64_MODE" = X32; then
21013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21014 else
21015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21019 hppa*64*)
21020 shrext_cmds='.sl'
21021 hardcode_into_libs=yes
21022 dynamic_linker="$host_os dld.sl"
21023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21031 shrext_cmds='.sl'
21032 dynamic_linker="$host_os dld.sl"
21033 shlibpath_var=SHLIB_PATH
21034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec='${libname}${release}${shared_ext}$major'
21038 esac
21039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21040 postinstall_cmds='chmod 555 $lib'
21041 # or fails outright, so override atomically:
21042 install_override_mode=555
21045 interix[3-9]*)
21046 version_type=linux
21047 need_lib_prefix=no
21048 need_version=no
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21052 shlibpath_var=LD_LIBRARY_PATH
21053 shlibpath_overrides_runpath=no
21054 hardcode_into_libs=yes
21057 irix5* | irix6* | nonstopux*)
21058 case $host_os in
21059 nonstopux*) version_type=nonstopux ;;
21061 if test "$lt_cv_prog_gnu_ld" = yes; then
21062 version_type=linux
21063 else
21064 version_type=irix
21065 fi ;;
21066 esac
21067 need_lib_prefix=no
21068 need_version=no
21069 soname_spec='${libname}${release}${shared_ext}$major'
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21071 case $host_os in
21072 irix5* | nonstopux*)
21073 libsuff= shlibsuff=
21076 case $LD in # libtool.m4 will add one of these switches to LD
21077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21078 libsuff= shlibsuff= libmagic=32-bit;;
21079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21080 libsuff=32 shlibsuff=N32 libmagic=N32;;
21081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21083 *) libsuff= shlibsuff= libmagic=never-match;;
21084 esac
21086 esac
21087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21088 shlibpath_overrides_runpath=no
21089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21091 hardcode_into_libs=yes
21094 # No shared lib support for Linux oldld, aout, or coff.
21095 linux*oldld* | linux*aout* | linux*coff*)
21096 dynamic_linker=no
21099 # This must be Linux ELF.
21100 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21101 version_type=linux
21102 need_lib_prefix=no
21103 need_version=no
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21107 shlibpath_var=LD_LIBRARY_PATH
21108 shlibpath_overrides_runpath=no
21110 # Some binutils ld are patched to set DT_RUNPATH
21111 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21113 else
21114 lt_cv_shlibpath_overrides_runpath=no
21115 save_LDFLAGS=$LDFLAGS
21116 save_libdir=$libdir
21117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21123 main ()
21127 return 0;
21129 _ACEOF
21130 if ac_fn_cxx_try_link "$LINENO"; then :
21131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21132 lt_cv_shlibpath_overrides_runpath=yes
21135 rm -f core conftest.err conftest.$ac_objext \
21136 conftest$ac_exeext conftest.$ac_ext
21137 LDFLAGS=$save_LDFLAGS
21138 libdir=$save_libdir
21142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21144 # This implies no fast_install, which is unacceptable.
21145 # Some rework will be needed to allow for fast_install
21146 # before this can be enabled.
21147 hardcode_into_libs=yes
21149 # Append ld.so.conf contents to the search path
21150 if test -f /etc/ld.so.conf; then
21151 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' ' '`
21152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21155 # We used to test for /lib/ld.so.1 and disable shared libraries on
21156 # powerpc, because MkLinux only supported shared libraries with the
21157 # GNU dynamic linker. Since this was broken with cross compilers,
21158 # most powerpc-linux boxes support dynamic linking these days and
21159 # people can always --disable-shared, the test was removed, and we
21160 # assume the GNU/Linux dynamic linker is in use.
21161 dynamic_linker='GNU/Linux ld.so'
21164 netbsd*)
21165 version_type=sunos
21166 need_lib_prefix=no
21167 need_version=no
21168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21171 dynamic_linker='NetBSD (a.out) ld.so'
21172 else
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21174 soname_spec='${libname}${release}${shared_ext}$major'
21175 dynamic_linker='NetBSD ld.elf_so'
21177 shlibpath_var=LD_LIBRARY_PATH
21178 shlibpath_overrides_runpath=yes
21179 hardcode_into_libs=yes
21182 newsos6)
21183 version_type=linux
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21185 shlibpath_var=LD_LIBRARY_PATH
21186 shlibpath_overrides_runpath=yes
21189 *nto* | *qnx*)
21190 version_type=qnx
21191 need_lib_prefix=no
21192 need_version=no
21193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21194 soname_spec='${libname}${release}${shared_ext}$major'
21195 shlibpath_var=LD_LIBRARY_PATH
21196 shlibpath_overrides_runpath=no
21197 hardcode_into_libs=yes
21198 dynamic_linker='ldqnx.so'
21201 openbsd*)
21202 version_type=sunos
21203 sys_lib_dlsearch_path_spec="/usr/lib"
21204 need_lib_prefix=no
21205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21206 case $host_os in
21207 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21208 *) need_version=no ;;
21209 esac
21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21214 case $host_os in
21215 openbsd2.[89] | openbsd2.[89].*)
21216 shlibpath_overrides_runpath=no
21219 shlibpath_overrides_runpath=yes
21221 esac
21222 else
21223 shlibpath_overrides_runpath=yes
21227 os2*)
21228 libname_spec='$name'
21229 shrext_cmds=".dll"
21230 need_lib_prefix=no
21231 library_names_spec='$libname${shared_ext} $libname.a'
21232 dynamic_linker='OS/2 ld.exe'
21233 shlibpath_var=LIBPATH
21236 osf3* | osf4* | osf5*)
21237 version_type=osf
21238 need_lib_prefix=no
21239 need_version=no
21240 soname_spec='${libname}${release}${shared_ext}$major'
21241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21242 shlibpath_var=LD_LIBRARY_PATH
21243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21244 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21247 rdos*)
21248 dynamic_linker=no
21251 solaris*)
21252 version_type=linux
21253 need_lib_prefix=no
21254 need_version=no
21255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21256 soname_spec='${libname}${release}${shared_ext}$major'
21257 shlibpath_var=LD_LIBRARY_PATH
21258 shlibpath_overrides_runpath=yes
21259 hardcode_into_libs=yes
21260 # ldd complains unless libraries are executable
21261 postinstall_cmds='chmod +x $lib'
21264 sunos4*)
21265 version_type=sunos
21266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=yes
21270 if test "$with_gnu_ld" = yes; then
21271 need_lib_prefix=no
21273 need_version=yes
21276 sysv4 | sysv4.3*)
21277 version_type=linux
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21279 soname_spec='${libname}${release}${shared_ext}$major'
21280 shlibpath_var=LD_LIBRARY_PATH
21281 case $host_vendor in
21282 sni)
21283 shlibpath_overrides_runpath=no
21284 need_lib_prefix=no
21285 runpath_var=LD_RUN_PATH
21287 siemens)
21288 need_lib_prefix=no
21290 motorola)
21291 need_lib_prefix=no
21292 need_version=no
21293 shlibpath_overrides_runpath=no
21294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21296 esac
21299 sysv4*MP*)
21300 if test -d /usr/nec ;then
21301 version_type=linux
21302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21303 soname_spec='$libname${shared_ext}.$major'
21304 shlibpath_var=LD_LIBRARY_PATH
21308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21309 version_type=freebsd-elf
21310 need_lib_prefix=no
21311 need_version=no
21312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21313 soname_spec='${libname}${release}${shared_ext}$major'
21314 shlibpath_var=LD_LIBRARY_PATH
21315 shlibpath_overrides_runpath=yes
21316 hardcode_into_libs=yes
21317 if test "$with_gnu_ld" = yes; then
21318 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21319 else
21320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21321 case $host_os in
21322 sco3.2v5*)
21323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21325 esac
21327 sys_lib_dlsearch_path_spec='/usr/lib'
21330 tpf*)
21331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21332 version_type=linux
21333 need_lib_prefix=no
21334 need_version=no
21335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21336 shlibpath_var=LD_LIBRARY_PATH
21337 shlibpath_overrides_runpath=no
21338 hardcode_into_libs=yes
21341 uts4*)
21342 version_type=linux
21343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21344 soname_spec='${libname}${release}${shared_ext}$major'
21345 shlibpath_var=LD_LIBRARY_PATH
21349 dynamic_linker=no
21351 esac
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21353 $as_echo "$dynamic_linker" >&6; }
21354 test "$dynamic_linker" = no && can_build_shared=no
21356 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21357 if test "$GCC" = yes; then
21358 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21362 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21365 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21406 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21407 hardcode_action_CXX=
21408 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21409 test -n "$runpath_var_CXX" ||
21410 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21412 # We can hardcode non-existent directories.
21413 if test "$hardcode_direct_CXX" != no &&
21414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21415 # have to relink, otherwise we might link with an installed library
21416 # when we should be linking with a yet-to-be-installed one
21417 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21418 test "$hardcode_minus_L_CXX" != no; then
21419 # Linking always hardcodes the temporary library directory.
21420 hardcode_action_CXX=relink
21421 else
21422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21423 hardcode_action_CXX=immediate
21425 else
21426 # We cannot hardcode anything, or else we can only hardcode existing
21427 # directories.
21428 hardcode_action_CXX=unsupported
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21431 $as_echo "$hardcode_action_CXX" >&6; }
21433 if test "$hardcode_action_CXX" = relink ||
21434 test "$inherit_rpath_CXX" = yes; then
21435 # Fast installation is not supported
21436 enable_fast_install=no
21437 elif test "$shlibpath_overrides_runpath" = yes ||
21438 test "$enable_shared" = no; then
21439 # Fast installation is not necessary
21440 enable_fast_install=needless
21449 fi # test -n "$compiler"
21451 CC=$lt_save_CC
21452 LDCXX=$LD
21453 LD=$lt_save_LD
21454 GCC=$lt_save_GCC
21455 with_gnu_ld=$lt_save_with_gnu_ld
21456 lt_cv_path_LDCXX=$lt_cv_path_LD
21457 lt_cv_path_LD=$lt_save_path_LD
21458 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21459 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21460 fi # test "$_lt_caught_CXX_error" != yes
21462 ac_ext=c
21463 ac_cpp='$CPP $CPPFLAGS'
21464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483 # Only expand once:
21489 # Identify the assembler which will work hand-in-glove with the newly
21490 # built GCC, so that we can examine its features. This is the assembler
21491 # which will be driven by the driver program.
21493 # If build != host, and we aren't building gas in-tree, we identify a
21494 # build->target assembler and hope that it will have the same features
21495 # as the host->target assembler we'll be using.
21496 gcc_cv_gas_major_version=
21497 gcc_cv_gas_minor_version=
21498 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21500 if test "${gcc_cv_as+set}" = set; then :
21502 else
21504 if test -x "$DEFAULT_ASSEMBLER"; then
21505 gcc_cv_as="$DEFAULT_ASSEMBLER"
21506 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21507 && test -f ../gas/Makefile \
21508 && test x$build = x$host; then
21509 gcc_cv_as=../gas/as-new$build_exeext
21510 elif test -x as$build_exeext; then
21511 # Build using assembler in the current directory.
21512 gcc_cv_as=./as$build_exeext
21513 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21514 gcc_cv_as="$AS_FOR_TARGET"
21515 else
21516 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21517 set dummy $AS_FOR_TARGET; ac_word=$2
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21519 $as_echo_n "checking for $ac_word... " >&6; }
21520 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21521 $as_echo_n "(cached) " >&6
21522 else
21523 case $gcc_cv_as in
21524 [\\/]* | ?:[\\/]*)
21525 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21529 for as_dir in $PATH
21531 IFS=$as_save_IFS
21532 test -z "$as_dir" && as_dir=.
21533 for ac_exec_ext in '' $ac_executable_extensions; do
21534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21535 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21537 break 2
21539 done
21540 done
21541 IFS=$as_save_IFS
21544 esac
21546 gcc_cv_as=$ac_cv_path_gcc_cv_as
21547 if test -n "$gcc_cv_as"; then
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21549 $as_echo "$gcc_cv_as" >&6; }
21550 else
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21552 $as_echo "no" >&6; }
21559 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21561 case "$ORIGINAL_AS_FOR_TARGET" in
21562 ./as | ./as$build_exeext) ;;
21563 *) ac_config_files="$ac_config_files as:exec-tool.in"
21565 esac
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21568 $as_echo_n "checking what assembler to use... " >&6; }
21569 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21570 # Single tree build which includes gas. We want to prefer it
21571 # over whatever linker top-level may have detected, since
21572 # we'll use what we're building after installation anyway.
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21574 $as_echo "newly built gas" >&6; }
21575 in_tree_gas=yes
21576 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21577 for f in $gcc_cv_as_bfd_srcdir/configure \
21578 $gcc_cv_as_gas_srcdir/configure \
21579 $gcc_cv_as_gas_srcdir/configure.in \
21580 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21581 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21582 if test x$gcc_cv_gas_version != x; then
21583 break
21585 done
21586 case $gcc_cv_gas_version in
21587 VERSION=[0-9]*) ;;
21588 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21589 esac
21590 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21591 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21592 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21593 case $gcc_cv_gas_patch_version in
21594 "") gcc_cv_gas_patch_version="0" ;;
21595 esac
21596 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21597 + $gcc_cv_gas_minor_version \) \* 1000 \
21598 + $gcc_cv_gas_patch_version`
21600 in_tree_gas_is_elf=no
21601 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21602 || (grep 'obj_format = multi' ../gas/Makefile \
21603 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21604 then
21605 in_tree_gas_is_elf=yes
21607 else
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21609 $as_echo "$gcc_cv_as" >&6; }
21610 in_tree_gas=no
21613 default_ld=
21614 # Check whether --enable-ld was given.
21615 if test "${enable_ld+set}" = set; then :
21616 enableval=$enable_ld; case "${enableval}" in
21618 default_ld=ld.gold
21620 esac
21624 # Check whether --enable-gold was given.
21625 if test "${enable_gold+set}" = set; then :
21626 enableval=$enable_gold; case "${enableval}" in
21627 default)
21628 install_gold_as_default=yes
21630 yes)
21631 if test x${default_ld} != x; then
21632 install_gold_as_default=yes
21638 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21640 esac
21641 else
21642 install_gold_as_default=no
21646 # Identify the linker which will work hand-in-glove with the newly
21647 # built GCC, so that we can examine its features. This is the linker
21648 # which will be driven by the driver program.
21650 # If build != host, and we aren't building gas in-tree, we identify a
21651 # build->target linker and hope that it will have the same features
21652 # as the host->target linker we'll be using.
21653 gcc_cv_gld_major_version=
21654 gcc_cv_gld_minor_version=
21655 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21656 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21657 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21659 if test "${gcc_cv_ld+set}" = set; then :
21661 else
21663 if test -x "$DEFAULT_LINKER"; then
21664 gcc_cv_ld="$DEFAULT_LINKER"
21665 elif test $install_gold_as_default = yes \
21666 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21667 && test -f ../gold/Makefile \
21668 && test x$build = x$host; then
21669 gcc_cv_ld=../gold/ld-new$build_exeext
21670 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21671 && test -f ../ld/Makefile \
21672 && test x$build = x$host; then
21673 gcc_cv_ld=../ld/ld-new$build_exeext
21674 elif test -x collect-ld$build_exeext; then
21675 # Build using linker in the current directory.
21676 gcc_cv_ld=./collect-ld$build_exeext
21677 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21678 gcc_cv_ld="$LD_FOR_TARGET"
21679 else
21680 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21681 set dummy $LD_FOR_TARGET; ac_word=$2
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21683 $as_echo_n "checking for $ac_word... " >&6; }
21684 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21686 else
21687 case $gcc_cv_ld in
21688 [\\/]* | ?:[\\/]*)
21689 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21693 for as_dir in $PATH
21695 IFS=$as_save_IFS
21696 test -z "$as_dir" && as_dir=.
21697 for ac_exec_ext in '' $ac_executable_extensions; do
21698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21699 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21701 break 2
21703 done
21704 done
21705 IFS=$as_save_IFS
21708 esac
21710 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21711 if test -n "$gcc_cv_ld"; then
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21713 $as_echo "$gcc_cv_ld" >&6; }
21714 else
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21723 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21724 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21725 # if the PLUGIN_LD is set ld-new, just have it as ld
21726 # as that is the installed named.
21727 if test x$PLUGIN_LD_SUFFIX = xld-new \
21728 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21729 PLUGIN_LD_SUFFIX=ld
21732 # Check whether --with-plugin-ld was given.
21733 if test "${with_plugin_ld+set}" = set; then :
21734 withval=$with_plugin_ld; if test x"$withval" != x; then
21735 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21736 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21742 cat >>confdefs.h <<_ACEOF
21743 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21744 _ACEOF
21747 # Check to see if we are using gold instead of ld
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21749 $as_echo_n "checking whether we are using gold... " >&6; }
21750 ld_is_gold=no
21751 if test x$gcc_cv_ld != x; then
21752 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21753 | grep "GNU gold" > /dev/null; then
21754 ld_is_gold=yes
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21758 $as_echo "$ld_is_gold" >&6; }
21760 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21762 case "$ORIGINAL_LD_FOR_TARGET" in
21763 ./collect-ld | ./collect-ld$build_exeext) ;;
21764 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21766 esac
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21769 $as_echo_n "checking what linker to use... " >&6; }
21770 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21771 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21772 # Single tree build which includes ld. We want to prefer it
21773 # over whatever linker top-level may have detected, since
21774 # we'll use what we're building after installation anyway.
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21776 $as_echo "newly built ld" >&6; }
21777 in_tree_ld=yes
21778 in_tree_ld_is_elf=no
21779 if (grep 'EMUL = .*elf' ../ld/Makefile \
21780 || grep 'EMUL = .*linux' ../ld/Makefile \
21781 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21782 in_tree_ld_is_elf=yes
21783 elif test "$ld_is_gold" = yes; then
21784 in_tree_ld_is_elf=yes
21786 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
21788 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21789 if test x$gcc_cv_gld_version != x; then
21790 break
21792 done
21793 case $gcc_cv_gld_version in
21794 VERSION=[0-9]*) ;;
21795 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21796 esac
21797 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21798 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21799 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21800 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21801 else
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21803 $as_echo "$gcc_cv_ld" >&6; }
21804 in_tree_ld=no
21805 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21806 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21807 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21813 # Figure out what nm we will be using.
21814 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21815 if test "${gcc_cv_nm+set}" = set; then :
21817 else
21819 if test -f $gcc_cv_binutils_srcdir/configure.in \
21820 && test -f ../binutils/Makefile \
21821 && test x$build = x$host; then
21822 gcc_cv_nm=../binutils/nm-new$build_exeext
21823 elif test -x nm$build_exeext; then
21824 gcc_cv_nm=./nm$build_exeext
21825 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21826 gcc_cv_nm="$NM_FOR_TARGET"
21827 else
21828 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21829 set dummy $NM_FOR_TARGET; ac_word=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21834 else
21835 case $gcc_cv_nm in
21836 [\\/]* | ?:[\\/]*)
21837 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21841 for as_dir in $PATH
21843 IFS=$as_save_IFS
21844 test -z "$as_dir" && as_dir=.
21845 for ac_exec_ext in '' $ac_executable_extensions; do
21846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21847 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21849 break 2
21851 done
21852 done
21853 IFS=$as_save_IFS
21856 esac
21858 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21859 if test -n "$gcc_cv_nm"; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21861 $as_echo "$gcc_cv_nm" >&6; }
21862 else
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21872 $as_echo_n "checking what nm to use... " >&6; }
21873 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21874 # Single tree build which includes binutils.
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21876 $as_echo "newly built nm" >&6; }
21877 in_tree_nm=yes
21878 else
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21880 $as_echo "$gcc_cv_nm" >&6; }
21881 in_tree_nm=no
21884 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21886 case "$ORIGINAL_NM_FOR_TARGET" in
21887 ./nm | ./nm$build_exeext) ;;
21888 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21890 esac
21893 # Figure out what objdump we will be using.
21894 if test "${gcc_cv_objdump+set}" = set; then :
21896 else
21898 if test -f $gcc_cv_binutils_srcdir/configure.in \
21899 && test -f ../binutils/Makefile \
21900 && test x$build = x$host; then
21901 # Single tree build which includes binutils.
21902 gcc_cv_objdump=../binutils/objdump$build_exeext
21903 elif test -x objdump$build_exeext; then
21904 gcc_cv_objdump=./objdump$build_exeext
21905 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21906 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21907 else
21908 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21909 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21911 $as_echo_n "checking for $ac_word... " >&6; }
21912 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 case $gcc_cv_objdump in
21916 [\\/]* | ?:[\\/]*)
21917 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21921 for as_dir in $PATH
21923 IFS=$as_save_IFS
21924 test -z "$as_dir" && as_dir=.
21925 for ac_exec_ext in '' $ac_executable_extensions; do
21926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21927 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21929 break 2
21931 done
21932 done
21933 IFS=$as_save_IFS
21936 esac
21938 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21939 if test -n "$gcc_cv_objdump"; then
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21941 $as_echo "$gcc_cv_objdump" >&6; }
21942 else
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 $as_echo "no" >&6; }
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21952 $as_echo_n "checking what objdump to use... " >&6; }
21953 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21954 # Single tree build which includes binutils.
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21956 $as_echo "newly built objdump" >&6; }
21957 elif test x$gcc_cv_objdump = x; then
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21959 $as_echo "not found" >&6; }
21960 else
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21962 $as_echo "$gcc_cv_objdump" >&6; }
21965 # Figure out what readelf we will be using.
21966 if test "${gcc_cv_readelf+set}" = set; then :
21968 else
21970 if test -f $gcc_cv_binutils_srcdir/configure.in \
21971 && test -f ../binutils/Makefile \
21972 && test x$build = x$host; then
21973 # Single tree build which includes binutils.
21974 gcc_cv_readelf=../binutils/readelf$build_exeext
21975 elif test -x readelf$build_exeext; then
21976 gcc_cv_readelf=./readelf$build_exeext
21977 else
21978 # Extract the first word of "readelf", so it can be a program name with args.
21979 set dummy readelf; ac_word=$2
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981 $as_echo_n "checking for $ac_word... " >&6; }
21982 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21983 $as_echo_n "(cached) " >&6
21984 else
21985 case $gcc_cv_readelf in
21986 [\\/]* | ?:[\\/]*)
21987 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991 for as_dir in $PATH
21993 IFS=$as_save_IFS
21994 test -z "$as_dir" && as_dir=.
21995 for ac_exec_ext in '' $ac_executable_extensions; do
21996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21997 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21999 break 2
22001 done
22002 done
22003 IFS=$as_save_IFS
22006 esac
22008 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22009 if test -n "$gcc_cv_readelf"; then
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22011 $as_echo "$gcc_cv_readelf" >&6; }
22012 else
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22022 $as_echo_n "checking what readelf to use... " >&6; }
22023 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22024 # Single tree build which includes binutils.
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22026 $as_echo "newly built readelf" >&6; }
22027 elif test x$gcc_cv_readelf = x; then
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22029 $as_echo "not found" >&6; }
22030 else
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22032 $as_echo "$gcc_cv_readelf" >&6; }
22035 # Figure out what assembler alignment features are present.
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22037 $as_echo_n "checking assembler flags... " >&6; }
22038 if test "${gcc_cv_as_flags+set}" = set; then :
22039 $as_echo_n "(cached) " >&6
22040 else
22041 case "$target" in
22042 i[34567]86-*-linux*)
22043 gcc_cv_as_flags=--32
22045 x86_64-*-linux-gnux32)
22046 gcc_cv_as_flags=--x32
22048 x86_64-*-linux*)
22049 gcc_cv_as_flags=--64
22051 powerpc*-*-darwin*)
22052 gcc_cv_as_flags="-arch ppc"
22055 gcc_cv_as_flags=" "
22057 esac
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22060 $as_echo "$gcc_cv_as_flags" >&6; }
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22063 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22064 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 gcc_cv_as_balign_and_p2align=no
22068 if test $in_tree_gas = yes; then
22069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22070 then gcc_cv_as_balign_and_p2align=yes
22072 elif test x$gcc_cv_as != x; then
22073 $as_echo '.balign 4
22074 .p2align 2' > conftest.s
22075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22081 then
22082 gcc_cv_as_balign_and_p2align=yes
22083 else
22084 echo "configure: failed program was" >&5
22085 cat conftest.s >&5
22087 rm -f conftest.o conftest.s
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22091 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22092 if test $gcc_cv_as_balign_and_p2align = yes; then
22094 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22099 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22100 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22102 else
22103 gcc_cv_as_max_skip_p2align=no
22104 if test $in_tree_gas = yes; then
22105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22106 then gcc_cv_as_max_skip_p2align=yes
22108 elif test x$gcc_cv_as != x; then
22109 $as_echo '.p2align 4,,7' > conftest.s
22110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }
22116 then
22117 gcc_cv_as_max_skip_p2align=yes
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_max_skip_p2align" >&5
22126 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22127 if test $gcc_cv_as_max_skip_p2align = yes; then
22129 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22134 $as_echo_n "checking assembler for .literal16... " >&6; }
22135 if test "${gcc_cv_as_literal16+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22137 else
22138 gcc_cv_as_literal16=no
22139 if test $in_tree_gas = yes; then
22140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22141 then gcc_cv_as_literal16=yes
22143 elif test x$gcc_cv_as != x; then
22144 $as_echo '.literal16' > conftest.s
22145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22151 then
22152 gcc_cv_as_literal16=yes
22153 else
22154 echo "configure: failed program was" >&5
22155 cat conftest.s >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22161 $as_echo "$gcc_cv_as_literal16" >&6; }
22162 if test $gcc_cv_as_literal16 = yes; then
22164 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22169 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22170 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 gcc_cv_as_subsection_m1=no
22174 if test $in_tree_gas = yes; then
22175 if test $in_tree_gas_is_elf = yes \
22176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22177 then gcc_cv_as_subsection_m1=yes
22179 elif test x$gcc_cv_as != x; then
22180 $as_echo 'conftest_label1: .word 0
22181 .subsection -1
22182 conftest_label2: .word 0
22183 .previous' > conftest.s
22184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22189 test $ac_status = 0; }; }
22190 then
22191 if test x$gcc_cv_nm != x; then
22192 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22193 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22194 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22195 then :
22196 else gcc_cv_as_subsection_m1=yes
22198 rm -f conftest.nm1 conftest.nm2
22200 else
22201 echo "configure: failed program was" >&5
22202 cat conftest.s >&5
22204 rm -f conftest.o conftest.s
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22208 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22209 if test $gcc_cv_as_subsection_m1 = yes; then
22211 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22216 $as_echo_n "checking assembler for .weak... " >&6; }
22217 if test "${gcc_cv_as_weak+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 gcc_cv_as_weak=no
22221 if test $in_tree_gas = yes; then
22222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22223 then gcc_cv_as_weak=yes
22225 elif test x$gcc_cv_as != x; then
22226 $as_echo ' .weak foobar' > conftest.s
22227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22232 test $ac_status = 0; }; }
22233 then
22234 gcc_cv_as_weak=yes
22235 else
22236 echo "configure: failed program was" >&5
22237 cat conftest.s >&5
22239 rm -f conftest.o conftest.s
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22243 $as_echo "$gcc_cv_as_weak" >&6; }
22244 if test $gcc_cv_as_weak = yes; then
22246 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22251 $as_echo_n "checking assembler for .weakref... " >&6; }
22252 if test "${gcc_cv_as_weakref+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 gcc_cv_as_weakref=no
22256 if test $in_tree_gas = yes; then
22257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22258 then gcc_cv_as_weakref=yes
22260 elif test x$gcc_cv_as != x; then
22261 $as_echo ' .weakref foobar, barfnot' > conftest.s
22262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22267 test $ac_status = 0; }; }
22268 then
22269 gcc_cv_as_weakref=yes
22270 else
22271 echo "configure: failed program was" >&5
22272 cat conftest.s >&5
22274 rm -f conftest.o conftest.s
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22278 $as_echo "$gcc_cv_as_weakref" >&6; }
22279 if test $gcc_cv_as_weakref = yes; then
22281 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22286 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22287 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22289 else
22290 gcc_cv_as_nsubspa_comdat=no
22291 if test $in_tree_gas = yes; then
22292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22293 then gcc_cv_as_nsubspa_comdat=yes
22295 elif test x$gcc_cv_as != x; then
22296 $as_echo ' .SPACE $TEXT$
22297 .NSUBSPA $CODE$,COMDAT' > conftest.s
22298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; }
22304 then
22305 gcc_cv_as_nsubspa_comdat=yes
22306 else
22307 echo "configure: failed program was" >&5
22308 cat conftest.s >&5
22310 rm -f conftest.o conftest.s
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22314 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22315 if test $gcc_cv_as_nsubspa_comdat = yes; then
22317 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22321 # .hidden needs to be supported in both the assembler and the linker,
22322 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22323 # This is irritatingly difficult to feature test for; we have to check the
22324 # date string after the version number. If we've got an in-tree
22325 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22326 # to be safe.
22327 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22329 $as_echo_n "checking assembler for .hidden... " >&6; }
22330 if test "${gcc_cv_as_hidden+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22332 else
22333 gcc_cv_as_hidden=no
22334 if test $in_tree_gas = yes; then
22335 if test $in_tree_gas_is_elf = yes \
22336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22337 then gcc_cv_as_hidden=yes
22339 elif test x$gcc_cv_as != x; then
22340 $as_echo ' .hidden foobar
22341 foobar:' > conftest.s
22342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22347 test $ac_status = 0; }; }
22348 then
22350 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22351 # STV_HIDDEN, so disable .hidden support if so.
22352 case "${target}" in
22353 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22354 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22355 cat > conftest.s <<EOF
22356 .globl hidden
22357 .hidden hidden
22358 hidden:
22359 .globl default
22360 .set default,hidden
22362 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22363 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22364 grep '\.hidden default' > /dev/null; then
22365 gcc_cv_as_hidden=no
22366 else
22367 gcc_cv_as_hidden=yes
22369 else
22370 # Assume bug is present if objdump is missing.
22371 gcc_cv_as_hidden=no
22375 gcc_cv_as_hidden=yes
22377 esac
22378 else
22379 echo "configure: failed program was" >&5
22380 cat conftest.s >&5
22382 rm -f conftest.o conftest.s
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22386 $as_echo "$gcc_cv_as_hidden" >&6; }
22388 case "${target}" in
22389 *-*-darwin*)
22390 # Darwin as has some visibility support, though with a different syntax.
22391 gcc_cv_as_hidden=yes
22393 esac
22395 # gnu_indirect_function type is an extension proposed at
22396 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22397 # selection of function implementation
22398 # Check whether --enable-gnu-indirect-function was given.
22399 if test "${enable_gnu_indirect_function+set}" = set; then :
22400 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22401 yes | no) ;;
22402 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22403 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22404 esac
22405 else
22406 enable_gnu_indirect_function="$default_gnu_indirect_function"
22410 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22414 _ACEOF
22418 if test $in_tree_ld != yes ; then
22419 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22420 if echo "$ld_ver" | grep GNU > /dev/null; then
22421 if test x"$ld_is_gold" = xyes; then
22422 # GNU gold --version looks like this:
22424 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22426 # We extract the binutils version which is more familiar and specific
22427 # than the gold version.
22428 ld_vers=`echo $ld_ver | sed -n \
22429 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22430 else
22431 # GNU ld --version looks like this:
22433 # GNU ld (GNU Binutils) 2.21.51.20110225
22434 ld_vers=`echo $ld_ver | sed -n \
22435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22437 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'`
22438 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22439 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22440 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22441 else
22442 case "${target}" in
22443 *-*-solaris2*)
22444 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22445 # format.
22447 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22448 # /usr/ccs/bin/ld has been configured.
22449 ld_ver=`$gcc_cv_ld -V 2>&1`
22450 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22451 ld_vers=`echo $ld_ver | sed -n \
22452 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22453 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22454 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22457 esac
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22462 $as_echo_n "checking linker for .hidden support... " >&6; }
22463 if test "${gcc_cv_ld_hidden+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22465 else
22466 if test $in_tree_ld = yes ; then
22467 gcc_cv_ld_hidden=no
22468 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 \
22469 && test $in_tree_ld_is_elf = yes; then
22470 gcc_cv_ld_hidden=yes
22472 else
22473 gcc_cv_ld_hidden=yes
22474 if test x"$ld_is_gold" = xyes; then
22476 elif echo "$ld_ver" | grep GNU > /dev/null; then
22477 case "${target}" in
22478 mmix-knuth-mmixware)
22479 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22480 gcc_cv_ld_hidden=no
22482 esac
22483 if test 0"$ld_date" -lt 20020404; then
22484 if test -n "$ld_date"; then
22485 # If there was date string, but was earlier than 2002-04-04, fail
22486 gcc_cv_ld_hidden=no
22487 elif test -z "$ld_vers"; then
22488 # If there was no date string nor ld version number, something is wrong
22489 gcc_cv_ld_hidden=no
22490 else
22491 test -z "$ld_vers_patch" && ld_vers_patch=0
22492 if test "$ld_vers_major" -lt 2; then
22493 gcc_cv_ld_hidden=no
22494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22495 gcc_cv_ld_hidden="no"
22496 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22497 gcc_cv_ld_hidden=no
22501 else
22502 case "${target}" in
22503 *-*-darwin*)
22504 # Darwin ld has some visibility support.
22505 gcc_cv_ld_hidden=yes
22507 hppa64*-*-hpux* | ia64*-*-hpux*)
22508 gcc_cv_ld_hidden=yes
22510 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22511 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22512 # .symbolic was only added in Solaris 9 12/02.
22513 gcc_cv_ld_hidden=yes
22516 gcc_cv_ld_hidden=no
22518 esac
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22523 $as_echo "$gcc_cv_ld_hidden" >&6; }
22524 libgcc_visibility=no
22527 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22528 libgcc_visibility=yes
22530 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22535 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22536 gcc_cv_ld_ro_rw_mix=unknown
22537 if test $in_tree_ld = yes ; then
22538 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 \
22539 && test $in_tree_ld_is_elf = yes; then
22540 gcc_cv_ld_ro_rw_mix=read-write
22542 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22543 echo '.section myfoosect, "a"' > conftest1.s
22544 echo '.section myfoosect, "aw"' > conftest2.s
22545 echo '.byte 1' >> conftest2.s
22546 echo '.section myfoosect, "a"' > conftest3.s
22547 echo '.byte 0' >> conftest3.s
22548 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22549 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22550 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22551 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22552 conftest2.o conftest3.o > /dev/null 2>&1; then
22553 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22554 | sed -e '/myfoosect/!d' -e N`
22555 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22556 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22557 gcc_cv_ld_ro_rw_mix=read-only
22558 else
22559 gcc_cv_ld_ro_rw_mix=read-write
22563 rm -f conftest.* conftest[123].*
22565 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22567 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22571 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22573 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22574 case "${target}" in
22575 *-*-solaris2*)
22577 # Solaris 2 ld -V output looks like this for a regular version:
22579 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22581 # but test versions add stuff at the end:
22583 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22585 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22586 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22587 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22588 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22589 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22590 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22593 esac
22596 # Check whether --enable-initfini-array was given.
22597 if test "${enable_initfini_array+set}" = set; then :
22598 enableval=$enable_initfini_array;
22599 else
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22602 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22603 if test "${gcc_cv_initfini_array+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22607 case "${target}" in
22608 ia64-*)
22609 if test "$cross_compiling" = yes; then :
22610 gcc_cv_initfini_array=no
22611 else
22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h. */
22615 #ifndef __ELF__
22616 #error Not an ELF OS
22617 #endif
22618 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22619 if it can be used. */
22620 static int x = -1;
22621 int main (void) { return x; }
22622 int foo (void) { x = 0; }
22623 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22625 _ACEOF
22626 if ac_fn_c_try_run "$LINENO"; then :
22627 gcc_cv_initfini_array=yes
22628 else
22629 gcc_cv_initfini_array=no
22631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22632 conftest.$ac_objext conftest.beam conftest.$ac_ext
22636 gcc_cv_initfini_array=no
22637 if test $in_tree_ld = yes ; then
22638 if test "$gcc_cv_gld_major_version" -eq 2 \
22639 -a "$gcc_cv_gld_minor_version" -ge 22 \
22640 -o "$gcc_cv_gld_major_version" -gt 2 \
22641 && test $in_tree_ld_is_elf = yes; then
22642 gcc_cv_initfini_array=yes
22644 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22645 cat > conftest.s <<\EOF
22646 .section .dtors,"a",%progbits
22647 .balign 4
22648 .byte 'A', 'A', 'A', 'A'
22649 .section .ctors,"a",%progbits
22650 .balign 4
22651 .byte 'B', 'B', 'B', 'B'
22652 .section .fini_array.65530,"a",%progbits
22653 .balign 4
22654 .byte 'C', 'C', 'C', 'C'
22655 .section .init_array.65530,"a",%progbits
22656 .balign 4
22657 .byte 'D', 'D', 'D', 'D'
22658 .section .dtors.64528,"a",%progbits
22659 .balign 4
22660 .byte 'E', 'E', 'E', 'E'
22661 .section .ctors.64528,"a",%progbits
22662 .balign 4
22663 .byte 'F', 'F', 'F', 'F'
22664 .section .fini_array.01005,"a",%progbits
22665 .balign 4
22666 .byte 'G', 'G', 'G', 'G'
22667 .section .init_array.01005,"a",%progbits
22668 .balign 4
22669 .byte 'H', 'H', 'H', 'H'
22670 .text
22671 .globl _start
22672 _start:
22674 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22675 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22676 && $gcc_cv_objdump -s -j .init_array conftest \
22677 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22678 && $gcc_cv_objdump -s -j .fini_array conftest \
22679 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22680 gcc_cv_initfini_array=yes
22682 rm -f conftest conftest.*
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685 /* end confdefs.h. */
22687 #ifndef __ELF__
22688 # error Not an ELF OS
22689 #endif
22690 #include <stdlib.h>
22691 #if defined __GLIBC_PREREQ
22692 # if __GLIBC_PREREQ (2, 4)
22693 # else
22694 # error GLIBC 2.4 required
22695 # endif
22696 #else
22697 # if defined __sun__ && defined __svr4__
22698 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22699 # else
22700 # error The C library not known to support .init_array/.fini_array
22701 # endif
22702 #endif
22704 _ACEOF
22705 if ac_fn_c_try_cpp "$LINENO"; then :
22707 else
22708 gcc_cv_initfini_array=no
22710 rm -f conftest.err conftest.$ac_ext;;
22711 esac
22712 else
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22714 $as_echo_n "checking cross compile... guessing... " >&6; }
22715 gcc_cv_initfini_array=no
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22719 $as_echo "$gcc_cv_initfini_array" >&6; }
22720 enable_initfini_array=$gcc_cv_initfini_array
22724 if test $enable_initfini_array = yes; then
22726 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22730 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22732 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22733 if test "${gcc_cv_as_leb128+set}" = set; then :
22734 $as_echo_n "(cached) " >&6
22735 else
22736 gcc_cv_as_leb128=no
22737 if test $in_tree_gas = yes; then
22738 if test $in_tree_gas_is_elf = yes \
22739 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22740 then gcc_cv_as_leb128=yes
22742 elif test x$gcc_cv_as != x; then
22743 $as_echo ' .data
22744 .uleb128 L2 - L1
22746 .uleb128 1280
22747 .sleb128 -1010
22748 L2:' > conftest.s
22749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22755 then
22756 # GAS versions before 2.11 do not support uleb128,
22757 # despite appearing to.
22758 # ??? There exists an elf-specific test that will crash
22759 # the assembler. Perhaps it's better to figure out whether
22760 # arbitrary sections are supported and try the test.
22761 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22762 if echo "$as_ver" | grep GNU > /dev/null; then
22763 as_vers=`echo $as_ver | sed -n \
22764 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22765 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22766 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22767 if test $as_major -eq 2 && test $as_minor -lt 11
22768 then :
22769 else gcc_cv_as_leb128=yes
22772 else
22773 echo "configure: failed program was" >&5
22774 cat conftest.s >&5
22776 rm -f conftest.o conftest.s
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22780 $as_echo "$gcc_cv_as_leb128" >&6; }
22781 if test $gcc_cv_as_leb128 = yes; then
22783 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22787 # Check if we have assembler support for unwind directives.
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22789 $as_echo_n "checking assembler for cfi directives... " >&6; }
22790 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22792 else
22793 gcc_cv_as_cfi_directive=no
22794 if test x$gcc_cv_as != x; then
22795 $as_echo ' .text
22796 .cfi_startproc
22797 .cfi_offset 0, 0
22798 .cfi_same_value 1
22799 .cfi_def_cfa 1, 2
22800 .cfi_escape 1, 2, 3, 4, 5
22801 .cfi_endproc' > conftest.s
22802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }; }
22808 then
22809 case "$target" in
22810 *-*-solaris*)
22811 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22812 # read-only and read-write sections, we need to make sure that the
22813 # assembler used emits read-write .eh_frame sections.
22814 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22815 if test "x$gcc_cv_objdump" != x; then
22816 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22817 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22818 gcc_cv_as_cfi_directive=no
22819 else
22820 case "$target" in
22821 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22822 # On Solaris/x86, make sure that GCC and gas agree on using
22823 # read-only .eh_frame sections for 64-bit.
22824 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22825 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22826 sed -e /.eh_frame/!d -e N | \
22827 grep READONLY > /dev/null; then
22828 gcc_cv_as_cfi_directive=yes
22829 else
22830 gcc_cv_as_cfi_directive=no
22834 gcc_cv_as_cfi_directive=yes
22836 esac
22838 else
22839 # no objdump, err on the side of caution
22840 gcc_cv_as_cfi_directive=no
22842 else
22843 gcc_cv_as_cfi_directive=yes
22846 *-*-*)
22847 gcc_cv_as_cfi_directive=yes
22849 esac
22850 else
22851 echo "configure: failed program was" >&5
22852 cat conftest.s >&5
22854 rm -f conftest.o conftest.s
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22858 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22860 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22862 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22863 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22864 $as_echo_n "(cached) " >&6
22865 else
22866 gcc_cv_as_cfi_advance_working=no
22867 if test x$gcc_cv_as != x; then
22868 $as_echo ' .text
22869 .cfi_startproc
22870 .cfi_adjust_cfa_offset 64
22871 .skip 75040, 0
22872 .cfi_adjust_cfa_offset 128
22873 .cfi_endproc' > conftest.s
22874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; }
22880 then
22882 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22883 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22884 gcc_cv_as_cfi_advance_working=yes
22887 else
22888 echo "configure: failed program was" >&5
22889 cat conftest.s >&5
22891 rm -f conftest.o conftest.s
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22895 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22897 else
22898 # no objdump, err on the side of caution
22899 gcc_cv_as_cfi_advance_working=no
22903 cat >>confdefs.h <<_ACEOF
22904 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22905 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22906 _ACEOF
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22911 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22912 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 gcc_cv_as_cfi_personality_directive=no
22916 if test x$gcc_cv_as != x; then
22917 $as_echo ' .text
22918 .cfi_startproc
22919 .cfi_personality 0, symbol
22920 .cfi_endproc' > conftest.s
22921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22927 then
22928 gcc_cv_as_cfi_personality_directive=yes
22929 else
22930 echo "configure: failed program was" >&5
22931 cat conftest.s >&5
22933 rm -f conftest.o conftest.s
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22937 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22940 cat >>confdefs.h <<_ACEOF
22941 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22942 then echo 1; else echo 0; fi`
22943 _ACEOF
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22947 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22948 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 gcc_cv_as_cfi_sections_directive=no
22952 if test x$gcc_cv_as != x; then
22953 $as_echo ' .text
22954 .cfi_sections .debug_frame, .eh_frame
22955 .cfi_startproc
22956 .cfi_endproc' > conftest.s
22957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22959 (eval $ac_try) 2>&5
22960 ac_status=$?
22961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22962 test $ac_status = 0; }; }
22963 then
22964 case $target_os in
22965 win32 | pe | cygwin* | mingw32* | uwin*)
22966 # Need to check that we generated the correct relocation for the
22967 # .debug_frame section. This was fixed for binutils 2.21.
22968 gcc_cv_as_cfi_sections_directive=no
22969 if test "x$gcc_cv_objdump" != x; then
22970 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22971 grep secrel > /dev/null; then
22972 gcc_cv_as_cfi_sections_directive=yes
22977 gcc_cv_as_cfi_sections_directive=yes
22979 esac
22980 else
22981 echo "configure: failed program was" >&5
22982 cat conftest.s >&5
22984 rm -f conftest.o conftest.s
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22988 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22992 cat >>confdefs.h <<_ACEOF
22993 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22994 then echo 1; else echo 0; fi`
22995 _ACEOF
22998 # GAS versions up to and including 2.11.0 may mis-optimize
22999 # .eh_frame data.
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23001 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23002 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23004 else
23005 gcc_cv_as_eh_frame=no
23006 if test $in_tree_gas = yes; then
23007 if test $in_tree_gas_is_elf = yes \
23008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23009 then gcc_cv_as_eh_frame=yes
23011 elif test x$gcc_cv_as != x; then
23012 $as_echo ' .text
23013 .LFB1:
23014 .4byte 0
23015 .L1:
23016 .4byte 0
23017 .LFE1:
23018 .section .eh_frame,"aw",@progbits
23019 __FRAME_BEGIN__:
23020 .4byte .LECIE1-.LSCIE1
23021 .LSCIE1:
23022 .4byte 0x0
23023 .byte 0x1
23024 .ascii "z\0"
23025 .byte 0x1
23026 .byte 0x78
23027 .byte 0x1a
23028 .byte 0x0
23029 .byte 0x4
23030 .4byte 1
23031 .p2align 1
23032 .LECIE1:
23033 .LSFDE1:
23034 .4byte .LEFDE1-.LASFDE1
23035 .LASFDE1:
23036 .4byte .LASFDE1-__FRAME_BEGIN__
23037 .4byte .LFB1
23038 .4byte .LFE1-.LFB1
23039 .byte 0x4
23040 .4byte .LFE1-.LFB1
23041 .byte 0x4
23042 .4byte .L1-.LFB1
23043 .LEFDE1:' > conftest.s
23044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23046 (eval $ac_try) 2>&5
23047 ac_status=$?
23048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23049 test $ac_status = 0; }; }
23050 then
23051 cat > conftest.lit <<EOF
23052 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23053 0010 01000000 12000000 18000000 00000000 ................
23054 0020 08000000 04080000 0044 .........D
23056 cat > conftest.big <<EOF
23057 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23058 0010 00000001 00000012 00000018 00000000 ................
23059 0020 00000008 04000000 0844 .........D
23061 # If the assembler didn't choke, and we can objdump,
23062 # and we got the correct data, then succeed.
23063 # The text in the here-document typically retains its unix-style line
23064 # endings, while the output of objdump will use host line endings.
23065 # Therefore, use diff -b for the comparisons.
23066 if test x$gcc_cv_objdump != x \
23067 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23068 | tail -3 > conftest.got \
23069 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23070 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23071 then
23072 gcc_cv_as_eh_frame=yes
23073 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }; then
23079 gcc_cv_as_eh_frame=buggy
23080 else
23081 # Uh oh, what do we do now?
23082 gcc_cv_as_eh_frame=no
23084 else
23085 echo "configure: failed program was" >&5
23086 cat conftest.s >&5
23088 rm -f conftest.o conftest.s
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23092 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23095 if test $gcc_cv_as_eh_frame = buggy; then
23097 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23102 $as_echo_n "checking assembler for section merging support... " >&6; }
23103 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23105 else
23106 gcc_cv_as_shf_merge=no
23107 if test $in_tree_gas = yes; then
23108 if test $in_tree_gas_is_elf = yes \
23109 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23110 then gcc_cv_as_shf_merge=yes
23112 elif test x$gcc_cv_as != x; then
23113 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23116 (eval $ac_try) 2>&5
23117 ac_status=$?
23118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23119 test $ac_status = 0; }; }
23120 then
23121 gcc_cv_as_shf_merge=yes
23122 else
23123 echo "configure: failed program was" >&5
23124 cat conftest.s >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23130 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23132 if test $gcc_cv_as_shf_merge = no; then
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23134 $as_echo_n "checking assembler for section merging support... " >&6; }
23135 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23137 else
23138 gcc_cv_as_shf_merge=no
23139 if test $in_tree_gas = yes; then
23140 if test $in_tree_gas_is_elf = yes \
23141 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23142 then gcc_cv_as_shf_merge=yes
23144 elif test x$gcc_cv_as != x; then
23145 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23148 (eval $ac_try) 2>&5
23149 ac_status=$?
23150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23151 test $ac_status = 0; }; }
23152 then
23153 gcc_cv_as_shf_merge=yes
23154 else
23155 echo "configure: failed program was" >&5
23156 cat conftest.s >&5
23158 rm -f conftest.o conftest.s
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23162 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23166 cat >>confdefs.h <<_ACEOF
23167 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23168 _ACEOF
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23172 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23173 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23174 $as_echo_n "(cached) " >&6
23175 else
23176 gcc_cv_as_comdat_group=no
23177 if test $in_tree_gas = yes; then
23178 if test $in_tree_gas_is_elf = yes \
23179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23180 then gcc_cv_as_comdat_group=yes
23182 elif test x$gcc_cv_as != x; then
23183 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189 test $ac_status = 0; }; }
23190 then
23191 gcc_cv_as_comdat_group=yes
23192 else
23193 echo "configure: failed program was" >&5
23194 cat conftest.s >&5
23196 rm -f conftest.o conftest.s
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23200 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23202 if test $gcc_cv_as_comdat_group = yes; then
23203 gcc_cv_as_comdat_group_percent=no
23204 gcc_cv_as_comdat_group_group=no
23205 else
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23207 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23208 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23210 else
23211 gcc_cv_as_comdat_group_percent=no
23212 if test $in_tree_gas = yes; then
23213 if test $in_tree_gas_is_elf = yes \
23214 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23215 then gcc_cv_as_comdat_group_percent=yes
23217 elif test x$gcc_cv_as != x; then
23218 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }
23225 then
23226 gcc_cv_as_comdat_group_percent=yes
23227 else
23228 echo "configure: failed program was" >&5
23229 cat conftest.s >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23235 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23237 if test $gcc_cv_as_comdat_group_percent = yes; then
23238 gcc_cv_as_comdat_group_group=no
23239 else
23240 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23241 gcc_cv_as_comdat_group_group=no
23243 case "${target}" in
23244 # Sun as uses a completely different syntax.
23245 *-*-solaris2*)
23246 case "${target}" in
23247 sparc*-*-solaris2*)
23248 conftest_s='
23249 .group foo,".text%foo",#comdat
23250 .section ".text%foo", #alloc,#execinstr,#progbits
23251 .globl foo
23252 foo:
23255 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23256 conftest_s='
23257 .group foo,.text%foo,#comdat
23258 .section .text%foo, "ax", @progbits
23259 .globl foo
23260 foo:
23263 esac
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23265 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23266 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23268 else
23269 gcc_cv_as_comdat_group_group=no
23270 if test x$gcc_cv_as != x; then
23271 $as_echo "$conftest_s" > conftest.s
23272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23278 then
23279 gcc_cv_as_comdat_group_group=yes
23280 else
23281 echo "configure: failed program was" >&5
23282 cat conftest.s >&5
23284 rm -f conftest.o conftest.s
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23288 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23291 esac
23294 if test x"$ld_is_gold" = xyes; then
23295 comdat_group=yes
23296 elif test $in_tree_ld = yes ; then
23297 comdat_group=no
23298 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 \
23299 && test $in_tree_ld_is_elf = yes; then
23300 comdat_group=yes
23302 elif echo "$ld_ver" | grep GNU > /dev/null; then
23303 comdat_group=yes
23304 if test 0"$ld_date" -lt 20050308; then
23305 if test -n "$ld_date"; then
23306 # If there was date string, but was earlier than 2005-03-08, fail
23307 comdat_group=no
23308 elif test "$ld_vers_major" -lt 2; then
23309 comdat_group=no
23310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23311 comdat_group=no
23314 else
23315 case "${target}" in
23316 *-*-solaris2.1[1-9]*)
23317 comdat_group=no
23318 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23319 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23320 # version 1.688.
23322 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23323 # least ld version 1.2267.
23324 if test "$ld_vers_major" -gt 1; then
23325 comdat_group=yes
23326 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23327 comdat_group=yes
23328 elif test "$ld_vers_minor" -ge 2267; then
23329 comdat_group=yes
23333 # Assume linkers other than GNU ld don't support COMDAT group.
23334 comdat_group=no
23336 esac
23338 # Allow overriding the automatic COMDAT group tests above.
23339 # Check whether --enable-comdat was given.
23340 if test "${enable_comdat+set}" = set; then :
23341 enableval=$enable_comdat; comdat_group="$enable_comdat"
23344 if test $comdat_group = no; then
23345 gcc_cv_as_comdat_group=no
23346 gcc_cv_as_comdat_group_percent=no
23347 gcc_cv_as_comdat_group_group=no
23350 cat >>confdefs.h <<_ACEOF
23351 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23352 || test $gcc_cv_as_comdat_group_percent = yes \
23353 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23354 _ACEOF
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23358 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23359 if test "${gcc_cv_as_discriminator+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23361 else
23362 gcc_cv_as_discriminator=no
23363 if test $in_tree_gas = yes; then
23364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23365 then gcc_cv_as_discriminator=yes
23367 elif test x$gcc_cv_as != x; then
23368 $as_echo ' .text
23369 .file 1 "conf.c"
23370 .loc 1 1 0 discriminator 1' > conftest.s
23371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23376 test $ac_status = 0; }; }
23377 then
23378 gcc_cv_as_discriminator=yes
23379 else
23380 echo "configure: failed program was" >&5
23381 cat conftest.s >&5
23383 rm -f conftest.o conftest.s
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23387 $as_echo "$gcc_cv_as_discriminator" >&6; }
23388 if test $gcc_cv_as_discriminator = yes; then
23390 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23394 # Thread-local storage - the check is heavily parameterized.
23395 conftest_s=
23396 tls_first_major=
23397 tls_first_minor=
23398 tls_as_opt=
23399 case "$target" in
23400 alpha*-*-*)
23401 conftest_s='
23402 .section ".tdata","awT",@progbits
23403 foo: .long 25
23404 .text
23405 ldq $27,__tls_get_addr($29) !literal!1
23406 lda $16,foo($29) !tlsgd!1
23407 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23408 ldq $27,__tls_get_addr($29) !literal!2
23409 lda $16,foo($29) !tlsldm!2
23410 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23411 ldq $1,foo($29) !gotdtprel
23412 ldah $2,foo($29) !dtprelhi
23413 lda $3,foo($2) !dtprello
23414 lda $4,foo($29) !dtprel
23415 ldq $1,foo($29) !gottprel
23416 ldah $2,foo($29) !tprelhi
23417 lda $3,foo($2) !tprello
23418 lda $4,foo($29) !tprel'
23419 tls_first_major=2
23420 tls_first_minor=13
23421 tls_as_opt=--fatal-warnings
23423 cris-*-*|crisv32-*-*)
23424 conftest_s='
23425 .section ".tdata","awT",@progbits
23426 x: .long 25
23427 .text
23428 move.d x:IE,$r10
23429 nop'
23430 tls_first_major=2
23431 tls_first_minor=20
23432 tls_as_opt=--fatal-warnings
23434 frv*-*-*)
23435 conftest_s='
23436 .section ".tdata","awT",@progbits
23437 x: .long 25
23438 .text
23439 call #gettlsoff(x)'
23440 tls_first_major=2
23441 tls_first_minor=14
23443 hppa*-*-linux*)
23444 conftest_s='
23445 t1: .reg %r20
23446 t2: .reg %r21
23447 gp: .reg %r19
23448 .section ".tdata","awT",@progbits
23449 foo: .long 25
23450 .text
23451 .align 4
23452 addil LT%foo-$tls_gdidx$,gp
23453 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23454 b __tls_get_addr
23456 addil LT%foo-$tls_ldidx$,gp
23457 b __tls_get_addr
23458 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23459 addil LR%foo-$tls_dtpoff$,%ret0
23460 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23461 mfctl %cr27,%t1
23462 addil LT%foo-$tls_ieoff$,gp
23463 ldw RT%foo-$tls_ieoff$(%r1),%t2
23464 add %t1,%t2,%t3
23465 mfctl %cr27,%t1
23466 addil LR%foo-$tls_leoff$,%t1
23467 ldo RR%foo-$tls_leoff$(%r1),%t2'
23468 tls_first_major=2
23469 tls_first_minor=15
23470 tls_as_opt=--fatal-warnings
23472 arm*-*-*)
23473 conftest_s='
23474 .section ".tdata","awT",%progbits
23475 foo: .long 25
23476 .text
23477 .word foo(gottpoff)
23478 .word foo(tpoff)
23479 .word foo(tlsgd)
23480 .word foo(tlsldm)
23481 .word foo(tlsldo)'
23482 tls_first_major=2
23483 tls_first_minor=17
23485 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23486 case "$target" in
23487 i[34567]86-*-solaris2.*)
23488 on_solaris=yes
23489 tga_func=___tls_get_addr
23491 x86_64-*-solaris2.1[0-9]*)
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,"awt",@progbits'
23502 tls_first_major=0
23503 tls_first_minor=0
23505 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23507 else
23508 conftest_s='
23509 .section ".tdata","awT",@progbits'
23510 tls_first_major=2
23511 tls_first_minor=14
23512 tls_as_opt="--fatal-warnings"
23514 conftest_s="$conftest_s
23515 foo: .long 25
23516 .text
23517 movl %gs:0, %eax
23518 leal foo@tlsgd(,%ebx,1), %eax
23519 leal foo@tlsldm(%ebx), %eax
23520 leal foo@dtpoff(%eax), %edx
23521 movl foo@gottpoff(%ebx), %eax
23522 subl foo@gottpoff(%ebx), %eax
23523 addl foo@gotntpoff(%ebx), %eax
23524 movl foo@indntpoff, %eax
23525 movl \$foo@tpoff, %eax
23526 subl \$foo@tpoff, %eax
23527 leal foo@ntpoff(%ecx), %eax"
23529 x86_64-*-*)
23530 conftest_s='
23531 .section ".tdata","awT",@progbits
23532 foo: .long 25
23533 .text
23534 movq %fs:0, %rax
23535 leaq foo@TLSGD(%rip), %rdi
23536 leaq foo@TLSLD(%rip), %rdi
23537 leaq foo@DTPOFF(%rax), %rdx
23538 movq foo@GOTTPOFF(%rip), %rax
23539 movq $foo@TPOFF, %rax'
23540 tls_first_major=2
23541 tls_first_minor=14
23542 tls_as_opt=--fatal-warnings
23544 ia64-*-*)
23545 conftest_s='
23546 .section ".tdata","awT",@progbits
23547 foo: data8 25
23548 .text
23549 addl r16 = @ltoff(@dtpmod(foo#)), gp
23550 addl r17 = @ltoff(@dtprel(foo#)), gp
23551 addl r18 = @ltoff(@tprel(foo#)), gp
23552 addl r19 = @dtprel(foo#), gp
23553 adds r21 = @dtprel(foo#), r13
23554 movl r23 = @dtprel(foo#)
23555 addl r20 = @tprel(foo#), gp
23556 adds r22 = @tprel(foo#), r13
23557 movl r24 = @tprel(foo#)'
23558 tls_first_major=2
23559 tls_first_minor=13
23560 tls_as_opt=--fatal-warnings
23562 microblaze*-*-*)
23563 conftest_s='
23564 .section .tdata,"awT",@progbits
23566 .word 2
23567 .text
23568 addik r5,r20,x@TLSGD
23569 addik r5,r20,x@TLSLDM'
23570 tls_first_major=2
23571 tls_first_minor=20
23572 tls_as_opt='--fatal-warnings'
23574 mips*-*-*)
23575 conftest_s='
23576 .section .tdata,"awT",@progbits
23578 .word 2
23579 .text
23580 addiu $4, $28, %tlsgd(x)
23581 addiu $4, $28, %tlsldm(x)
23582 lui $4, %dtprel_hi(x)
23583 addiu $4, $4, %dtprel_lo(x)
23584 lw $4, %gottprel(x)($28)
23585 lui $4, %tprel_hi(x)
23586 addiu $4, $4, %tprel_lo(x)'
23587 tls_first_major=2
23588 tls_first_minor=16
23589 tls_as_opt='-32 --fatal-warnings'
23591 m68k-*-*)
23592 conftest_s='
23593 .section .tdata,"awT",@progbits
23595 .word 2
23596 .text
23597 foo:
23598 move.l x@TLSGD(%a5),%a0
23599 move.l x@TLSLDM(%a5),%a0
23600 move.l x@TLSLDO(%a5),%a0
23601 move.l x@TLSIE(%a5),%a0
23602 move.l x@TLSLE(%a5),%a0'
23603 tls_first_major=2
23604 tls_first_minor=19
23605 tls_as_opt='--fatal-warnings'
23607 nios2-*-*)
23608 conftest_s='
23609 .section ".tdata","awT",@progbits'
23610 tls_first_major=2
23611 tls_first_minor=23
23612 tls_as_opt="--fatal-warnings"
23614 aarch64*-*-*)
23615 conftest_s='
23616 .section ".tdata","awT",%progbits
23617 foo: .long 25
23618 .text
23619 adrp x0, :tlsgd:x
23620 add x0, x0, #:tlsgd_lo12:x
23621 bl __tls_get_addr
23622 nop'
23623 tls_first_major=2
23624 tls_first_minor=20
23625 tls_as_opt='--fatal-warnings'
23627 powerpc-ibm-aix*)
23628 conftest_s='
23629 .extern __get_tpointer
23630 .toc
23631 LC..1:
23632 .tc a[TC],a[TL]@le
23633 .csect .text[PR]
23634 .tlstest:
23635 lwz 9,LC..1(2)
23636 bla __get_tpointer
23637 lwzx 3,9,3
23638 .globl a
23639 .csect a[TL],4
23641 .space 4'
23642 tls_first_major=0
23643 tls_first_minor=0
23645 powerpc64*-*-*)
23646 conftest_s='
23647 .section ".tdata","awT",@progbits
23648 .align 3
23649 ld0: .space 8
23650 ld1: .space 8
23651 x1: .space 8
23652 x2: .space 8
23653 x3: .space 8
23654 .text
23655 addi 3,2,ld0@got@tlsgd
23656 bl .__tls_get_addr
23658 addi 3,2,ld1@toc
23659 bl .__tls_get_addr
23661 addi 3,2,x1@got@tlsld
23662 bl .__tls_get_addr
23664 addi 9,3,x1@dtprel
23665 bl .__tls_get_addr
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23669 bl .__tls_get_addr
23671 ld 9,x3@got@dtprel(2)
23672 add 9,9,3
23673 bl .__tls_get_addr
23674 nop'
23675 tls_first_major=2
23676 tls_first_minor=14
23677 tls_as_opt="-a64 --fatal-warnings"
23679 powerpc*-*-*)
23680 conftest_s='
23681 .section ".tdata","awT",@progbits
23682 .align 2
23683 ld0: .space 4
23684 ld1: .space 4
23685 x1: .space 4
23686 x2: .space 4
23687 x3: .space 4
23688 .text
23689 addi 3,31,ld0@got@tlsgd
23690 bl __tls_get_addr
23691 addi 3,31,x1@got@tlsld
23692 bl __tls_get_addr
23693 addi 9,3,x1@dtprel
23694 addis 9,3,x2@dtprel@ha
23695 addi 9,9,x2@dtprel@l
23696 lwz 9,x3@got@tprel(31)
23697 add 9,9,x@tls
23698 addi 9,2,x1@tprel
23699 addis 9,2,x2@tprel@ha
23700 addi 9,9,x2@tprel@l'
23701 tls_first_major=2
23702 tls_first_minor=14
23703 tls_as_opt="-a32 --fatal-warnings"
23705 s390-*-*)
23706 conftest_s='
23707 .section ".tdata","awT",@progbits
23708 foo: .long 25
23709 .text
23710 .long foo@TLSGD
23711 .long foo@TLSLDM
23712 .long foo@DTPOFF
23713 .long foo@NTPOFF
23714 .long foo@GOTNTPOFF
23715 .long foo@INDNTPOFF
23716 l %r1,foo@GOTNTPOFF(%r12)
23717 l %r1,0(%r1):tls_load:foo
23718 bas %r14,0(%r1,%r13):tls_gdcall:foo
23719 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23720 tls_first_major=2
23721 tls_first_minor=14
23722 tls_as_opt="-m31 --fatal-warnings"
23724 s390x-*-*)
23725 conftest_s='
23726 .section ".tdata","awT",@progbits
23727 foo: .long 25
23728 .text
23729 .quad foo@TLSGD
23730 .quad foo@TLSLDM
23731 .quad foo@DTPOFF
23732 .quad foo@NTPOFF
23733 .quad foo@GOTNTPOFF
23734 lg %r1,foo@GOTNTPOFF(%r12)
23735 larl %r1,foo@INDNTPOFF
23736 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23737 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23738 tls_first_major=2
23739 tls_first_minor=14
23740 tls_as_opt="-m64 -Aesame --fatal-warnings"
23742 sh-*-* | sh[34]-*-*)
23743 conftest_s='
23744 .section ".tdata","awT",@progbits
23745 foo: .long 25
23746 .text
23747 .long foo@TLSGD
23748 .long foo@TLSLDM
23749 .long foo@DTPOFF
23750 .long foo@GOTTPOFF
23751 .long foo@TPOFF'
23752 tls_first_major=2
23753 tls_first_minor=13
23754 tls_as_opt=--fatal-warnings
23756 sparc*-*-*)
23757 case "$target" in
23758 sparc*-sun-solaris2.*)
23759 on_solaris=yes
23760 tga_func=__tls_get_addr
23763 on_solaris=no
23765 esac
23766 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23767 conftest_s='
23768 .section ".tdata",#alloc,#write,#tls'
23769 tls_first_major=0
23770 tls_first_minor=0
23771 else
23772 conftest_s='
23773 .section ".tdata","awT",@progbits'
23774 tls_first_major=2
23775 tls_first_minor=14
23776 tls_as_opt="-32 --fatal-warnings"
23778 conftest_s="$conftest_s
23779 foo: .long 25
23780 .text
23781 sethi %tgd_hi22(foo), %o0
23782 add %o0, %tgd_lo10(foo), %o1
23783 add %l7, %o1, %o0, %tgd_add(foo)
23784 call __tls_get_addr, %tgd_call(foo)
23785 sethi %tldm_hi22(foo), %l1
23786 add %l1, %tldm_lo10(foo), %l2
23787 add %l7, %l2, %o0, %tldm_add(foo)
23788 call __tls_get_addr, %tldm_call(foo)
23789 sethi %tldo_hix22(foo), %l3
23790 xor %l3, %tldo_lox10(foo), %l4
23791 add %o0, %l4, %l5, %tldo_add(foo)
23792 sethi %tie_hi22(foo), %o3
23793 add %o3, %tie_lo10(foo), %o3
23794 ld [%l7 + %o3], %o2, %tie_ld(foo)
23795 add %g7, %o2, %o4, %tie_add(foo)
23796 sethi %tle_hix22(foo), %l1
23797 xor %l1, %tle_lox10(foo), %o5
23798 ld [%g7 + %o5], %o1"
23800 tilepro*-*-*)
23801 conftest_s='
23802 .section ".tdata","awT",@progbits
23803 foo: .long 25
23804 .text
23805 addli r0, zero, tls_gd(foo)
23806 auli r0, zero, tls_gd_ha16(foo)
23807 addli r0, r0, tls_gd_lo16(foo)
23808 jal __tls_get_addr
23809 addli r0, zero, tls_ie(foo)
23810 auli r0, r0, tls_ie_ha16(foo)
23811 addli r0, r0, tls_ie_lo16(foo)'
23812 tls_first_major=2
23813 tls_first_minor=22
23814 tls_as_opt="--fatal-warnings"
23816 tilegx*-*-*)
23817 conftest_s='
23818 .section ".tdata","awT",@progbits
23819 foo: .long 25
23820 .text
23821 shl16insli r0, zero, hw0_last_tls_gd(foo)
23822 shl16insli r0, zero, hw1_last_tls_gd(foo)
23823 shl16insli r0, r0, hw0_tls_gd(foo)
23824 jal __tls_get_addr
23825 shl16insli r0, zero, hw1_last_tls_ie(foo)
23826 shl16insli r0, r0, hw0_tls_ie(foo)'
23827 tls_first_major=2
23828 tls_first_minor=22
23829 tls_as_opt="--fatal-warnings"
23831 xtensa*-*-*)
23832 conftest_s='
23833 .section ".tdata","awT",@progbits
23834 foo: .long 25
23835 .text
23836 movi a8, foo@TLSFUNC
23837 movi a10, foo@TLSARG
23838 callx8.tls a8, foo@TLSCALL'
23839 tls_first_major=2
23840 tls_first_minor=19
23842 esac
23843 set_have_as_tls=no
23844 if test "x$enable_tls" = xno ; then
23845 : # TLS explicitly disabled.
23846 elif test "x$enable_tls" = xyes ; then
23847 set_have_as_tls=yes # TLS explicitly enabled.
23848 elif test -z "$tls_first_major"; then
23849 : # If we don't have a check, assume no support.
23850 else
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23853 if test "${gcc_cv_as_tls+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_tls=no
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23859 then gcc_cv_as_tls=yes
23861 elif test x$gcc_cv_as != x; then
23862 $as_echo "$conftest_s" > conftest.s
23863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23869 then
23870 gcc_cv_as_tls=yes
23871 else
23872 echo "configure: failed program was" >&5
23873 cat conftest.s >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23879 $as_echo "$gcc_cv_as_tls" >&6; }
23880 if test $gcc_cv_as_tls = yes; then
23881 set_have_as_tls=yes
23884 case "$target" in
23885 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23886 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23887 # Sun style that Sun ld and GCC don't support any longer.
23888 *-*-solaris2.*)
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23890 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23891 ld_tls_support=no
23892 # Check ld and ld.so.1 TLS support.
23893 if echo "$ld_ver" | grep GNU > /dev/null; then
23894 # Assume all interesting versions of GNU ld have TLS support.
23895 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23896 ld_tls_support=yes
23897 else
23898 case "$target" in
23899 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23900 i?86-*-solaris2.9)
23901 min_tls_ld_vers_minor=374
23903 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23904 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23905 min_tls_ld_vers_minor=343
23907 esac
23908 if test "$ld_vers_major" -gt 1 || \
23909 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23910 ld_tls_support=yes
23911 else
23912 set_have_as_tls=no
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23916 $as_echo "$ld_tls_support" >&6; }
23918 save_LIBS="$LIBS"
23919 save_LDFLAGS="$LDFLAGS"
23920 LIBS=
23921 LDFLAGS=
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23924 $as_echo_n "checking library containing $tga_func... " >&6; }
23925 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23926 # (32-bit x86) only lived in libthread, so check for that. Keep
23927 # set_have_as_tls if found, disable if not.
23928 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23930 $as_echo_n "checking for library containing $tga_func... " >&6; }
23931 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23932 $as_echo_n "(cached) " >&6
23933 else
23934 ac_func_search_save_LIBS=$LIBS
23935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23941 #ifdef __cplusplus
23942 extern "C"
23943 #endif
23944 char $tga_func ();
23946 main ()
23948 return $tga_func ();
23950 return 0;
23952 _ACEOF
23953 for ac_lib in '' thread; do
23954 if test -z "$ac_lib"; then
23955 ac_res="none required"
23956 else
23957 ac_res=-l$ac_lib
23958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23960 if ac_fn_c_try_link "$LINENO"; then :
23961 eval "$as_ac_Search=\$ac_res"
23963 rm -f core conftest.err conftest.$ac_objext \
23964 conftest$ac_exeext
23965 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23966 break
23968 done
23969 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23971 else
23972 eval "$as_ac_Search=no"
23974 rm conftest.$ac_ext
23975 LIBS=$ac_func_search_save_LIBS
23977 eval ac_res=\$$as_ac_Search
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23979 $as_echo "$ac_res" >&6; }
23980 eval ac_res=\$$as_ac_Search
23981 if test "$ac_res" != no; then :
23982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23984 else
23985 set_have_as_tls=no
23988 # Clear LIBS if we cannot support TLS.
23989 if test $set_have_as_tls = no; then
23990 LIBS=
23992 # Always define LIB_TLS_SPEC, even without TLS support.
23994 cat >>confdefs.h <<_ACEOF
23995 #define LIB_TLS_SPEC "$LIBS"
23996 _ACEOF
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23999 $as_echo "$LIBS" >&6; }
24001 LIBS="$save_LIBS"
24002 LDFLAGS="$save_LDFLAGS"
24004 esac
24005 if test $set_have_as_tls = yes ; then
24007 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24011 # Target-specific assembler checks.
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24014 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24015 gcc_cv_ld_static_dynamic=no
24016 gcc_cv_ld_static_option='-Bstatic'
24017 gcc_cv_ld_dynamic_option='-Bdynamic'
24018 if test $in_tree_ld = yes ; then
24019 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
24020 gcc_cv_ld_static_dynamic=yes
24022 elif test x$gcc_cv_ld != x; then
24023 # Check if linker supports -Bstatic/-Bdynamic option
24024 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24025 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24026 gcc_cv_ld_static_dynamic=yes
24027 else
24028 case "$target" in
24029 # AIX ld uses -b flags
24030 *-*-aix4.[23]* | *-*-aix[5-9]*)
24031 gcc_cv_ld_static_dynamic=yes
24032 gcc_cv_ld_static_option="-bstatic"
24033 gcc_cv_ld_dynamic_option="-bdynamic"
24035 # HP-UX ld uses -a flags to select between shared and archive.
24036 *-*-hpux*)
24037 if test x"$gnu_ld" = xno; then
24038 gcc_cv_ld_static_dynamic=yes
24039 gcc_cv_ld_static_option="-aarchive_shared"
24040 gcc_cv_ld_dynamic_option="-adefault"
24043 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24044 *-*-solaris2*)
24045 gcc_cv_ld_static_dynamic=yes
24047 esac
24050 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24052 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24055 cat >>confdefs.h <<_ACEOF
24056 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24057 _ACEOF
24060 cat >>confdefs.h <<_ACEOF
24061 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24062 _ACEOF
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24066 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24068 if test x"$demangler_in_ld" = xyes; then
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24070 $as_echo_n "checking linker --demangle support... " >&6; }
24071 gcc_cv_ld_demangle=no
24072 if test $in_tree_ld = yes; then
24073 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 \
24074 gcc_cv_ld_demangle=yes
24076 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24077 # Check if the GNU linker supports --demangle option
24078 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24079 gcc_cv_ld_demangle=yes
24082 if test x"$gcc_cv_ld_demangle" = xyes; then
24084 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24088 $as_echo "$gcc_cv_ld_demangle" >&6; }
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24092 $as_echo_n "checking linker plugin support... " >&6; }
24093 gcc_cv_lto_plugin=0
24094 if test -f liblto_plugin.la; then
24095 save_ld_ver="$ld_ver"
24096 save_ld_vers_major="$ld_vers_major"
24097 save_ld_vers_minor="$ld_vers_minor"
24098 save_ld_is_gold="$ld_is_gold"
24100 ld_is_gold=no
24102 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24103 ld_ver="GNU ld"
24104 # FIXME: ld_is_gold?
24105 ld_vers_major="$gcc_cv_gld_major_version"
24106 ld_vers_minor="$gcc_cv_gld_minor_version"
24107 else
24108 # Determine plugin linker version.
24109 # FIXME: Partial duplicate from above, generalize.
24110 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24111 if echo "$ld_ver" | grep GNU > /dev/null; then
24112 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24113 ld_is_gold=yes
24114 ld_vers=`echo $ld_ver | sed -n \
24115 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24116 else
24117 ld_vers=`echo $ld_ver | sed -n \
24118 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24120 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24121 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24125 # Determine plugin support.
24126 if echo "$ld_ver" | grep GNU > /dev/null; then
24127 # Require GNU ld or gold 2.21+ for plugin support by default.
24128 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24129 gcc_cv_lto_plugin=2
24130 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24131 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24132 gcc_cv_lto_plugin=1
24136 ld_ver="$save_ld_ver"
24137 ld_vers_major="$save_ld_vers_major"
24138 ld_vers_minor="$save_ld_vers_minor"
24139 ld_is_gold="$save_ld_is_gold"
24142 cat >>confdefs.h <<_ACEOF
24143 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24144 _ACEOF
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24147 $as_echo "$gcc_cv_lto_plugin" >&6; }
24149 case "$target" in
24150 aarch64*-*-*)
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24152 $as_echo_n "checking assembler for -mabi option... " >&6; }
24153 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 gcc_cv_as_aarch64_mabi=no
24157 if test x$gcc_cv_as != x; then
24158 $as_echo '.text' > conftest.s
24159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164 test $ac_status = 0; }; }
24165 then
24166 gcc_cv_as_aarch64_mabi=yes
24167 else
24168 echo "configure: failed program was" >&5
24169 cat conftest.s >&5
24171 rm -f conftest.o conftest.s
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24175 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24177 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24179 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24181 else
24182 if test x$with_abi = xilp32; then
24183 as_fn_error "Assembler does not support -mabi=ilp32.\
24184 Upgrade the Assembler." "$LINENO" 5
24186 if test x"$with_multilib_list" = xdefault; then
24187 TM_MULTILIB_CONFIG=lp64
24188 else
24189 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24190 for aarch64_multilib in ${aarch64_multilibs}; do
24191 case ${aarch64_multilib} in
24192 ilp32)
24193 as_fn_error "Assembler does not support -mabi=ilp32.\
24194 Upgrade the Assembler." "$LINENO" 5
24198 esac
24199 done
24204 # All TARGET_ABI_OSF targets.
24205 alpha*-*-linux* | alpha*-*-*bsd*)
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24207 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24208 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210 else
24211 gcc_cv_as_alpha_explicit_relocs=no
24212 if test $in_tree_gas = yes; then
24213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24214 then gcc_cv_as_alpha_explicit_relocs=yes
24216 elif test x$gcc_cv_as != x; then
24217 $as_echo ' .set nomacro
24218 .text
24219 extbl $3, $2, $3 !lituse_bytoff!1
24220 ldq $2, a($29) !literal!1
24221 ldq $4, b($29) !literal!2
24222 ldq_u $3, 0($2) !lituse_base!1
24223 ldq $27, f($29) !literal!5
24224 jsr $26, ($27), f !lituse_jsr!5
24225 ldah $29, 0($26) !gpdisp!3
24226 lda $0, c($29) !gprel
24227 ldah $1, d($29) !gprelhigh
24228 lda $1, d($1) !gprellow
24229 lda $29, 0($29) !gpdisp!3' > conftest.s
24230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24235 test $ac_status = 0; }; }
24236 then
24237 gcc_cv_as_alpha_explicit_relocs=yes
24238 else
24239 echo "configure: failed program was" >&5
24240 cat conftest.s >&5
24242 rm -f conftest.o conftest.s
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24246 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24247 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24249 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24253 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24254 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24255 $as_echo_n "(cached) " >&6
24256 else
24257 gcc_cv_as_alpha_jsrdirect_relocs=no
24258 if test $in_tree_gas = yes; then
24259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24260 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24262 elif test x$gcc_cv_as != x; then
24263 $as_echo ' .set nomacro
24264 .text
24265 ldq $27, a($29) !literal!1
24266 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24273 then
24274 gcc_cv_as_alpha_jsrdirect_relocs=yes
24275 else
24276 echo "configure: failed program was" >&5
24277 cat conftest.s >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24283 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24284 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24286 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24291 cris-*-*)
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24293 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24294 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24295 $as_echo_n "(cached) " >&6
24296 else
24297 gcc_cv_as_cris_no_mul_bug=no
24298 if test $in_tree_gas = yes; then
24299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24300 then gcc_cv_as_cris_no_mul_bug=yes
24302 elif test x$gcc_cv_as != x; then
24303 $as_echo '.text' > conftest.s
24304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24306 (eval $ac_try) 2>&5
24307 ac_status=$?
24308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }; }
24310 then
24311 gcc_cv_as_cris_no_mul_bug=yes
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24320 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24321 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24323 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24328 sparc*-*-*)
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24330 $as_echo_n "checking assembler for .register... " >&6; }
24331 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24333 else
24334 gcc_cv_as_sparc_register_op=no
24335 if test x$gcc_cv_as != x; then
24336 $as_echo '.register %g2, #scratch' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24343 then
24344 gcc_cv_as_sparc_register_op=yes
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24353 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24354 if test $gcc_cv_as_sparc_register_op = yes; then
24356 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24361 $as_echo_n "checking assembler for #nobits... " >&6; }
24362 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_nobits=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.section "nobits",#alloc,#write,#nobits
24368 .section "progbits",#alloc,#write,#progbits' > conftest.s
24369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; }
24375 then
24376 gcc_cv_as_sparc_nobits=yes
24377 else
24378 echo "configure: failed program was" >&5
24379 cat conftest.s >&5
24381 rm -f conftest.o conftest.s
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24385 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24388 cat >>confdefs.h <<_ACEOF
24389 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24390 _ACEOF
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24394 $as_echo_n "checking assembler for -relax option... " >&6; }
24395 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24397 else
24398 gcc_cv_as_sparc_relax=no
24399 if test x$gcc_cv_as != x; then
24400 $as_echo '.text' > conftest.s
24401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406 test $ac_status = 0; }; }
24407 then
24408 gcc_cv_as_sparc_relax=yes
24409 else
24410 echo "configure: failed program was" >&5
24411 cat conftest.s >&5
24413 rm -f conftest.o conftest.s
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24417 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24418 if test $gcc_cv_as_sparc_relax = yes; then
24420 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24425 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24426 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24427 $as_echo_n "(cached) " >&6
24428 else
24429 gcc_cv_as_sparc_gotdata_op=no
24430 if test x$gcc_cv_as != x; then
24431 $as_echo '.text
24432 .align 4
24433 foo:
24435 bar:
24436 sethi %gdop_hix22(foo), %g1
24437 xor %g1, %gdop_lox10(foo), %g1
24438 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24445 then
24446 if test x$gcc_cv_ld != x \
24447 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24448 if test x$gcc_cv_objdump != x; then
24449 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24450 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24451 gcc_cv_as_sparc_gotdata_op=no
24452 else
24453 gcc_cv_as_sparc_gotdata_op=yes
24457 rm -f conftest
24458 else
24459 echo "configure: failed program was" >&5
24460 cat conftest.s >&5
24462 rm -f conftest.o conftest.s
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24466 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24467 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24469 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24474 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24475 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 gcc_cv_as_sparc_ua_pcrel=no
24479 if test x$gcc_cv_as != x; then
24480 $as_echo '.text
24481 foo:
24483 .data
24484 .align 4
24485 .byte 0
24486 .uaword %r_disp32(foo)' > conftest.s
24487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492 test $ac_status = 0; }; }
24493 then
24494 if test x$gcc_cv_ld != x \
24495 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24496 gcc_cv_as_sparc_ua_pcrel=yes
24498 rm -f conftest
24499 else
24500 echo "configure: failed program was" >&5
24501 cat conftest.s >&5
24503 rm -f conftest.o conftest.s
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24507 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24508 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24510 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24514 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24515 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_sparc_ua_pcrel_hidden=no
24519 if test x$gcc_cv_as != x; then
24520 $as_echo '.data
24521 .align 4
24522 .byte 0x31
24523 .uaword %r_disp32(foo)
24524 .byte 0x32, 0x33, 0x34
24525 .global foo
24526 .hidden foo
24527 foo:
24528 .skip 4' > conftest.s
24529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24535 then
24536 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24537 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24538 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24539 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24540 if $gcc_cv_objdump -R conftest 2> /dev/null \
24541 | grep 'DISP32' > /dev/null 2>&1; then
24543 else
24544 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24547 rm -f conftest
24548 else
24549 echo "configure: failed program was" >&5
24550 cat conftest.s >&5
24552 rm -f conftest.o conftest.s
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24556 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24557 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24559 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24563 fi # unaligned pcrel relocs
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24566 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24567 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_sparc_offsetable_lo10=no
24571 if test x$gcc_cv_as != x; then
24572 $as_echo '.text
24573 or %g1, %lo(ab) + 12, %g1
24574 or %g1, %lo(ab + 12), %g1' > conftest.s
24575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24577 (eval $ac_try) 2>&5
24578 ac_status=$?
24579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24580 test $ac_status = 0; }; }
24581 then
24582 if test x$gcc_cv_objdump != x \
24583 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24584 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24585 gcc_cv_as_sparc_offsetable_lo10=yes
24587 else
24588 echo "configure: failed program was" >&5
24589 cat conftest.s >&5
24591 rm -f conftest.o conftest.s
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24595 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24596 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24598 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24603 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24604 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24605 $as_echo_n "(cached) " >&6
24606 else
24607 gcc_cv_as_sparc_fmaf=no
24608 if test x$gcc_cv_as != x; then
24609 $as_echo '.text
24610 .register %g2, #scratch
24611 .register %g3, #scratch
24612 .align 4
24613 fmaddd %f0, %f2, %f4, %f6
24614 addxccc %g1, %g2, %g3
24615 fsrl32 %f2, %f4, %f8
24616 fnaddd %f10, %f12, %f14' > conftest.s
24617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; }
24623 then
24624 gcc_cv_as_sparc_fmaf=yes
24625 else
24626 echo "configure: failed program was" >&5
24627 cat conftest.s >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24633 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24634 if test $gcc_cv_as_sparc_fmaf = yes; then
24636 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24641 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24642 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_sparc_sparc4=no
24646 if test x$gcc_cv_as != x; then
24647 $as_echo '.text
24648 .register %g2, #scratch
24649 .register %g3, #scratch
24650 .align 4
24651 cxbe %g2, %g3, 1f
24652 1: cwbneg %g2, %g3, 1f
24653 1: sha1
24655 aes_kexpand0 %f4, %f6, %f8
24656 des_round %f38, %f40, %f42, %f44
24657 camellia_f %f54, %f56, %f58, %f60
24658 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24665 then
24666 gcc_cv_as_sparc_sparc4=yes
24667 else
24668 echo "configure: failed program was" >&5
24669 cat conftest.s >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24675 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24676 if test $gcc_cv_as_sparc_sparc4 = yes; then
24678 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24683 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24684 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24685 $as_echo_n "(cached) " >&6
24686 else
24687 gcc_cv_as_sparc_leon=no
24688 if test x$gcc_cv_as != x; then
24689 $as_echo '.text
24690 .register %g2, #scratch
24691 .register %g3, #scratch
24692 .align 4
24693 smac %g2, %g3, %g1
24694 umac %g2, %g3, %g1
24695 cas [%g2], %g3, %g1' > conftest.s
24696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24702 then
24703 gcc_cv_as_sparc_leon=yes
24704 else
24705 echo "configure: failed program was" >&5
24706 cat conftest.s >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24712 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24713 if test $gcc_cv_as_sparc_leon = yes; then
24715 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24720 i[34567]86-*-* | x86_64-*-*)
24721 case $target_os in
24722 cygwin*)
24723 # Full C++ conformance when using a shared libstdc++-v3 requires some
24724 # support from the Cygwin DLL, which in more recent versions exports
24725 # wrappers to aid in interposing and redirecting operators new, delete,
24726 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24727 # are configuring for a version of Cygwin that exports the wrappers.
24728 if test x$host = x$target && test x$host_cpu = xi686; then
24729 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24730 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24731 gcc_ac_cygwin_dll_wrappers=yes
24732 else
24733 gcc_ac_cygwin_dll_wrappers=no
24736 else
24737 # Can't check presence of libc functions during cross-compile, so
24738 # we just have to assume we're building for an up-to-date target.
24739 gcc_ac_cygwin_dll_wrappers=yes
24742 cat >>confdefs.h <<_ACEOF
24743 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24744 _ACEOF
24746 esac
24747 case $target_os in
24748 cygwin* | pe | mingw32* | interix*)
24749 # Recent binutils allows the three-operand form of ".comm" on PE. This
24750 # definition is used unconditionally to initialise the default state of
24751 # the target option variable that governs usage of the feature.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24753 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24754 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_comm_has_align=no
24758 if test $in_tree_gas = yes; then
24759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24760 then gcc_cv_as_comm_has_align=yes
24762 elif test x$gcc_cv_as != x; then
24763 $as_echo '.comm foo,1,32' > conftest.s
24764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24770 then
24771 gcc_cv_as_comm_has_align=yes
24772 else
24773 echo "configure: failed program was" >&5
24774 cat conftest.s >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24780 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24785 _ACEOF
24787 # Used for DWARF 2 in PE
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24789 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24790 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24792 else
24793 gcc_cv_as_ix86_pe_secrel32=no
24794 if test $in_tree_gas = yes; then
24795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24796 then gcc_cv_as_ix86_pe_secrel32=yes
24798 elif test x$gcc_cv_as != x; then
24799 $as_echo '.text
24800 foo: nop
24801 .data
24802 .secrel32 foo' > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 if test x$gcc_cv_ld != x \
24811 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24812 gcc_cv_as_ix86_pe_secrel32=yes
24814 rm -f conftest
24815 else
24816 echo "configure: failed program was" >&5
24817 cat conftest.s >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24823 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24824 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24826 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24829 # Test if the assembler supports the extended form of the .section
24830 # directive that specifies section alignment. LTO support uses this,
24831 # but normally only after installation, so we warn but don't fail the
24832 # configure if LTO is enabled but the assembler does not support it.
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24834 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24835 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24837 else
24838 gcc_cv_as_section_has_align=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24841 then gcc_cv_as_section_has_align=yes
24843 elif test x$gcc_cv_as != x; then
24844 $as_echo '.section lto_test,"dr0"' > conftest.s
24845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24851 then
24852 gcc_cv_as_section_has_align=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24861 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24863 if test x$gcc_cv_as_section_has_align != xyes; then
24864 case ",$enable_languages," in
24865 *,lto,*)
24866 { $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
24867 $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;}
24869 esac
24871 # Test if the assembler supports the section flag 'e' for specifying
24872 # an excluded section.
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24874 $as_echo_n "checking assembler for .section with e... " >&6; }
24875 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 gcc_cv_as_section_has_e=no
24879 if test $in_tree_gas = yes; then
24880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24881 then gcc_cv_as_section_has_e=yes
24883 elif test x$gcc_cv_as != x; then
24884 $as_echo '.section foo1,"e"
24885 .byte 0,0,0,0' > conftest.s
24886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24892 then
24893 gcc_cv_as_section_has_e=yes
24894 else
24895 echo "configure: failed program was" >&5
24896 cat conftest.s >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24902 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24905 cat >>confdefs.h <<_ACEOF
24906 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24907 _ACEOF
24910 esac
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24913 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24914 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24916 else
24917 gcc_cv_as_ix86_filds=no
24918 if test x$gcc_cv_as != x; then
24919 $as_echo 'filds mem; fists mem' > conftest.s
24920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24926 then
24927 gcc_cv_as_ix86_filds=yes
24928 else
24929 echo "configure: failed program was" >&5
24930 cat conftest.s >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24936 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24937 if test $gcc_cv_as_ix86_filds = yes; then
24939 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24944 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24945 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 gcc_cv_as_ix86_fildq=no
24949 if test x$gcc_cv_as != x; then
24950 $as_echo 'fildq mem; fistpq mem' > conftest.s
24951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24953 (eval $ac_try) 2>&5
24954 ac_status=$?
24955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24956 test $ac_status = 0; }; }
24957 then
24958 gcc_cv_as_ix86_fildq=yes
24959 else
24960 echo "configure: failed program was" >&5
24961 cat conftest.s >&5
24963 rm -f conftest.o conftest.s
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24967 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24968 if test $gcc_cv_as_ix86_fildq = yes; then
24970 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24975 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24976 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24977 $as_echo_n "(cached) " >&6
24978 else
24979 gcc_cv_as_ix86_cmov_sun_syntax=no
24980 if test x$gcc_cv_as != x; then
24981 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24987 test $ac_status = 0; }; }
24988 then
24989 gcc_cv_as_ix86_cmov_sun_syntax=yes
24990 else
24991 echo "configure: failed program was" >&5
24992 cat conftest.s >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24998 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24999 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25001 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25006 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25007 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25009 else
25010 gcc_cv_as_ix86_ffreep=no
25011 if test x$gcc_cv_as != x; then
25012 $as_echo 'ffreep %st(1)' > conftest.s
25013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25016 ac_status=$?
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25019 then
25020 gcc_cv_as_ix86_ffreep=yes
25021 else
25022 echo "configure: failed program was" >&5
25023 cat conftest.s >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25029 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25030 if test $gcc_cv_as_ix86_ffreep = yes; then
25032 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25037 $as_echo_n "checking assembler for .quad directive... " >&6; }
25038 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25040 else
25041 gcc_cv_as_ix86_quad=no
25042 if test x$gcc_cv_as != x; then
25043 $as_echo '.quad 0' > conftest.s
25044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25050 then
25051 gcc_cv_as_ix86_quad=yes
25052 else
25053 echo "configure: failed program was" >&5
25054 cat conftest.s >&5
25056 rm -f conftest.o conftest.s
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25060 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25061 if test $gcc_cv_as_ix86_quad = yes; then
25063 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25068 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25069 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_ix86_sahf=no
25073 if test x$gcc_cv_as != x; then
25074 $as_echo '.code64
25075 sahf' > conftest.s
25076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25079 ac_status=$?
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25082 then
25083 gcc_cv_as_ix86_sahf=yes
25084 else
25085 echo "configure: failed program was" >&5
25086 cat conftest.s >&5
25088 rm -f conftest.o conftest.s
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25092 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25093 if test $gcc_cv_as_ix86_sahf = yes; then
25095 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25100 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25101 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25103 else
25104 gcc_cv_as_ix86_interunit_movq=no
25105 if test x$gcc_cv_as != x; then
25106 $as_echo '.code64
25107 movq %mm0, %rax
25108 movq %rax, %xmm0' > conftest.s
25109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25115 then
25116 gcc_cv_as_ix86_interunit_movq=yes
25117 else
25118 echo "configure: failed program was" >&5
25119 cat conftest.s >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25125 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25128 cat >>confdefs.h <<_ACEOF
25129 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25130 _ACEOF
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25134 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25135 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25136 $as_echo_n "(cached) " >&6
25137 else
25138 gcc_cv_as_ix86_hle=no
25139 if test x$gcc_cv_as != x; then
25140 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_ix86_hle=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25157 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25158 if test $gcc_cv_as_ix86_hle = yes; then
25160 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25165 $as_echo_n "checking assembler for swap suffix... " >&6; }
25166 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25168 else
25169 gcc_cv_as_ix86_swap=no
25170 if test x$gcc_cv_as != x; then
25171 $as_echo 'movl.s %esp, %ebp' > conftest.s
25172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 then
25179 gcc_cv_as_ix86_swap=yes
25180 else
25181 echo "configure: failed program was" >&5
25182 cat conftest.s >&5
25184 rm -f conftest.o conftest.s
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25188 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25189 if test $gcc_cv_as_ix86_swap = yes; then
25191 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25196 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25197 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_ix86_diff_sect_delta=no
25201 if test x$gcc_cv_as != x; then
25202 $as_echo '.section .rodata
25203 .L1:
25204 .long .L2-.L1
25205 .long .L3-.L1
25206 .text
25207 .L3: nop
25208 .L2: nop' > conftest.s
25209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25215 then
25216 gcc_cv_as_ix86_diff_sect_delta=yes
25217 else
25218 echo "configure: failed program was" >&5
25219 cat conftest.s >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25225 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25226 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25228 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25232 # These two are used unconditionally by i386.[ch]; it is to be defined
25233 # to 1 if the feature is present, 0 otherwise.
25234 as_ix86_gotoff_in_data_opt=
25235 if test x$gas = xyes; then
25236 as_ix86_gotoff_in_data_opt="--32"
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25239 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25240 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25241 $as_echo_n "(cached) " >&6
25242 else
25243 gcc_cv_as_ix86_gotoff_in_data=no
25244 if test $in_tree_gas = yes; then
25245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25246 then gcc_cv_as_ix86_gotoff_in_data=yes
25248 elif test x$gcc_cv_as != x; then
25249 $as_echo ' .text
25250 .L0:
25252 .data
25253 .long .L0@GOTOFF' > conftest.s
25254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25260 then
25261 gcc_cv_as_ix86_gotoff_in_data=yes
25262 else
25263 echo "configure: failed program was" >&5
25264 cat conftest.s >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25270 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25273 cat >>confdefs.h <<_ACEOF
25274 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25275 _ACEOF
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25279 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25280 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25281 $as_echo_n "(cached) " >&6
25282 else
25283 gcc_cv_as_ix86_rep_lock_prefix=no
25284 if test x$gcc_cv_as != x; then
25285 $as_echo 'rep movsl
25286 rep ret
25287 rep nop
25288 rep bsf %ecx, %eax
25289 rep bsr %ecx, %eax
25290 lock addl %edi, (%eax,%esi)
25291 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix=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_ix86_rep_lock_prefix" >&5
25308 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25309 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25311 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25316 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25317 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25319 else
25320 gcc_cv_as_ix86_ud2=no
25321 if test x$gcc_cv_as != x; then
25322 $as_echo 'ud2' > conftest.s
25323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25329 then
25330 gcc_cv_as_ix86_ud2=yes
25331 else
25332 echo "configure: failed program was" >&5
25333 cat conftest.s >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25339 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25340 if test $gcc_cv_as_ix86_ud2 = yes; then
25342 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25347 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25348 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25349 $as_echo_n "(cached) " >&6
25350 else
25351 gcc_cv_as_ix86_tlsgdplt=no
25352 if test x$gcc_cv_as != x; then
25353 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25359 test $ac_status = 0; }; }
25360 then
25361 if test x$gcc_cv_ld != x \
25362 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25363 gcc_cv_as_ix86_tlsgdplt=yes
25365 rm -f conftest
25366 else
25367 echo "configure: failed program was" >&5
25368 cat conftest.s >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25374 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25375 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25377 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25382 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25383 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25384 $as_echo_n "(cached) " >&6
25385 else
25386 gcc_cv_as_ix86_tlsldmplt=no
25387 if test x$gcc_cv_as != x; then
25388 $as_echo 'tls_ld:
25389 call tls_ld@tlsldmplt' > conftest.s
25390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25396 then
25397 if test x$gcc_cv_ld != x \
25398 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25399 gcc_cv_as_ix86_tlsldmplt=yes
25401 rm -f conftest
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25410 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25411 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25413 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25419 ia64*-*-*)
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25421 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25422 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25424 else
25425 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25426 if test $in_tree_gas = yes; then
25427 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25428 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25430 elif test x$gcc_cv_as != x; then
25431 $as_echo ' .text
25432 addl r15 = @ltoffx(x#), gp
25434 ld8.mov r16 = [r15], x#' > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25451 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25452 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25454 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25460 powerpc*-*-*)
25461 case $target in
25462 *-*-aix*) conftest_s=' .machine "pwr5"
25463 .csect .text[PR]
25464 mfcr 3,128';;
25465 *-*-darwin*)
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25467 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25468 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25470 else
25471 gcc_cv_as_machine_directive=no
25472 if test x$gcc_cv_as != x; then
25473 $as_echo ' .machine ppc7400' > conftest.s
25474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25480 then
25481 gcc_cv_as_machine_directive=yes
25482 else
25483 echo "configure: failed program was" >&5
25484 cat conftest.s >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25490 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25492 if test x$gcc_cv_as_machine_directive != xyes; then
25493 echo "*** This target requires an assembler supporting \".machine\"" >&2
25494 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25495 test x$build = x$target && exit 1
25497 conftest_s=' .text
25498 mfcr r3,128';;
25499 *) conftest_s=' .machine power4
25500 .text
25501 mfcr 3,128';;
25502 esac
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25505 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25508 else
25509 gcc_cv_as_powerpc_mfcrf=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25512 then gcc_cv_as_powerpc_mfcrf=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 -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_mfcrf=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_mfcrf" >&5
25532 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25533 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25535 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25539 case $target in
25540 *-*-aix*) conftest_s=' .machine "pwr5"
25541 .csect .text[PR]
25542 popcntb 3,3';;
25543 *) conftest_s=' .machine power5
25544 .text
25545 popcntb 3,3';;
25546 esac
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25549 $as_echo_n "checking assembler for popcntb support... " >&6; }
25550 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25551 $as_echo_n "(cached) " >&6
25552 else
25553 gcc_cv_as_powerpc_popcntb=no
25554 if test $in_tree_gas = yes; then
25555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25556 then gcc_cv_as_powerpc_popcntb=yes
25558 elif test x$gcc_cv_as != x; then
25559 $as_echo "$conftest_s" > conftest.s
25560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25563 ac_status=$?
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }
25566 then
25567 gcc_cv_as_powerpc_popcntb=yes
25568 else
25569 echo "configure: failed program was" >&5
25570 cat conftest.s >&5
25572 rm -f conftest.o conftest.s
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25576 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25577 if test $gcc_cv_as_powerpc_popcntb = yes; then
25579 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25583 case $target in
25584 *-*-aix*) conftest_s=' .machine "pwr5x"
25585 .csect .text[PR]
25586 frin 1,1';;
25587 *) conftest_s=' .machine power5
25588 .text
25589 frin 1,1';;
25590 esac
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25593 $as_echo_n "checking assembler for fp round support... " >&6; }
25594 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_powerpc_fprnd=no
25598 if test $in_tree_gas = yes; then
25599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25600 then gcc_cv_as_powerpc_fprnd=yes
25602 elif test x$gcc_cv_as != x; then
25603 $as_echo "$conftest_s" > conftest.s
25604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 then
25611 gcc_cv_as_powerpc_fprnd=yes
25612 else
25613 echo "configure: failed program was" >&5
25614 cat conftest.s >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25620 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25621 if test $gcc_cv_as_powerpc_fprnd = yes; then
25623 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25627 case $target in
25628 *-*-aix*) conftest_s=' .machine "pwr6"
25629 .csect .text[PR]
25630 mffgpr 1,3';;
25631 *) conftest_s=' .machine power6
25632 .text
25633 mffgpr 1,3';;
25634 esac
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25637 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25638 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25639 $as_echo_n "(cached) " >&6
25640 else
25641 gcc_cv_as_powerpc_mfpgpr=no
25642 if test $in_tree_gas = yes; then
25643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25644 then gcc_cv_as_powerpc_mfpgpr=yes
25646 elif test x$gcc_cv_as != x; then
25647 $as_echo "$conftest_s" > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 gcc_cv_as_powerpc_mfpgpr=yes
25656 else
25657 echo "configure: failed program was" >&5
25658 cat conftest.s >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25664 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25665 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25667 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25671 case $target in
25672 *-*-aix*) conftest_s=' .csect .text[PR]
25673 LCF..0:
25674 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25675 *-*-darwin*)
25676 conftest_s=' .text
25677 LCF0:
25678 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25679 *) conftest_s=' .text
25680 .LCF0:
25681 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25682 esac
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25685 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25686 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25688 else
25689 gcc_cv_as_powerpc_rel16=no
25690 if test $in_tree_gas = yes; then
25691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25692 then gcc_cv_as_powerpc_rel16=yes
25694 elif test x$gcc_cv_as != x; then
25695 $as_echo "$conftest_s" > conftest.s
25696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 then
25703 gcc_cv_as_powerpc_rel16=yes
25704 else
25705 echo "configure: failed program was" >&5
25706 cat conftest.s >&5
25708 rm -f conftest.o conftest.s
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25712 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25713 if test $gcc_cv_as_powerpc_rel16 = yes; then
25715 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25719 case $target in
25720 *-*-aix*) conftest_s=' .machine "pwr6"
25721 .csect .text[PR]
25722 cmpb 3,4,5';;
25723 *) conftest_s=' .machine power6
25724 .text
25725 cmpb 3,4,5';;
25726 esac
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25729 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25730 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25732 else
25733 gcc_cv_as_powerpc_cmpb=no
25734 if test $in_tree_gas = yes; then
25735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25736 then gcc_cv_as_powerpc_cmpb=yes
25738 elif test x$gcc_cv_as != x; then
25739 $as_echo "$conftest_s" > conftest.s
25740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; }
25746 then
25747 gcc_cv_as_powerpc_cmpb=yes
25748 else
25749 echo "configure: failed program was" >&5
25750 cat conftest.s >&5
25752 rm -f conftest.o conftest.s
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25756 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25757 if test $gcc_cv_as_powerpc_cmpb = yes; then
25759 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25763 case $target in
25764 *-*-aix*) conftest_s=' .machine "pwr6"
25765 .csect .text[PR]
25766 dadd 1,2,3';;
25767 *) conftest_s=' .machine power6
25768 .text
25769 dadd 1,2,3';;
25770 esac
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25773 $as_echo_n "checking assembler for decimal float support... " >&6; }
25774 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25776 else
25777 gcc_cv_as_powerpc_dfp=no
25778 if test $in_tree_gas = yes; then
25779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25780 then gcc_cv_as_powerpc_dfp=yes
25782 elif test x$gcc_cv_as != x; then
25783 $as_echo "$conftest_s" > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 gcc_cv_as_powerpc_dfp=yes
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25800 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25801 if test $gcc_cv_as_powerpc_dfp = yes; then
25803 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25807 case $target in
25808 *-*-aix*) conftest_s=' .machine "pwr7"
25809 .csect .text[PR]
25810 lxvd2x 1,2,3';;
25811 *) conftest_s=' .machine power7
25812 .text
25813 lxvd2x 1,2,3';;
25814 esac
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25817 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25818 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25820 else
25821 gcc_cv_as_powerpc_vsx=no
25822 if test $in_tree_gas = yes; then
25823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25824 then gcc_cv_as_powerpc_vsx=yes
25826 elif test x$gcc_cv_as != x; then
25827 $as_echo "$conftest_s" > conftest.s
25828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25831 ac_status=$?
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25834 then
25835 gcc_cv_as_powerpc_vsx=yes
25836 else
25837 echo "configure: failed program was" >&5
25838 cat conftest.s >&5
25840 rm -f conftest.o conftest.s
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25844 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25845 if test $gcc_cv_as_powerpc_vsx = yes; then
25847 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25851 case $target in
25852 *-*-aix*) conftest_s=' .machine "pwr7"
25853 .csect .text[PR]
25854 popcntd 3,3';;
25855 *) conftest_s=' .machine power7
25856 .text
25857 popcntd 3,3';;
25858 esac
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25861 $as_echo_n "checking assembler for popcntd support... " >&6; }
25862 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25863 $as_echo_n "(cached) " >&6
25864 else
25865 gcc_cv_as_powerpc_popcntd=no
25866 if test $in_tree_gas = yes; then
25867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25868 then gcc_cv_as_powerpc_popcntd=yes
25870 elif test x$gcc_cv_as != x; then
25871 $as_echo "$conftest_s" > conftest.s
25872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25878 then
25879 gcc_cv_as_powerpc_popcntd=yes
25880 else
25881 echo "configure: failed program was" >&5
25882 cat conftest.s >&5
25884 rm -f conftest.o conftest.s
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25888 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25889 if test $gcc_cv_as_powerpc_popcntd = yes; then
25891 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25895 case $target in
25896 *-*-aix*) conftest_s=' .machine "pwr8"
25897 .csect .text[PR]';;
25898 *) conftest_s=' .machine power8
25899 .text';;
25900 esac
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25903 $as_echo_n "checking assembler for power8 support... " >&6; }
25904 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25907 gcc_cv_as_powerpc_power8=no
25908 if test $in_tree_gas = yes; then
25909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25910 then gcc_cv_as_powerpc_power8=yes
25912 elif test x$gcc_cv_as != x; then
25913 $as_echo "$conftest_s" > conftest.s
25914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25917 ac_status=$?
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25920 then
25921 gcc_cv_as_powerpc_power8=yes
25922 else
25923 echo "configure: failed program was" >&5
25924 cat conftest.s >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25930 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25931 if test $gcc_cv_as_powerpc_power8 = yes; then
25933 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25937 case $target in
25938 *-*-aix*) conftest_s=' .csect .text[PR]
25939 lwsync';;
25940 *) conftest_s=' .text
25941 lwsync';;
25942 esac
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25945 $as_echo_n "checking assembler for lwsync support... " >&6; }
25946 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25947 $as_echo_n "(cached) " >&6
25948 else
25949 gcc_cv_as_powerpc_lwsync=no
25950 if test $in_tree_gas = yes; then
25951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25952 then gcc_cv_as_powerpc_lwsync=yes
25954 elif test x$gcc_cv_as != x; then
25955 $as_echo "$conftest_s" > conftest.s
25956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961 test $ac_status = 0; }; }
25962 then
25963 gcc_cv_as_powerpc_lwsync=yes
25964 else
25965 echo "configure: failed program was" >&5
25966 cat conftest.s >&5
25968 rm -f conftest.o conftest.s
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25972 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25973 if test $gcc_cv_as_powerpc_lwsync = yes; then
25975 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25979 case $target in
25980 *-*-aix*) conftest_s=' .machine "476"
25981 .csect .text[PR]
25982 dci 0';;
25983 *) conftest_s=' .machine "476"
25984 .text
25985 dci 0';;
25986 esac
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25989 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25990 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25992 else
25993 gcc_cv_as_powerpc_dci=no
25994 if test $in_tree_gas = yes; then
25995 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25996 then gcc_cv_as_powerpc_dci=yes
25998 elif test x$gcc_cv_as != x; then
25999 $as_echo "$conftest_s" > conftest.s
26000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26006 then
26007 gcc_cv_as_powerpc_dci=yes
26008 else
26009 echo "configure: failed program was" >&5
26010 cat conftest.s >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26016 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26017 if test $gcc_cv_as_powerpc_dci = yes; then
26019 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26024 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26025 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26026 $as_echo_n "(cached) " >&6
26027 else
26028 gcc_cv_as_powerpc_gnu_attribute=no
26029 if test $in_tree_gas = yes; then
26030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26031 then gcc_cv_as_powerpc_gnu_attribute=yes
26033 elif test x$gcc_cv_as != x; then
26034 $as_echo '.gnu_attribute 4,1' > conftest.s
26035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26041 then
26042 gcc_cv_as_powerpc_gnu_attribute=yes
26043 else
26044 echo "configure: failed program was" >&5
26045 cat conftest.s >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26051 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26052 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26054 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26059 $as_echo_n "checking assembler for tls marker support... " >&6; }
26060 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26062 else
26063 gcc_cv_as_powerpc_tls_markers=no
26064 if test $in_tree_gas = yes; then
26065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26066 then gcc_cv_as_powerpc_tls_markers=yes
26068 elif test x$gcc_cv_as != x; then
26069 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26075 test $ac_status = 0; }; }
26076 then
26077 gcc_cv_as_powerpc_tls_markers=yes
26078 else
26079 echo "configure: failed program was" >&5
26080 cat conftest.s >&5
26082 rm -f conftest.o conftest.s
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26086 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26087 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26089 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26093 case $target in
26094 *-*-aix*)
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26096 $as_echo_n "checking assembler for .ref support... " >&6; }
26097 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26098 $as_echo_n "(cached) " >&6
26099 else
26100 gcc_cv_as_aix_ref=no
26101 if test $in_tree_gas = yes; then
26102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26103 then gcc_cv_as_aix_ref=yes
26105 elif test x$gcc_cv_as != x; then
26106 $as_echo ' .csect stuff[rw]
26107 stuff:
26108 .long 1
26109 .extern sym
26110 .ref sym
26111 ' > conftest.s
26112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26118 then
26119 gcc_cv_as_aix_ref=yes
26120 else
26121 echo "configure: failed program was" >&5
26122 cat conftest.s >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26128 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26129 if test $gcc_cv_as_aix_ref = yes; then
26131 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26135 esac
26138 mips*-*-*)
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26140 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26141 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_mips_explicit_relocs=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26147 then gcc_cv_as_mips_explicit_relocs=yes
26149 elif test x$gcc_cv_as != x; then
26150 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; }
26157 then
26158 gcc_cv_as_mips_explicit_relocs=yes
26159 else
26160 echo "configure: failed program was" >&5
26161 cat conftest.s >&5
26163 rm -f conftest.o conftest.s
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26167 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26168 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26169 if test x$target_cpu_default = x
26170 then target_cpu_default=MASK_EXPLICIT_RELOCS
26171 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26175 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26176 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_mips_no_shared=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26182 then gcc_cv_as_mips_no_shared=yes
26184 elif test x$gcc_cv_as != x; then
26185 $as_echo 'nop' > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_mips_no_shared=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26202 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26203 if test $gcc_cv_as_mips_no_shared = yes; then
26205 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26210 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26211 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26213 else
26214 gcc_cv_as_mips_gnu_attribute=no
26215 if test $in_tree_gas = yes; then
26216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26217 then gcc_cv_as_mips_gnu_attribute=yes
26219 elif test x$gcc_cv_as != x; then
26220 $as_echo '.gnu_attribute 4,1' > conftest.s
26221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; }
26227 then
26228 gcc_cv_as_mips_gnu_attribute=yes
26229 else
26230 echo "configure: failed program was" >&5
26231 cat conftest.s >&5
26233 rm -f conftest.o conftest.s
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26237 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26238 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26240 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26248 else
26249 gcc_cv_as_micromips_support=no
26250 if test x$gcc_cv_as != x; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_micromips_support=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_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26279 else
26280 gcc_cv_as_mips_dtprelword=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword=yes
26285 elif test x$gcc_cv_as != x; then
26286 $as_echo '.section .tdata,"awT",@progbits
26288 .word 2
26289 .text
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 gcc_cv_as_mips_dtprelword=yes
26299 else
26300 echo "configure: failed program was" >&5
26301 cat conftest.s >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 gcc_cv_as_mips_dspr1_mult=no
26320 if test x$gcc_cv_as != x; then
26321 $as_echo ' .set mips32r2
26322 .set nodspr2
26323 .set dsp
26324 madd $ac3,$4,$5
26325 maddu $ac3,$4,$5
26326 msub $ac3,$4,$5
26327 msubu $ac3,$4,$5
26328 mult $ac3,$4,$5
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 gcc_cv_as_mips_dspr1_mult=yes
26338 else
26339 echo "configure: failed program was" >&5
26340 cat conftest.s >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 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 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc=yes
26362 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' ld $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26373 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26374 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26375 gcc_cv_as_ld_jalr_reloc=yes
26378 rm -f conftest.*
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x$target_cpu_default = x; then
26383 target_cpu_default=MASK_RELAX_PIC_CALLS
26384 else
26385 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26395 else
26396 gcc_cv_ld_mips_personality_relaxation=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation=yes
26403 elif test x$gcc_cv_as != x \
26404 -a x$gcc_cv_ld != x \
26405 -a x$gcc_cv_readelf != x ; then
26406 cat > conftest.s <<EOF
26407 .cfi_startproc
26408 .cfi_personality 0x80,indirect_ptr
26409 .ent test
26410 test:
26412 .end test
26413 .cfi_endproc
26415 .section .data,"aw",@progbits
26416 indirect_ptr:
26417 .dc.a personality
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26421 if $gcc_cv_readelf -d conftest 2>&1 \
26422 | grep TEXTREL > /dev/null 2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26425 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26427 else
26428 gcc_cv_ld_mips_personality_relaxation=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_mips_nan=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo '' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_mips_nan=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x$gcc_cv_as_mips_nan = xno \
26473 && test x$with_nan != x; then
26474 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26477 esac
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26482 case "$target" in
26483 mips*-*-* | *-*-hpux* )
26484 if test x$gas_flag = xyes \
26485 || test x"$host" != x"$build" \
26486 || test ! -x "$gcc_cv_as" \
26487 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26489 else
26490 echo "*** This configuration requires the GNU assembler" >&2
26491 exit 1
26494 esac
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | xstormy16 | xtensa)
26506 insn="nop"
26508 ia64 | s390)
26509 insn="nop 0"
26511 mmix)
26512 insn="swym 0"
26514 esac
26515 if test x"$insn" != x; then
26516 conftest_s="\
26517 .file 1 \"conftest.s\"
26518 .loc 1 3 0
26519 $insn"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 gcc_cv_as_dwarf2_debug_line=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line=yes
26531 elif test x$gcc_cv_as != x; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26540 if test x$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26542 | grep debug_line > /dev/null 2>&1; then
26543 gcc_cv_as_dwarf2_debug_line=yes
26545 else
26546 echo "configure: failed program was" >&5
26547 cat conftest.s >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_dwarf2_file_buggy=no
26566 if test x$gcc_cv_as != x; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 then
26576 gcc_cv_as_dwarf2_file_buggy=yes
26577 else
26578 echo "configure: failed program was" >&5
26579 cat conftest.s >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_gdwarf2_flag=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag=yes
26606 elif test x$gcc_cv_as != x; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26614 then
26615 gcc_cv_as_gdwarf2_flag=yes
26616 else
26617 echo "configure: failed program was" >&5
26618 cat conftest.s >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26635 else
26636 gcc_cv_as_gstabs_flag=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag=yes
26642 elif test x$gcc_cv_as != x; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26652 # and warns about it, but still exits successfully. So check for
26653 # this.
26654 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26660 then :
26661 else gcc_cv_as_gstabs_flag=yes
26663 else
26664 echo "configure: failed program was" >&5
26665 cat conftest.s >&5
26667 rm -f conftest.o conftest.s
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26671 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26672 if test $gcc_cv_as_gstabs_flag = yes; then
26674 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26679 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26680 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26682 else
26683 gcc_cv_as_debug_prefix_map_flag=no
26684 if test $in_tree_gas = yes; then
26685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26686 then gcc_cv_as_debug_prefix_map_flag=yes
26688 elif test x$gcc_cv_as != x; then
26689 $as_echo "$insn" > conftest.s
26690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26696 then
26697 gcc_cv_as_debug_prefix_map_flag=yes
26698 else
26699 echo "configure: failed program was" >&5
26700 cat conftest.s >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26706 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26707 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26709 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26715 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26716 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26717 $as_echo_n "(cached) " >&6
26718 else
26719 gcc_cv_as_lcomm_with_alignment=no
26720 if test x$gcc_cv_as != x; then
26721 $as_echo '.lcomm bar,4,16' > conftest.s
26722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26727 test $ac_status = 0; }; }
26728 then
26729 gcc_cv_as_lcomm_with_alignment=yes
26730 else
26731 echo "configure: failed program was" >&5
26732 cat conftest.s >&5
26734 rm -f conftest.o conftest.s
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26738 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26739 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26741 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26745 if test x$with_sysroot = x && test x$host = x$target \
26746 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26747 && test "$prefix" != "NONE"; then
26749 cat >>confdefs.h <<_ACEOF
26750 #define PREFIX_INCLUDE_DIR "$prefix/include"
26751 _ACEOF
26755 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26756 if test "x$with_headers" != x; then
26757 target_header_dir=$with_headers
26758 elif test "x$with_sysroot" = x; then
26759 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26760 elif test "x$with_build_sysroot" != "x"; then
26761 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26762 elif test "x$with_sysroot" = xyes; then
26763 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26764 else
26765 target_header_dir="${with_sysroot}${native_system_header_dir}"
26767 else
26768 target_header_dir=${native_system_header_dir}
26771 # Determine the version of glibc, if any, used on the target.
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26773 $as_echo_n "checking for target glibc version... " >&6; }
26775 # Check whether --with-glibc-version was given.
26776 if test "${with_glibc_version+set}" = set; then :
26777 withval=$with_glibc_version;
26778 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26779 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26780 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26781 else
26782 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26784 else
26786 glibc_version_major=0
26787 glibc_version_minor=0
26788 if test -f $target_header_dir/features.h \
26789 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26790 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26791 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26792 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26797 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26799 # Check whether --enable-gnu-unique-object was given.
26800 if test "${enable_gnu_unique_object+set}" = set; then :
26801 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26802 yes | no) ;;
26803 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26804 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26805 esac
26806 else
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26808 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26809 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_as_gnu_unique_object=no
26813 if test $in_tree_gas = yes; then
26814 if test $in_tree_gas_is_elf = yes \
26815 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26816 then gcc_cv_as_gnu_unique_object=yes
26818 elif test x$gcc_cv_as != x; then
26819 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; }
26826 then
26827 gcc_cv_as_gnu_unique_object=yes
26828 else
26829 echo "configure: failed program was" >&5
26830 cat conftest.s >&5
26832 rm -f conftest.o conftest.s
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26836 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26837 if test $gcc_cv_as_gnu_unique_object = yes; then
26838 # We need to unquote above to to use the definition from config.gcc.
26839 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26841 if test $glibc_version_major -gt 2 \
26842 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26843 enable_gnu_unique_object=yes
26849 if test x$enable_gnu_unique_object = xyes; then
26851 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26856 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26857 if test "${gcc_cv_as_line_zero+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26859 else
26860 gcc_cv_as_line_zero=no
26861 if test $in_tree_gas = yes; then
26862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26863 then gcc_cv_as_line_zero=yes
26865 elif test "x$gcc_cv_as" != x; then
26866 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26867 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; } &&
26873 test "x`cat conftest.out`" = x
26874 then
26875 gcc_cv_as_line_zero=yes
26876 else
26877 echo "configure: failed program was" >&5
26878 cat conftest.s >&5
26879 echo "configure: error output was" >&5
26880 cat conftest.out >&5
26882 rm -f conftest.o conftest.s conftest.out
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26886 $as_echo "$gcc_cv_as_line_zero" >&6; }
26887 if test "x$gcc_cv_as_line_zero" = xyes; then
26889 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26894 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26895 gcc_cv_ld_eh_frame_hdr=no
26896 if test $in_tree_ld = yes ; then
26897 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 \
26898 && test $in_tree_ld_is_elf = yes; then
26899 gcc_cv_ld_eh_frame_hdr=yes
26901 elif test x$gcc_cv_ld != x; then
26902 if echo "$ld_ver" | grep GNU > /dev/null; then
26903 # Check if linker supports --eh-frame-hdr option
26904 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26905 gcc_cv_ld_eh_frame_hdr=yes
26907 else
26908 case "$target" in
26909 *-*-solaris2*)
26910 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26911 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26912 gcc_cv_ld_eh_frame_hdr=yes
26915 esac
26919 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26921 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26925 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26928 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26929 gcc_cv_ld_eh_frame_ciev3=no
26930 if test $in_tree_ld = yes ; then
26931 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 \
26932 && test $in_tree_ld_is_elf = yes; then
26933 gcc_cv_ld_eh_frame_ciev3=yes
26935 elif test x$gcc_cv_ld != x; then
26936 if echo "$ld_ver" | grep GNU > /dev/null; then
26937 gcc_cv_ld_eh_frame_ciev3=yes
26938 if test 0"$ld_date" -lt 20040513; then
26939 if test -n "$ld_date"; then
26940 # If there was date string, but was earlier than 2004-05-13, fail
26941 gcc_cv_ld_eh_frame_ciev3=no
26942 elif test "$ld_vers_major" -lt 2; then
26943 gcc_cv_ld_eh_frame_ciev3=no
26944 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26945 gcc_cv_ld_eh_frame_ciev3=no
26948 else
26949 case "$target" in
26950 *-*-solaris2*)
26951 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26952 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26953 gcc_cv_ld_eh_frame_ciev3=yes
26956 esac
26960 cat >>confdefs.h <<_ACEOF
26961 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26962 _ACEOF
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26965 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26968 $as_echo_n "checking linker position independent executable support... " >&6; }
26969 gcc_cv_ld_pie=no
26970 if test $in_tree_ld = yes ; then
26971 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 \
26972 && test $in_tree_ld_is_elf = yes; then
26973 gcc_cv_ld_pie=yes
26975 elif test x$gcc_cv_ld != x; then
26976 # Check if linker supports -pie option
26977 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26978 gcc_cv_ld_pie=yes
26981 if test x"$gcc_cv_ld_pie" = xyes; then
26983 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26987 $as_echo "$gcc_cv_ld_pie" >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26990 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26991 gcc_cv_ld_eh_gc_sections=no
26992 if test $in_tree_ld = yes ; then
26993 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 \
26994 && test $in_tree_ld_is_elf = yes; then
26995 gcc_cv_ld_eh_gc_sections=yes
26997 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26998 cat > conftest.s <<EOF
26999 .section .text
27000 .globl _start
27001 .type _start, @function
27002 _start:
27003 .long foo
27004 .size _start, .-_start
27005 .section .text.foo,"ax",@progbits
27006 .type foo, @function
27007 foo:
27008 .long 0
27009 .size foo, .-foo
27010 .section .gcc_except_table.foo,"a",@progbits
27011 .L0:
27012 .long 0
27013 .section .eh_frame,"a",@progbits
27014 .long .L0
27016 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27017 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27018 | grep "gc-sections option ignored" > /dev/null; then
27019 gcc_cv_ld_eh_gc_sections=no
27020 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27021 | grep gcc_except_table > /dev/null; then
27022 gcc_cv_ld_eh_gc_sections=yes
27023 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27024 if test x$gcc_cv_as_comdat_group != xyes; then
27025 gcc_cv_ld_eh_gc_sections=no
27026 cat > conftest.s <<EOF
27027 .section .text
27028 .globl _start
27029 .type _start, @function
27030 _start:
27031 .long foo
27032 .size _start, .-_start
27033 .section .gnu.linkonce.t.foo,"ax",@progbits
27034 .type foo, @function
27035 foo:
27036 .long 0
27037 .size foo, .-foo
27038 .section .gcc_except_table.foo,"a",@progbits
27039 .L0:
27040 .long 0
27041 .section .eh_frame,"a",@progbits
27042 .long .L0
27044 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27045 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27046 | grep "gc-sections option ignored" > /dev/null; then
27047 gcc_cv_ld_eh_gc_sections=no
27048 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27049 | grep gcc_except_table > /dev/null; then
27050 gcc_cv_ld_eh_gc_sections=yes
27056 rm -f conftest.s conftest.o conftest
27058 case "$target" in
27059 hppa*-*-linux*)
27060 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27061 gcc_cv_ld_eh_gc_sections=no
27063 esac
27064 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27066 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27070 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27073 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27074 gcc_cv_ld_eh_gc_sections_bug=no
27075 if test $in_tree_ld = yes ; then
27076 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 \
27077 && test $in_tree_ld_is_elf = yes; then
27078 gcc_cv_ld_eh_gc_sections_bug=yes
27080 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
27081 gcc_cv_ld_eh_gc_sections_bug=yes
27082 cat > conftest.s <<EOF
27083 .section .text
27084 .globl _start
27085 .type _start, @function
27086 _start:
27087 .long foo
27088 .size _start, .-_start
27089 .section .text.startup.foo,"ax",@progbits
27090 .type foo, @function
27091 foo:
27092 .long 0
27093 .size foo, .-foo
27094 .section .gcc_except_table.foo,"a",@progbits
27095 .L0:
27096 .long 0
27097 .section .eh_frame,"a",@progbits
27098 .long .L0
27100 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27101 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27102 | grep "gc-sections option ignored" > /dev/null; then
27104 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27105 | grep gcc_except_table > /dev/null; then
27106 gcc_cv_ld_eh_gc_sections_bug=no
27109 rm -f conftest.s conftest.o conftest
27111 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27113 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27117 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27119 # --------
27120 # UNSORTED
27121 # --------
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27124 $as_echo_n "checking linker --as-needed support... " >&6; }
27125 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27126 $as_echo_n "(cached) " >&6
27127 else
27128 gcc_cv_ld_as_needed=no
27129 gcc_cv_ld_as_needed_option='--as-needed'
27130 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27131 if test $in_tree_ld = yes ; then
27132 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 \
27133 && test $in_tree_ld_is_elf = yes; then
27134 gcc_cv_ld_as_needed=yes
27136 elif test x$gcc_cv_ld != x; then
27137 # Check if linker supports --as-needed and --no-as-needed options
27138 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27139 gcc_cv_ld_as_needed=yes
27140 else
27141 case "$target" in
27142 # Solaris 2 ld always supports -z ignore/-z record.
27143 *-*-solaris2*)
27144 gcc_cv_ld_as_needed=yes
27145 gcc_cv_ld_as_needed_option="-z ignore"
27146 gcc_cv_ld_no_as_needed_option="-z record"
27148 esac
27151 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27152 # dl_iterate_phdr, i.e. since Solaris 11.
27153 case "$target" in
27154 *-*-solaris2.1[1-9]*)
27155 case "$target" in
27156 i?86-*-* | x86_64-*-*)
27157 if echo "$ld_ver" | grep GNU > /dev/null; then
27158 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27159 gcc_cv_ld_as_needed=no
27162 esac
27164 *-*-solaris2*)
27165 gcc_cv_ld_as_needed=no
27167 esac
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27171 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27172 if test x"$gcc_cv_ld_as_needed" = xyes; then
27174 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27177 cat >>confdefs.h <<_ACEOF
27178 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27179 _ACEOF
27182 cat >>confdefs.h <<_ACEOF
27183 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27184 _ACEOF
27188 case "$target:$tm_file" in
27189 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27190 case "$target" in
27191 *le-*-linux*)
27192 emul_name="-melf64lppc"
27194 *-*-linux*)
27195 emul_name="-melf64ppc"
27197 *-*-freebsd*)
27198 emul_name="-melf64ppc_fbsd"
27200 esac
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27202 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27203 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27204 $as_echo_n "(cached) " >&6
27205 else
27206 gcc_cv_ld_no_dot_syms=no
27207 if test x"$ld_is_gold" = xyes; then
27208 gcc_cv_ld_no_dot_syms=yes
27209 elif test $in_tree_ld = yes ; then
27210 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
27211 gcc_cv_ld_no_dot_syms=yes
27213 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27214 cat > conftest1.s <<EOF
27215 .text
27216 bl .foo
27218 cat > conftest2.s <<EOF
27219 .section ".opd","aw"
27220 .align 3
27221 .globl foo
27222 .type foo,@function
27223 foo:
27224 .quad .LEfoo,.TOC.@tocbase,0
27225 .text
27226 .LEfoo:
27228 .size foo,.-.LEfoo
27230 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27231 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27232 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27233 gcc_cv_ld_no_dot_syms=yes
27235 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27240 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27241 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27243 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27248 $as_echo_n "checking linker large toc support... " >&6; }
27249 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27251 else
27252 gcc_cv_ld_large_toc=no
27253 if test x"$ld_is_gold" = xyes; then
27254 gcc_cv_ld_large_toc=yes
27255 elif test $in_tree_ld = yes ; then
27256 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
27257 gcc_cv_ld_large_toc=yes
27259 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27260 cat > conftest.s <<EOF
27261 .section ".tbss","awT",@nobits
27262 .align 3
27263 ie0: .space 8
27264 .global _start
27265 .text
27266 _start:
27267 addis 9,13,ie0@got@tprel@ha
27268 ld 9,ie0@got@tprel@l(9)
27270 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27271 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27272 gcc_cv_ld_large_toc=yes
27274 rm -f conftest conftest.o conftest.s
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27279 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27280 if test x"$gcc_cv_ld_large_toc" = xyes; then
27282 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27286 esac
27288 case "$target" in
27289 *-*-aix*)
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27291 $as_echo_n "checking linker large toc support... " >&6; }
27292 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27293 $as_echo_n "(cached) " >&6
27294 else
27295 gcc_cv_ld_large_toc=no
27296 if test x$gcc_cv_as != x ; then
27297 cat > conftest.s <<EOF
27298 .toc
27299 LC..1:
27300 .tc a[TC],a[RW]
27301 .extern a[RW]
27302 .csect .text[PR]
27303 .largetoctest:
27304 addis 9,LC..1@u(2)
27305 ld 3,LC..1@l(9)
27307 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27308 gcc_cv_ld_large_toc=yes
27310 rm -f conftest conftest.o conftest.s
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27315 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27316 if test x"$gcc_cv_ld_large_toc" = xyes; then
27318 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27322 esac
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27325 $as_echo_n "checking linker --build-id support... " >&6; }
27326 if test "${gcc_cv_ld_buildid+set}" = set; then :
27327 $as_echo_n "(cached) " >&6
27328 else
27329 gcc_cv_ld_buildid=no
27330 if test $in_tree_ld = yes ; then
27331 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27332 "$gcc_cv_gld_minor_version" -ge 18 -o \
27333 "$gcc_cv_gld_major_version" -gt 2 \
27334 && test $in_tree_ld_is_elf = yes; then
27335 gcc_cv_ld_buildid=yes
27337 elif test x$gcc_cv_ld != x; then
27338 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27339 gcc_cv_ld_buildid=yes
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27344 $as_echo "$gcc_cv_ld_buildid" >&6; }
27345 if test x"$gcc_cv_ld_buildid" = xyes; then
27347 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27351 # Check whether --enable-linker-build-id was given.
27352 if test "${enable_linker_build_id+set}" = set; then :
27353 enableval=$enable_linker_build_id;
27354 else
27355 enable_linker_build_id=no
27359 if test x"$enable_linker_build_id" = xyes; then
27360 if test x"$gcc_cv_ld_buildid" = xyes; then
27362 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27364 else
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27366 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27370 # In binutils 2.21, GNU ld gained support for new emulations fully
27371 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27373 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27374 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_ld_sol2_emulation=no
27378 if test $in_tree_ld = yes ; then
27379 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27380 "$gcc_cv_gld_minor_version" -ge 21 -o \
27381 "$gcc_cv_gld_major_version" -gt 2 \
27382 && test $in_tree_ld_is_elf = yes; then
27383 gcc_cv_ld_sol2_emulation=yes
27385 elif test x$gcc_cv_ld != x; then
27386 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27387 grep _sol2 > /dev/null; then
27388 gcc_cv_ld_sol2_emulation=yes
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27393 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27394 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27396 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27401 $as_echo_n "checking linker --sysroot support... " >&6; }
27402 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27405 gcc_cv_ld_sysroot=no
27406 if test $in_tree_ld = yes ; then
27407 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
27408 gcc_cv_ld_sysroot=yes
27410 elif test x$gcc_cv_ld != x; then
27411 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27412 gcc_cv_ld_sysroot=yes
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27417 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27418 if test x"$gcc_cv_ld_sysroot" = xyes; then
27420 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27424 # Test for stack protector support in target C library.
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27426 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27427 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27428 $as_echo_n "(cached) " >&6
27429 else
27430 gcc_cv_libc_provides_ssp=no
27431 case "$target" in
27432 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27433 # glibc 2.4 and later provides __stack_chk_fail and
27434 # either __stack_chk_guard, or TLS access to stack guard canary.
27436 if test $glibc_version_major -gt 2 \
27437 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27438 gcc_cv_libc_provides_ssp=yes
27439 else
27441 if test -f $target_header_dir/features.h \
27442 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27443 $target_header_dir/features.h > /dev/null; then
27444 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27445 $target_header_dir/features.h > /dev/null && \
27446 test -f $target_header_dir/bits/uClibc_config.h && \
27447 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27448 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27449 gcc_cv_libc_provides_ssp=yes
27451 # all versions of Bionic support stack protector
27452 elif test -f $target_header_dir/sys/cdefs.h \
27453 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27454 $target_header_dir/sys/cdefs.h > /dev/null; then
27455 gcc_cv_libc_provides_ssp=yes
27459 *-*-gnu*)
27460 # Avoid complicated tests (see
27461 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27462 # simply assert that glibc does provide this, which is true for all
27463 # realistically usable GNU/Hurd configurations.
27464 gcc_cv_libc_provides_ssp=yes;;
27465 *-*-darwin* | *-*-freebsd*)
27466 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27467 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27468 gcc_cv_libc_provides_ssp=yes
27469 else
27470 echo "no __stack_chk_fail on this target"
27474 *) gcc_cv_libc_provides_ssp=no ;;
27475 esac
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27478 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27480 if test x$gcc_cv_libc_provides_ssp = xyes; then
27482 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27486 # Test for <sys/sdt.h> on the target.
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27489 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27490 have_sys_sdt_h=no
27491 if test -f $target_header_dir/sys/sdt.h; then
27492 have_sys_sdt_h=yes
27494 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27498 $as_echo "$have_sys_sdt_h" >&6; }
27500 # Check if TFmode long double should be used by default or not.
27501 # Some glibc targets used DFmode long double, but with glibc 2.4
27502 # and later they can use TFmode.
27503 case "$target" in
27504 powerpc*-*-linux* | \
27505 sparc*-*-linux* | \
27506 s390*-*-linux* | \
27507 alpha*-*-linux*)
27509 # Check whether --with-long-double-128 was given.
27510 if test "${with_long_double_128+set}" = set; then :
27511 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27512 else
27514 if test $glibc_version_major -gt 2 \
27515 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27516 gcc_cv_target_ldbl128=yes
27517 else
27519 gcc_cv_target_ldbl128=no
27520 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27521 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27522 && gcc_cv_target_ldbl128=yes
27528 esac
27529 if test x$gcc_cv_target_ldbl128 = xyes; then
27531 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27536 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27537 gcc_cv_target_dl_iterate_phdr=unknown
27538 case "$target" in
27539 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27540 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27541 # libdl there, both complicating its use and breaking compatibility
27542 # between Solaris 10 updates.
27543 *-*-solaris2.1[1-9]*)
27544 # <link.h> needs both a dl_iterate_phdr declaration and support for
27545 # compilation with largefile support.
27546 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27547 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27548 gcc_cv_target_dl_iterate_phdr=yes
27549 else
27550 gcc_cv_target_dl_iterate_phdr=no
27553 esac
27555 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27557 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27561 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27563 # We no longer support different GC mechanisms. Emit an error if
27564 # the user configures with --with-gc.
27566 # Check whether --with-gc was given.
27567 if test "${with_gc+set}" = set; then :
27568 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27572 # Libraries to use on the host. This will normally be set by the top
27573 # level Makefile. Here we simply capture the value for our Makefile.
27574 if test -z "${HOST_LIBS+set}"; then
27575 HOST_LIBS=
27579 # Use the system's zlib library.
27580 zlibdir=-L../zlib
27581 zlibinc="-I\$(srcdir)/../zlib"
27583 # Check whether --with-system-zlib was given.
27584 if test "${with_system_zlib+set}" = set; then :
27585 withval=$with_system_zlib; zlibdir=
27586 zlibinc=
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27595 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27596 # Check whether --enable-maintainer-mode was given.
27597 if test "${enable_maintainer_mode+set}" = set; then :
27598 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27599 else
27600 maintainer_mode=no
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27605 $as_echo "$maintainer_mode" >&6; }
27607 if test "$maintainer_mode" = "yes"; then
27608 MAINT=''
27609 else
27610 MAINT='#'
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27615 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27616 # Check whether --enable-link-mutex was given.
27617 if test "${enable_link_mutex+set}" = set; then :
27618 enableval=$enable_link_mutex; do_link_mutex=$enableval
27619 else
27620 do_link_mutex=no
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27624 $as_echo "$do_link_mutex" >&6; }
27626 if test "$do_link_mutex" = "yes"; then
27627 DO_LINK_MUTEX=true
27628 else
27629 DO_LINK_MUTEX=false
27633 # --------------
27634 # Language hooks
27635 # --------------
27637 # Make empty files to contain the specs and options for each language.
27638 # Then add #include lines to for a compiler that has specs and/or options.
27640 subdirs=
27641 lang_opt_files=
27642 lang_specs_files=
27643 lang_tree_files=
27644 # These (without "all_") are set in each config-lang.in.
27645 # `language' must be a single word so is spelled singularly.
27646 all_languages=
27647 all_compilers=
27648 all_outputs='Makefile'
27649 # List of language makefile fragments.
27650 all_lang_makefrags=
27651 # Additional files for gengtype
27652 all_gtfiles="$target_gtfiles"
27654 # These are the languages that are set in --enable-languages,
27655 # and are available in the GCC tree.
27656 all_selected_languages=
27658 # Add the language fragments.
27659 # Languages are added via two mechanisms. Some information must be
27660 # recorded in makefile variables, these are defined in config-lang.in.
27661 # We accumulate them and plug them into the main Makefile.
27662 # The other mechanism is a set of hooks for each of the main targets
27663 # like `clean', `install', etc.
27665 language_hooks="Make-hooks"
27667 for lang in ${srcdir}/*/config-lang.in
27669 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27671 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27672 if test "x$lang_alias" = x
27673 then
27674 echo "$lang doesn't set \$language." 1>&2
27675 exit 1
27677 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27678 subdirs="$subdirs $subdir"
27680 # $gcc_subdir is where the gcc integration files are to be found
27681 # for a language, both for internal compiler purposes (compiler
27682 # sources implementing front-end to GCC tree converters), and for
27683 # build infrastructure purposes (Make-lang.in, etc.)
27685 # This will be <subdir> (relative to $srcdir) if a line like
27686 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27687 # is found in <langdir>/config-lang.in, and will remain <langdir>
27688 # otherwise.
27690 # Except for the language alias (fetched above), the regular
27691 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27692 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27693 # only this and the language alias.
27695 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27696 if [ "$gcc_subdir" = "" ]; then
27697 gcc_subdir="$subdir"
27700 case ",$enable_languages," in
27701 *,$lang_alias,*)
27702 all_selected_languages="$all_selected_languages $lang_alias"
27703 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27704 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27707 esac
27709 language=
27710 boot_language=
27711 compilers=
27712 outputs=
27713 gtfiles=
27714 subdir_requires=
27715 . ${srcdir}/$gcc_subdir/config-lang.in
27716 if test "x$language" = x
27717 then
27718 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27719 exit 1
27722 ok=:
27723 case ",$enable_languages," in
27724 *,$lang_alias,*) ;;
27726 for i in $subdir_requires; do
27727 test -f "${srcdir}/$i/config-lang.in" && continue
27728 ok=false
27729 break
27730 done
27732 esac
27733 $ok || continue
27735 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27736 if test -f $srcdir/$gcc_subdir/lang.opt; then
27737 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27738 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27740 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27741 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27743 all_languages="$all_languages $language"
27744 all_compilers="$all_compilers $compilers"
27745 all_outputs="$all_outputs $outputs"
27746 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27747 case ",$enable_languages," in
27748 *,lto,*)
27750 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27752 enable_lto=yes
27755 *) ;;
27756 esac
27757 done
27759 check_languages=
27760 for language in $all_selected_languages
27762 check_languages="$check_languages check-$language"
27763 done
27765 # We link each language in with a set of hooks, reached indirectly via
27766 # lang.${target}. Only do so for selected languages.
27768 rm -f Make-hooks
27769 touch Make-hooks
27770 target_list="all.cross start.encap rest.encap tags \
27771 install-common install-man install-info install-pdf install-html dvi \
27772 pdf html uninstall info man srcextra srcman srcinfo \
27773 mostlyclean clean distclean maintainer-clean install-plugin"
27775 for t in $target_list
27778 for lang in $all_selected_languages
27780 x="$x $lang.$t"
27781 done
27782 echo "lang.$t: $x" >> Make-hooks
27783 done
27785 # --------
27786 # Option include files
27787 # --------
27789 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27790 option_includes="option-includes.mk"
27793 # --------
27794 # UNSORTED
27795 # --------
27797 # Create .gdbinit.
27799 echo "dir ." > .gdbinit
27800 echo "dir ${srcdir}" >> .gdbinit
27801 if test x$gdb_needs_out_file_path = xyes
27802 then
27803 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27805 if test "x$subdirs" != x; then
27806 for s in $subdirs
27808 echo "dir ${srcdir}/$s" >> .gdbinit
27809 done
27811 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27812 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27814 # Put a breakpoint on __asan_report_error to help with debugging buffer
27815 # overflow.
27816 case "$CFLAGS" in
27817 *-fsanitize=address*)
27818 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27820 esac
27822 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27826 # Find a directory in which to install a shared libgcc.
27828 # Check whether --enable-version-specific-runtime-libs was given.
27829 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27830 enableval=$enable_version_specific_runtime_libs;
27834 # Substitute configuration variables
27897 # Echo link setup.
27898 if test x${build} = x${host} ; then
27899 if test x${host} = x${target} ; then
27900 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27901 else
27902 echo "Links are now set up to build a cross-compiler" 1>&2
27903 echo " from ${host} to ${target}." 1>&2
27905 else
27906 if test x${host} = x${target} ; then
27907 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27908 echo " for ${target}." 1>&2
27909 else
27910 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27911 echo " from ${host} to ${target}." 1>&2
27923 if test "x${CLOOGLIBS}" != "x" ; then
27925 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27929 # Check for plugin support
27930 # Check whether --enable-plugin was given.
27931 if test "${enable_plugin+set}" = set; then :
27932 enableval=$enable_plugin; enable_plugin=$enableval
27933 else
27934 enable_plugin=yes; default_plugin=yes
27938 pluginlibs=
27940 case "${host}" in
27941 *-*-darwin*)
27942 if test x$build = x$host; then
27943 export_sym_check="nm${exeext} -g"
27944 elif test x$host = x$target; then
27945 export_sym_check="$gcc_cv_nm -g"
27946 else
27947 export_sym_check=
27951 if test x$build = x$host; then
27952 export_sym_check="objdump${exeext} -T"
27953 elif test x$host = x$target; then
27954 export_sym_check="$gcc_cv_objdump -T"
27955 else
27956 export_sym_check=
27959 esac
27961 if test x"$enable_plugin" = x"yes"; then
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27964 $as_echo_n "checking for exported symbols... " >&6; }
27965 if test "x$export_sym_check" != x; then
27966 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27967 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27968 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27969 : # No need to use a flag
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27971 $as_echo "yes" >&6; }
27972 else
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27974 $as_echo "yes" >&6; }
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27976 $as_echo_n "checking for -rdynamic... " >&6; }
27977 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27978 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27979 plugin_rdynamic=yes
27980 pluginlibs="-rdynamic"
27981 else
27982 plugin_rdynamic=no
27983 enable_plugin=no
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27986 $as_echo "$plugin_rdynamic" >&6; }
27988 else
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27990 $as_echo "unable to check" >&6; }
27993 # Check -ldl
27994 saved_LIBS="$LIBS"
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27996 $as_echo_n "checking for library containing dlopen... " >&6; }
27997 if test "${ac_cv_search_dlopen+set}" = set; then :
27998 $as_echo_n "(cached) " >&6
27999 else
28000 ac_func_search_save_LIBS=$LIBS
28001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h. */
28004 /* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28007 #ifdef __cplusplus
28008 extern "C"
28009 #endif
28010 char dlopen ();
28012 main ()
28014 return dlopen ();
28016 return 0;
28018 _ACEOF
28019 for ac_lib in '' dl; do
28020 if test -z "$ac_lib"; then
28021 ac_res="none required"
28022 else
28023 ac_res=-l$ac_lib
28024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28026 if ac_fn_c_try_link "$LINENO"; then :
28027 ac_cv_search_dlopen=$ac_res
28029 rm -f core conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext
28031 if test "${ac_cv_search_dlopen+set}" = set; then :
28032 break
28034 done
28035 if test "${ac_cv_search_dlopen+set}" = set; then :
28037 else
28038 ac_cv_search_dlopen=no
28040 rm conftest.$ac_ext
28041 LIBS=$ac_func_search_save_LIBS
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28044 $as_echo "$ac_cv_search_dlopen" >&6; }
28045 ac_res=$ac_cv_search_dlopen
28046 if test "$ac_res" != no; then :
28047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28051 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28052 pluginlibs="$pluginlibs -ldl"
28054 LIBS="$saved_LIBS"
28056 # Check that we can build shared objects with -fPIC -shared
28057 saved_LDFLAGS="$LDFLAGS"
28058 saved_CFLAGS="$CFLAGS"
28059 case "${host}" in
28060 *-*-darwin*)
28061 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28062 CFLAGS="$CFLAGS -fPIC"
28063 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28066 CFLAGS="$CFLAGS -fPIC"
28067 LDFLAGS="$LDFLAGS -fPIC -shared"
28069 esac
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28071 $as_echo_n "checking for -fPIC -shared... " >&6; }
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28074 extern int X;
28076 main ()
28078 return X == 0;
28080 return 0;
28082 _ACEOF
28083 if ac_fn_c_try_link "$LINENO"; then :
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28085 $as_echo "yes" >&6; }; have_pic_shared=yes
28086 else
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28088 $as_echo "no" >&6; }; have_pic_shared=no
28090 rm -f core conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
28092 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28093 pluginlibs=
28094 enable_plugin=no
28096 LDFLAGS="$saved_LDFLAGS"
28097 CFLAGS="$saved_CFLAGS"
28099 # If plugin support had been requested but not available, fail.
28100 if test x"$enable_plugin" = x"no" ; then
28101 if test x"$default_plugin" != x"yes"; then
28102 as_fn_error "
28103 Building GCC with plugin support requires a host that supports
28104 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28111 if test x"$enable_plugin" = x"yes"; then
28113 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28118 # Enable --enable-host-shared
28119 # Check whether --enable-host-shared was given.
28120 if test "${enable_host_shared+set}" = set; then :
28121 enableval=$enable_host_shared; PICFLAG=-fPIC
28122 else
28123 PICFLAG=
28130 # Check whether --enable-libquadmath-support was given.
28131 if test "${enable_libquadmath_support+set}" = set; then :
28132 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28133 else
28134 ENABLE_LIBQUADMATH_SUPPORT=yes
28137 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28139 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28144 # Specify what hash style to use by default.
28146 # Check whether --with-linker-hash-style was given.
28147 if test "${with_linker_hash_style+set}" = set; then :
28148 withval=$with_linker_hash_style; case x"$withval" in
28149 xsysv)
28150 LINKER_HASH_STYLE=sysv
28152 xgnu)
28153 LINKER_HASH_STYLE=gnu
28155 xboth)
28156 LINKER_HASH_STYLE=both
28159 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28161 esac
28162 else
28163 LINKER_HASH_STYLE=''
28166 if test x"${LINKER_HASH_STYLE}" != x; then
28168 cat >>confdefs.h <<_ACEOF
28169 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28170 _ACEOF
28174 # Configure the subdirectories
28175 # AC_CONFIG_SUBDIRS($subdirs)
28177 # Create the Makefile
28178 # and configure language subdirectories
28179 ac_config_files="$ac_config_files $all_outputs"
28182 ac_config_commands="$ac_config_commands default"
28184 cat >confcache <<\_ACEOF
28185 # This file is a shell script that caches the results of configure
28186 # tests run on this system so they can be shared between configure
28187 # scripts and configure runs, see configure's option --config-cache.
28188 # It is not useful on other systems. If it contains results you don't
28189 # want to keep, you may remove or edit it.
28191 # config.status only pays attention to the cache file if you give it
28192 # the --recheck option to rerun configure.
28194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28196 # following values.
28198 _ACEOF
28200 # The following way of writing the cache mishandles newlines in values,
28201 # but we know of no workaround that is simple, portable, and efficient.
28202 # So, we kill variables containing newlines.
28203 # Ultrix sh set writes to stderr and can't be redirected directly,
28204 # and sets the high bit in the cache file unless we assign to the vars.
28206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28207 eval ac_val=\$$ac_var
28208 case $ac_val in #(
28209 *${as_nl}*)
28210 case $ac_var in #(
28211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28213 esac
28214 case $ac_var in #(
28215 _ | IFS | as_nl) ;; #(
28216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28217 *) { eval $ac_var=; unset $ac_var;} ;;
28218 esac ;;
28219 esac
28220 done
28222 (set) 2>&1 |
28223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28224 *${as_nl}ac_space=\ *)
28225 # `set' does not quote correctly, so add quotes: double-quote
28226 # substitution turns \\\\ into \\, and sed turns \\ into \.
28227 sed -n \
28228 "s/'/'\\\\''/g;
28229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28230 ;; #(
28232 # `set' quotes correctly as required by POSIX, so do not add quotes.
28233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28235 esac |
28236 sort
28238 sed '
28239 /^ac_cv_env_/b end
28240 t clear
28241 :clear
28242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28243 t end
28244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28245 :end' >>confcache
28246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28247 if test -w "$cache_file"; then
28248 test "x$cache_file" != "x/dev/null" &&
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28250 $as_echo "$as_me: updating cache $cache_file" >&6;}
28251 cat confcache >$cache_file
28252 else
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28257 rm -f confcache
28259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28260 # Let make expand exec_prefix.
28261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28263 DEFS=-DHAVE_CONFIG_H
28265 ac_libobjs=
28266 ac_ltlibobjs=
28267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28268 # 1. Remove the extension, and $U if already installed.
28269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28272 # will be set to the directory where LIBOBJS objects are built.
28273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28275 done
28276 LIBOBJS=$ac_libobjs
28278 LTLIBOBJS=$ac_ltlibobjs
28283 : ${CONFIG_STATUS=./config.status}
28284 ac_write_fail=0
28285 ac_clean_files_save=$ac_clean_files
28286 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28289 as_write_fail=0
28290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28291 #! $SHELL
28292 # Generated by $as_me.
28293 # Run this file to recreate the current configuration.
28294 # Compiler output produced by configure, useful for debugging
28295 # configure, is in config.log if it exists.
28297 debug=false
28298 ac_cs_recheck=false
28299 ac_cs_silent=false
28301 SHELL=\${CONFIG_SHELL-$SHELL}
28302 export SHELL
28303 _ASEOF
28304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28305 ## -------------------- ##
28306 ## M4sh Initialization. ##
28307 ## -------------------- ##
28309 # Be more Bourne compatible
28310 DUALCASE=1; export DUALCASE # for MKS sh
28311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28312 emulate sh
28313 NULLCMD=:
28314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28315 # is contrary to our usage. Disable this feature.
28316 alias -g '${1+"$@"}'='"$@"'
28317 setopt NO_GLOB_SUBST
28318 else
28319 case `(set -o) 2>/dev/null` in #(
28320 *posix*) :
28321 set -o posix ;; #(
28322 *) :
28324 esac
28328 as_nl='
28330 export as_nl
28331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28332 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28335 # Prefer a ksh shell builtin over an external printf program on Solaris,
28336 # but without wasting forks for bash or zsh.
28337 if test -z "$BASH_VERSION$ZSH_VERSION" \
28338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28339 as_echo='print -r --'
28340 as_echo_n='print -rn --'
28341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28342 as_echo='printf %s\n'
28343 as_echo_n='printf %s'
28344 else
28345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28346 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28347 as_echo_n='/usr/ucb/echo -n'
28348 else
28349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28350 as_echo_n_body='eval
28351 arg=$1;
28352 case $arg in #(
28353 *"$as_nl"*)
28354 expr "X$arg" : "X\\(.*\\)$as_nl";
28355 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28356 esac;
28357 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28359 export as_echo_n_body
28360 as_echo_n='sh -c $as_echo_n_body as_echo'
28362 export as_echo_body
28363 as_echo='sh -c $as_echo_body as_echo'
28366 # The user is always right.
28367 if test "${PATH_SEPARATOR+set}" != set; then
28368 PATH_SEPARATOR=:
28369 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28370 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28371 PATH_SEPARATOR=';'
28376 # IFS
28377 # We need space, tab and new line, in precisely that order. Quoting is
28378 # there to prevent editors from complaining about space-tab.
28379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28380 # splitting by setting IFS to empty value.)
28381 IFS=" "" $as_nl"
28383 # Find who we are. Look in the path if we contain no directory separator.
28384 case $0 in #((
28385 *[\\/]* ) as_myself=$0 ;;
28386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28387 for as_dir in $PATH
28389 IFS=$as_save_IFS
28390 test -z "$as_dir" && as_dir=.
28391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28392 done
28393 IFS=$as_save_IFS
28396 esac
28397 # We did not find ourselves, most probably we were run as `sh COMMAND'
28398 # in which case we are not to be found in the path.
28399 if test "x$as_myself" = x; then
28400 as_myself=$0
28402 if test ! -f "$as_myself"; then
28403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28404 exit 1
28407 # Unset variables that we do not need and which cause bugs (e.g. in
28408 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28409 # suppresses any "Segmentation fault" message there. '((' could
28410 # trigger a bug in pdksh 5.2.14.
28411 for as_var in BASH_ENV ENV MAIL MAILPATH
28412 do eval test x\${$as_var+set} = xset \
28413 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28414 done
28415 PS1='$ '
28416 PS2='> '
28417 PS4='+ '
28419 # NLS nuisances.
28420 LC_ALL=C
28421 export LC_ALL
28422 LANGUAGE=C
28423 export LANGUAGE
28425 # CDPATH.
28426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28429 # as_fn_error ERROR [LINENO LOG_FD]
28430 # ---------------------------------
28431 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28432 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28433 # script with status $?, using 1 if that was 0.
28434 as_fn_error ()
28436 as_status=$?; test $as_status -eq 0 && as_status=1
28437 if test "$3"; then
28438 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28441 $as_echo "$as_me: error: $1" >&2
28442 as_fn_exit $as_status
28443 } # as_fn_error
28446 # as_fn_set_status STATUS
28447 # -----------------------
28448 # Set $? to STATUS, without forking.
28449 as_fn_set_status ()
28451 return $1
28452 } # as_fn_set_status
28454 # as_fn_exit STATUS
28455 # -----------------
28456 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28457 as_fn_exit ()
28459 set +e
28460 as_fn_set_status $1
28461 exit $1
28462 } # as_fn_exit
28464 # as_fn_unset VAR
28465 # ---------------
28466 # Portably unset VAR.
28467 as_fn_unset ()
28469 { eval $1=; unset $1;}
28471 as_unset=as_fn_unset
28472 # as_fn_append VAR VALUE
28473 # ----------------------
28474 # Append the text in VALUE to the end of the definition contained in VAR. Take
28475 # advantage of any shell optimizations that allow amortized linear growth over
28476 # repeated appends, instead of the typical quadratic growth present in naive
28477 # implementations.
28478 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28479 eval 'as_fn_append ()
28481 eval $1+=\$2
28483 else
28484 as_fn_append ()
28486 eval $1=\$$1\$2
28488 fi # as_fn_append
28490 # as_fn_arith ARG...
28491 # ------------------
28492 # Perform arithmetic evaluation on the ARGs, and store the result in the
28493 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28494 # must be portable across $(()) and expr.
28495 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28496 eval 'as_fn_arith ()
28498 as_val=$(( $* ))
28500 else
28501 as_fn_arith ()
28503 as_val=`expr "$@" || test $? -eq 1`
28505 fi # as_fn_arith
28508 if expr a : '\(a\)' >/dev/null 2>&1 &&
28509 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28510 as_expr=expr
28511 else
28512 as_expr=false
28515 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28516 as_basename=basename
28517 else
28518 as_basename=false
28521 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28522 as_dirname=dirname
28523 else
28524 as_dirname=false
28527 as_me=`$as_basename -- "$0" ||
28528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28529 X"$0" : 'X\(//\)$' \| \
28530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28531 $as_echo X/"$0" |
28532 sed '/^.*\/\([^/][^/]*\)\/*$/{
28533 s//\1/
28536 /^X\/\(\/\/\)$/{
28537 s//\1/
28540 /^X\/\(\/\).*/{
28541 s//\1/
28544 s/.*/./; q'`
28546 # Avoid depending upon Character Ranges.
28547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28550 as_cr_digits='0123456789'
28551 as_cr_alnum=$as_cr_Letters$as_cr_digits
28553 ECHO_C= ECHO_N= ECHO_T=
28554 case `echo -n x` in #(((((
28555 -n*)
28556 case `echo 'xy\c'` in
28557 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28558 xy) ECHO_C='\c';;
28559 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28560 ECHO_T=' ';;
28561 esac;;
28563 ECHO_N='-n';;
28564 esac
28566 rm -f conf$$ conf$$.exe conf$$.file
28567 if test -d conf$$.dir; then
28568 rm -f conf$$.dir/conf$$.file
28569 else
28570 rm -f conf$$.dir
28571 mkdir conf$$.dir 2>/dev/null
28573 if (echo >conf$$.file) 2>/dev/null; then
28574 if ln -s conf$$.file conf$$ 2>/dev/null; then
28575 as_ln_s='ln -s'
28576 # ... but there are two gotchas:
28577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28579 # In both cases, we have to default to `cp -p'.
28580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28581 as_ln_s='cp -p'
28582 elif ln conf$$.file conf$$ 2>/dev/null; then
28583 as_ln_s=ln
28584 else
28585 as_ln_s='cp -p'
28587 else
28588 as_ln_s='cp -p'
28590 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28591 rmdir conf$$.dir 2>/dev/null
28594 # as_fn_mkdir_p
28595 # -------------
28596 # Create "$as_dir" as a directory, including parents if necessary.
28597 as_fn_mkdir_p ()
28600 case $as_dir in #(
28601 -*) as_dir=./$as_dir;;
28602 esac
28603 test -d "$as_dir" || eval $as_mkdir_p || {
28604 as_dirs=
28605 while :; do
28606 case $as_dir in #(
28607 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28608 *) as_qdir=$as_dir;;
28609 esac
28610 as_dirs="'$as_qdir' $as_dirs"
28611 as_dir=`$as_dirname -- "$as_dir" ||
28612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28613 X"$as_dir" : 'X\(//\)[^/]' \| \
28614 X"$as_dir" : 'X\(//\)$' \| \
28615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28616 $as_echo X"$as_dir" |
28617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28618 s//\1/
28621 /^X\(\/\/\)[^/].*/{
28622 s//\1/
28625 /^X\(\/\/\)$/{
28626 s//\1/
28629 /^X\(\/\).*/{
28630 s//\1/
28633 s/.*/./; q'`
28634 test -d "$as_dir" && break
28635 done
28636 test -z "$as_dirs" || eval "mkdir $as_dirs"
28637 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28640 } # as_fn_mkdir_p
28641 if mkdir -p . 2>/dev/null; then
28642 as_mkdir_p='mkdir -p "$as_dir"'
28643 else
28644 test -d ./-p && rmdir ./-p
28645 as_mkdir_p=false
28648 if test -x / >/dev/null 2>&1; then
28649 as_test_x='test -x'
28650 else
28651 if ls -dL / >/dev/null 2>&1; then
28652 as_ls_L_option=L
28653 else
28654 as_ls_L_option=
28656 as_test_x='
28657 eval sh -c '\''
28658 if test -d "$1"; then
28659 test -d "$1/.";
28660 else
28661 case $1 in #(
28662 -*)set "./$1";;
28663 esac;
28664 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28665 ???[sx]*):;;*)false;;esac;fi
28666 '\'' sh
28669 as_executable_p=$as_test_x
28671 # Sed expression to map a string onto a valid CPP name.
28672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28674 # Sed expression to map a string onto a valid variable name.
28675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28678 exec 6>&1
28679 ## ----------------------------------- ##
28680 ## Main body of $CONFIG_STATUS script. ##
28681 ## ----------------------------------- ##
28682 _ASEOF
28683 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28686 # Save the log message, to keep $0 and so on meaningful, and to
28687 # report actual input values of CONFIG_FILES etc. instead of their
28688 # values after options handling.
28689 ac_log="
28690 This file was extended by $as_me, which was
28691 generated by GNU Autoconf 2.64. Invocation command line was
28693 CONFIG_FILES = $CONFIG_FILES
28694 CONFIG_HEADERS = $CONFIG_HEADERS
28695 CONFIG_LINKS = $CONFIG_LINKS
28696 CONFIG_COMMANDS = $CONFIG_COMMANDS
28697 $ $0 $@
28699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28702 _ACEOF
28704 case $ac_config_files in *"
28705 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28706 esac
28708 case $ac_config_headers in *"
28709 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28710 esac
28713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28714 # Files that config.status was made for.
28715 config_files="$ac_config_files"
28716 config_headers="$ac_config_headers"
28717 config_commands="$ac_config_commands"
28719 _ACEOF
28721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28722 ac_cs_usage="\
28723 \`$as_me' instantiates files and other configuration actions
28724 from templates according to the current configuration. Unless the files
28725 and actions are specified as TAGs, all are instantiated by default.
28727 Usage: $0 [OPTION]... [TAG]...
28729 -h, --help print this help, then exit
28730 -V, --version print version number and configuration settings, then exit
28731 -q, --quiet, --silent
28732 do not print progress messages
28733 -d, --debug don't remove temporary files
28734 --recheck update $as_me by reconfiguring in the same conditions
28735 --file=FILE[:TEMPLATE]
28736 instantiate the configuration file FILE
28737 --header=FILE[:TEMPLATE]
28738 instantiate the configuration header FILE
28740 Configuration files:
28741 $config_files
28743 Configuration headers:
28744 $config_headers
28746 Configuration commands:
28747 $config_commands
28749 Report bugs to the package provider."
28751 _ACEOF
28752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28753 ac_cs_version="\\
28754 config.status
28755 configured by $0, generated by GNU Autoconf 2.64,
28756 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28758 Copyright (C) 2009 Free Software Foundation, Inc.
28759 This config.status script is free software; the Free Software Foundation
28760 gives unlimited permission to copy, distribute and modify it."
28762 ac_pwd='$ac_pwd'
28763 srcdir='$srcdir'
28764 AWK='$AWK'
28765 test -n "\$AWK" || AWK=awk
28766 _ACEOF
28768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28769 # The default lists apply if the user does not specify any file.
28770 ac_need_defaults=:
28771 while test $# != 0
28773 case $1 in
28774 --*=*)
28775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28777 ac_shift=:
28780 ac_option=$1
28781 ac_optarg=$2
28782 ac_shift=shift
28784 esac
28786 case $ac_option in
28787 # Handling of the options.
28788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28789 ac_cs_recheck=: ;;
28790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28791 $as_echo "$ac_cs_version"; exit ;;
28792 --debug | --debu | --deb | --de | --d | -d )
28793 debug=: ;;
28794 --file | --fil | --fi | --f )
28795 $ac_shift
28796 case $ac_optarg in
28797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28798 esac
28799 as_fn_append CONFIG_FILES " '$ac_optarg'"
28800 ac_need_defaults=false;;
28801 --header | --heade | --head | --hea )
28802 $ac_shift
28803 case $ac_optarg in
28804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28805 esac
28806 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28807 ac_need_defaults=false;;
28808 --he | --h)
28809 # Conflict between --help and --header
28810 as_fn_error "ambiguous option: \`$1'
28811 Try \`$0 --help' for more information.";;
28812 --help | --hel | -h )
28813 $as_echo "$ac_cs_usage"; exit ;;
28814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28816 ac_cs_silent=: ;;
28818 # This is an error.
28819 -*) as_fn_error "unrecognized option: \`$1'
28820 Try \`$0 --help' for more information." ;;
28822 *) as_fn_append ac_config_targets " $1"
28823 ac_need_defaults=false ;;
28825 esac
28826 shift
28827 done
28829 ac_configure_extra_args=
28831 if $ac_cs_silent; then
28832 exec 6>/dev/null
28833 ac_configure_extra_args="$ac_configure_extra_args --silent"
28836 _ACEOF
28837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28838 if \$ac_cs_recheck; then
28839 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28840 shift
28841 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28842 CONFIG_SHELL='$SHELL'
28843 export CONFIG_SHELL
28844 exec "\$@"
28847 _ACEOF
28848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28849 exec 5>>config.log
28851 echo
28852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28853 ## Running $as_me. ##
28854 _ASBOX
28855 $as_echo "$ac_log"
28856 } >&5
28858 _ACEOF
28859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28861 # INIT-COMMANDS
28863 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28864 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28865 subdirs='$subdirs'
28867 _ACEOF
28869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28871 # Handling of arguments.
28872 for ac_config_target in $ac_config_targets
28874 case $ac_config_target in
28875 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28876 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28877 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28878 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28879 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28880 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28881 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28882 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28884 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28885 esac
28886 done
28889 # If the user did not use the arguments to specify the items to instantiate,
28890 # then the envvar interface is used. Set only those that are not.
28891 # We use the long form for the default assignment because of an extremely
28892 # bizarre bug on SunOS 4.1.3.
28893 if $ac_need_defaults; then
28894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28899 # Have a temporary directory for convenience. Make it in the build tree
28900 # simply because there is no reason against having it here, and in addition,
28901 # creating and moving files from /tmp can sometimes cause problems.
28902 # Hook for its removal unless debugging.
28903 # Note that there is a small window in which the directory will not be cleaned:
28904 # after its creation but before its name has been assigned to `$tmp'.
28905 $debug ||
28907 tmp=
28908 trap 'exit_status=$?
28909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28911 trap 'as_fn_exit 1' 1 2 13 15
28913 # Create a (secure) tmp directory for tmp files.
28916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28917 test -n "$tmp" && test -d "$tmp"
28918 } ||
28920 tmp=./conf$$-$RANDOM
28921 (umask 077 && mkdir "$tmp")
28922 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28924 # Set up the scripts for CONFIG_FILES section.
28925 # No need to generate them if there are no CONFIG_FILES.
28926 # This happens for instance with `./config.status config.h'.
28927 if test -n "$CONFIG_FILES"; then
28929 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28930 ac_cs_awk_getline=:
28931 ac_cs_awk_pipe_init=
28932 ac_cs_awk_read_file='
28933 while ((getline aline < (F[key])) > 0)
28934 print(aline)
28935 close(F[key])'
28936 ac_cs_awk_pipe_fini=
28937 else
28938 ac_cs_awk_getline=false
28939 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28940 ac_cs_awk_read_file='
28941 print "|#_!!_#|"
28942 print "cat " F[key] " &&"
28943 '$ac_cs_awk_pipe_init
28944 # The final `:' finishes the AND list.
28945 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28947 ac_cr=`echo X | tr X '\015'`
28948 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28949 # But we know of no other shell where ac_cr would be empty at this
28950 # point, so we can use a bashism as a fallback.
28951 if test "x$ac_cr" = x; then
28952 eval ac_cr=\$\'\\r\'
28954 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28955 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28956 ac_cs_awk_cr='\r'
28957 else
28958 ac_cs_awk_cr=$ac_cr
28961 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28962 _ACEOF
28964 # Create commands to substitute file output variables.
28966 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28967 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28968 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28969 echo "_ACAWK" &&
28970 echo "_ACEOF"
28971 } >conf$$files.sh &&
28972 . ./conf$$files.sh ||
28973 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28974 rm -f conf$$files.sh
28977 echo "cat >conf$$subs.awk <<_ACEOF" &&
28978 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28979 echo "_ACEOF"
28980 } >conf$$subs.sh ||
28981 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28982 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28983 ac_delim='%!_!# '
28984 for ac_last_try in false false false false false :; do
28985 . ./conf$$subs.sh ||
28986 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28988 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28989 if test $ac_delim_n = $ac_delim_num; then
28990 break
28991 elif $ac_last_try; then
28992 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28993 else
28994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28996 done
28997 rm -f conf$$subs.sh
28999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29000 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29001 _ACEOF
29002 sed -n '
29004 s/^/S["/; s/!.*/"]=/
29007 s/^[^!]*!//
29008 :repl
29009 t repl
29010 s/'"$ac_delim"'$//
29011 t delim
29014 s/\(.\{148\}\).*/\1/
29015 t more1
29016 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29019 b repl
29020 :more1
29021 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29024 s/.\{148\}//
29025 t nl
29026 :delim
29028 s/\(.\{148\}\).*/\1/
29029 t more2
29030 s/["\\]/\\&/g; s/^/"/; s/$/"/
29033 :more2
29034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29037 s/.\{148\}//
29038 t delim
29039 ' <conf$$subs.awk | sed '
29040 /^[^""]/{
29042 s/\n//
29044 ' >>$CONFIG_STATUS || ac_write_fail=1
29045 rm -f conf$$subs.awk
29046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29047 _ACAWK
29048 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29049 for (key in S) S_is_set[key] = 1
29050 FS = "\a"
29051 \$ac_cs_awk_pipe_init
29054 line = $ 0
29055 nfields = split(line, field, "@")
29056 substed = 0
29057 len = length(field[1])
29058 for (i = 2; i < nfields; i++) {
29059 key = field[i]
29060 keylen = length(key)
29061 if (S_is_set[key]) {
29062 value = S[key]
29063 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29064 len += length(value) + length(field[++i])
29065 substed = 1
29066 } else
29067 len += 1 + keylen
29069 if (nfields == 3 && !substed) {
29070 key = field[2]
29071 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29072 \$ac_cs_awk_read_file
29073 next
29076 print line
29078 \$ac_cs_awk_pipe_fini
29079 _ACAWK
29080 _ACEOF
29081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29082 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29084 else
29086 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29087 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29088 _ACEOF
29090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29092 # trailing colons and then remove the whole line if VPATH becomes empty
29093 # (actually we leave an empty line to preserve line numbers).
29094 if test "x$srcdir" = x.; then
29095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29096 s/:*\$(srcdir):*/:/
29097 s/:*\${srcdir}:*/:/
29098 s/:*@srcdir@:*/:/
29099 s/^\([^=]*=[ ]*\):*/\1/
29100 s/:*$//
29101 s/^[^=]*=[ ]*$//
29105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29106 fi # test -n "$CONFIG_FILES"
29108 # Set up the scripts for CONFIG_HEADERS section.
29109 # No need to generate them if there are no CONFIG_HEADERS.
29110 # This happens for instance with `./config.status Makefile'.
29111 if test -n "$CONFIG_HEADERS"; then
29112 cat >"$tmp/defines.awk" <<\_ACAWK ||
29113 BEGIN {
29114 _ACEOF
29116 # Transform confdefs.h into an awk script `defines.awk', embedded as
29117 # here-document in config.status, that substitutes the proper values into
29118 # config.h.in to produce config.h.
29120 # Create a delimiter string that does not exist in confdefs.h, to ease
29121 # handling of long lines.
29122 ac_delim='%!_!# '
29123 for ac_last_try in false false :; do
29124 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29125 if test -z "$ac_t"; then
29126 break
29127 elif $ac_last_try; then
29128 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29129 else
29130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29132 done
29134 # For the awk script, D is an array of macro values keyed by name,
29135 # likewise P contains macro parameters if any. Preserve backslash
29136 # newline sequences.
29138 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29139 sed -n '
29140 s/.\{148\}/&'"$ac_delim"'/g
29141 t rset
29142 :rset
29143 s/^[ ]*#[ ]*define[ ][ ]*/ /
29144 t def
29146 :def
29147 s/\\$//
29148 t bsnl
29149 s/["\\]/\\&/g
29150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29151 D["\1"]=" \3"/p
29152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29154 :bsnl
29155 s/["\\]/\\&/g
29156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29157 D["\1"]=" \3\\\\\\n"\\/p
29158 t cont
29159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29160 t cont
29162 :cont
29164 s/.\{148\}/&'"$ac_delim"'/g
29165 t clear
29166 :clear
29167 s/\\$//
29168 t bsnlc
29169 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29171 :bsnlc
29172 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29173 b cont
29174 ' <confdefs.h | sed '
29175 s/'"$ac_delim"'/"\\\
29176 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29179 for (key in D) D_is_set[key] = 1
29180 FS = "\a"
29182 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29183 line = \$ 0
29184 split(line, arg, " ")
29185 if (arg[1] == "#") {
29186 defundef = arg[2]
29187 mac1 = arg[3]
29188 } else {
29189 defundef = substr(arg[1], 2)
29190 mac1 = arg[2]
29192 split(mac1, mac2, "(") #)
29193 macro = mac2[1]
29194 prefix = substr(line, 1, index(line, defundef) - 1)
29195 if (D_is_set[macro]) {
29196 # Preserve the white space surrounding the "#".
29197 print prefix "define", macro P[macro] D[macro]
29198 next
29199 } else {
29200 # Replace #undef with comments. This is necessary, for example,
29201 # in the case of _POSIX_SOURCE, which is predefined and required
29202 # on some systems where configure will not decide to define it.
29203 if (defundef == "undef") {
29204 print "/*", prefix defundef, macro, "*/"
29205 next
29209 { print }
29210 _ACAWK
29211 _ACEOF
29212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29213 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29214 fi # test -n "$CONFIG_HEADERS"
29217 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29218 shift
29219 for ac_tag
29221 case $ac_tag in
29222 :[FHLC]) ac_mode=$ac_tag; continue;;
29223 esac
29224 case $ac_mode$ac_tag in
29225 :[FHL]*:*);;
29226 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29227 :[FH]-) ac_tag=-:-;;
29228 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29229 esac
29230 ac_save_IFS=$IFS
29231 IFS=:
29232 set x $ac_tag
29233 IFS=$ac_save_IFS
29234 shift
29235 ac_file=$1
29236 shift
29238 case $ac_mode in
29239 :L) ac_source=$1;;
29240 :[FH])
29241 ac_file_inputs=
29242 for ac_f
29244 case $ac_f in
29245 -) ac_f="$tmp/stdin";;
29246 *) # Look for the file first in the build tree, then in the source tree
29247 # (if the path is not absolute). The absolute path cannot be DOS-style,
29248 # because $ac_f cannot contain `:'.
29249 test -f "$ac_f" ||
29250 case $ac_f in
29251 [\\/$]*) false;;
29252 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29253 esac ||
29254 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29255 esac
29256 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29257 as_fn_append ac_file_inputs " '$ac_f'"
29258 done
29260 # Let's still pretend it is `configure' which instantiates (i.e., don't
29261 # use $as_me), people would be surprised to read:
29262 # /* config.h. Generated by config.status. */
29263 configure_input='Generated from '`
29264 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29265 `' by configure.'
29266 if test x"$ac_file" != x-; then
29267 configure_input="$ac_file. $configure_input"
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29269 $as_echo "$as_me: creating $ac_file" >&6;}
29271 # Neutralize special characters interpreted by sed in replacement strings.
29272 case $configure_input in #(
29273 *\&* | *\|* | *\\* )
29274 ac_sed_conf_input=`$as_echo "$configure_input" |
29275 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29276 *) ac_sed_conf_input=$configure_input;;
29277 esac
29279 case $ac_tag in
29280 *:-:* | *:-) cat >"$tmp/stdin" \
29281 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29282 esac
29284 esac
29286 ac_dir=`$as_dirname -- "$ac_file" ||
29287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29288 X"$ac_file" : 'X\(//\)[^/]' \| \
29289 X"$ac_file" : 'X\(//\)$' \| \
29290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29291 $as_echo X"$ac_file" |
29292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29293 s//\1/
29296 /^X\(\/\/\)[^/].*/{
29297 s//\1/
29300 /^X\(\/\/\)$/{
29301 s//\1/
29304 /^X\(\/\).*/{
29305 s//\1/
29308 s/.*/./; q'`
29309 as_dir="$ac_dir"; as_fn_mkdir_p
29310 ac_builddir=.
29312 case "$ac_dir" in
29313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29315 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29316 # A ".." for each directory in $ac_dir_suffix.
29317 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29318 case $ac_top_builddir_sub in
29319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29321 esac ;;
29322 esac
29323 ac_abs_top_builddir=$ac_pwd
29324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29325 # for backward compatibility:
29326 ac_top_builddir=$ac_top_build_prefix
29328 case $srcdir in
29329 .) # We are building in place.
29330 ac_srcdir=.
29331 ac_top_srcdir=$ac_top_builddir_sub
29332 ac_abs_top_srcdir=$ac_pwd ;;
29333 [\\/]* | ?:[\\/]* ) # Absolute name.
29334 ac_srcdir=$srcdir$ac_dir_suffix;
29335 ac_top_srcdir=$srcdir
29336 ac_abs_top_srcdir=$srcdir ;;
29337 *) # Relative name.
29338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29339 ac_top_srcdir=$ac_top_build_prefix$srcdir
29340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29341 esac
29342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29345 case $ac_mode in
29348 # CONFIG_FILE
29351 _ACEOF
29353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29354 # If the template does not know about datarootdir, expand it.
29355 # FIXME: This hack should be removed a few years after 2.60.
29356 ac_datarootdir_hack=; ac_datarootdir_seen=
29357 ac_sed_dataroot='
29358 /datarootdir/ {
29362 /@datadir@/p
29363 /@docdir@/p
29364 /@infodir@/p
29365 /@localedir@/p
29366 /@mandir@/p'
29367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29368 *datarootdir*) ac_datarootdir_seen=yes;;
29369 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29371 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29372 _ACEOF
29373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29374 ac_datarootdir_hack='
29375 s&@datadir@&$datadir&g
29376 s&@docdir@&$docdir&g
29377 s&@infodir@&$infodir&g
29378 s&@localedir@&$localedir&g
29379 s&@mandir@&$mandir&g
29380 s&\\\${datarootdir}&$datarootdir&g' ;;
29381 esac
29382 _ACEOF
29384 # Neutralize VPATH when `$srcdir' = `.'.
29385 # Shell code in configure.ac might set extrasub.
29386 # FIXME: do we really want to maintain this feature?
29387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29388 ac_sed_extra="$ac_vpsub
29389 $extrasub
29390 _ACEOF
29391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29394 s|@configure_input@|$ac_sed_conf_input|;t t
29395 s&@top_builddir@&$ac_top_builddir_sub&;t t
29396 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29397 s&@srcdir@&$ac_srcdir&;t t
29398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29399 s&@top_srcdir@&$ac_top_srcdir&;t t
29400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29401 s&@builddir@&$ac_builddir&;t t
29402 s&@abs_builddir@&$ac_abs_builddir&;t t
29403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29404 $ac_datarootdir_hack
29406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29407 if $ac_cs_awk_getline; then
29408 $AWK -f "$tmp/subs.awk"
29409 else
29410 $AWK -f "$tmp/subs.awk" | $SHELL
29411 fi >$tmp/out \
29412 || as_fn_error "could not create $ac_file" "$LINENO" 5
29414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29415 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29416 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29418 which seems to be undefined. Please make sure it is defined." >&5
29419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29420 which seems to be undefined. Please make sure it is defined." >&2;}
29422 rm -f "$tmp/stdin"
29423 case $ac_file in
29424 -) cat "$tmp/out" && rm -f "$tmp/out";;
29425 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29426 esac \
29427 || as_fn_error "could not create $ac_file" "$LINENO" 5
29431 # CONFIG_HEADER
29433 if test x"$ac_file" != x-; then
29435 $as_echo "/* $configure_input */" \
29436 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29437 } >"$tmp/config.h" \
29438 || as_fn_error "could not create $ac_file" "$LINENO" 5
29439 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29442 else
29443 rm -f "$ac_file"
29444 mv "$tmp/config.h" "$ac_file" \
29445 || as_fn_error "could not create $ac_file" "$LINENO" 5
29447 else
29448 $as_echo "/* $configure_input */" \
29449 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29450 || as_fn_error "could not create -" "$LINENO" 5
29454 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29455 $as_echo "$as_me: executing $ac_file commands" >&6;}
29457 esac
29460 case $ac_file$ac_mode in
29461 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29462 "gccdepdir":C)
29463 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29464 for lang in $subdirs c-family common
29466 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29467 done ;;
29468 "as":F) chmod +x as ;;
29469 "collect-ld":F) chmod +x collect-ld ;;
29470 "nm":F) chmod +x nm ;;
29471 "default":C)
29472 case ${CONFIG_HEADERS} in
29473 *auto-host.h:config.in*)
29474 echo > cstamp-h ;;
29475 esac
29476 # Make sure all the subdirs exist.
29477 for d in $subdirs doc build common c-family
29479 test -d $d || mkdir $d
29480 done
29483 esac
29484 done # for ac_tag
29487 as_fn_exit 0
29488 _ACEOF
29489 ac_clean_files=$ac_clean_files_save
29491 test $ac_write_fail = 0 ||
29492 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29495 # configure is writing to config.log, and then calls config.status.
29496 # config.status does its own redirection, appending to config.log.
29497 # Unfortunately, on DOS this fails, as config.log is still kept open
29498 # by configure, so config.status won't be able to write to it; its
29499 # output is simply discarded. So we exec the FD to /dev/null,
29500 # effectively closing config.log, so it can be properly (re)opened and
29501 # appended to by config.status. When coming back to configure, we
29502 # need to make the FD available again.
29503 if test "$no_create" != yes; then
29504 ac_cs_success=:
29505 ac_config_status_args=
29506 test "$silent" = yes &&
29507 ac_config_status_args="$ac_config_status_args --quiet"
29508 exec 5>/dev/null
29509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29510 exec 5>>config.log
29511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29512 # would make configure fail if this is the last instruction.
29513 $ac_cs_success || as_fn_exit $?
29515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}