Fix up new line in previous commit
[official-gcc.git] / gcc / configure
blob84f58ce35d2fd7b3e41d3f714bfacfb0c10ad4a7
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 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 doc_build_sys
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
760 LN_S
762 SET_MAKE
763 accel_dir_suffix
764 real_target_noncanonical
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 with_multilib_list
907 enable_rpath
908 with_libiconv_prefix
909 enable_sjlj_exceptions
910 enable_secureplt
911 enable_leading_mingw64_underscores
912 enable_cld
913 enable_frame_pointer
914 enable_win32_registry
915 enable_static
916 with_pic
917 enable_fast_install
918 enable_libtool_lock
919 enable_ld
920 enable_gold
921 with_plugin_ld
922 enable_gnu_indirect_function
923 enable_initfini_array
924 enable_comdat
925 enable_fix_cortex_a53_835769
926 with_glibc_version
927 enable_gnu_unique_object
928 enable_linker_build_id
929 with_long_double_128
930 with_gc
931 with_system_zlib
932 enable_maintainer_mode
933 enable_link_mutex
934 enable_version_specific_runtime_libs
935 enable_plugin
936 enable_host_shared
937 enable_libquadmath_support
938 with_linker_hash_style
939 with_diagnostics_color
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'
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1028 ac_dashdash=yes ;;
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 esac
1365 done
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1451 /^X\(\/\/\)$/{
1452 s//\1/
1455 /^X\(\/\).*/{
1456 s//\1/
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1464 else
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1554 cat <<\_ACEOF
1556 Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 --target=TARGET configure for building compilers for TARGET [HOST]
1565 _ACEOF
1568 if test -n "$ac_init_help"; then
1570 cat <<\_ACEOF
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-generated-files-in-srcdir
1577 put copies of generated files in source dir intended
1578 for creating source tarballs for users without
1579 texinfo bison or flex
1580 --disable-largefile omit support for large files
1581 --disable-build-format-warnings
1582 don't use -Wformat while building GCC
1583 --enable-werror-always enable -Werror despite compiler version
1584 --enable-checking[=LIST]
1585 enable expensive run-time checks. With LIST, enable
1586 only specific categories of checks. Categories are:
1587 yes,no,all,none,release. Flags are:
1588 assert,df,fold,gc,gcac,gimple,misc,
1589 rtlflag,rtl,runtime,tree,valgrind,types
1590 --enable-coverage[=LEVEL]
1591 enable compiler's code coverage collection. Use to
1592 measure compiler performance and locate unused parts
1593 of the compiler. With LEVEL, specify optimization.
1594 Values are opt, noopt, default is noopt
1595 --enable-gather-detailed-mem-stats
1596 enable detailed memory allocation stats gathering
1597 --enable-valgrind-annotations
1598 enable valgrind runtime interaction
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 --disable-shared don't provide a shared libgcc
1614 --enable-languages=LIST specify which front-ends to build
1615 --disable-rpath do not hardcode runtime library paths
1616 --enable-sjlj-exceptions
1617 arrange to use setjmp/longjmp exception handling
1618 --enable-secureplt enable -msecure-plt by default for PowerPC
1619 --enable-leading-mingw64-underscores
1620 enable leading underscores on 64 bit mingw targets
1621 --enable-cld enable -mcld by default for 32bit x86
1622 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1624 --disable-win32-registry
1625 disable lookup of installation paths in the Registry
1626 on Windows hosts
1627 --enable-win32-registry enable registry lookup (default)
1628 --enable-win32-registry=KEY
1629 use KEY instead of GCC version as the last portion
1630 of the registry key
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-static[=PKGS] build static libraries [default=yes]
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1637 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1638 --enable-gnu-indirect-function
1639 enable the use of the @gnu_indirect_function to
1640 glibc systems
1641 --enable-initfini-array use .init_array/.fini_array sections
1642 --enable-comdat enable COMDAT group support
1644 --enable-fix-cortex-a53-835769
1645 enable workaround for AArch64 Cortex-A53 erratum
1646 835769 by default
1647 --disable-fix-cortex-a53-835769
1648 disable workaround for AArch64 Cortex-A53 erratum
1649 835769 by default
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass --build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful (and
1658 sometimes confusing) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support for Fortran
1669 Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1672 --with-build-libsubdir=DIR Directory where to find libraries for build system
1673 --with-local-prefix=DIR specifies directory to put local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor in DIR
1678 (relative to PREFIX) as well as PREFIX/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld (full pathname)
1681 --with-demangler-in-ld try to use demangler in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as (full pathname)
1684 --with-stabs arrange to use stabs instead of host debug format
1685 --with-dwarf2 force the default debug format to be DWARF 2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to look for standard
1688 system header files in. Defaults to /usr/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1696 --with-gnu-ld assume the C compiler uses GNU ld default=no
1697 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1698 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1700 both]
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1708 the compiler
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1712 --with-diagnostics-color={never,auto,auto-if-env,always}
1713 specify the default of -fdiagnostics-color option
1714 auto-if-env stands for -fdiagnostics-color=auto if
1715 GCC_COLOR environment variable is present and
1716 -fdiagnostics-color=never otherwise
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
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.64
1804 Copyright (C) 2009 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_c_try_cpp
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 else
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1956 else
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1972 else
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 yes:no: )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 no:yes:* )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2040 ac_status=$?
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 return $ac_retval
2055 } # ac_fn_c_try_run
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2092 # computed
2093 ac_fn_c_compute_int ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=0 ac_mid=0
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 test_array [0] = 0
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2129 else
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2132 ac_lo= ac_hi=
2133 break
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 static int test_array [1 - 2 * !(($2) < 0)];
2147 test_array [0] = 0
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=-1 ac_mid=-1
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2171 else
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2174 ac_lo= ac_hi=
2175 break
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 else
2182 ac_lo= ac_hi=
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 main ()
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid
2205 else
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 case $ac_lo in #((
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 '') ac_retval=1 ;;
2213 esac
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2220 #include <stdio.h>
2221 #include <stdlib.h>
2223 main ()
2226 FILE *f = fopen ("conftest.val", "w");
2227 if (! f)
2228 return 1;
2229 if (($2) < 0)
2231 long int i = longval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%ld", i);
2236 else
2238 unsigned long int i = ulongval ();
2239 if (i != ($2))
2240 return 1;
2241 fprintf (f, "%lu", i);
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 else
2254 ac_retval=1
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 rm -f conftest.val
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 return $ac_retval
2264 } # ac_fn_c_compute_int
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 eval "$3=no"
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof ($2))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 main ()
2298 if (sizeof (($2)))
2299 return 0;
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2306 else
2307 eval "$3=yes"
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 } # ac_fn_c_check_type
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_find_intX_t ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2339 main ()
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2342 test_array [0] = 0
2345 return 0;
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2353 main ()
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2357 test_array [0] = 0
2360 return 0;
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2365 else
2366 case $ac_type in #(
2367 int$2_t) :
2368 eval "$3=yes" ;; #(
2369 *) :
2370 eval "$3=\$ac_type" ;;
2371 esac
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 eval as_val=\$$3
2377 if test "x$as_val" = x""no; then :
2379 else
2380 break
2382 done
2384 eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_find_intX_t
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2394 ac_fn_c_try_link ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest$ac_exeext
2419 }; then :
2420 ac_retval=0
2421 else
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_retval=1
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 return $ac_retval
2435 } # ac_fn_c_try_link
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2440 # accordingly.
2441 ac_fn_c_find_uintX_t ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=no"
2450 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2456 main ()
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2459 test_array [0] = 0
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 case $ac_type in #(
2467 uint$2_t) :
2468 eval "$3=yes" ;; #(
2469 *) :
2470 eval "$3=\$ac_type" ;;
2471 esac
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 eval as_val=\$$3
2475 if test "x$as_val" = x""no; then :
2477 else
2478 break
2480 done
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 } # ac_fn_c_find_uintX_t
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 eval "$3=yes"
2506 else
2507 eval "$3=no"
2509 rm -f conftest.err conftest.$ac_ext
2511 eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544 else
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 ac_retval=1
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 return $ac_retval
2553 } # ac_fn_cxx_try_cpp
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 #include <$2>
2569 _ACEOF
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2575 rm -f conftest.err conftest.$ac_ext
2577 eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2606 #ifdef __STDC__
2607 # include <limits.h>
2608 #else
2609 # include <assert.h>
2610 #endif
2612 #undef $2
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2617 #ifdef __cplusplus
2618 extern "C"
2619 #endif
2620 char $2 ();
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2625 choke me
2626 #endif
2629 main ()
2631 return $2 ();
2633 return 0;
2635 _ACEOF
2636 if ac_fn_c_try_link "$LINENO"; then :
2637 eval "$3=yes"
2638 else
2639 eval "$3=no"
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_func
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2666 ac_status=$?
2667 if test -s conftest.err; then
2668 grep -v '^ *+' conftest.err >conftest.er1
2669 cat conftest.er1 >&5
2670 mv -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest$ac_exeext
2679 }; then :
2680 ac_retval=0
2681 else
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 ac_retval=1
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 return $ac_retval
2695 } # ac_fn_cxx_try_link
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2703 $ $0 $@
2705 _ACEOF
2706 exec 5>>config.log
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2730 _ASUNAME
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 $as_echo "PATH: $as_dir"
2738 done
2739 IFS=$as_save_IFS
2741 } >&5
2743 cat >&5 <<_ACEOF
2746 ## ----------- ##
2747 ## Core tests. ##
2748 ## ----------- ##
2750 _ACEOF
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_configure_args=
2759 ac_configure_args0=
2760 ac_configure_args1=
2761 ac_must_keep_next=false
2762 for ac_pass in 1 2
2764 for ac_arg
2766 case $ac_arg in
2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769 | -silent | --silent | --silen | --sile | --sil)
2770 continue ;;
2771 *\'*)
2772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773 esac
2774 case $ac_pass in
2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1 " '$ac_arg'"
2778 if test $ac_must_keep_next = true; then
2779 ac_must_keep_next=false # Got value, back to normal.
2780 else
2781 case $ac_arg in
2782 *=* | --config-cache | -C | -disable-* | --disable-* \
2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785 | -with-* | --with-* | -without-* | --without-* | --x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788 esac
2790 -* ) ac_must_keep_next=true ;;
2791 esac
2793 as_fn_append ac_configure_args " '$ac_arg'"
2795 esac
2796 done
2797 done
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2809 echo
2811 cat <<\_ASBOX
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2815 _ASBOX
2816 echo
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in #(
2822 *${as_nl}*)
2823 case $ac_var in #(
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2826 esac
2827 case $ac_var in #(
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2831 esac ;;
2832 esac
2833 done
2834 (set) 2>&1 |
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2837 sed -n \
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2840 ;; #(
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2844 esac |
2845 sort
2847 echo
2849 cat <<\_ASBOX
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2853 _ASBOX
2854 echo
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2858 case $ac_val in
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860 esac
2861 $as_echo "$ac_var='\''$ac_val'\''"
2862 done | sort
2863 echo
2865 if test -n "$ac_subst_files"; then
2866 cat <<\_ASBOX
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2870 _ASBOX
2871 echo
2872 for ac_var in $ac_subst_files
2874 eval ac_val=\$$ac_var
2875 case $ac_val in
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877 esac
2878 $as_echo "$ac_var='\''$ac_val'\''"
2879 done | sort
2880 echo
2883 if test -s confdefs.h; then
2884 cat <<\_ASBOX
2885 ## ----------- ##
2886 ## confdefs.h. ##
2887 ## ----------- ##
2888 _ASBOX
2889 echo
2890 cat confdefs.h
2891 echo
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2896 } >&5
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899 exit $exit_status
2901 for ac_signal in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 done
2904 ac_signal=0
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2931 _ACEOF
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2935 _ACEOF
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2940 ac_site_file1=NONE
2941 ac_site_file2=NONE
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945 ac_site_file1=$prefix/share/config.site
2946 ac_site_file2=$prefix/etc/config.site
2947 else
2948 ac_site_file1=$ac_default_prefix/share/config.site
2949 ac_site_file2=$ac_default_prefix/etc/config.site
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE && continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2958 . "$ac_site_file"
2960 done
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2968 case $cache_file in
2969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970 *) . "./$cache_file";;
2971 esac
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976 >$cache_file
2979 # Check that the precious variables saved in the cache have kept the same
2980 # value.
2981 ac_cache_corrupted=false
2982 for ac_var in $ac_precious_vars; do
2983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2984 eval ac_new_set=\$ac_env_${ac_var}_set
2985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2986 eval ac_new_val=\$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2988 set,)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,set)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted=: ;;
2996 ,);;
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w=`echo x $ac_old_val`
3001 ac_new_val_w=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted=:
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\$ac_old_val
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3015 fi;;
3016 esac
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3019 case $ac_new_val in
3020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg=$ac_var=$ac_new_val ;;
3022 esac
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3026 esac
3028 done
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3054 gcc_version=`cat $srcdir/BASE-VER`
3056 # Determine the host, build, and target systems
3057 ac_aux_dir=
3058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t in install-sh install.sh shtool; do
3060 if test -f "$ac_dir/$ac_t"; then
3061 ac_aux_dir=$ac_dir
3062 ac_install_sh="$ac_aux_dir/$ac_t -c"
3063 break 2
3065 done
3066 done
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 ac_build_alias=$build_alias
3090 test "x$ac_build_alias" = x &&
3091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x &&
3093 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3103 esac
3104 build=$ac_cv_build
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_build
3107 shift
3108 build_cpu=$1
3109 build_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 build_os=$*
3114 IFS=$ac_save_IFS
3115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3125 else
3126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3133 case $ac_cv_host in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3136 esac
3137 host=$ac_cv_host
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_host
3140 shift
3141 host_cpu=$1
3142 host_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 host_os=$*
3147 IFS=$ac_save_IFS
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test "x$target_alias" = x; then
3157 ac_cv_target=$ac_cv_host
3158 else
3159 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3167 *-*-*) ;;
3168 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3169 esac
3170 target=$ac_cv_target
3171 ac_save_IFS=$IFS; IFS='-'
3172 set x $ac_cv_target
3173 shift
3174 target_cpu=$1
3175 target_vendor=$2
3176 shift; shift
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3179 target_os=$*
3180 IFS=$ac_save_IFS
3181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3188 NONENONEs,x,x, &&
3189 program_prefix=${target_alias}-
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical=${build} ;;
3194 *) build_noncanonical=${build_alias} ;;
3195 esac
3197 case ${host_alias} in
3198 "") host_noncanonical=${build_noncanonical} ;;
3199 *) host_noncanonical=${host_alias} ;;
3200 esac
3202 case ${target_alias} in
3203 "") target_noncanonical=${host_noncanonical} ;;
3204 *) target_noncanonical=${target_alias} ;;
3205 esac
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical=${target_noncanonical}
3212 accel_dir_suffix=
3214 # Determine the target- and build-specific subdirectories
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3221 # finishes. So:
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir="build-${build_noncanonical}"
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval=$with_build_libsubdir; build_libsubdir="$withval"
3231 else
3232 build_libsubdir="$build_subdir"
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = . && test -d gcc ) \
3237 || test -d $srcdir/../host-${host_noncanonical}; then
3238 host_subdir="host-${host_noncanonical}"
3239 else
3240 host_subdir=.
3242 # No prefix.
3243 target_subdir=${target_noncanonical}
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE &&
3248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE &&
3251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 library_path_setting="contains current directory"
3273 library_path_setting="ok"
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3279 as_fn_error "
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3288 # is true:
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3296 gcc_exec_prefix_setting="contains current directory"
3299 gcc_exec_prefix_setting="ok"
3301 esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3305 as_fn_error "
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3311 # -----------
3312 # Directories
3313 # -----------
3315 # Specify the local prefix
3316 local_prefix=
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3322 no) ;;
3323 *) local_prefix=$with_local_prefix ;;
3324 esac
3328 # Default local prefix if it is empty
3329 if test x$local_prefix = x; then
3330 local_prefix=/usr/local
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir=
3337 # Specify the g++ header file directory
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3343 no) ;;
3344 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3345 esac
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x${gcc_gxx_include_dir} = x; then
3351 if test x${enable_version_specific_runtime_libs} = xyes; then
3352 gcc_gxx_include_dir='${libsubdir}/include/c++'
3353 else
3354 libstdcxx_incdir='include/c++/$(version)'
3355 if test x$host != x$target; then
3356 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3358 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3362 gcc_gxx_include_dir_add_sysroot=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot=1
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3375 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x$withval != xno; then
3377 cpp_install_dir=$withval
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3386 # just that.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3393 else
3394 generated_files_in_srcdir=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3401 if test "$generated_files_in_srcdir" = "yes"; then
3402 GENINSRC=''
3403 else
3404 GENINSRC='#'
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3412 # With GNU ld
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3417 else
3418 gnu_ld_flag=no
3422 # With pre-defined ld
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3429 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3433 gnu_ld_flag=yes
3436 cat >>confdefs.h <<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3438 _ACEOF
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3445 if test x"$gnu_ld_flag" = x"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 # With demangler in GNU ld
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3462 else
3463 demangler_in_ld=yes
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3471 # With GNU as
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3476 else
3477 gas_flag=no
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3487 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3491 gas_flag=yes
3494 cat >>confdefs.h <<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3496 _ACEOF
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3503 if test x"$gas_flag" = x"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 # ---------------
3516 # Find C compiler
3517 # ---------------
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3528 # Find the native compiler
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3622 else
3623 CC="$ac_cv_prog_CC"
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3649 done
3650 done
3651 IFS=$as_save_IFS
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3765 done
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3809 done
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933 else
3934 ac_file=''
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4008 # `rm'.
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014 break;;
4015 * ) break;;
4016 esac
4017 done
4018 else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4030 ac_exeext=$EXEEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4044 return 0;
4046 _ACEOF
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try="$ac_compile"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
4066 done
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files: cannot compile
4074 See \`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4081 ac_objext=$OBJEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4147 main ()
4151 return 0;
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4214 char **p;
4215 int i;
4217 return p[i];
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4221 char *s;
4222 va_list v;
4223 va_start (v,p);
4224 s = g (p, va_arg (v,int));
4225 va_end (v);
4226 return s;
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4240 #define FOO(x) 'x'
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 int argc;
4248 char **argv;
4250 main ()
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 return 0;
4256 _ACEOF
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 done
4267 rm -f conftest.$ac_ext
4268 CC=$ac_save_CC
4271 # AC_CACHE_VAL
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4276 xno)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 esac
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 ac_ext=cpp
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4301 CXX=$CCC
4302 else
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 CXX=$ac_cv_prog_CXX
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CXX" && break
4344 done
4346 if test -z "$CXX"; then
4347 ac_ct_CXX=$CXX
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CXX" && break
4388 done
4390 if test "x$ac_ct_CXX" = x; then
4391 CXX="g++"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CXX=$ac_ct_CXX
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4407 set X $ac_compile
4408 ac_compiler=$2
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 ac_status=$?
4419 if test -s conftest.err; then
4420 sed '10a\
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4424 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 done
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 main ()
4441 #ifndef __GNUC__
4442 choke me
4443 #endif
4446 return 0;
4448 _ACEOF
4449 if ac_fn_cxx_try_compile "$LINENO"; then :
4450 ac_compiler_gnu=yes
4451 else
4452 ac_compiler_gnu=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4461 GXX=yes
4462 else
4463 GXX=
4465 ac_test_CXXFLAGS=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag=yes
4474 ac_cv_prog_cxx_g=no
4475 CXXFLAGS="-g"
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_cxx_try_compile "$LINENO"; then :
4488 ac_cv_prog_cxx_g=yes
4489 else
4490 CXXFLAGS=""
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 main ()
4499 return 0;
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4504 else
4505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4506 CXXFLAGS="-g"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4511 main ()
4515 return 0;
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4519 ac_cv_prog_cxx_g=yes
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4534 CXXFLAGS="-g -O2"
4535 else
4536 CXXFLAGS="-g"
4538 else
4539 if test "$GXX" = yes; then
4540 CXXFLAGS="-O2"
4541 else
4542 CXXFLAGS=
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 GNATBIND=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_GNATBIND" = x; then
4632 GNATBIND="no"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 GNATBIND=$ac_ct_GNATBIND
4642 else
4643 GNATBIND="$ac_cv_prog_GNATBIND"
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATMAKE=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATMAKE" = x; then
4724 GNATMAKE="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATMAKE=$ac_ct_GNATMAKE
4734 else
4735 GNATMAKE="$ac_cv_prog_GNATMAKE"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat >conftest.adb <<EOF
4744 procedure conftest is begin null; end conftest;
4746 acx_cv_cc_gcc_supports_ada=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x"$errors" = x && test -f conftest.$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada=yes
4759 rm -f conftest.*
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4764 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4765 have_gnat=yes
4766 else
4767 have_gnat=no
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4773 case "$CC" in
4774 */prev-gcc/xgcc*) ;;
4775 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4777 esac
4781 # Determine PICFLAG for target gnatlib.
4786 case "${target}" in
4787 # PIC is the default on some targets or must not be used.
4788 *-*-darwin*)
4789 # For darwin, common symbols are not allowed in MH_DYLIB files
4790 case "${CFLAGS}" in
4791 # If we are using a compiler supporting mdynamic-no-pic
4792 # and the option has been tested as safe to add, then cancel
4793 # it here, since the code generated is incompatible with shared
4794 # libs.
4795 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4796 *) PICFLAG_FOR_TARGET=-fno-common ;;
4797 esac
4799 alpha*-dec-osf5*)
4800 # PIC is the default.
4802 hppa*64*-*-hpux*)
4803 # PIC is the default for 64-bit PA HP-UX.
4805 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4807 i[34567]86-*-mingw* | x86_64-*-mingw*)
4809 i[34567]86-*-interix[3-9]*)
4810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4811 # Instead, we relocate shared libraries at runtime.
4813 i[34567]86-*-nto-qnx*)
4814 # QNX uses GNU C++, but need to define -shared option too, otherwise
4815 # it will coredump.
4816 PICFLAG_FOR_TARGET='-fPIC -shared'
4818 i[34567]86-pc-msdosdjgpp*)
4819 # DJGPP does not support shared libraries at all.
4821 ia64*-*-hpux*)
4822 # On IA64 HP-UX, PIC is the default but the pic flag
4823 # sets the default TLS model and affects inlining.
4824 PICFLAG_FOR_TARGET=-fPIC
4826 mips-sgi-irix6*)
4827 # PIC is the default.
4829 rs6000-ibm-aix* | powerpc-ibm-aix*)
4830 # All AIX code is PIC.
4833 # Some targets support both -fPIC and -fpic, but prefer the latter.
4834 # FIXME: Why?
4835 i[34567]86-*-* | x86_64-*-*)
4836 PICFLAG_FOR_TARGET=-fpic
4838 # FIXME: Override -fPIC default in libgcc only?
4839 sh-*-linux* | sh[2346lbe]*-*-linux*)
4840 PICFLAG_FOR_TARGET=-fpic
4842 # FIXME: Simplify to sh*-*-netbsd*?
4843 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4844 sh64-*-netbsd* | sh64l*-*-netbsd*)
4845 PICFLAG_FOR_TARGET=-fpic
4847 # Default to -fPIC unless specified otherwise.
4849 PICFLAG_FOR_TARGET=-fPIC
4851 esac
4853 # If the user explicitly uses -fpic/-fPIC, keep that.
4854 case "${CFLAGS_FOR_TARGET}" in
4855 *-fpic*)
4856 PICFLAG_FOR_TARGET=-fpic
4858 *-fPIC*)
4859 PICFLAG_FOR_TARGET=-fPIC
4861 esac
4865 # -------------------------
4866 # Check C compiler features
4867 # -------------------------
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4877 # On Suns, sometimes $CPP names a directory.
4878 if test -n "$CPP" && test -d "$CPP"; then
4879 CPP=
4881 if test -z "$CPP"; then
4882 if test "${ac_cv_prog_CPP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 # Double quotes because CPP needs to be expanded
4886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4888 ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #ifdef __STDC__
4900 # include <limits.h>
4901 #else
4902 # include <assert.h>
4903 #endif
4904 Syntax error
4905 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4908 else
4909 # Broken: fails on valid input.
4910 continue
4912 rm -f conftest.err conftest.$ac_ext
4914 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #include <ac_nonexistent.h>
4919 _ACEOF
4920 if ac_fn_c_try_cpp "$LINENO"; then :
4921 # Broken: success on invalid input.
4922 continue
4923 else
4924 # Passes both tests.
4925 ac_preproc_ok=:
4926 break
4928 rm -f conftest.err conftest.$ac_ext
4930 done
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then :
4934 break
4937 done
4938 ac_cv_prog_CPP=$CPP
4941 CPP=$ac_cv_prog_CPP
4942 else
4943 ac_cv_prog_CPP=$CPP
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4946 $as_echo "$CPP" >&6; }
4947 ac_preproc_ok=false
4948 for ac_c_preproc_warn_flag in '' yes
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963 Syntax error
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4967 else
4968 # Broken: fails on valid input.
4969 continue
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: success on invalid input.
4981 continue
4982 else
4983 # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4987 rm -f conftest.err conftest.$ac_ext
4989 done
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
4994 else
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." "$LINENO" 5; }
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5010 if test "${ac_cv_path_GREP+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -z "$GREP"; then
5014 ac_path_GREP_found=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_prog in grep ggrep; do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026 # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in
5028 *GNU*)
5029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5031 ac_count=0
5032 $as_echo_n 0123456789 >"conftest.in"
5033 while :
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'GREP' >> "conftest.nl"
5039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041 as_fn_arith $ac_count + 1 && ac_count=$as_val
5042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_GREP="$ac_path_GREP"
5045 ac_path_GREP_max=$ac_count
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5049 done
5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5051 esac
5053 $ac_path_GREP_found && break 3
5054 done
5055 done
5056 done
5057 IFS=$as_save_IFS
5058 if test -z "$ac_cv_path_GREP"; then
5059 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061 else
5062 ac_cv_path_GREP=$GREP
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067 $as_echo "$ac_cv_path_GREP" >&6; }
5068 GREP="$ac_cv_path_GREP"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072 $as_echo_n "checking for egrep... " >&6; }
5073 if test "${ac_cv_path_EGREP+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5077 then ac_cv_path_EGREP="$GREP -E"
5078 else
5079 if test -z "$EGREP"; then
5080 ac_path_EGREP_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_prog in egrep; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5090 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5091 # Check for GNU ac_path_EGREP and select it if it is found.
5092 # Check for GNU $ac_path_EGREP
5093 case `"$ac_path_EGREP" --version 2>&1` in
5094 *GNU*)
5095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5097 ac_count=0
5098 $as_echo_n 0123456789 >"conftest.in"
5099 while :
5101 cat "conftest.in" "conftest.in" >"conftest.tmp"
5102 mv "conftest.tmp" "conftest.in"
5103 cp "conftest.in" "conftest.nl"
5104 $as_echo 'EGREP' >> "conftest.nl"
5105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107 as_fn_arith $ac_count + 1 && ac_count=$as_val
5108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5109 # Best one so far, save it but keep looking for a better one
5110 ac_cv_path_EGREP="$ac_path_EGREP"
5111 ac_path_EGREP_max=$ac_count
5113 # 10*(2^10) chars as input seems more than enough
5114 test $ac_count -gt 10 && break
5115 done
5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5117 esac
5119 $ac_path_EGREP_found && break 3
5120 done
5121 done
5122 done
5123 IFS=$as_save_IFS
5124 if test -z "$ac_cv_path_EGREP"; then
5125 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5127 else
5128 ac_cv_path_EGREP=$EGREP
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5134 $as_echo "$ac_cv_path_EGREP" >&6; }
5135 EGREP="$ac_cv_path_EGREP"
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5139 $as_echo_n "checking for ANSI C header files... " >&6; }
5140 if test "${ac_cv_header_stdc+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #include <stdlib.h>
5146 #include <stdarg.h>
5147 #include <string.h>
5148 #include <float.h>
5151 main ()
5155 return 0;
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_header_stdc=yes
5160 else
5161 ac_cv_header_stdc=no
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 if test $ac_cv_header_stdc = yes; then
5166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <string.h>
5171 _ACEOF
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173 $EGREP "memchr" >/dev/null 2>&1; then :
5175 else
5176 ac_cv_header_stdc=no
5178 rm -f conftest*
5182 if test $ac_cv_header_stdc = yes; then
5183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <stdlib.h>
5188 _ACEOF
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "free" >/dev/null 2>&1; then :
5192 else
5193 ac_cv_header_stdc=no
5195 rm -f conftest*
5199 if test $ac_cv_header_stdc = yes; then
5200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5201 if test "$cross_compiling" = yes; then :
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <ctype.h>
5207 #include <stdlib.h>
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5211 #else
5212 # define ISLOWER(c) \
5213 (('a' <= (c) && (c) <= 'i') \
5214 || ('j' <= (c) && (c) <= 'r') \
5215 || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5217 #endif
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5221 main ()
5223 int i;
5224 for (i = 0; i < 256; i++)
5225 if (XOR (islower (i), ISLOWER (i))
5226 || toupper (i) != TOUPPER (i))
5227 return 2;
5228 return 0;
5230 _ACEOF
5231 if ac_fn_c_try_run "$LINENO"; then :
5233 else
5234 ac_cv_header_stdc=no
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5237 conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5243 $as_echo "$ac_cv_header_stdc" >&6; }
5244 if test $ac_cv_header_stdc = yes; then
5246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5253 do :
5254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5257 eval as_val=\$$as_ac_Header
5258 if test "x$as_val" = x""yes; then :
5259 cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 _ACEOF
5265 done
5269 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5271 MINIX=yes
5272 else
5273 MINIX=
5277 if test "$MINIX" = yes; then
5279 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5282 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5285 $as_echo "#define _MINIX 1" >>confdefs.h
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5291 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5292 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5298 # define __EXTENSIONS__ 1
5299 $ac_includes_default
5301 main ()
5305 return 0;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_safe_to_define___extensions__=yes
5310 else
5311 ac_cv_safe_to_define___extensions__=no
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5316 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5317 test $ac_cv_safe_to_define___extensions__ = yes &&
5318 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5320 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5322 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5324 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5326 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5329 ac_ext=c
5330 ac_cpp='$CPP $CPPFLAGS'
5331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5335 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5336 # On Suns, sometimes $CPP names a directory.
5337 if test -n "$CPP" && test -d "$CPP"; then
5338 CPP=
5340 if test -z "$CPP"; then
5341 if test "${ac_cv_prog_CPP+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 # Double quotes because CPP needs to be expanded
5345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5347 ac_preproc_ok=false
5348 for ac_c_preproc_warn_flag in '' yes
5350 # Use a header file that comes with gcc, so configuring glibc
5351 # with a fresh cross-compiler works.
5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 # <limits.h> exists even on freestanding compilers.
5354 # On the NeXT, cc -E runs the code through the compiler's parser,
5355 # not just through cpp. "Syntax error" is here to catch this case.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363 Syntax error
5364 _ACEOF
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5367 else
5368 # Broken: fails on valid input.
5369 continue
5371 rm -f conftest.err conftest.$ac_ext
5373 # OK, works on sane cases. Now check whether nonexistent headers
5374 # can be detected and how.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <ac_nonexistent.h>
5378 _ACEOF
5379 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: success on invalid input.
5381 continue
5382 else
5383 # Passes both tests.
5384 ac_preproc_ok=:
5385 break
5387 rm -f conftest.err conftest.$ac_ext
5389 done
5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391 rm -f conftest.err conftest.$ac_ext
5392 if $ac_preproc_ok; then :
5393 break
5396 done
5397 ac_cv_prog_CPP=$CPP
5400 CPP=$ac_cv_prog_CPP
5401 else
5402 ac_cv_prog_CPP=$CPP
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5405 $as_echo "$CPP" >&6; }
5406 ac_preproc_ok=false
5407 for ac_c_preproc_warn_flag in '' yes
5409 # Use a header file that comes with gcc, so configuring glibc
5410 # with a fresh cross-compiler works.
5411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 # <limits.h> exists even on freestanding compilers.
5413 # On the NeXT, cc -E runs the code through the compiler's parser,
5414 # not just through cpp. "Syntax error" is here to catch this case.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #ifdef __STDC__
5418 # include <limits.h>
5419 #else
5420 # include <assert.h>
5421 #endif
5422 Syntax error
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5426 else
5427 # Broken: fails on valid input.
5428 continue
5430 rm -f conftest.err conftest.$ac_ext
5432 # OK, works on sane cases. Now check whether nonexistent headers
5433 # can be detected and how.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <ac_nonexistent.h>
5437 _ACEOF
5438 if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: success on invalid input.
5440 continue
5441 else
5442 # Passes both tests.
5443 ac_preproc_ok=:
5444 break
5446 rm -f conftest.err conftest.$ac_ext
5448 done
5449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5450 rm -f conftest.err conftest.$ac_ext
5451 if $ac_preproc_ok; then :
5453 else
5454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5456 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." "$LINENO" 5; }
5460 ac_ext=c
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5467 $as_echo_n "checking for inline... " >&6; }
5468 if test "${ac_cv_c_inline+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_cv_c_inline=no
5472 for ac_kw in inline __inline__ __inline; do
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #ifndef __cplusplus
5476 typedef int foo_t;
5477 static $ac_kw foo_t static_foo () {return 0; }
5478 $ac_kw foo_t foo () {return 0; }
5479 #endif
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_c_inline=$ac_kw
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 test "$ac_cv_c_inline" != no && break
5487 done
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5491 $as_echo "$ac_cv_c_inline" >&6; }
5493 case $ac_cv_c_inline in
5494 inline | yes) ;;
5496 case $ac_cv_c_inline in
5497 no) ac_val=;;
5498 *) ac_val=$ac_cv_c_inline;;
5499 esac
5500 cat >>confdefs.h <<_ACEOF
5501 #ifndef __cplusplus
5502 #define inline $ac_val
5503 #endif
5504 _ACEOF
5506 esac
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval=$enable_largefile;
5514 if test "$enable_largefile" != no; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 ac_cv_sys_largefile_CC=no
5522 if test "$GCC" != yes; then
5523 ac_save_CC=$CC
5524 while :; do
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5537 ? 1 : -1];
5539 main ()
5543 return 0;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 break
5549 rm -f core conftest.err conftest.$ac_objext
5550 CC="$CC -n32"
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_largefile_CC=' -n32'; break
5554 rm -f core conftest.err conftest.$ac_objext
5555 break
5556 done
5557 CC=$ac_save_CC
5558 rm -f conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no; then
5564 CC=$CC$ac_cv_sys_largefile_CC
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 while :; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5585 main ()
5589 return 0;
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_sys_file_offset_bits=no; break
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5607 ? 1 : -1];
5609 main ()
5613 return 0;
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_sys_file_offset_bits=64; break
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_sys_file_offset_bits=unknown
5621 break
5622 done
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5627 no | unknown) ;;
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5631 _ACEOF
5633 esac
5634 rm -rf conftest*
5635 if test $ac_cv_sys_file_offset_bits = unknown; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 while :; do
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5654 main ()
5658 return 0;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_sys_large_files=no; break
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5678 main ()
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_large_files=1; break
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_sys_large_files=unknown
5690 break
5691 done
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5696 no | unknown) ;;
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5700 _ACEOF
5702 esac
5703 rm -rf conftest*
5708 # sizeof(char) is 1 by definition.
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5714 $as_echo_n "checking size of void *... " >&6; }
5715 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5720 else
5721 if test "$ac_cv_type_void_p" = yes; then
5722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 { as_fn_set_status 77
5725 as_fn_error "cannot compute sizeof (void *)
5726 See \`config.log' for more details." "$LINENO" 5; }; }
5727 else
5728 ac_cv_sizeof_void_p=0
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5734 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5738 cat >>confdefs.h <<_ACEOF
5739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5740 _ACEOF
5743 # The cast to long int works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5748 $as_echo_n "checking size of short... " >&6; }
5749 if test "${ac_cv_sizeof_short+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5754 else
5755 if test "$ac_cv_type_short" = yes; then
5756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 { as_fn_set_status 77
5759 as_fn_error "cannot compute sizeof (short)
5760 See \`config.log' for more details." "$LINENO" 5; }; }
5761 else
5762 ac_cv_sizeof_short=0
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5768 $as_echo "$ac_cv_sizeof_short" >&6; }
5772 cat >>confdefs.h <<_ACEOF
5773 #define SIZEOF_SHORT $ac_cv_sizeof_short
5774 _ACEOF
5777 # The cast to long int works around a bug in the HP C Compiler
5778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5780 # This bug is HP SR number 8606223364.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5782 $as_echo_n "checking size of int... " >&6; }
5783 if test "${ac_cv_sizeof_int+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5788 else
5789 if test "$ac_cv_type_int" = yes; then
5790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5792 { as_fn_set_status 77
5793 as_fn_error "cannot compute sizeof (int)
5794 See \`config.log' for more details." "$LINENO" 5; }; }
5795 else
5796 ac_cv_sizeof_int=0
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5802 $as_echo "$ac_cv_sizeof_int" >&6; }
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZEOF_INT $ac_cv_sizeof_int
5808 _ACEOF
5811 # The cast to long int works around a bug in the HP C Compiler
5812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5814 # This bug is HP SR number 8606223364.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5816 $as_echo_n "checking size of long... " >&6; }
5817 if test "${ac_cv_sizeof_long+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5822 else
5823 if test "$ac_cv_type_long" = yes; then
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 { as_fn_set_status 77
5827 as_fn_error "cannot compute sizeof (long)
5828 See \`config.log' for more details." "$LINENO" 5; }; }
5829 else
5830 ac_cv_sizeof_long=0
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5836 $as_echo "$ac_cv_sizeof_long" >&6; }
5840 cat >>confdefs.h <<_ACEOF
5841 #define SIZEOF_LONG $ac_cv_sizeof_long
5842 _ACEOF
5845 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5846 if test "x$ac_cv_type_long_long" = x""yes; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_LONG_LONG 1
5850 _ACEOF
5852 # The cast to long int works around a bug in the HP C Compiler
5853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5855 # This bug is HP SR number 8606223364.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5857 $as_echo_n "checking size of long long... " >&6; }
5858 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5863 else
5864 if test "$ac_cv_type_long_long" = yes; then
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5867 { as_fn_set_status 77
5868 as_fn_error "cannot compute sizeof (long long)
5869 See \`config.log' for more details." "$LINENO" 5; }; }
5870 else
5871 ac_cv_sizeof_long_long=0
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5877 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5881 cat >>confdefs.h <<_ACEOF
5882 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5883 _ACEOF
5888 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5889 case $ac_cv_c_int8_t in #(
5890 no|yes) ;; #(
5893 cat >>confdefs.h <<_ACEOF
5894 #define int8_t $ac_cv_c_int8_t
5895 _ACEOF
5897 esac
5899 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5900 case $ac_cv_c_int16_t in #(
5901 no|yes) ;; #(
5904 cat >>confdefs.h <<_ACEOF
5905 #define int16_t $ac_cv_c_int16_t
5906 _ACEOF
5908 esac
5910 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5911 case $ac_cv_c_int32_t in #(
5912 no|yes) ;; #(
5915 cat >>confdefs.h <<_ACEOF
5916 #define int32_t $ac_cv_c_int32_t
5917 _ACEOF
5919 esac
5921 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5922 case $ac_cv_c_int64_t in #(
5923 no|yes) ;; #(
5926 cat >>confdefs.h <<_ACEOF
5927 #define int64_t $ac_cv_c_int64_t
5928 _ACEOF
5930 esac
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5934 $as_echo_n "checking for long long int... " >&6; }
5935 if test "${ac_cv_type_long_long_int+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5941 /* For now, do not test the preprocessor; as of 2007 there are too many
5942 implementations with broken preprocessors. Perhaps this can
5943 be revisited in 2012. In the meantime, code should not expect
5944 #if to work with literals wider than 32 bits. */
5945 /* Test literals. */
5946 long long int ll = 9223372036854775807ll;
5947 long long int nll = -9223372036854775807LL;
5948 unsigned long long int ull = 18446744073709551615ULL;
5949 /* Test constant expressions. */
5950 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5951 ? 1 : -1)];
5952 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5953 ? 1 : -1)];
5954 int i = 63;
5956 main ()
5958 /* Test availability of runtime routines for shift and division. */
5959 long long int llmax = 9223372036854775807ll;
5960 unsigned long long int ullmax = 18446744073709551615ull;
5961 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5962 | (llmax / ll) | (llmax % ll)
5963 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5964 | (ullmax / ull) | (ullmax % ull));
5966 return 0;
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 if test "$cross_compiling" = yes; then :
5972 ac_cv_type_long_long_int=yes
5973 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <limits.h>
5977 #ifndef LLONG_MAX
5978 # define HALF \
5979 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5980 # define LLONG_MAX (HALF - 1 + HALF)
5981 #endif
5983 main ()
5985 long long int n = 1;
5986 int i;
5987 for (i = 0; ; i++)
5989 long long int m = n << i;
5990 if (m >> i != n)
5991 return 1;
5992 if (LLONG_MAX / 2 < m)
5993 break;
5995 return 0;
5997 return 0;
5999 _ACEOF
6000 if ac_fn_c_try_run "$LINENO"; then :
6001 ac_cv_type_long_long_int=yes
6002 else
6003 ac_cv_type_long_long_int=no
6005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6006 conftest.$ac_objext conftest.beam conftest.$ac_ext
6009 else
6010 ac_cv_type_long_long_int=no
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6016 $as_echo "$ac_cv_type_long_long_int" >&6; }
6017 if test $ac_cv_type_long_long_int = yes; then
6019 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6025 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6026 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6028 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6030 else
6031 test $ac_cv_type_long_long_int = yes \
6032 && ac_type='long long int' \
6033 || ac_type='long int'
6035 cat >>confdefs.h <<_ACEOF
6036 #define intmax_t $ac_type
6037 _ACEOF
6043 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6044 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6046 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6048 else
6049 for ac_type in 'int' 'long int' 'long long int'; do
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 $ac_includes_default
6054 main ()
6056 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6057 test_array [0] = 0
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6065 cat >>confdefs.h <<_ACEOF
6066 #define intptr_t $ac_type
6067 _ACEOF
6069 ac_type=
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 test -z "$ac_type" && break
6073 done
6077 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6078 case $ac_cv_c_uint8_t in #(
6079 no|yes) ;; #(
6082 $as_echo "#define _UINT8_T 1" >>confdefs.h
6085 cat >>confdefs.h <<_ACEOF
6086 #define uint8_t $ac_cv_c_uint8_t
6087 _ACEOF
6089 esac
6091 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6092 case $ac_cv_c_uint16_t in #(
6093 no|yes) ;; #(
6097 cat >>confdefs.h <<_ACEOF
6098 #define uint16_t $ac_cv_c_uint16_t
6099 _ACEOF
6101 esac
6103 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6104 case $ac_cv_c_uint32_t in #(
6105 no|yes) ;; #(
6108 $as_echo "#define _UINT32_T 1" >>confdefs.h
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint32_t $ac_cv_c_uint32_t
6113 _ACEOF
6115 esac
6117 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6118 case $ac_cv_c_uint64_t in #(
6119 no|yes) ;; #(
6122 $as_echo "#define _UINT64_T 1" >>confdefs.h
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint64_t $ac_cv_c_uint64_t
6127 _ACEOF
6129 esac
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6133 $as_echo_n "checking for unsigned long long int... " >&6; }
6134 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6140 /* For now, do not test the preprocessor; as of 2007 there are too many
6141 implementations with broken preprocessors. Perhaps this can
6142 be revisited in 2012. In the meantime, code should not expect
6143 #if to work with literals wider than 32 bits. */
6144 /* Test literals. */
6145 long long int ll = 9223372036854775807ll;
6146 long long int nll = -9223372036854775807LL;
6147 unsigned long long int ull = 18446744073709551615ULL;
6148 /* Test constant expressions. */
6149 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6150 ? 1 : -1)];
6151 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6152 ? 1 : -1)];
6153 int i = 63;
6155 main ()
6157 /* Test availability of runtime routines for shift and division. */
6158 long long int llmax = 9223372036854775807ll;
6159 unsigned long long int ullmax = 18446744073709551615ull;
6160 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6161 | (llmax / ll) | (llmax % ll)
6162 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6163 | (ullmax / ull) | (ullmax % ull));
6165 return 0;
6168 _ACEOF
6169 if ac_fn_c_try_link "$LINENO"; then :
6170 ac_cv_type_unsigned_long_long_int=yes
6171 else
6172 ac_cv_type_unsigned_long_long_int=no
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6178 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6179 if test $ac_cv_type_unsigned_long_long_int = yes; then
6181 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6187 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6188 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6190 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6192 else
6193 test $ac_cv_type_unsigned_long_long_int = yes \
6194 && ac_type='unsigned long long int' \
6195 || ac_type='unsigned long int'
6197 cat >>confdefs.h <<_ACEOF
6198 #define uintmax_t $ac_type
6199 _ACEOF
6205 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6206 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6208 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6210 else
6211 for ac_type in 'unsigned int' 'unsigned long int' \
6212 'unsigned long long int'; do
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 $ac_includes_default
6217 main ()
6219 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6220 test_array [0] = 0
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define uintptr_t $ac_type
6230 _ACEOF
6232 ac_type=
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 test -z "$ac_type" && break
6236 done
6252 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6253 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6256 # check what underlying integer type int64_t uses
6257 ac_ext=cpp
6258 ac_cpp='$CXXCPP $CPPFLAGS'
6259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6265 $as_echo_n "checking for int64_t underlying type... " >&6; }
6266 if test "${ac_cv_int64_t_type+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6273 #ifdef HAVE_STDINT_H
6274 #include <stdint.h>
6275 #endif
6276 template <typename T> struct X { };
6277 template <>
6278 struct X<long> { typedef long t; };
6281 main ()
6283 X<int64_t>::t x;
6285 return 0;
6287 _ACEOF
6288 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_cv_int64_t_type=long
6290 else
6291 ac_cv_int64_t_type="long long"
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6296 $as_echo "$ac_cv_int64_t_type" >&6; }
6297 if test "$ac_cv_int64_t_type" = "long"; then
6299 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6305 #ifdef HAVE_STDINT_H
6306 #include <stdint.h>
6307 #endif
6308 template <typename T> struct X { };
6309 template <>
6310 struct X<long long> { typedef long long t; };
6313 main ()
6315 X<int64_t>::t x;
6317 return 0;
6319 _ACEOF
6320 if ac_fn_cxx_try_compile "$LINENO"; then :
6322 else
6323 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 ac_ext=c
6328 ac_cpp='$CPP $CPPFLAGS'
6329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337 # ---------------------
6338 # Warnings and checking
6339 # ---------------------
6341 # Check $CC warning features (if it's GCC).
6342 # We want to use -pedantic, but we don't want warnings about
6343 # * 'long long'
6344 # * variadic macros
6345 # * overlong strings
6346 # * C++11 narrowing conversions in { }
6347 # So, we only use -pedantic if we can disable those warnings.
6349 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6350 # Check whether --enable-build-format-warnings was given.
6351 if test "${enable_build_format_warnings+set}" = set; then :
6352 enableval=$enable_build_format_warnings;
6353 else
6354 enable_build_format_warnings=yes
6357 if test $enable_build_format_warnings = no; then :
6358 wf_opt=-Wno-format
6359 else
6360 wf_opt=
6362 loose_warn=
6363 save_CFLAGS="$CFLAGS"
6364 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6365 # Do the check with the no- prefix removed since gcc silently
6366 # accepts any -Wno-* option on purpose
6367 case $real_option in
6368 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6369 *) option=$real_option ;;
6370 esac
6371 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6374 $as_echo_n "checking whether $CC supports $option... " >&6; }
6375 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 CFLAGS="$option"
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6383 main ()
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 eval "$as_acx_Woption=yes"
6392 else
6393 eval "$as_acx_Woption=no"
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 eval ac_res=\$$as_acx_Woption
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6400 $as_echo "$ac_res" >&6; }
6401 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6402 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6404 done
6405 CFLAGS="$save_CFLAGS"
6407 c_loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6410 # Do the check with the no- prefix removed since gcc silently
6411 # accepts any -Wno-* option on purpose
6412 case $real_option in
6413 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6414 *) option=$real_option ;;
6415 esac
6416 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6419 $as_echo_n "checking whether $CC supports $option... " >&6; }
6420 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 CFLAGS="$option"
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6428 main ()
6432 return 0;
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 eval "$as_acx_Woption=yes"
6437 else
6438 eval "$as_acx_Woption=no"
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 eval ac_res=\$$as_acx_Woption
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6447 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6449 done
6450 CFLAGS="$save_CFLAGS"
6452 strict_warn=
6453 save_CFLAGS="$CFLAGS"
6454 for real_option in -Wmissing-format-attribute; do
6455 # Do the check with the no- prefix removed since gcc silently
6456 # accepts any -Wno-* option on purpose
6457 case $real_option in
6458 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6459 *) option=$real_option ;;
6460 esac
6461 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6464 $as_echo_n "checking whether $CC supports $option... " >&6; }
6465 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 CFLAGS="$option"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6473 main ()
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_acx_Woption=yes"
6482 else
6483 eval "$as_acx_Woption=no"
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 eval ac_res=\$$as_acx_Woption
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6490 $as_echo "$ac_res" >&6; }
6491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6492 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6494 done
6495 CFLAGS="$save_CFLAGS"
6497 save_CFLAGS="$CFLAGS"
6498 for real_option in -Woverloaded-virtual; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option=$real_option ;;
6504 esac
6505 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 CFLAGS="$option"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6526 else
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 eval ac_res=\$$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 done
6539 CFLAGS="$save_CFLAGS"
6541 c_strict_warn=
6542 save_CFLAGS="$CFLAGS"
6543 for real_option in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option=$real_option ;;
6549 esac
6550 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 CFLAGS="$option"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6571 else
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 eval ac_res=\$$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 done
6584 CFLAGS="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 save_CFLAGS="$CFLAGS"
6595 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6600 main ()
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6609 else
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 CFLAGS="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval=$enable_werror_always;
6626 else
6627 enable_werror_always=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6639 warn_cflags=
6640 warn_cxxflags=
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6649 noexception_flags=
6650 save_CFLAGS="$CFLAGS"
6651 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6657 esac
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 CFLAGS="$option"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6679 else
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 done
6692 CFLAGS="$save_CFLAGS"
6695 # Enable expensive internal checks
6696 is_release=
6697 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6698 is_release=yes
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval=$enable_checking; ac_checking_flags="${enableval}"
6704 else
6706 # Determine the default checks.
6707 if test x$is_release = x ; then
6708 ac_checking_flags=yes
6709 else
6710 ac_checking_flags=release
6714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6715 for check in release $ac_checking_flags
6717 case $check in
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking=1 ;
6721 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking= ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6732 ac_fold_checking=1 ; ac_gc_checking=1 ;
6733 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6734 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6735 ac_tree_checking=1 ; ac_valgrind_checking= ;
6736 ac_types_checking=1 ;;
6737 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6738 ac_fold_checking= ; ac_gc_checking= ;
6739 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6740 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6741 ac_tree_checking= ; ac_valgrind_checking= ;
6742 ac_types_checking= ;;
6743 # these enable particular checks
6744 assert) ac_assert_checking=1 ;;
6745 df) ac_df_checking=1 ;;
6746 fold) ac_fold_checking=1 ;;
6747 gc) ac_gc_checking=1 ;;
6748 gcac) ac_gc_always_collect=1 ;;
6749 gimple) ac_gimple_checking=1 ;;
6750 misc) ac_checking=1 ;;
6751 rtl) ac_rtl_checking=1 ;;
6752 rtlflag) ac_rtlflag_checking=1 ;;
6753 runtime) ac_runtime_checking=1 ;;
6754 tree) ac_tree_checking=1 ;;
6755 types) ac_types_checking=1 ;;
6756 valgrind) ac_valgrind_checking=1 ;;
6757 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6758 esac
6759 done
6760 IFS="$ac_save_IFS"
6762 nocommon_flag=""
6763 if test x$ac_checking != x ; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag=-fno-common
6770 if test x$ac_df_checking != x ; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x$ac_assert_checking != x ; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x$ac_gimple_checking != x ; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x$ac_runtime_checking != x ; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x$ac_tree_checking != x ; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER=tree-browser.o
6796 TREECHECKING=yes
6798 if test x$ac_types_checking != x ; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x$ac_rtl_checking != x ; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x$ac_rtlflag_checking != x ; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x$ac_gc_checking != x ; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x$ac_gc_always_collect != x ; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x$ac_fold_checking != x ; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines=
6831 valgrind_command=
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835 have_valgrind_h=yes
6836 else
6837 have_valgrind_h=no
6842 # It is certainly possible that there's valgrind but no valgrind.h.
6843 # GCC relies on making annotations so we must have both.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6845 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <valgrind/memcheck.h>
6849 #ifndef VALGRIND_DISCARD
6850 #error VALGRIND_DISCARD not defined
6851 #endif
6852 _ACEOF
6853 if ac_fn_c_try_cpp "$LINENO"; then :
6854 gcc_cv_header_valgrind_memcheck_h=yes
6855 else
6856 gcc_cv_header_valgrind_memcheck_h=no
6858 rm -f conftest.err conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6860 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6862 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <memcheck.h>
6866 #ifndef VALGRIND_DISCARD
6867 #error VALGRIND_DISCARD not defined
6868 #endif
6869 _ACEOF
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6871 gcc_cv_header_memcheck_h=yes
6872 else
6873 gcc_cv_header_memcheck_h=no
6875 rm -f conftest.err conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6877 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6878 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6880 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6883 if test $gcc_cv_header_memcheck_h = yes; then
6885 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6889 if test x$ac_valgrind_checking != x ; then
6891 # Prepare PATH_SEPARATOR.
6892 # The user is always right.
6893 if test "${PATH_SEPARATOR+set}" != set; then
6894 echo "#! /bin/sh" >conf$$.sh
6895 echo "exit 0" >>conf$$.sh
6896 chmod +x conf$$.sh
6897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6898 PATH_SEPARATOR=';'
6899 else
6900 PATH_SEPARATOR=:
6902 rm -f conf$$.sh
6905 # Find out how to test for executable files. Don't use a zero-byte file,
6906 # as systems may use methods other than mode bits to determine executability.
6907 cat >conf$$.file <<_ASEOF
6908 #! /bin/sh
6909 exit 0
6910 _ASEOF
6911 chmod +x conf$$.file
6912 if test -x conf$$.file >/dev/null 2>&1; then
6913 ac_executable_p="test -x"
6914 else
6915 ac_executable_p="test -f"
6917 rm -f conf$$.file
6919 # Extract the first word of "valgrind", so it can be a program name with args.
6920 set dummy valgrind; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 case "$valgrind_path" in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6931 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6932 for ac_dir in $PATH; do
6933 IFS="$ac_save_IFS"
6934 test -z "$ac_dir" && ac_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6937 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6938 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6939 break 2
6942 done
6943 done
6944 IFS="$ac_save_IFS"
6946 esac
6948 valgrind_path="$ac_cv_path_valgrind_path"
6949 if test -n "$valgrind_path"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6951 $as_echo "$valgrind_path" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$valgrind_path" = "x" \
6958 || (test $have_valgrind_h = no \
6959 && test $gcc_cv_header_memcheck_h = no \
6960 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6961 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6963 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6964 valgrind_command="$valgrind_path -q"
6966 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6972 # Enable code coverage collection
6973 # Check whether --enable-coverage was given.
6974 if test "${enable_coverage+set}" = set; then :
6975 enableval=$enable_coverage; case "${enableval}" in
6976 yes|noopt)
6977 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6979 opt)
6980 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6983 # a.k.a. --disable-coverage
6984 coverage_flags=""
6987 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6989 esac
6990 else
6991 coverage_flags=""
6996 # Check whether --enable-gather-detailed-mem-stats was given.
6997 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6998 enableval=$enable_gather_detailed_mem_stats;
6999 else
7000 enable_gather_detailed_mem_stats=no
7003 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7005 cat >>confdefs.h <<_ACEOF
7006 #define GATHER_STATISTICS $gather_stats
7007 _ACEOF
7010 # Check whether --enable-valgrind-annotations was given.
7011 if test "${enable_valgrind_annotations+set}" = set; then :
7012 enableval=$enable_valgrind_annotations;
7013 else
7014 enable_valgrind_annotations=no
7017 if test x$enable_valgrind_annotations != xno \
7018 || test x$ac_valgrind_checking != x; then
7019 if (test $have_valgrind_h = no \
7020 && test $gcc_cv_header_memcheck_h = no \
7021 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7022 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7025 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7029 # -------------------------------
7030 # Miscenalleous configure options
7031 # -------------------------------
7033 # With stabs
7035 # Check whether --with-stabs was given.
7036 if test "${with_stabs+set}" = set; then :
7037 withval=$with_stabs; stabs="$with_stabs"
7038 else
7039 stabs=no
7043 # Determine whether or not multilibs are enabled.
7044 # Check whether --enable-multilib was given.
7045 if test "${enable_multilib+set}" = set; then :
7046 enableval=$enable_multilib;
7047 else
7048 enable_multilib=yes
7053 # Determine whether or not multiarch is enabled.
7054 # Check whether --enable-multiarch was given.
7055 if test "${enable_multiarch+set}" = set; then :
7056 enableval=$enable_multiarch; case "${enableval}" in
7057 yes|no|auto) enable_multiarch=$enableval;;
7058 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7059 esac
7060 else
7061 enable_multiarch=auto
7064 if test x${enable_multiarch} = xauto; then
7065 if test x${with_native_system_header_dir} != x; then
7066 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7067 enable_multiarch=no
7069 if test x$host != x$target && test "x$with_sysroot" = x; then
7070 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7071 enable_multiarch=no
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7075 $as_echo_n "checking for multiarch configuration... " >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7078 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7080 # needed for setting the multiarch name for soft-float/hard-float ABIs
7084 # Enable __cxa_atexit for C++.
7085 # Check whether --enable-__cxa_atexit was given.
7086 if test "${enable___cxa_atexit+set}" = set; then :
7087 enableval=$enable___cxa_atexit;
7091 # Enable C extension for decimal float if target supports it.
7093 # Check whether --enable-decimal-float was given.
7094 if test "${enable_decimal_float+set}" = set; then :
7095 enableval=$enable_decimal_float;
7096 case $enable_decimal_float in
7097 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7098 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7099 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7100 esac
7102 else
7104 case $target in
7105 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7106 i?86*-*-gnu* | \
7107 i?86*-*-mingw* | x86_64*-*-mingw* | \
7108 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7109 enable_decimal_float=yes
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7114 enable_decimal_float=no
7116 esac
7121 # x86's use BID format instead of DPD
7122 case x$enable_decimal_float in
7123 xyes)
7124 case $target in
7125 i?86*-*-* | x86_64*-*-*)
7126 enable_decimal_float=bid
7129 enable_decimal_float=dpd
7131 esac
7132 default_decimal_float=$enable_decimal_float
7134 xno)
7135 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7136 # dependency on libdecnumber.
7137 default_decimal_float=dpd
7139 esac
7144 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7146 cat >>confdefs.h <<_ACEOF
7147 #define ENABLE_DECIMAL_FLOAT $dfp
7148 _ACEOF
7151 # Use default_decimal_float for dependency.
7152 enable_decimal_float=$default_decimal_float
7154 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7156 cat >>confdefs.h <<_ACEOF
7157 #define ENABLE_DECIMAL_BID_FORMAT $bid
7158 _ACEOF
7161 # Enable C extension for fixed-point arithmetic.
7162 # Check whether --enable-fixed-point was given.
7163 if test "${enable_fixed_point+set}" = set; then :
7164 enableval=$enable_fixed_point;
7165 else
7167 case $target in
7168 arm*)
7169 enable_fixed_point=yes
7172 mips*-*-*)
7173 enable_fixed_point=yes
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7177 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7178 enable_fixed_point=no
7180 esac
7186 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7188 cat >>confdefs.h <<_ACEOF
7189 #define ENABLE_FIXED_POINT $fixedpoint
7190 _ACEOF
7193 # Enable threads
7194 # Pass with no value to take the default
7195 # Pass with a value to specify a thread package
7196 # Check whether --enable-threads was given.
7197 if test "${enable_threads+set}" = set; then :
7198 enableval=$enable_threads;
7199 else
7200 enable_threads=''
7204 # Check whether --enable-tls was given.
7205 if test "${enable_tls+set}" = set; then :
7206 enableval=$enable_tls;
7207 case $enable_tls in
7208 yes | no) ;;
7209 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7210 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7211 esac
7213 else
7214 enable_tls=''
7218 # Check whether --enable-objc-gc was given.
7219 if test "${enable_objc_gc+set}" = set; then :
7220 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7221 objc_boehm_gc=''
7222 else
7223 objc_boehm_gc=1
7225 else
7226 objc_boehm_gc=''
7231 # Check whether --with-dwarf2 was given.
7232 if test "${with_dwarf2+set}" = set; then :
7233 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7234 else
7235 dwarf2=no
7239 # Check whether --enable-shared was given.
7240 if test "${enable_shared+set}" = set; then :
7241 enableval=$enable_shared;
7242 case $enable_shared in
7243 yes | no) ;;
7245 enable_shared=no
7246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7247 for pkg in $enableval; do
7248 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7249 enable_shared=yes
7251 done
7252 IFS="$ac_save_ifs"
7254 esac
7256 else
7257 enable_shared=yes
7263 # Check whether --with-native-system-header-dir was given.
7264 if test "${with_native_system_header_dir+set}" = set; then :
7265 withval=$with_native_system_header_dir;
7266 case ${with_native_system_header_dir} in
7267 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7268 /* | [A-Za-z]:[\\/]*) ;;
7269 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7270 esac
7271 configured_native_system_header_dir="${withval}"
7273 else
7274 configured_native_system_header_dir=
7279 # Check whether --with-build-sysroot was given.
7280 if test "${with_build_sysroot+set}" = set; then :
7281 withval=$with_build_sysroot; if test x"$withval" != x ; then
7282 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7284 else
7285 SYSROOT_CFLAGS_FOR_TARGET=
7290 if test "x$prefix" = xNONE; then
7291 test_prefix=/usr/local
7292 else
7293 test_prefix=$prefix
7295 if test "x$exec_prefix" = xNONE; then
7296 test_exec_prefix=$test_prefix
7297 else
7298 test_exec_prefix=$exec_prefix
7302 # Check whether --with-sysroot was given.
7303 if test "${with_sysroot+set}" = set; then :
7304 withval=$with_sysroot;
7305 case ${with_sysroot} in
7306 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7307 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7308 esac
7310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7311 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7313 case ${TARGET_SYSTEM_ROOT} in
7314 "${test_prefix}"|"${test_prefix}/"*|\
7315 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7316 '${prefix}'|'${prefix}/'*|\
7317 '${exec_prefix}'|'${exec_prefix}/'*)
7318 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7319 TARGET_SYSTEM_ROOT_DEFINE="$t"
7321 esac
7323 else
7325 TARGET_SYSTEM_ROOT=
7326 TARGET_SYSTEM_ROOT_DEFINE=
7327 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7336 # Check whether --with-specs was given.
7337 if test "${with_specs+set}" = set; then :
7338 withval=$with_specs; CONFIGURE_SPECS=$withval
7339 else
7340 CONFIGURE_SPECS=
7348 # Check whether --with-pkgversion was given.
7349 if test "${with_pkgversion+set}" = set; then :
7350 withval=$with_pkgversion; case "$withval" in
7351 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7352 no) PKGVERSION= ;;
7353 *) PKGVERSION="($withval) " ;;
7354 esac
7355 else
7356 PKGVERSION="(GCC) "
7364 # Check whether --with-bugurl was given.
7365 if test "${with_bugurl+set}" = set; then :
7366 withval=$with_bugurl; case "$withval" in
7367 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7368 no) BUGURL=
7370 *) BUGURL="$withval"
7372 esac
7373 else
7374 BUGURL="http://gcc.gnu.org/bugs.html"
7378 case ${BUGURL} in
7380 REPORT_BUGS_TO=
7381 REPORT_BUGS_TEXI=
7384 REPORT_BUGS_TO="<$BUGURL>"
7385 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7387 esac;
7392 # Sanity check enable_languages in case someone does not run the toplevel
7393 # configure # script.
7394 # Check whether --enable-languages was given.
7395 if test "${enable_languages+set}" = set; then :
7396 enableval=$enable_languages; case ,${enable_languages}, in
7397 ,,|,yes,)
7398 # go safe -- we cannot be much sure without the toplevel
7399 # configure's
7400 # analysis of which target libs are present and usable
7401 enable_languages=c
7403 *,all,*)
7404 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7406 *,c,*)
7409 enable_languages=c,${enable_languages}
7411 esac
7412 else
7413 enable_languages=c
7417 if test x"$enable_as_accelerator_for" != x; then
7419 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7421 enable_as_accelerator=yes
7422 case "${target}" in
7423 *-intelmicemul-*)
7424 # In this case we expect offload compiler to be built as native, so we
7425 # need to rename the driver to avoid clashes with host's drivers.
7426 program_transform_name="s&^&${target}-&" ;;
7427 esac
7428 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7429 program_transform_name=`echo $program_transform_name | sed $sedscript`
7430 accel_dir_suffix=/accel/${target_noncanonical}
7431 real_target_noncanonical=${enable_as_accelerator_for}
7437 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7438 tgt=`echo $tgt | sed 's/=.*//'`
7439 if test x"$offload_targets" = x; then
7440 offload_targets=$tgt
7441 else
7442 offload_targets="$offload_targets:$tgt"
7444 done
7446 cat >>confdefs.h <<_ACEOF
7447 #define OFFLOAD_TARGETS "$offload_targets"
7448 _ACEOF
7450 if test x"$offload_targets" != x; then
7452 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7457 # Check whether --with-multilib-list was given.
7458 if test "${with_multilib_list+set}" = set; then :
7459 withval=$with_multilib_list; :
7460 else
7461 with_multilib_list=default
7465 # -------------------------
7466 # Checks for other programs
7467 # -------------------------
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7470 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7471 set x ${MAKE-make}
7472 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7473 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 cat >conftest.make <<\_ACEOF
7477 SHELL = /bin/sh
7478 all:
7479 @echo '@@@%%%=$(MAKE)=@@@%%%'
7480 _ACEOF
7481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7482 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7483 *@@@%%%=?*=@@@%%%*)
7484 eval ac_cv_prog_make_${ac_make}_set=yes;;
7486 eval ac_cv_prog_make_${ac_make}_set=no;;
7487 esac
7488 rm -f conftest.make
7490 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492 $as_echo "yes" >&6; }
7493 SET_MAKE=
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 SET_MAKE="MAKE=${MAKE-make}"
7501 # Find some useful tools
7502 for ac_prog in gawk mawk nawk awk
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_AWK+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$AWK"; then
7512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_AWK="$ac_prog"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7525 done
7526 done
7527 IFS=$as_save_IFS
7531 AWK=$ac_cv_prog_AWK
7532 if test -n "$AWK"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7534 $as_echo "$AWK" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 test -n "$AWK" && break
7542 done
7544 # We need awk to create options.c and options.h.
7545 # Bail out if it's missing.
7546 case ${AWK} in
7547 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7548 esac
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7551 $as_echo_n "checking whether ln -s works... " >&6; }
7552 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 rm -f conftestdata_t
7556 echo >conftestdata_f
7557 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7558 then
7559 gcc_cv_prog_LN_S="ln -s"
7560 else
7561 if ln conftestdata_f conftestdata_t 2>/dev/null
7562 then
7563 gcc_cv_prog_LN_S=ln
7564 else
7565 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7566 then
7567 gcc_cv_prog_LN_S="cp -p"
7568 else
7569 gcc_cv_prog_LN_S=cp
7573 rm -f conftestdata_f conftestdata_t
7576 LN_S="$gcc_cv_prog_LN_S"
7577 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7580 else
7581 if test "$gcc_cv_prog_LN_S" = "ln"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7583 $as_echo "no, using ln" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7586 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7591 $as_echo_n "checking whether ln works... " >&6; }
7592 if test "${acx_cv_prog_LN+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 rm -f conftestdata_t
7596 echo >conftestdata_f
7597 if ln conftestdata_f conftestdata_t 2>/dev/null
7598 then
7599 acx_cv_prog_LN=ln
7600 else
7601 acx_cv_prog_LN=no
7603 rm -f conftestdata_f conftestdata_t
7606 if test $acx_cv_prog_LN = no; then
7607 LN="$LN_S"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7609 $as_echo "no, using $LN" >&6; }
7610 else
7611 LN="$acx_cv_prog_LN"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7613 $as_echo "yes" >&6; }
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$RANLIB"; then
7625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7638 done
7639 done
7640 IFS=$as_save_IFS
7644 RANLIB=$ac_cv_prog_RANLIB
7645 if test -n "$RANLIB"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7647 $as_echo "$RANLIB" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_RANLIB"; then
7656 ac_ct_RANLIB=$RANLIB
7657 # Extract the first word of "ranlib", so it can be a program name with args.
7658 set dummy ranlib; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$ac_ct_RANLIB"; then
7665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_RANLIB="ranlib"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7685 if test -n "$ac_ct_RANLIB"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7687 $as_echo "$ac_ct_RANLIB" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_RANLIB" = x; then
7694 RANLIB=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702 RANLIB=$ac_ct_RANLIB
7704 else
7705 RANLIB="$ac_cv_prog_RANLIB"
7708 ranlib_flags=""
7711 # Find a good install program. We prefer a C program (faster),
7712 # so one script is as good as another. But avoid the broken or
7713 # incompatible versions:
7714 # SysV /etc/install, /usr/sbin/install
7715 # SunOS /usr/etc/install
7716 # IRIX /sbin/install
7717 # AIX /bin/install
7718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7720 # ./install, which can be erroneously created by make from ./install.sh.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7722 $as_echo_n "checking for a BSD compatible install... " >&6; }
7723 if test -z "$INSTALL"; then
7724 if test "${ac_cv_path_install+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7728 for ac_dir in $PATH; do
7729 # Account for people who put trailing slashes in PATH elements.
7730 case "$ac_dir/" in
7731 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7733 # OSF1 and SCO ODT 3.0 have their own names for install.
7734 for ac_prog in ginstall scoinst install; do
7735 if test -f $ac_dir/$ac_prog; then
7736 if test $ac_prog = install &&
7737 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7738 # AIX install. It has an incompatible calling convention.
7739 # OSF/1 installbsd also uses dspmsg, but is usable.
7741 else
7742 ac_cv_path_install="$ac_dir/$ac_prog -c"
7743 break 2
7746 done
7748 esac
7749 done
7750 IFS="$ac_save_IFS"
7753 if test "${ac_cv_path_install+set}" = set; then
7754 INSTALL="$ac_cv_path_install"
7755 else
7756 # As a last resort, use the slow shell script. We don't cache a
7757 # path for INSTALL within a source directory, because that will
7758 # break other packages using the cache if that directory is
7759 # removed, or if the path is relative.
7760 INSTALL="$ac_install_sh"
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7764 $as_echo "$INSTALL" >&6; }
7766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7767 # It thinks the first close brace ends the variable substitution.
7768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7773 # See if cmp has --ignore-initial.
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7775 $as_echo_n "checking for cmp's capabilities... " >&6; }
7776 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 echo abfoo >t1
7780 echo cdfoo >t2
7781 gcc_cv_prog_cmp_skip=slowcompare
7782 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7783 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7785 else
7786 gcc_cv_prog_cmp_skip=gnucompare
7789 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7790 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7791 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7793 else
7794 gcc_cv_prog_cmp_skip=fastcompare
7798 rm t1 t2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7802 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7803 make_compare_target=$gcc_cv_prog_cmp_skip
7807 # See if we have the mktemp command.
7808 # Extract the first word of "mktemp", so it can be a program name with args.
7809 set dummy mktemp; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$have_mktemp_command"; then
7816 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_prog_have_mktemp_command="yes"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7829 done
7830 done
7831 IFS=$as_save_IFS
7833 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7836 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7837 if test -n "$have_mktemp_command"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7839 $as_echo "$have_mktemp_command" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7847 # See if makeinfo has been installed and is modern enough
7848 # that we can use it.
7850 # Extract the first word of "makeinfo", so it can be a program name with args.
7851 set dummy makeinfo; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -n "$MAKEINFO"; then
7858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_prog_MAKEINFO="makeinfo"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7871 done
7872 done
7873 IFS=$as_save_IFS
7877 MAKEINFO=$ac_cv_prog_MAKEINFO
7878 if test -n "$MAKEINFO"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7880 $as_echo "$MAKEINFO" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7887 if test -n "$MAKEINFO"; then
7888 # Found it, now check the version.
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7890 $as_echo_n "checking for modern makeinfo... " >&6; }
7891 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7895 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7897 case $ac_prog_version in
7898 '') gcc_cv_prog_makeinfo_modern=no;;
7899 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7900 *) gcc_cv_prog_makeinfo_modern=no;;
7901 esac
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7905 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7906 else
7907 gcc_cv_prog_makeinfo_modern=no
7909 if test $gcc_cv_prog_makeinfo_modern = no; then
7910 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7913 if test $gcc_cv_prog_makeinfo_modern = no; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7915 *** Makeinfo is missing or too old.
7916 *** Info documentation will not be built." >&5
7917 $as_echo "$as_me: WARNING:
7918 *** Makeinfo is missing or too old.
7919 *** Info documentation will not be built." >&2;}
7920 BUILD_INFO=
7921 else
7922 BUILD_INFO=info
7926 # Is pod2man recent enough to regenerate manpages?
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7928 $as_echo_n "checking for recent Pod::Man... " >&6; }
7929 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7932 GENERATED_MANPAGES=generated-manpages
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 GENERATED_MANPAGES=
7940 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7942 # How about lex?
7943 for ac_prog in flex
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946 set dummy $ac_prog; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_FLEX+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$FLEX"; then
7953 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_FLEX="$ac_prog"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7968 IFS=$as_save_IFS
7972 FLEX=$ac_cv_prog_FLEX
7973 if test -n "$FLEX"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7975 $as_echo "$FLEX" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7982 test -n "$FLEX" && break
7983 done
7984 test -n "$FLEX" || FLEX="$MISSING flex"
7987 # Bison?
7988 for ac_prog in bison
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_BISON+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$BISON"; then
7998 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_BISON="$ac_prog"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8011 done
8012 done
8013 IFS=$as_save_IFS
8017 BISON=$ac_cv_prog_BISON
8018 if test -n "$BISON"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8020 $as_echo "$BISON" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 test -n "$BISON" && break
8028 done
8029 test -n "$BISON" || BISON="$MISSING bison"
8032 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8033 # check for build == host before using them.
8035 # NM
8036 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8037 && test -d ../binutils ; then
8038 NM='${objdir}/../binutils/nm-new'
8039 else
8040 # Extract the first word of "nm", so it can be a program name with args.
8041 set dummy nm; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if test "${ac_cv_prog_NM+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$NM"; then
8048 ac_cv_prog_NM="$NM" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_prog_NM="nm"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8061 done
8062 done
8063 IFS=$as_save_IFS
8065 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8068 NM=$ac_cv_prog_NM
8069 if test -n "$NM"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8071 $as_echo "$NM" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8080 # AR
8081 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8082 && test -d ../binutils ; then
8083 AR='${objdir}/../binutils/ar'
8084 else
8085 # Extract the first word of "ar", so it can be a program name with args.
8086 set dummy ar; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="ar"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8106 done
8107 done
8108 IFS=$as_save_IFS
8110 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8113 AR=$ac_cv_prog_AR
8114 if test -n "$AR"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8116 $as_echo "$AR" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8125 # The jit documentation looks better if built with sphinx, but can be
8126 # built with texinfo if sphinx is not available.
8127 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8128 # Extract the first word of "sphinx-build", so it can be a program name with args.
8129 set dummy sphinx-build; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$doc_build_sys"; then
8136 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_doc_build_sys="sphinx"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8151 IFS=$as_save_IFS
8153 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8156 doc_build_sys=$ac_cv_prog_doc_build_sys
8157 if test -n "$doc_build_sys"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8159 $as_echo "$doc_build_sys" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8167 # --------------------
8168 # Checks for C headers
8169 # --------------------
8171 # Need to reject headers which give warnings, so that the -Werror bootstrap
8172 # works later. *sigh* This needs to come before all header checks.
8174 ac_c_preproc_warn_flag=yes
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8177 $as_echo_n "checking for ANSI C header files... " >&6; }
8178 if test "${ac_cv_header_stdc+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <stdlib.h>
8184 #include <stdarg.h>
8185 #include <string.h>
8186 #include <float.h>
8189 main ()
8193 return 0;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 ac_cv_header_stdc=yes
8198 else
8199 ac_cv_header_stdc=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 if test $ac_cv_header_stdc = yes; then
8204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <string.h>
8209 _ACEOF
8210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8211 $EGREP "memchr" >/dev/null 2>&1; then :
8213 else
8214 ac_cv_header_stdc=no
8216 rm -f conftest*
8220 if test $ac_cv_header_stdc = yes; then
8221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <stdlib.h>
8226 _ACEOF
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228 $EGREP "free" >/dev/null 2>&1; then :
8230 else
8231 ac_cv_header_stdc=no
8233 rm -f conftest*
8237 if test $ac_cv_header_stdc = yes; then
8238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8239 if test "$cross_compiling" = yes; then :
8241 else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <ctype.h>
8245 #include <stdlib.h>
8246 #if ((' ' & 0x0FF) == 0x020)
8247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8249 #else
8250 # define ISLOWER(c) \
8251 (('a' <= (c) && (c) <= 'i') \
8252 || ('j' <= (c) && (c) <= 'r') \
8253 || ('s' <= (c) && (c) <= 'z'))
8254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8255 #endif
8257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8259 main ()
8261 int i;
8262 for (i = 0; i < 256; i++)
8263 if (XOR (islower (i), ISLOWER (i))
8264 || toupper (i) != TOUPPER (i))
8265 return 2;
8266 return 0;
8268 _ACEOF
8269 if ac_fn_c_try_run "$LINENO"; then :
8271 else
8272 ac_cv_header_stdc=no
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8275 conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8281 $as_echo "$ac_cv_header_stdc" >&6; }
8282 if test $ac_cv_header_stdc = yes; then
8284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8290 if test "${ac_cv_header_time+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <sys/types.h>
8296 #include <sys/time.h>
8297 #include <time.h>
8300 main ()
8302 if ((struct tm *) 0)
8303 return 0;
8305 return 0;
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 ac_cv_header_time=yes
8310 else
8311 ac_cv_header_time=no
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8316 $as_echo "$ac_cv_header_time" >&6; }
8317 if test $ac_cv_header_time = yes; then
8319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8324 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8325 if test "${gcc_cv_header_string+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <string.h>
8331 #include <strings.h>
8333 main ()
8337 return 0;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 gcc_cv_header_string=yes
8342 else
8343 gcc_cv_header_string=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8348 $as_echo "$gcc_cv_header_string" >&6; }
8349 if test $gcc_cv_header_string = yes; then
8351 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8356 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8357 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8363 #include <sys/wait.h>
8364 #ifndef WEXITSTATUS
8365 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8366 #endif
8367 #ifndef WIFEXITED
8368 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8369 #endif
8372 main ()
8374 int s;
8375 wait (&s);
8376 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8378 return 0;
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 ac_cv_header_sys_wait_h=yes
8383 else
8384 ac_cv_header_sys_wait_h=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8389 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8390 if test $ac_cv_header_sys_wait_h = yes; then
8392 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8397 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8398 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <sys/types.h>
8404 #include <termios.h>
8405 #ifdef TIOCGWINSZ
8407 #endif
8409 _ACEOF
8410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411 $EGREP "yes" >/dev/null 2>&1; then :
8412 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8413 else
8414 ac_cv_sys_tiocgwinsz_in_termios_h=no
8416 rm -f conftest*
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8420 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8422 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8424 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8425 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <sys/types.h>
8431 #include <sys/ioctl.h>
8432 #ifdef TIOCGWINSZ
8434 #endif
8436 _ACEOF
8437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8438 $EGREP "yes" >/dev/null 2>&1; then :
8439 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8440 else
8441 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8443 rm -f conftest*
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8447 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8449 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8451 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8456 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8457 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8458 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8459 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8460 do :
8461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8462 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8463 eval as_val=\$$as_ac_Header
8464 if test "x$as_val" = x""yes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 _ACEOF
8470 done
8473 # Check for thread headers.
8474 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8475 if test "x$ac_cv_header_thread_h" = x""yes; then :
8476 have_thread_h=yes
8477 else
8478 have_thread_h=
8481 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8482 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8483 have_pthread_h=yes
8484 else
8485 have_pthread_h=
8489 # These tests can't be done till we know if we have limits.h.
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8491 $as_echo_n "checking for CHAR_BIT... " >&6; }
8492 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #ifdef HAVE_LIMITS_H
8498 #include <limits.h>
8499 #endif
8500 #ifdef CHAR_BIT
8501 found
8502 #endif
8503 _ACEOF
8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8505 $EGREP "found" >/dev/null 2>&1; then :
8506 gcc_cv_decl_char_bit=yes
8507 else
8508 gcc_cv_decl_char_bit=no
8510 rm -f conftest*
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8515 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8516 if test $gcc_cv_decl_char_bit = no; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8518 $as_echo_n "checking number of bits in a byte... " >&6; }
8519 if test "${gcc_cv_c_nbby+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8523 gcc_cv_c_nbby=
8524 while test $i -lt 65; do
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8529 main ()
8531 switch(0) {
8532 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8533 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8536 return 0;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 gcc_cv_c_nbby=$i; break
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 i=`expr $i + 1`
8544 done
8545 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8549 $as_echo "$gcc_cv_c_nbby" >&6; }
8550 if test $gcc_cv_c_nbby = failed; then
8551 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8552 else
8554 cat >>confdefs.h <<_ACEOF
8555 #define CHAR_BIT $gcc_cv_c_nbby
8556 _ACEOF
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8561 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8562 if test "${ac_cv_c_bigendian+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 ac_cv_c_bigendian=unknown
8566 # See if we're dealing with a universal compiler.
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 #ifndef __APPLE_CC__
8570 not a universal capable compiler
8571 #endif
8572 typedef int dummy;
8574 _ACEOF
8575 if ac_fn_c_try_compile "$LINENO"; then :
8577 # Check for potential -arch flags. It is not universal unless
8578 # there are at least two -arch flags with different values.
8579 ac_arch=
8580 ac_prev=
8581 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8582 if test -n "$ac_prev"; then
8583 case $ac_word in
8584 i?86 | x86_64 | ppc | ppc64)
8585 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8586 ac_arch=$ac_word
8587 else
8588 ac_cv_c_bigendian=universal
8589 break
8592 esac
8593 ac_prev=
8594 elif test "x$ac_word" = "x-arch"; then
8595 ac_prev=arch
8597 done
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 if test $ac_cv_c_bigendian = unknown; then
8601 # See if sys/param.h defines the BYTE_ORDER macro.
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <sys/types.h>
8605 #include <sys/param.h>
8608 main ()
8610 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8611 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8612 && LITTLE_ENDIAN)
8613 bogus endian macros
8614 #endif
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/param.h>
8628 main ()
8630 #if BYTE_ORDER != BIG_ENDIAN
8631 not big endian
8632 #endif
8635 return 0;
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 ac_cv_c_bigendian=yes
8640 else
8641 ac_cv_c_bigendian=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 if test $ac_cv_c_bigendian = unknown; then
8648 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <limits.h>
8654 main ()
8656 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8657 bogus endian macros
8658 #endif
8661 return 0;
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 # It does; now see whether it defined to _BIG_ENDIAN or not.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <limits.h>
8671 main ()
8673 #ifndef _BIG_ENDIAN
8674 not big endian
8675 #endif
8678 return 0;
8680 _ACEOF
8681 if ac_fn_c_try_compile "$LINENO"; then :
8682 ac_cv_c_bigendian=yes
8683 else
8684 ac_cv_c_bigendian=no
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 if test $ac_cv_c_bigendian = unknown; then
8691 # Compile a test program.
8692 if test "$cross_compiling" = yes; then :
8693 # Try to guess by grepping values from an object file.
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 short int ascii_mm[] =
8697 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8698 short int ascii_ii[] =
8699 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8700 int use_ascii (int i) {
8701 return ascii_mm[i] + ascii_ii[i];
8703 short int ebcdic_ii[] =
8704 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8705 short int ebcdic_mm[] =
8706 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8707 int use_ebcdic (int i) {
8708 return ebcdic_mm[i] + ebcdic_ii[i];
8710 extern int foo;
8713 main ()
8715 return use_ascii (foo) == use_ebcdic (foo);
8717 return 0;
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8722 ac_cv_c_bigendian=yes
8724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8725 if test "$ac_cv_c_bigendian" = unknown; then
8726 ac_cv_c_bigendian=no
8727 else
8728 # finding both strings is unlikely to happen, but who knows?
8729 ac_cv_c_bigendian=unknown
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 $ac_includes_default
8739 main ()
8742 /* Are we little or big endian? From Harbison&Steele. */
8743 union
8745 long int l;
8746 char c[sizeof (long int)];
8747 } u;
8748 u.l = 1;
8749 return u.c[sizeof (long int) - 1] == 1;
8752 return 0;
8754 _ACEOF
8755 if ac_fn_c_try_run "$LINENO"; then :
8756 ac_cv_c_bigendian=no
8757 else
8758 ac_cv_c_bigendian=yes
8760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8761 conftest.$ac_objext conftest.beam conftest.$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8767 $as_echo "$ac_cv_c_bigendian" >&6; }
8768 case $ac_cv_c_bigendian in #(
8769 yes)
8770 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8771 ;; #(
8773 ;; #(
8774 universal)
8776 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8778 ;; #(
8780 as_fn_error "unknown endianness
8781 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8782 esac
8785 # ----------------------
8786 # Checks for C++ headers
8787 # ----------------------
8789 ac_ext=cpp
8790 ac_cpp='$CXXCPP $CPPFLAGS'
8791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8796 if test -z "$CXXCPP"; then
8797 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 # Double quotes because CXXCPP needs to be expanded
8801 for CXXCPP in "$CXX -E" "/lib/cpp"
8803 ac_preproc_ok=false
8804 for ac_cxx_preproc_warn_flag in '' yes
8806 # Use a header file that comes with gcc, so configuring glibc
8807 # with a fresh cross-compiler works.
8808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809 # <limits.h> exists even on freestanding compilers.
8810 # On the NeXT, cc -E runs the code through the compiler's parser,
8811 # not just through cpp. "Syntax error" is here to catch this case.
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819 Syntax error
8820 _ACEOF
8821 if ac_fn_cxx_try_cpp "$LINENO"; then :
8823 else
8824 # Broken: fails on valid input.
8825 continue
8827 rm -f conftest.err conftest.$ac_ext
8829 # OK, works on sane cases. Now check whether nonexistent headers
8830 # can be detected and how.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <ac_nonexistent.h>
8834 _ACEOF
8835 if ac_fn_cxx_try_cpp "$LINENO"; then :
8836 # Broken: success on invalid input.
8837 continue
8838 else
8839 # Passes both tests.
8840 ac_preproc_ok=:
8841 break
8843 rm -f conftest.err conftest.$ac_ext
8845 done
8846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8847 rm -f conftest.err conftest.$ac_ext
8848 if $ac_preproc_ok; then :
8849 break
8852 done
8853 ac_cv_prog_CXXCPP=$CXXCPP
8856 CXXCPP=$ac_cv_prog_CXXCPP
8857 else
8858 ac_cv_prog_CXXCPP=$CXXCPP
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8861 $as_echo "$CXXCPP" >&6; }
8862 ac_preproc_ok=false
8863 for ac_cxx_preproc_warn_flag in '' yes
8865 # Use a header file that comes with gcc, so configuring glibc
8866 # with a fresh cross-compiler works.
8867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868 # <limits.h> exists even on freestanding compilers.
8869 # On the NeXT, cc -E runs the code through the compiler's parser,
8870 # not just through cpp. "Syntax error" is here to catch this case.
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #ifdef __STDC__
8874 # include <limits.h>
8875 #else
8876 # include <assert.h>
8877 #endif
8878 Syntax error
8879 _ACEOF
8880 if ac_fn_cxx_try_cpp "$LINENO"; then :
8882 else
8883 # Broken: fails on valid input.
8884 continue
8886 rm -f conftest.err conftest.$ac_ext
8888 # OK, works on sane cases. Now check whether nonexistent headers
8889 # can be detected and how.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #include <ac_nonexistent.h>
8893 _ACEOF
8894 if ac_fn_cxx_try_cpp "$LINENO"; then :
8895 # Broken: success on invalid input.
8896 continue
8897 else
8898 # Passes both tests.
8899 ac_preproc_ok=:
8900 break
8902 rm -f conftest.err conftest.$ac_ext
8904 done
8905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8906 rm -f conftest.err conftest.$ac_ext
8907 if $ac_preproc_ok; then :
8909 else
8910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8913 See \`config.log' for more details." >&5
8914 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8915 See \`config.log' for more details." >&2;}; }
8918 ac_ext=c
8919 ac_cpp='$CPP $CPPFLAGS'
8920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925 ac_ext=cpp
8926 ac_cpp='$CXXCPP $CPPFLAGS'
8927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8933 for ac_header in unordered_map
8934 do :
8935 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8936 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8937 cat >>confdefs.h <<_ACEOF
8938 #define HAVE_UNORDERED_MAP 1
8939 _ACEOF
8942 done
8944 for ac_header in tr1/unordered_map
8945 do :
8946 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8947 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8948 cat >>confdefs.h <<_ACEOF
8949 #define HAVE_TR1_UNORDERED_MAP 1
8950 _ACEOF
8953 done
8955 for ac_header in ext/hash_map
8956 do :
8957 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8958 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_EXT_HASH_MAP 1
8961 _ACEOF
8964 done
8967 ac_ext=c
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974 # --------
8975 # Dependency checking.
8976 # --------
8978 ac_ext=cpp
8979 ac_cpp='$CXXCPP $CPPFLAGS'
8980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8984 rm -rf .tst 2>/dev/null
8985 mkdir .tst 2>/dev/null
8986 if test -d .tst; then
8987 am__leading_dot=.
8988 else
8989 am__leading_dot=_
8991 rmdir .tst 2>/dev/null
8993 DEPDIR="${am__leading_dot}deps"
8995 ac_config_commands="$ac_config_commands depdir"
8998 ac_config_commands="$ac_config_commands gccdepdir"
9001 depcc="$CXX" am_compiler_list=
9003 am_depcomp=$ac_aux_dir/depcomp
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9005 $as_echo_n "checking dependency style of $depcc... " >&6; }
9006 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 if test -f "$am_depcomp"; then
9010 # We make a subdir and do the tests there. Otherwise we can end up
9011 # making bogus files that we don't know about and never remove. For
9012 # instance it was reported that on HP-UX the gcc test will end up
9013 # making a dummy file named `D' -- because `-MD' means `put the output
9014 # in D'.
9015 mkdir conftest.dir
9016 # Copy depcomp to subdir because otherwise we won't find it if we're
9017 # using a relative directory.
9018 cp "$am_depcomp" conftest.dir
9019 cd conftest.dir
9020 # We will build objects and dependencies in a subdirectory because
9021 # it helps to detect inapplicable dependency modes. For instance
9022 # both Tru64's cc and ICC support -MD to output dependencies as a
9023 # side effect of compilation, but ICC will put the dependencies in
9024 # the current directory while Tru64 will put them in the object
9025 # directory.
9026 mkdir sub
9028 am_cv_CXX_dependencies_compiler_type=none
9029 if test "$am_compiler_list" = ""; then
9030 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9032 for depmode in $am_compiler_list; do
9033 if test $depmode = none; then break; fi
9035 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9036 # Setup a source with many dependencies, because some compilers
9037 # like to wrap large dependency lists on column 80 (with \), and
9038 # we should not choose a depcomp mode which is confused by this.
9040 # We need to recreate these files for each test, as the compiler may
9041 # overwrite some of them when testing with obscure command lines.
9042 # This happens at least with the AIX C compiler.
9043 : > sub/conftest.c
9044 for i in 1 2 3 4 5 6; do
9045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9047 # Solaris 8's {/usr,}/bin/sh.
9048 touch sub/conftst$i.h
9049 done
9050 echo "include sub/conftest.Po" > confmf
9052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9053 # mode. It turns out that the SunPro C++ compiler does not properly
9054 # handle `-M -o', and we need to detect this.
9055 depcmd="depmode=$depmode \
9056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9059 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9060 if env $depcmd > conftest.err 2>&1 &&
9061 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9062 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9063 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9064 # icc doesn't choke on unknown options, it will just issue warnings
9065 # or remarks (even with -Werror). So we grep stderr for any message
9066 # that says an option was ignored or not supported.
9067 # When given -MP, icc 7.0 and 7.1 complain thusly:
9068 # icc: Command line warning: ignoring option '-M'; no argument required
9069 # The diagnosis changed in icc 8.0:
9070 # icc: Command line remark: option '-MP' not supported
9071 if (grep 'ignoring option' conftest.err ||
9072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9073 am_cv_CXX_dependencies_compiler_type=$depmode
9074 $as_echo "$as_me:$LINENO: success" >&5
9075 break
9078 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9079 sed -e 's/^/| /' < conftest.err >&5
9080 done
9082 cd ..
9083 rm -rf conftest.dir
9084 else
9085 am_cv_CXX_dependencies_compiler_type=none
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9090 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9091 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9092 then as_fn_error "no usable dependency style found" "$LINENO" 5
9093 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9097 ac_ext=c
9098 ac_cpp='$CPP $CPPFLAGS'
9099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9104 # --------
9105 # UNSORTED
9106 # --------
9109 # These libraries may be used by collect2.
9110 # We may need a special search path to get them linked.
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9112 $as_echo_n "checking for collect2 libraries... " >&6; }
9113 if test "${gcc_cv_collect2_libs+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 save_LIBS="$LIBS"
9117 for libs in '' -lld -lmld \
9118 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9119 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9121 LIBS="$libs"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 char ldopen ();
9133 main ()
9135 return ldopen ();
9137 return 0;
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 gcc_cv_collect2_libs="$libs"; break
9143 rm -f core conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 done
9146 LIBS="$save_LIBS"
9147 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9150 $as_echo "$gcc_cv_collect2_libs" >&6; }
9151 case $gcc_cv_collect2_libs in
9152 "none required") ;;
9153 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9154 esac
9157 # When building Ada code on Alpha, we need exc_resume which is usually in
9158 # -lexc. So test for it.
9159 save_LIBS="$LIBS"
9160 LIBS=
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9162 $as_echo_n "checking for library containing exc_resume... " >&6; }
9163 if test "${ac_cv_search_exc_resume+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 ac_func_search_save_LIBS=$LIBS
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 char exc_resume ();
9178 main ()
9180 return exc_resume ();
9182 return 0;
9184 _ACEOF
9185 for ac_lib in '' exc; do
9186 if test -z "$ac_lib"; then
9187 ac_res="none required"
9188 else
9189 ac_res=-l$ac_lib
9190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9192 if ac_fn_c_try_link "$LINENO"; then :
9193 ac_cv_search_exc_resume=$ac_res
9195 rm -f core conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext
9197 if test "${ac_cv_search_exc_resume+set}" = set; then :
9198 break
9200 done
9201 if test "${ac_cv_search_exc_resume+set}" = set; then :
9203 else
9204 ac_cv_search_exc_resume=no
9206 rm conftest.$ac_ext
9207 LIBS=$ac_func_search_save_LIBS
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9210 $as_echo "$ac_cv_search_exc_resume" >&6; }
9211 ac_res=$ac_cv_search_exc_resume
9212 if test "$ac_res" != no; then :
9213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9217 GNAT_LIBEXC="$LIBS"
9218 LIBS="$save_LIBS"
9221 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9222 save_LIBS="$LIBS"
9223 LIBS=
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9225 $as_echo_n "checking for library containing kstat_open... " >&6; }
9226 if test "${ac_cv_search_kstat_open+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_func_search_save_LIBS=$LIBS
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char kstat_open ();
9241 main ()
9243 return kstat_open ();
9245 return 0;
9247 _ACEOF
9248 for ac_lib in '' kstat; do
9249 if test -z "$ac_lib"; then
9250 ac_res="none required"
9251 else
9252 ac_res=-l$ac_lib
9253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 ac_cv_search_kstat_open=$ac_res
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext
9260 if test "${ac_cv_search_kstat_open+set}" = set; then :
9261 break
9263 done
9264 if test "${ac_cv_search_kstat_open+set}" = set; then :
9266 else
9267 ac_cv_search_kstat_open=no
9269 rm conftest.$ac_ext
9270 LIBS=$ac_func_search_save_LIBS
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9273 $as_echo "$ac_cv_search_kstat_open" >&6; }
9274 ac_res=$ac_cv_search_kstat_open
9275 if test "$ac_res" != no; then :
9276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9280 EXTRA_GCC_LIBS="$LIBS"
9281 LIBS="$save_LIBS"
9284 # Some systems put ldexp and frexp in libm instead of libc; assume
9285 # they're both in the same place. jcf-dump needs them.
9286 save_LIBS="$LIBS"
9287 LIBS=
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9289 $as_echo_n "checking for library containing ldexp... " >&6; }
9290 if test "${ac_cv_search_ldexp+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 ac_func_search_save_LIBS=$LIBS
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9297 /* Override any GCC internal prototype to avoid an error.
9298 Use char because int might match the return type of a GCC
9299 builtin and then its argument prototype would still apply. */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 char ldexp ();
9305 main ()
9307 return ldexp ();
9309 return 0;
9311 _ACEOF
9312 for ac_lib in '' m; do
9313 if test -z "$ac_lib"; then
9314 ac_res="none required"
9315 else
9316 ac_res=-l$ac_lib
9317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9319 if ac_fn_c_try_link "$LINENO"; then :
9320 ac_cv_search_ldexp=$ac_res
9322 rm -f core conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext
9324 if test "${ac_cv_search_ldexp+set}" = set; then :
9325 break
9327 done
9328 if test "${ac_cv_search_ldexp+set}" = set; then :
9330 else
9331 ac_cv_search_ldexp=no
9333 rm conftest.$ac_ext
9334 LIBS=$ac_func_search_save_LIBS
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9337 $as_echo "$ac_cv_search_ldexp" >&6; }
9338 ac_res=$ac_cv_search_ldexp
9339 if test "$ac_res" != no; then :
9340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9344 LDEXP_LIB="$LIBS"
9345 LIBS="$save_LIBS"
9348 # Use <inttypes.h> only if it exists,
9349 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9350 # PRId64
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9352 $as_echo_n "checking for inttypes.h... " >&6; }
9353 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #define __STDC_FORMAT_MACROS
9359 #include <sys/types.h>
9360 #include <inttypes.h>
9362 main ()
9364 intmax_t i = -1;
9365 #ifndef PRId64
9366 choke me
9367 #endif
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"; then :
9373 gcc_cv_header_inttypes_h=yes
9374 else
9375 gcc_cv_header_inttypes_h=no
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9381 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9382 if test $gcc_cv_header_inttypes_h = yes; then
9384 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9390 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9391 popen sysconf strsignal getrusage nl_langinfo \
9392 gettimeofday mbstowcs wcswidth mmap setlocale \
9393 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
9394 do :
9395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9397 eval as_val=\$$as_ac_var
9398 if test "x$as_val" = x""yes; then :
9399 cat >>confdefs.h <<_ACEOF
9400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9401 _ACEOF
9404 done
9407 if test x$ac_cv_func_mbstowcs = xyes; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9409 $as_echo_n "checking whether mbstowcs works... " >&6; }
9410 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 if test "$cross_compiling" = yes; then :
9414 gcc_cv_func_mbstowcs_works=yes
9415 else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 #include <stdlib.h>
9419 int main()
9421 mbstowcs(0, "", 0);
9422 return 0;
9424 _ACEOF
9425 if ac_fn_c_try_run "$LINENO"; then :
9426 gcc_cv_func_mbstowcs_works=yes
9427 else
9428 gcc_cv_func_mbstowcs_works=no
9430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9436 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9437 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9439 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9444 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9445 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9447 else
9449 cat >>confdefs.h <<_ACEOF
9450 #define ssize_t int
9451 _ACEOF
9455 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9456 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9458 else
9460 cat >>confdefs.h <<_ACEOF
9461 #define caddr_t char *
9462 _ACEOF
9468 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9469 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9470 gcc_header_sys_mman_h=yes
9471 else
9472 gcc_header_sys_mman_h=no
9475 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9476 if test "x$ac_cv_func_mmap" = x""yes; then :
9477 gcc_func_mmap=yes
9478 else
9479 gcc_func_mmap=no
9482 if test "$gcc_header_sys_mman_h" != yes \
9483 || test "$gcc_func_mmap" != yes; then
9484 gcc_cv_func_mmap_file=no
9485 gcc_cv_func_mmap_dev_zero=no
9486 gcc_cv_func_mmap_anon=no
9487 else
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9489 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9490 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 # Add a system to this blacklist if
9494 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9495 # memory area containing the same data that you'd get if you applied
9496 # read() to the same fd. The only system known to have a problem here
9497 # is VMS, where text files have record structure.
9498 case "$host_os" in
9499 *vms* | ultrix*)
9500 gcc_cv_func_mmap_file=no ;;
9502 gcc_cv_func_mmap_file=yes;;
9503 esac
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9506 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9508 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9509 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 # Add a system to this blacklist if it has mmap() but /dev/zero
9513 # does not exist, or if mmapping /dev/zero does not give anonymous
9514 # zeroed pages with both the following properties:
9515 # 1. If you map N consecutive pages in with one call, and then
9516 # unmap any subset of those pages, the pages that were not
9517 # explicitly unmapped remain accessible.
9518 # 2. If you map two adjacent blocks of memory and then unmap them
9519 # both at once, they must both go away.
9520 # Systems known to be in this category are Windows (all variants),
9521 # VMS, and Darwin.
9522 case "$host_os" in
9523 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9524 gcc_cv_func_mmap_dev_zero=no ;;
9526 gcc_cv_func_mmap_dev_zero=yes;;
9527 esac
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9530 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9532 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9534 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9535 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 #include <sys/types.h>
9541 #include <sys/mman.h>
9542 #include <unistd.h>
9544 #ifndef MAP_ANONYMOUS
9545 #define MAP_ANONYMOUS MAP_ANON
9546 #endif
9549 main ()
9551 int n = MAP_ANONYMOUS;
9553 return 0;
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 gcc_cv_decl_map_anon=yes
9558 else
9559 gcc_cv_decl_map_anon=no
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9564 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9566 if test $gcc_cv_decl_map_anon = no; then
9567 gcc_cv_func_mmap_anon=no
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9570 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9571 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9575 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9576 # doesn't give anonymous zeroed pages with the same properties listed
9577 # above for use of /dev/zero.
9578 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9579 case "$host_os" in
9580 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9581 gcc_cv_func_mmap_anon=no ;;
9583 gcc_cv_func_mmap_anon=yes;;
9584 esac
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9587 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9591 if test $gcc_cv_func_mmap_file = yes; then
9593 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9596 if test $gcc_cv_func_mmap_dev_zero = yes; then
9598 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9601 if test $gcc_cv_func_mmap_anon = yes; then
9603 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9608 case "${host}" in
9609 *-*-*vms*)
9610 # Under VMS, vfork works very differently than on Unix. The standard test
9611 # won't work, and it isn't easily adaptable. It makes more sense to
9612 # just force it.
9613 ac_cv_func_vfork_works=yes
9615 esac
9616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9617 if test "x$ac_cv_type_pid_t" = x""yes; then :
9619 else
9621 cat >>confdefs.h <<_ACEOF
9622 #define pid_t int
9623 _ACEOF
9627 for ac_header in vfork.h
9628 do :
9629 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9630 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9631 cat >>confdefs.h <<_ACEOF
9632 #define HAVE_VFORK_H 1
9633 _ACEOF
9636 done
9638 for ac_func in fork vfork
9639 do :
9640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9642 eval as_val=\$$as_ac_var
9643 if test "x$as_val" = x""yes; then :
9644 cat >>confdefs.h <<_ACEOF
9645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9646 _ACEOF
9649 done
9651 if test "x$ac_cv_func_fork" = xyes; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9653 $as_echo_n "checking for working fork... " >&6; }
9654 if test "${ac_cv_func_fork_works+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test "$cross_compiling" = yes; then :
9658 ac_cv_func_fork_works=cross
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 $ac_includes_default
9664 main ()
9667 /* By Ruediger Kuhlmann. */
9668 return fork () < 0;
9671 return 0;
9673 _ACEOF
9674 if ac_fn_c_try_run "$LINENO"; then :
9675 ac_cv_func_fork_works=yes
9676 else
9677 ac_cv_func_fork_works=no
9679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9680 conftest.$ac_objext conftest.beam conftest.$ac_ext
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9685 $as_echo "$ac_cv_func_fork_works" >&6; }
9687 else
9688 ac_cv_func_fork_works=$ac_cv_func_fork
9690 if test "x$ac_cv_func_fork_works" = xcross; then
9691 case $host in
9692 *-*-amigaos* | *-*-msdosdjgpp*)
9693 # Override, as these systems have only a dummy fork() stub
9694 ac_cv_func_fork_works=no
9697 ac_cv_func_fork_works=yes
9699 esac
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9701 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9703 ac_cv_func_vfork_works=$ac_cv_func_vfork
9704 if test "x$ac_cv_func_vfork" = xyes; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9706 $as_echo_n "checking for working vfork... " >&6; }
9707 if test "${ac_cv_func_vfork_works+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test "$cross_compiling" = yes; then :
9711 ac_cv_func_vfork_works=cross
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 /* Thanks to Paul Eggert for this test. */
9716 $ac_includes_default
9717 #include <sys/wait.h>
9718 #ifdef HAVE_VFORK_H
9719 # include <vfork.h>
9720 #endif
9721 /* On some sparc systems, changes by the child to local and incoming
9722 argument registers are propagated back to the parent. The compiler
9723 is told about this with #include <vfork.h>, but some compilers
9724 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9725 static variable whose address is put into a register that is
9726 clobbered by the vfork. */
9727 static void
9728 #ifdef __cplusplus
9729 sparc_address_test (int arg)
9730 # else
9731 sparc_address_test (arg) int arg;
9732 #endif
9734 static pid_t child;
9735 if (!child) {
9736 child = vfork ();
9737 if (child < 0) {
9738 perror ("vfork");
9739 _exit(2);
9741 if (!child) {
9742 arg = getpid();
9743 write(-1, "", 0);
9744 _exit (arg);
9750 main ()
9752 pid_t parent = getpid ();
9753 pid_t child;
9755 sparc_address_test (0);
9757 child = vfork ();
9759 if (child == 0) {
9760 /* Here is another test for sparc vfork register problems. This
9761 test uses lots of local variables, at least as many local
9762 variables as main has allocated so far including compiler
9763 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9764 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9765 reuse the register of parent for one of the local variables,
9766 since it will think that parent can't possibly be used any more
9767 in this routine. Assigning to the local variable will thus
9768 munge parent in the parent process. */
9769 pid_t
9770 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9771 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9772 /* Convince the compiler that p..p7 are live; otherwise, it might
9773 use the same hardware register for all 8 local variables. */
9774 if (p != p1 || p != p2 || p != p3 || p != p4
9775 || p != p5 || p != p6 || p != p7)
9776 _exit(1);
9778 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9779 from child file descriptors. If the child closes a descriptor
9780 before it execs or exits, this munges the parent's descriptor
9781 as well. Test for this by closing stdout in the child. */
9782 _exit(close(fileno(stdout)) != 0);
9783 } else {
9784 int status;
9785 struct stat st;
9787 while (wait(&status) != child)
9789 return (
9790 /* Was there some problem with vforking? */
9791 child < 0
9793 /* Did the child fail? (This shouldn't happen.) */
9794 || status
9796 /* Did the vfork/compiler bug occur? */
9797 || parent != getpid()
9799 /* Did the file descriptor bug occur? */
9800 || fstat(fileno(stdout), &st) != 0
9804 _ACEOF
9805 if ac_fn_c_try_run "$LINENO"; then :
9806 ac_cv_func_vfork_works=yes
9807 else
9808 ac_cv_func_vfork_works=no
9810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9811 conftest.$ac_objext conftest.beam conftest.$ac_ext
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9816 $as_echo "$ac_cv_func_vfork_works" >&6; }
9819 if test "x$ac_cv_func_fork_works" = xcross; then
9820 ac_cv_func_vfork_works=$ac_cv_func_vfork
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9822 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9825 if test "x$ac_cv_func_vfork_works" = xyes; then
9827 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9829 else
9831 $as_echo "#define vfork fork" >>confdefs.h
9834 if test "x$ac_cv_func_fork_works" = xyes; then
9836 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9841 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9842 # iconv() prototype.
9843 ac_ext=cpp
9844 ac_cpp='$CXXCPP $CPPFLAGS'
9845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9850 if test "X$prefix" = "XNONE"; then
9851 acl_final_prefix="$ac_default_prefix"
9852 else
9853 acl_final_prefix="$prefix"
9855 if test "X$exec_prefix" = "XNONE"; then
9856 acl_final_exec_prefix='${prefix}'
9857 else
9858 acl_final_exec_prefix="$exec_prefix"
9860 acl_save_prefix="$prefix"
9861 prefix="$acl_final_prefix"
9862 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9863 prefix="$acl_save_prefix"
9866 # Check whether --with-gnu-ld was given.
9867 if test "${with_gnu_ld+set}" = set; then :
9868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9869 else
9870 with_gnu_ld=no
9873 # Prepare PATH_SEPARATOR.
9874 # The user is always right.
9875 if test "${PATH_SEPARATOR+set}" != set; then
9876 echo "#! /bin/sh" >conf$$.sh
9877 echo "exit 0" >>conf$$.sh
9878 chmod +x conf$$.sh
9879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9880 PATH_SEPARATOR=';'
9881 else
9882 PATH_SEPARATOR=:
9884 rm -f conf$$.sh
9886 ac_prog=ld
9887 if test "$GCC" = yes; then
9888 # Check if gcc -print-prog-name=ld gives a path.
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9890 $as_echo_n "checking for ld used by GCC... " >&6; }
9891 case $host in
9892 *-*-mingw*)
9893 # gcc leaves a trailing carriage return which upsets mingw
9894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9897 esac
9898 case $ac_prog in
9899 # Accept absolute paths.
9900 [\\/]* | [A-Za-z]:[\\/]*)
9901 re_direlt='/[^/][^/]*/\.\./'
9902 # Canonicalize the path of ld
9903 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9906 done
9907 test -z "$LD" && LD="$ac_prog"
9910 # If it fails, then pretend we aren't using GCC.
9911 ac_prog=ld
9914 # If it is relative, then search for the first ld in PATH.
9915 with_gnu_ld=unknown
9917 esac
9918 elif test "$with_gnu_ld" = yes; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9920 $as_echo_n "checking for GNU ld... " >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9923 $as_echo_n "checking for non-GNU ld... " >&6; }
9925 if test "${acl_cv_path_LD+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 if test -z "$LD"; then
9929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9930 for ac_dir in $PATH; do
9931 test -z "$ac_dir" && ac_dir=.
9932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9933 acl_cv_path_LD="$ac_dir/$ac_prog"
9934 # Check to see if the program is GNU ld. I'd rather use --version,
9935 # but apparently some GNU ld's only accept -v.
9936 # Break only if it was the GNU/non-GNU ld that we prefer.
9937 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9938 test "$with_gnu_ld" != no && break
9939 else
9940 test "$with_gnu_ld" != yes && break
9943 done
9944 IFS="$ac_save_ifs"
9945 else
9946 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9950 LD="$acl_cv_path_LD"
9951 if test -n "$LD"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9953 $as_echo "$LD" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9958 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9961 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9965 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9966 acl_cv_prog_gnu_ld=yes
9967 else
9968 acl_cv_prog_gnu_ld=no
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9972 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9973 with_gnu_ld=$acl_cv_prog_gnu_ld
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9978 $as_echo_n "checking for shared library run path origin... " >&6; }
9979 if test "${acl_cv_rpath+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9983 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9984 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9985 . ./conftest.sh
9986 rm -f ./conftest.sh
9987 acl_cv_rpath=done
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9991 $as_echo "$acl_cv_rpath" >&6; }
9992 wl="$acl_cv_wl"
9993 libext="$acl_cv_libext"
9994 shlibext="$acl_cv_shlibext"
9995 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9996 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9997 hardcode_direct="$acl_cv_hardcode_direct"
9998 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9999 # Check whether --enable-rpath was given.
10000 if test "${enable_rpath+set}" = set; then :
10001 enableval=$enable_rpath; :
10002 else
10003 enable_rpath=yes
10013 use_additional=yes
10015 acl_save_prefix="$prefix"
10016 prefix="$acl_final_prefix"
10017 acl_save_exec_prefix="$exec_prefix"
10018 exec_prefix="$acl_final_exec_prefix"
10020 eval additional_includedir=\"$includedir\"
10021 eval additional_libdir=\"$libdir\"
10023 exec_prefix="$acl_save_exec_prefix"
10024 prefix="$acl_save_prefix"
10027 # Check whether --with-libiconv-prefix was given.
10028 if test "${with_libiconv_prefix+set}" = set; then :
10029 withval=$with_libiconv_prefix;
10030 if test "X$withval" = "Xno"; then
10031 use_additional=no
10032 else
10033 if test "X$withval" = "X"; then
10035 acl_save_prefix="$prefix"
10036 prefix="$acl_final_prefix"
10037 acl_save_exec_prefix="$exec_prefix"
10038 exec_prefix="$acl_final_exec_prefix"
10040 eval additional_includedir=\"$includedir\"
10041 eval additional_libdir=\"$libdir\"
10043 exec_prefix="$acl_save_exec_prefix"
10044 prefix="$acl_save_prefix"
10046 else
10047 additional_includedir="$withval/include"
10048 additional_libdir="$withval/lib"
10054 LIBICONV=
10055 LTLIBICONV=
10056 INCICONV=
10057 rpathdirs=
10058 ltrpathdirs=
10059 names_already_handled=
10060 names_next_round='iconv '
10061 while test -n "$names_next_round"; do
10062 names_this_round="$names_next_round"
10063 names_next_round=
10064 for name in $names_this_round; do
10065 already_handled=
10066 for n in $names_already_handled; do
10067 if test "$n" = "$name"; then
10068 already_handled=yes
10069 break
10071 done
10072 if test -z "$already_handled"; then
10073 names_already_handled="$names_already_handled $name"
10074 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10075 eval value=\"\$HAVE_LIB$uppername\"
10076 if test -n "$value"; then
10077 if test "$value" = yes; then
10078 eval value=\"\$LIB$uppername\"
10079 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10080 eval value=\"\$LTLIB$uppername\"
10081 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10082 else
10085 else
10086 found_dir=
10087 found_la=
10088 found_so=
10089 found_a=
10090 if test $use_additional = yes; then
10091 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10092 found_dir="$additional_libdir"
10093 found_so="$additional_libdir/lib$name.$shlibext"
10094 if test -f "$additional_libdir/lib$name.la"; then
10095 found_la="$additional_libdir/lib$name.la"
10097 else
10098 if test -f "$additional_libdir/lib$name.$libext"; then
10099 found_dir="$additional_libdir"
10100 found_a="$additional_libdir/lib$name.$libext"
10101 if test -f "$additional_libdir/lib$name.la"; then
10102 found_la="$additional_libdir/lib$name.la"
10107 if test "X$found_dir" = "X"; then
10108 for x in $LDFLAGS $LTLIBICONV; do
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 acl_save_exec_prefix="$exec_prefix"
10113 exec_prefix="$acl_final_exec_prefix"
10114 eval x=\"$x\"
10115 exec_prefix="$acl_save_exec_prefix"
10116 prefix="$acl_save_prefix"
10118 case "$x" in
10119 -L*)
10120 dir=`echo "X$x" | sed -e 's/^X-L//'`
10121 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10122 found_dir="$dir"
10123 found_so="$dir/lib$name.$shlibext"
10124 if test -f "$dir/lib$name.la"; then
10125 found_la="$dir/lib$name.la"
10127 else
10128 if test -f "$dir/lib$name.$libext"; then
10129 found_dir="$dir"
10130 found_a="$dir/lib$name.$libext"
10131 if test -f "$dir/lib$name.la"; then
10132 found_la="$dir/lib$name.la"
10137 esac
10138 if test "X$found_dir" != "X"; then
10139 break
10141 done
10143 if test "X$found_dir" != "X"; then
10144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10145 if test "X$found_so" != "X"; then
10146 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10148 else
10149 haveit=
10150 for x in $ltrpathdirs; do
10151 if test "X$x" = "X$found_dir"; then
10152 haveit=yes
10153 break
10155 done
10156 if test -z "$haveit"; then
10157 ltrpathdirs="$ltrpathdirs $found_dir"
10159 if test "$hardcode_direct" = yes; then
10160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10161 else
10162 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10164 haveit=
10165 for x in $rpathdirs; do
10166 if test "X$x" = "X$found_dir"; then
10167 haveit=yes
10168 break
10170 done
10171 if test -z "$haveit"; then
10172 rpathdirs="$rpathdirs $found_dir"
10174 else
10175 haveit=
10176 for x in $LDFLAGS $LIBICONV; do
10178 acl_save_prefix="$prefix"
10179 prefix="$acl_final_prefix"
10180 acl_save_exec_prefix="$exec_prefix"
10181 exec_prefix="$acl_final_exec_prefix"
10182 eval x=\"$x\"
10183 exec_prefix="$acl_save_exec_prefix"
10184 prefix="$acl_save_prefix"
10186 if test "X$x" = "X-L$found_dir"; then
10187 haveit=yes
10188 break
10190 done
10191 if test -z "$haveit"; then
10192 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10194 if test "$hardcode_minus_L" != no; then
10195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10196 else
10197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10202 else
10203 if test "X$found_a" != "X"; then
10204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10205 else
10206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10209 additional_includedir=
10210 case "$found_dir" in
10211 */lib | */lib/)
10212 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10213 additional_includedir="$basedir/include"
10215 esac
10216 if test "X$additional_includedir" != "X"; then
10217 if test "X$additional_includedir" != "X/usr/include"; then
10218 haveit=
10219 if test "X$additional_includedir" = "X/usr/local/include"; then
10220 if test -n "$GCC"; then
10221 case $host_os in
10222 linux*) haveit=yes;;
10223 esac
10226 if test -z "$haveit"; then
10227 for x in $CPPFLAGS $INCICONV; do
10229 acl_save_prefix="$prefix"
10230 prefix="$acl_final_prefix"
10231 acl_save_exec_prefix="$exec_prefix"
10232 exec_prefix="$acl_final_exec_prefix"
10233 eval x=\"$x\"
10234 exec_prefix="$acl_save_exec_prefix"
10235 prefix="$acl_save_prefix"
10237 if test "X$x" = "X-I$additional_includedir"; then
10238 haveit=yes
10239 break
10241 done
10242 if test -z "$haveit"; then
10243 if test -d "$additional_includedir"; then
10244 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10250 if test -n "$found_la"; then
10251 save_libdir="$libdir"
10252 case "$found_la" in
10253 */* | *\\*) . "$found_la" ;;
10254 *) . "./$found_la" ;;
10255 esac
10256 libdir="$save_libdir"
10257 for dep in $dependency_libs; do
10258 case "$dep" in
10259 -L*)
10260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10261 if test "X$additional_libdir" != "X/usr/lib"; then
10262 haveit=
10263 if test "X$additional_libdir" = "X/usr/local/lib"; then
10264 if test -n "$GCC"; then
10265 case $host_os in
10266 linux*) haveit=yes;;
10267 esac
10270 if test -z "$haveit"; then
10271 haveit=
10272 for x in $LDFLAGS $LIBICONV; do
10274 acl_save_prefix="$prefix"
10275 prefix="$acl_final_prefix"
10276 acl_save_exec_prefix="$exec_prefix"
10277 exec_prefix="$acl_final_exec_prefix"
10278 eval x=\"$x\"
10279 exec_prefix="$acl_save_exec_prefix"
10280 prefix="$acl_save_prefix"
10282 if test "X$x" = "X-L$additional_libdir"; then
10283 haveit=yes
10284 break
10286 done
10287 if test -z "$haveit"; then
10288 if test -d "$additional_libdir"; then
10289 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10292 haveit=
10293 for x in $LDFLAGS $LTLIBICONV; do
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10299 eval x=\"$x\"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10303 if test "X$x" = "X-L$additional_libdir"; then
10304 haveit=yes
10305 break
10307 done
10308 if test -z "$haveit"; then
10309 if test -d "$additional_libdir"; then
10310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10316 -R*)
10317 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10318 if test "$enable_rpath" != no; then
10319 haveit=
10320 for x in $rpathdirs; do
10321 if test "X$x" = "X$dir"; then
10322 haveit=yes
10323 break
10325 done
10326 if test -z "$haveit"; then
10327 rpathdirs="$rpathdirs $dir"
10329 haveit=
10330 for x in $ltrpathdirs; do
10331 if test "X$x" = "X$dir"; then
10332 haveit=yes
10333 break
10335 done
10336 if test -z "$haveit"; then
10337 ltrpathdirs="$ltrpathdirs $dir"
10341 -l*)
10342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10344 *.la)
10345 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10348 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10351 esac
10352 done
10354 else
10355 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10360 done
10361 done
10362 if test "X$rpathdirs" != "X"; then
10363 if test -n "$hardcode_libdir_separator"; then
10364 alldirs=
10365 for found_dir in $rpathdirs; do
10366 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10367 done
10368 acl_save_libdir="$libdir"
10369 libdir="$alldirs"
10370 eval flag=\"$hardcode_libdir_flag_spec\"
10371 libdir="$acl_save_libdir"
10372 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10373 else
10374 for found_dir in $rpathdirs; do
10375 acl_save_libdir="$libdir"
10376 libdir="$found_dir"
10377 eval flag=\"$hardcode_libdir_flag_spec\"
10378 libdir="$acl_save_libdir"
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10380 done
10383 if test "X$ltrpathdirs" != "X"; then
10384 for found_dir in $ltrpathdirs; do
10385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10386 done
10395 am_save_CPPFLAGS="$CPPFLAGS"
10397 for element in $INCICONV; do
10398 haveit=
10399 for x in $CPPFLAGS; do
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10405 eval x=\"$x\"
10406 exec_prefix="$acl_save_exec_prefix"
10407 prefix="$acl_save_prefix"
10409 if test "X$x" = "X$element"; then
10410 haveit=yes
10411 break
10413 done
10414 if test -z "$haveit"; then
10415 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10417 done
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10421 $as_echo_n "checking for iconv... " >&6; }
10422 if test "${am_cv_func_iconv+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10426 am_cv_func_iconv="no, consider installing GNU libiconv"
10427 am_cv_lib_iconv=no
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #include <stdlib.h>
10431 #include <iconv.h>
10433 main ()
10435 iconv_t cd = iconv_open("","");
10436 iconv(cd,NULL,NULL,NULL,NULL);
10437 iconv_close(cd);
10439 return 0;
10441 _ACEOF
10442 if ac_fn_cxx_try_link "$LINENO"; then :
10443 am_cv_func_iconv=yes
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 if test "$am_cv_func_iconv" != yes; then
10448 am_save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBICONV"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #include <stdlib.h>
10453 #include <iconv.h>
10455 main ()
10457 iconv_t cd = iconv_open("","");
10458 iconv(cd,NULL,NULL,NULL,NULL);
10459 iconv_close(cd);
10461 return 0;
10463 _ACEOF
10464 if ac_fn_cxx_try_link "$LINENO"; then :
10465 am_cv_lib_iconv=yes
10466 am_cv_func_iconv=yes
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS="$am_save_LIBS"
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10475 $as_echo "$am_cv_func_iconv" >&6; }
10476 if test "$am_cv_func_iconv" = yes; then
10478 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10481 if test "$am_cv_lib_iconv" = yes; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10483 $as_echo_n "checking how to link with libiconv... " >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10485 $as_echo "$LIBICONV" >&6; }
10486 else
10487 CPPFLAGS="$am_save_CPPFLAGS"
10488 LIBICONV=
10489 LTLIBICONV=
10494 if test "$am_cv_func_iconv" = yes; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10496 $as_echo_n "checking for iconv declaration... " >&6; }
10497 if test "${am_cv_proto_iconv+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10504 #include <stdlib.h>
10505 #include <iconv.h>
10506 extern
10507 #ifdef __cplusplus
10509 #endif
10510 #if defined(__STDC__) || defined(__cplusplus)
10511 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10512 #else
10513 size_t iconv();
10514 #endif
10517 main ()
10521 return 0;
10523 _ACEOF
10524 if ac_fn_cxx_try_compile "$LINENO"; then :
10525 am_cv_proto_iconv_arg1=""
10526 else
10527 am_cv_proto_iconv_arg1="const"
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 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);"
10533 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10535 }$am_cv_proto_iconv" >&5
10536 $as_echo "${ac_t:-
10537 }$am_cv_proto_iconv" >&6; }
10539 cat >>confdefs.h <<_ACEOF
10540 #define ICONV_CONST $am_cv_proto_iconv_arg1
10541 _ACEOF
10545 ac_ext=c
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10552 # Until we have in-tree GNU iconv:
10553 LIBICONV_DEP=
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10558 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10559 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 #include <locale.h>
10566 main ()
10568 return LC_MESSAGES
10570 return 0;
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 am_cv_val_LC_MESSAGES=yes
10575 else
10576 am_cv_val_LC_MESSAGES=no
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10582 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10583 if test $am_cv_val_LC_MESSAGES = yes; then
10585 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10592 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10593 if test "${am_cv_langinfo_codeset+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598 #include <langinfo.h>
10600 main ()
10602 char* cs = nl_langinfo(CODESET);
10604 return 0;
10606 _ACEOF
10607 if ac_fn_c_try_link "$LINENO"; then :
10608 am_cv_langinfo_codeset=yes
10609 else
10610 am_cv_langinfo_codeset=no
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10617 $as_echo "$am_cv_langinfo_codeset" >&6; }
10618 if test $am_cv_langinfo_codeset = yes; then
10620 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10625 # We will need to find libiberty.h and ansidecl.h
10626 saved_CFLAGS="$CFLAGS"
10627 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10628 saved_CXXFLAGS="$CXXFLAGS"
10629 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10630 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10631 stpcpy strnlen strsignal strstr strverscmp \
10632 strtol strtoul strtoll strtoull \
10633 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10634 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
10636 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10638 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10639 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 #undef $ac_tr_decl
10645 #define $ac_tr_decl 1
10647 #include "ansidecl.h"
10648 #include "system.h"
10651 main ()
10653 #ifndef $ac_func
10654 char *(*pfn) = (char *(*)) $ac_func ;
10655 #endif
10657 return 0;
10659 _ACEOF
10660 if ac_fn_c_try_compile "$LINENO"; then :
10661 eval "gcc_cv_have_decl_$ac_func=yes"
10662 else
10663 eval "gcc_cv_have_decl_$ac_func=no"
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10671 #define $ac_tr_decl 1
10672 _ACEOF
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10677 #define $ac_tr_decl 0
10678 _ACEOF
10682 done
10685 for ac_func in getrlimit setrlimit getrusage
10687 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10689 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10690 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #undef $ac_tr_decl
10696 #define $ac_tr_decl 1
10698 #include "ansidecl.h"
10699 #include "system.h"
10700 #ifdef HAVE_SYS_RESOURCE_H
10701 #include <sys/resource.h>
10702 #endif
10706 main ()
10708 #ifndef $ac_func
10709 char *(*pfn) = (char *(*)) $ac_func ;
10710 #endif
10712 return 0;
10714 _ACEOF
10715 if ac_fn_c_try_compile "$LINENO"; then :
10716 eval "gcc_cv_have_decl_$ac_func=yes"
10717 else
10718 eval "gcc_cv_have_decl_$ac_func=no"
10720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10725 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10726 #define $ac_tr_decl 1
10727 _ACEOF
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10732 #define $ac_tr_decl 0
10733 _ACEOF
10737 done
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10743 #include "ansidecl.h"
10744 #include "system.h"
10745 #ifdef HAVE_SYS_RESOURCE_H
10746 #include <sys/resource.h>
10747 #endif
10750 main ()
10752 rlim_t l = 0;
10754 return 0;
10756 _ACEOF
10757 if ac_fn_c_try_compile "$LINENO"; then :
10759 else
10761 $as_echo "#define rlim_t long" >>confdefs.h
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10767 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10768 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10769 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10770 for ac_func in ldgetname
10772 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10774 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10775 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #undef $ac_tr_decl
10781 #define $ac_tr_decl 1
10783 #include "ansidecl.h"
10784 #include "system.h"
10785 #ifdef HAVE_LDFCN_H
10786 #undef FREAD
10787 #undef FWRITE
10788 #include <ldfcn.h>
10789 #endif
10793 main ()
10795 #ifndef $ac_func
10796 char *(*pfn) = (char *(*)) $ac_func ;
10797 #endif
10799 return 0;
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803 eval "gcc_cv_have_decl_$ac_func=yes"
10804 else
10805 eval "gcc_cv_have_decl_$ac_func=no"
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10813 #define $ac_tr_decl 1
10814 _ACEOF
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10819 #define $ac_tr_decl 0
10820 _ACEOF
10824 done
10827 for ac_func in times
10829 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10831 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10832 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #undef $ac_tr_decl
10838 #define $ac_tr_decl 1
10840 #include "ansidecl.h"
10841 #include "system.h"
10842 #ifdef HAVE_SYS_TIMES_H
10843 #include <sys/times.h>
10844 #endif
10848 main ()
10850 #ifndef $ac_func
10851 char *(*pfn) = (char *(*)) $ac_func ;
10852 #endif
10854 return 0;
10856 _ACEOF
10857 if ac_fn_c_try_compile "$LINENO"; then :
10858 eval "gcc_cv_have_decl_$ac_func=yes"
10859 else
10860 eval "gcc_cv_have_decl_$ac_func=no"
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10867 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10868 #define $ac_tr_decl 1
10869 _ACEOF
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10874 #define $ac_tr_decl 0
10875 _ACEOF
10879 done
10882 for ac_func in sigaltstack
10884 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10886 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10887 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #undef $ac_tr_decl
10893 #define $ac_tr_decl 1
10895 #include "ansidecl.h"
10896 #include "system.h"
10897 #include <signal.h>
10901 main ()
10903 #ifndef $ac_func
10904 char *(*pfn) = (char *(*)) $ac_func ;
10905 #endif
10907 return 0;
10909 _ACEOF
10910 if ac_fn_c_try_compile "$LINENO"; then :
10911 eval "gcc_cv_have_decl_$ac_func=yes"
10912 else
10913 eval "gcc_cv_have_decl_$ac_func=no"
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 1
10922 _ACEOF
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10927 #define $ac_tr_decl 0
10928 _ACEOF
10932 done
10935 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10936 # prototype.
10937 ac_ext=cpp
10938 ac_cpp='$CXXCPP $CPPFLAGS'
10939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10943 for ac_func in madvise
10945 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10947 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10948 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 #undef $ac_tr_decl
10954 #define $ac_tr_decl 1
10956 #include "ansidecl.h"
10957 #include "system.h"
10961 main ()
10963 #ifndef $ac_func
10964 char *(*pfn) = (char *(*)) $ac_func ;
10965 #endif
10967 return 0;
10969 _ACEOF
10970 if ac_fn_cxx_try_compile "$LINENO"; then :
10971 eval "gcc_cv_have_decl_$ac_func=yes"
10972 else
10973 eval "gcc_cv_have_decl_$ac_func=no"
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10981 #define $ac_tr_decl 1
10982 _ACEOF
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10987 #define $ac_tr_decl 0
10988 _ACEOF
10992 done
10994 ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001 # More time-related stuff.
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11003 $as_echo_n "checking for struct tms... " >&6; }
11004 if test "${ac_cv_struct_tms+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11011 #include "ansidecl.h"
11012 #include "system.h"
11013 #ifdef HAVE_SYS_TIMES_H
11014 #include <sys/times.h>
11015 #endif
11018 main ()
11020 struct tms tms;
11022 return 0;
11024 _ACEOF
11025 if ac_fn_c_try_compile "$LINENO"; then :
11026 ac_cv_struct_tms=yes
11027 else
11028 ac_cv_struct_tms=no
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11033 $as_echo "$ac_cv_struct_tms" >&6; }
11034 if test $ac_cv_struct_tms = yes; then
11036 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11040 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11041 # revisit after autoconf 2.50.
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11043 $as_echo_n "checking for clock_t... " >&6; }
11044 if test "${gcc_cv_type_clock_t+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 #include "ansidecl.h"
11052 #include "system.h"
11055 main ()
11057 clock_t x;
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_compile "$LINENO"; then :
11063 gcc_cv_type_clock_t=yes
11064 else
11065 gcc_cv_type_clock_t=no
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11070 $as_echo "$gcc_cv_type_clock_t" >&6; }
11071 if test $gcc_cv_type_clock_t = yes; then
11073 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11077 # Check if F_SETLKW is supported by fcntl.
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11079 $as_echo_n "checking for F_SETLKW... " >&6; }
11080 if test "${ac_cv_f_setlkw+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 #include <fcntl.h>
11089 main ()
11092 struct flock fl;
11093 fl.l_whence = 0;
11094 fl.l_start = 0;
11095 fl.l_len = 0;
11096 fl.l_pid = 0;
11097 return fcntl (1, F_SETLKW, &fl);
11099 return 0;
11101 _ACEOF
11102 if ac_fn_c_try_compile "$LINENO"; then :
11103 ac_cv_f_setlkw=yes
11104 else
11105 ac_cv_f_setlkw=no
11107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11110 $as_echo "$ac_cv_f_setlkw" >&6; }
11111 if test $ac_cv_f_setlkw = yes; then
11113 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11117 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11118 CFLAGS="$saved_CFLAGS"
11119 CXXFLAGS="$saved_CXXFLAGS"
11121 # mkdir takes a single argument on some systems.
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11123 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11124 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11130 #include <sys/types.h>
11131 #ifdef HAVE_SYS_STAT_H
11132 # include <sys/stat.h>
11133 #endif
11134 #ifdef HAVE_UNISTD_H
11135 # include <unistd.h>
11136 #endif
11137 #ifdef HAVE_DIRECT_H
11138 # include <direct.h>
11139 #endif
11141 main ()
11143 mkdir ("foo", 0);
11145 return 0;
11147 _ACEOF
11148 if ac_fn_c_try_compile "$LINENO"; then :
11149 gcc_cv_mkdir_takes_one_arg=no
11150 else
11151 gcc_cv_mkdir_takes_one_arg=yes
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11156 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11157 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11159 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11164 # File extensions
11165 manext='.1'
11166 objext='.o'
11170 # With Setjmp/Longjmp based exception handling.
11171 # Check whether --enable-sjlj-exceptions was given.
11172 if test "${enable_sjlj_exceptions+set}" = set; then :
11173 enableval=$enable_sjlj_exceptions; case $target in
11174 *-*-hpux10*)
11175 if test $enableval != yes; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11177 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11178 enableval=yes
11181 esac
11182 force_sjlj_exceptions=yes
11183 else
11184 case $target in
11185 *-*-hpux10*)
11186 force_sjlj_exceptions=yes
11187 enableval=yes
11189 lm32*-*-*)
11190 force_sjlj_exceptions=yes
11191 enableval=yes
11194 force_sjlj_exceptions=no
11196 esac
11199 if test $force_sjlj_exceptions = yes; then
11200 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11202 cat >>confdefs.h <<_ACEOF
11203 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11204 _ACEOF
11208 # --------------------------------------------------------
11209 # Build, host, and target specific configuration fragments
11210 # --------------------------------------------------------
11212 # Collect build-machine-specific information.
11213 . ${srcdir}/config.build
11215 # Collect host-machine-specific information.
11216 . ${srcdir}/config.host
11218 target_gtfiles=
11220 # Collect target-machine-specific information.
11221 . ${srcdir}/config.gcc
11223 extra_objs="${host_extra_objs} ${extra_objs}"
11224 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11226 # Default the target-machine variables that were not explicitly set.
11227 if test x"$tm_file" = x
11228 then tm_file=$cpu_type/$cpu_type.h; fi
11230 if test x"$extra_headers" = x
11231 then extra_headers=; fi
11233 if test x$md_file = x
11234 then md_file=$cpu_type/$cpu_type.md; fi
11236 if test x$out_file = x
11237 then out_file=$cpu_type/$cpu_type.c; fi
11239 if test x"$tmake_file" = x
11240 then tmake_file=$cpu_type/t-$cpu_type
11243 # Support --enable-initfini-array.
11244 if test x$enable_initfini_array != xno; then
11245 tm_file="${tm_file} initfini-array.h"
11248 if test x"$dwarf2" = xyes
11249 then tm_file="$tm_file tm-dwarf2.h"
11252 # Say what files are being used for the output code and MD file.
11253 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11254 echo "Using \`$srcdir/config/$md_file' as machine description file."
11256 # If any of the xm_file variables contain nonexistent files, warn
11257 # about them and drop them.
11260 for x in $build_xm_file; do
11261 if test -f $srcdir/config/$x
11262 then bx="$bx $x"
11263 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11264 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11266 done
11267 build_xm_file="$bx"
11270 for x in $host_xm_file; do
11271 if test -f $srcdir/config/$x
11272 then hx="$hx $x"
11273 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11274 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11276 done
11277 host_xm_file="$hx"
11280 for x in $xm_file; do
11281 if test -f $srcdir/config/$x
11282 then tx="$tx $x"
11283 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11284 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11286 done
11287 xm_file="$tx"
11289 count=a
11290 for f in $tm_file; do
11291 count=${count}x
11292 done
11293 if test $count = ax; then
11294 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11295 else
11296 echo "Using the following target machine macro files:"
11297 for f in $tm_file; do
11298 echo " $srcdir/config/$f"
11299 done
11302 if test x$use_long_long_for_widest_fast_int = xyes; then
11304 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11308 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GNU_LD $gnu_ld_bool
11312 _ACEOF
11315 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_GNU_AS $gnu_as_bool
11319 _ACEOF
11322 count=a
11323 for f in $host_xm_file; do
11324 count=${count}x
11325 done
11326 if test $count = a; then
11328 elif test $count = ax; then
11329 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11330 else
11331 echo "Using the following host machine macro files:"
11332 for f in $host_xm_file; do
11333 echo " $srcdir/config/$f"
11334 done
11336 echo "Using ${out_host_hook_obj} for host machine hooks."
11338 if test "$host_xm_file" != "$build_xm_file"; then
11339 count=a
11340 for f in $build_xm_file; do
11341 count=${count}x
11342 done
11343 if test $count = a; then
11345 elif test $count = ax; then
11346 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11347 else
11348 echo "Using the following build machine macro files:"
11349 for f in $build_xm_file; do
11350 echo " $srcdir/config/$f"
11351 done
11355 if test -n "$configured_native_system_header_dir"; then
11356 native_system_header_dir=$configured_native_system_header_dir
11358 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11361 case ${host} in
11362 powerpc*-*-darwin*)
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11364 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11365 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 #include <sys/cdefs.h>
11372 #include <sys/signal.h>
11373 #include <ucontext.h>
11374 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11376 _ACEOF
11377 if ac_fn_c_try_compile "$LINENO"; then :
11378 gcc_cv_mcontext_underscores=no
11379 else
11380 gcc_cv_mcontext_underscores=yes
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11385 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11386 if test $gcc_cv_mcontext_underscores = yes; then
11388 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11392 esac
11394 # ---------
11395 # Threading
11396 # ---------
11398 # Check if a valid thread package
11399 case ${enable_threads} in
11400 "" | no)
11401 # No threads
11402 target_thread_file='single'
11404 yes)
11405 # default
11406 target_thread_file='single'
11408 aix | dce | lynx | mipssde | posix | rtems | \
11409 single | tpf | vxworks | win32)
11410 target_thread_file=${enable_threads}
11413 echo "${enable_threads} is an unknown thread package" 1>&2
11414 exit 1
11416 esac
11418 if test x${thread_file} = x; then
11419 # No thread file set by target-specific clauses in config.gcc,
11420 # so use file chosen by default logic above
11421 thread_file=${target_thread_file}
11424 # --------
11425 # UNSORTED
11426 # --------
11428 use_cxa_atexit=no
11429 if test x$enable___cxa_atexit = xyes || \
11430 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11431 if test x$host = x$target; then
11432 case $host in
11433 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11434 # keyed to flag_use_cxa_atexit
11435 *-*-mingw32*)
11436 use_cxa_atexit=yes
11438 powerpc-ibm-aix*)
11439 use_cxa_atexit=yes
11442 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11443 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11444 use_cxa_atexit=yes
11445 else
11446 echo "__cxa_atexit can't be enabled on this target"
11450 esac
11451 else
11452 # We can't check for __cxa_atexit when building a cross, so assume
11453 # it is available
11454 use_cxa_atexit=yes
11456 if test x$use_cxa_atexit = xyes; then
11458 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11463 # Look for a file containing extra machine modes.
11464 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11465 extra_modes_file='$(srcdir)'/config/${extra_modes}
11468 cat >>confdefs.h <<_ACEOF
11469 #define EXTRA_MODES_FILE "config/$extra_modes"
11470 _ACEOF
11474 # Convert extra_options into a form suitable for Makefile use.
11475 extra_opt_files=
11476 all_opt_files=
11477 for f in $extra_options; do
11478 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11479 all_opt_files="$all_opt_files $srcdir/config/$f"
11480 done
11483 # auto-host.h is the file containing items generated by autoconf and is
11484 # the first file included by config.h.
11485 # If host=build, it is correct to have bconfig include auto-host.h
11486 # as well. If host!=build, we are in error and need to do more
11487 # work to find out the build config parameters.
11488 if test x$host = x$build
11489 then
11490 build_auto=auto-host.h
11491 else
11492 # We create a subdir, then run autoconf in the subdir.
11493 # To prevent recursion we set host and build for the new
11494 # invocation of configure to the build for this invocation
11495 # of configure.
11496 tempdir=build.$$
11497 rm -rf $tempdir
11498 mkdir $tempdir
11499 cd $tempdir
11500 case ${srcdir} in
11501 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11502 *) realsrcdir=../${srcdir};;
11503 esac
11504 # Clearing GMPINC is necessary to prevent host headers being
11505 # used by the build compiler. Defining GENERATOR_FILE stops
11506 # system.h from including gmp.h.
11507 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11508 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11509 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11510 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11511 ${realsrcdir}/configure \
11512 --enable-languages=${enable_languages-all} \
11513 --target=$target_alias --host=$build_alias --build=$build_alias
11515 # We just finished tests for the build machine, so rename
11516 # the file auto-build.h in the gcc directory.
11517 mv auto-host.h ../auto-build.h
11518 cd ..
11519 rm -rf $tempdir
11520 build_auto=auto-build.h
11524 tm_file="${tm_file} defaults.h"
11525 tm_p_file="${tm_p_file} tm-preds.h"
11526 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11527 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11528 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11529 # put this back in temporarily.
11530 xm_file="auto-host.h ansidecl.h ${xm_file}"
11532 # --------
11533 # UNSORTED
11534 # --------
11536 # Compile in configure arguments.
11537 if test -f configargs.h ; then
11538 # Being re-configured.
11539 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11540 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11541 else
11542 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11545 # Double all backslashes and backslash all quotes to turn
11546 # gcc_config_arguments into a C string.
11547 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11548 $gcc_config_arguments
11550 gcc_config_arguments_str=`cat conftest.out`
11551 rm -f conftest.out
11553 cat > configargs.h <<EOF
11554 /* Generated automatically. */
11555 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11556 static const char thread_model[] = "$thread_file";
11558 static const struct {
11559 const char *name, *value;
11560 } configure_default_options[] = $configure_default_options;
11563 gcc_BASEVER=`cat $srcdir/BASE-VER`
11564 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11565 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11566 if test -f $srcdir/REVISION ; then
11567 gcc_REVISION=`cat $srcdir/REVISION`
11568 else
11569 gcc_REVISION=""
11571 cat > plugin-version.h <<EOF
11572 #include "configargs.h"
11574 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11575 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11576 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11577 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11579 static char basever[] = "$gcc_BASEVER";
11580 static char datestamp[] = "$gcc_DATESTAMP";
11581 static char devphase[] = "$gcc_DEVPHASE";
11582 static char revision[] = "$gcc_REVISION";
11584 /* FIXME plugins: We should make the version information more precise.
11585 One way to do is to add a checksum. */
11587 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11588 devphase, revision,
11589 configuration_arguments};
11592 # Internationalization
11593 # If we haven't got the data from the intl directory,
11594 # assume NLS is disabled.
11595 USE_NLS=no
11596 LIBINTL=
11597 LIBINTL_DEP=
11598 INCINTL=
11599 XGETTEXT=
11600 GMSGFMT=
11601 POSUB=
11603 if test -f ../intl/config.intl; then
11604 . ../intl/config.intl
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11607 $as_echo_n "checking whether NLS is requested... " >&6; }
11608 if test x"$USE_NLS" != xyes; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613 $as_echo "yes" >&6; }
11615 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11619 $as_echo_n "checking for catalogs to be installed... " >&6; }
11620 # Look for .po and .gmo files in the source directory.
11621 CATALOGS=
11622 XLINGUAS=
11623 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11624 # If there aren't any .gmo files the shell will give us the
11625 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11626 # weeded out.
11627 case "$cat" in *\**)
11628 continue;;
11629 esac
11630 # The quadruple backslash is collapsed to a double backslash
11631 # by the backticks, then collapsed again by the double quotes,
11632 # leaving us with one backslash in the sed expression (right
11633 # before the dot that mustn't act as a wildcard).
11634 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11635 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11636 # The user is allowed to set LINGUAS to a list of languages to
11637 # install catalogs for. If it's empty that means "all of them."
11638 if test "x$LINGUAS" = x; then
11639 CATALOGS="$CATALOGS $cat"
11640 XLINGUAS="$XLINGUAS $lang"
11641 else
11642 case "$LINGUAS" in *$lang*)
11643 CATALOGS="$CATALOGS $cat"
11644 XLINGUAS="$XLINGUAS $lang"
11646 esac
11648 done
11649 LINGUAS="$XLINGUAS"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11651 $as_echo "$LINGUAS" >&6; }
11654 DATADIRNAME=share
11656 INSTOBJEXT=.mo
11658 GENCAT=gencat
11660 CATOBJEXT=.gmo
11664 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11665 # -liconv on the link line twice.
11666 case "$LIBINTL" in *$LIBICONV*)
11667 LIBICONV= ;;
11668 esac
11670 # Check whether --enable-secureplt was given.
11671 if test "${enable_secureplt+set}" = set; then :
11672 enableval=$enable_secureplt;
11676 # Check whether --enable-leading-mingw64-underscores was given.
11677 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11678 enableval=$enable_leading_mingw64_underscores;
11681 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11683 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11687 # Check whether --enable-cld was given.
11688 if test "${enable_cld+set}" = set; then :
11689 enableval=$enable_cld;
11690 else
11691 enable_cld=no
11695 # Check whether --enable-frame-pointer was given.
11696 if test "${enable_frame_pointer+set}" = set; then :
11697 enableval=$enable_frame_pointer;
11698 else
11700 case $target_os in
11701 linux* | darwin[8912]*)
11702 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11703 # DWARF2.
11704 enable_frame_pointer=no
11707 enable_frame_pointer=yes
11709 esac
11714 # Windows32 Registry support for specifying GCC installation paths.
11715 # Check whether --enable-win32-registry was given.
11716 if test "${enable_win32_registry+set}" = set; then :
11717 enableval=$enable_win32_registry;
11721 case $host_os in
11722 win32 | pe | cygwin* | mingw32* | uwin*)
11723 if test "x$enable_win32_registry" != xno; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11725 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11726 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 ac_func_search_save_LIBS=$LIBS
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char RegOpenKeyExA ();
11741 main ()
11743 return RegOpenKeyExA ();
11745 return 0;
11747 _ACEOF
11748 for ac_lib in '' advapi32; do
11749 if test -z "$ac_lib"; then
11750 ac_res="none required"
11751 else
11752 ac_res=-l$ac_lib
11753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11755 if ac_fn_c_try_link "$LINENO"; then :
11756 ac_cv_search_RegOpenKeyExA=$ac_res
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext
11760 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11761 break
11763 done
11764 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11766 else
11767 ac_cv_search_RegOpenKeyExA=no
11769 rm conftest.$ac_ext
11770 LIBS=$ac_func_search_save_LIBS
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11773 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11774 ac_res=$ac_cv_search_RegOpenKeyExA
11775 if test "$ac_res" != no; then :
11776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11778 else
11779 enable_win32_registry=no
11784 if test "x$enable_win32_registry" != xno; then
11786 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11789 if test "x$enable_win32_registry" != xyes \
11790 && test "x$enable_win32_registry" != x; then
11792 cat >>confdefs.h <<_ACEOF
11793 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11794 _ACEOF
11799 esac
11801 # Get an absolute path to the GCC top-level source directory
11802 holddir=`${PWDCMD-pwd}`
11803 cd $srcdir
11804 topdir=`${PWDCMD-pwd}`
11805 cd $holddir
11807 # Conditionalize the makefile for this host machine.
11808 xmake_file=
11809 for f in ${host_xmake_file}
11811 if test -f ${srcdir}/config/$f
11812 then
11813 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11815 done
11817 # Conditionalize the makefile for this target machine.
11818 tmake_file_=
11819 for f in ${tmake_file}
11821 if test -f ${srcdir}/config/$f
11822 then
11823 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11825 done
11826 tmake_file="${tmake_file_}"
11828 out_object_file=`basename $out_file .c`.o
11829 common_out_object_file=`basename $common_out_file .c`.o
11831 tm_file_list="options.h"
11832 tm_include_list="options.h insn-constants.h"
11833 for f in $tm_file; do
11834 case $f in
11835 ./* )
11836 f=`echo $f | sed 's/^..//'`
11837 tm_file_list="${tm_file_list} $f"
11838 tm_include_list="${tm_include_list} $f"
11840 defaults.h )
11841 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11842 tm_include_list="${tm_include_list} $f"
11845 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11846 tm_include_list="${tm_include_list} config/$f"
11848 esac
11849 done
11851 tm_p_file_list=
11852 tm_p_include_list=
11853 for f in $tm_p_file; do
11854 case $f in
11855 tm-preds.h )
11856 tm_p_file_list="${tm_p_file_list} $f"
11857 tm_p_include_list="${tm_p_include_list} $f"
11860 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11861 tm_p_include_list="${tm_p_include_list} config/$f"
11862 esac
11863 done
11865 xm_file_list=
11866 xm_include_list=
11867 for f in $xm_file; do
11868 case $f in
11869 ansidecl.h )
11870 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11871 xm_include_list="${xm_include_list} $f"
11873 auto-host.h )
11874 xm_file_list="${xm_file_list} $f"
11875 xm_include_list="${xm_include_list} $f"
11878 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11879 xm_include_list="${xm_include_list} config/$f"
11881 esac
11882 done
11884 host_xm_file_list=
11885 host_xm_include_list=
11886 for f in $host_xm_file; do
11887 case $f in
11888 ansidecl.h )
11889 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11890 host_xm_include_list="${host_xm_include_list} $f"
11892 auto-host.h )
11893 host_xm_file_list="${host_xm_file_list} $f"
11894 host_xm_include_list="${host_xm_include_list} $f"
11897 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11898 host_xm_include_list="${host_xm_include_list} config/$f"
11900 esac
11901 done
11903 build_xm_file_list=
11904 for f in $build_xm_file; do
11905 case $f in
11906 ansidecl.h )
11907 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11908 build_xm_include_list="${build_xm_include_list} $f"
11910 auto-build.h | auto-host.h )
11911 build_xm_file_list="${build_xm_file_list} $f"
11912 build_xm_include_list="${build_xm_include_list} $f"
11915 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11916 build_xm_include_list="${build_xm_include_list} config/$f"
11918 esac
11919 done
11921 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11922 # cross-compiler which does not use the native headers and libraries.
11923 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11924 CROSS=
11925 ALL=all.internal
11926 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11928 if test "x$with_build_sysroot" != x; then
11929 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11930 else
11931 # This value is used, even on a native system, because
11932 # CROSS_SYSTEM_HEADER_DIR is just
11933 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11934 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11937 if test x$host != x$target
11938 then
11939 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11940 ALL=all.cross
11941 SYSTEM_HEADER_DIR=$build_system_header_dir
11942 case "$host","$target" in
11943 # Darwin crosses can use the host system's libraries and headers,
11944 # because of the fat library support. Of course, it must be the
11945 # same version of Darwin on both sides. Allow the user to
11946 # just say --target=foo-darwin without a version number to mean
11947 # "the version on this system".
11948 *-*-darwin*,*-*-darwin*)
11949 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11950 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11951 if test $hostos = $targetos -o $targetos = darwin ; then
11952 CROSS=
11953 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11954 with_headers=yes
11958 i?86-*-*,x86_64-*-* \
11959 | powerpc*-*-*,powerpc64*-*-*)
11960 CROSS="$CROSS -DNATIVE_CROSS" ;;
11961 esac
11963 case $target in
11964 *-*-mingw*)
11965 if test "x$with_headers" = x; then
11966 with_headers=yes
11971 esac
11972 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11973 SYSTEM_HEADER_DIR=$build_system_header_dir
11976 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11977 if test "x$with_headers" != x; then
11978 target_header_dir=$with_headers
11979 elif test "x$with_sysroot" = x; then
11980 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11981 elif test "x$with_build_sysroot" != "x"; then
11982 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11983 elif test "x$with_sysroot" = xyes; then
11984 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11985 else
11986 target_header_dir="${with_sysroot}${native_system_header_dir}"
11988 else
11989 target_header_dir=${native_system_header_dir}
11992 # If this is a cross-compiler that does not
11993 # have its own set of headers then define
11994 # inhibit_libc
11996 # If this is using newlib, without having the headers available now,
11997 # then define inhibit_libc in LIBGCC2_CFLAGS.
11998 # This prevents libgcc2 from containing any code which requires libc
11999 # support.
12000 : ${inhibit_libc=false}
12001 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12002 test x$with_newlib = xyes ; } &&
12003 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12004 inhibit_libc=true
12008 # When building gcc with a cross-compiler, we need to adjust things so
12009 # that the generator programs are still built with the native compiler.
12010 # Also, we cannot run fixincludes.
12012 # These are the normal (build=host) settings:
12013 CC_FOR_BUILD='$(CC)'
12014 CXX_FOR_BUILD='$(CXX)'
12015 BUILD_CFLAGS='$(ALL_CFLAGS)'
12016 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12017 BUILD_LDFLAGS='$(LDFLAGS)'
12018 STMP_FIXINC=stmp-fixinc
12020 # And these apply if build != host, or we are generating coverage data
12021 if test x$build != x$host || test "x$coverage_flags" != x
12022 then
12023 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12024 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12025 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12028 # Expand extra_headers to include complete path.
12029 # This substitutes for lots of t-* files.
12030 extra_headers_list=
12031 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12032 for file in ${extra_headers} ; do
12033 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12034 done
12036 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12037 if test x"$use_gcc_tgmath" = xyes
12038 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12041 # Define collect2 in Makefile.
12042 case $host_can_use_collect2 in
12043 no) collect2= ;;
12044 *) collect2='collect2$(exeext)' ;;
12045 esac
12048 # Add a definition of USE_COLLECT2 if system wants one.
12049 case $use_collect2 in
12050 no) use_collect2= ;;
12051 "") ;;
12053 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12054 xm_defines="${xm_defines} USE_COLLECT2"
12055 case $host_can_use_collect2 in
12057 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12059 esac
12061 esac
12064 cat >>confdefs.h <<_ACEOF
12065 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12066 _ACEOF
12069 # ---------------------------
12070 # Assembler & linker features
12071 # ---------------------------
12073 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12074 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12075 # However when ld-new is first executed from the build tree, libtool will
12076 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12077 # to the build tree. While doing this we need to use the previous-stage
12078 # linker, or we have an infinite loop. The presence of a shell script as
12079 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12080 # the gcc/collect-ld script. So we need to know how libtool works, or
12081 # exec-tool will fail.
12084 case `pwd` in
12085 *\ * | *\ *)
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12087 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12088 esac
12092 macro_version='2.2.7a'
12093 macro_revision='1.3134'
12107 ltmain="$ac_aux_dir/ltmain.sh"
12109 # Backslashify metacharacters that are still active within
12110 # double-quoted strings.
12111 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12113 # Same as above, but do not quote variable references.
12114 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12116 # Sed substitution to delay expansion of an escaped shell variable in a
12117 # double_quote_subst'ed string.
12118 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12120 # Sed substitution to delay expansion of an escaped single quote.
12121 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12123 # Sed substitution to avoid accidental globbing in evaled expressions
12124 no_glob_subst='s/\*/\\\*/g'
12126 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12127 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12131 $as_echo_n "checking how to print strings... " >&6; }
12132 # Test print first, because it will be a builtin if present.
12133 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12134 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12135 ECHO='print -r --'
12136 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12137 ECHO='printf %s\n'
12138 else
12139 # Use this function as a fallback that always works.
12140 func_fallback_echo ()
12142 eval 'cat <<_LTECHO_EOF
12144 _LTECHO_EOF'
12146 ECHO='func_fallback_echo'
12149 # func_echo_all arg...
12150 # Invoke $ECHO with all args, space-separated.
12151 func_echo_all ()
12153 $ECHO ""
12156 case "$ECHO" in
12157 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12158 $as_echo "printf" >&6; } ;;
12159 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12160 $as_echo "print -r" >&6; } ;;
12161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12162 $as_echo "cat" >&6; } ;;
12163 esac
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12179 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12180 if test "${ac_cv_path_SED+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12184 for ac_i in 1 2 3 4 5 6 7; do
12185 ac_script="$ac_script$as_nl$ac_script"
12186 done
12187 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12188 { ac_script=; unset ac_script;}
12189 if test -z "$SED"; then
12190 ac_path_SED_found=false
12191 # Loop through the user's path and test for each of PROGNAME-LIST
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_prog in sed gsed; do
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12200 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12201 # Check for GNU ac_path_SED and select it if it is found.
12202 # Check for GNU $ac_path_SED
12203 case `"$ac_path_SED" --version 2>&1` in
12204 *GNU*)
12205 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12207 ac_count=0
12208 $as_echo_n 0123456789 >"conftest.in"
12209 while :
12211 cat "conftest.in" "conftest.in" >"conftest.tmp"
12212 mv "conftest.tmp" "conftest.in"
12213 cp "conftest.in" "conftest.nl"
12214 $as_echo '' >> "conftest.nl"
12215 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12217 as_fn_arith $ac_count + 1 && ac_count=$as_val
12218 if test $ac_count -gt ${ac_path_SED_max-0}; then
12219 # Best one so far, save it but keep looking for a better one
12220 ac_cv_path_SED="$ac_path_SED"
12221 ac_path_SED_max=$ac_count
12223 # 10*(2^10) chars as input seems more than enough
12224 test $ac_count -gt 10 && break
12225 done
12226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12227 esac
12229 $ac_path_SED_found && break 3
12230 done
12231 done
12232 done
12233 IFS=$as_save_IFS
12234 if test -z "$ac_cv_path_SED"; then
12235 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12237 else
12238 ac_cv_path_SED=$SED
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12243 $as_echo "$ac_cv_path_SED" >&6; }
12244 SED="$ac_cv_path_SED"
12245 rm -f conftest.sed
12247 test -z "$SED" && SED=sed
12248 Xsed="$SED -e 1s/^X//"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12261 $as_echo_n "checking for fgrep... " >&6; }
12262 if test "${ac_cv_path_FGREP+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12266 then ac_cv_path_FGREP="$GREP -F"
12267 else
12268 if test -z "$FGREP"; then
12269 ac_path_FGREP_found=false
12270 # Loop through the user's path and test for each of PROGNAME-LIST
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_prog in fgrep; do
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12279 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12280 # Check for GNU ac_path_FGREP and select it if it is found.
12281 # Check for GNU $ac_path_FGREP
12282 case `"$ac_path_FGREP" --version 2>&1` in
12283 *GNU*)
12284 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12286 ac_count=0
12287 $as_echo_n 0123456789 >"conftest.in"
12288 while :
12290 cat "conftest.in" "conftest.in" >"conftest.tmp"
12291 mv "conftest.tmp" "conftest.in"
12292 cp "conftest.in" "conftest.nl"
12293 $as_echo 'FGREP' >> "conftest.nl"
12294 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12296 as_fn_arith $ac_count + 1 && ac_count=$as_val
12297 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12298 # Best one so far, save it but keep looking for a better one
12299 ac_cv_path_FGREP="$ac_path_FGREP"
12300 ac_path_FGREP_max=$ac_count
12302 # 10*(2^10) chars as input seems more than enough
12303 test $ac_count -gt 10 && break
12304 done
12305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12306 esac
12308 $ac_path_FGREP_found && break 3
12309 done
12310 done
12311 done
12312 IFS=$as_save_IFS
12313 if test -z "$ac_cv_path_FGREP"; then
12314 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12316 else
12317 ac_cv_path_FGREP=$FGREP
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12323 $as_echo "$ac_cv_path_FGREP" >&6; }
12324 FGREP="$ac_cv_path_FGREP"
12327 test -z "$GREP" && GREP=grep
12347 # Check whether --with-gnu-ld was given.
12348 if test "${with_gnu_ld+set}" = set; then :
12349 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12350 else
12351 with_gnu_ld=no
12354 ac_prog=ld
12355 if test "$GCC" = yes; then
12356 # Check if gcc -print-prog-name=ld gives a path.
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12358 $as_echo_n "checking for ld used by $CC... " >&6; }
12359 case $host in
12360 *-*-mingw*)
12361 # gcc leaves a trailing carriage return which upsets mingw
12362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12365 esac
12366 case $ac_prog in
12367 # Accept absolute paths.
12368 [\\/]* | ?:[\\/]*)
12369 re_direlt='/[^/][^/]*/\.\./'
12370 # Canonicalize the pathname of ld
12371 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12372 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12373 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12374 done
12375 test -z "$LD" && LD="$ac_prog"
12378 # If it fails, then pretend we aren't using GCC.
12379 ac_prog=ld
12382 # If it is relative, then search for the first ld in PATH.
12383 with_gnu_ld=unknown
12385 esac
12386 elif test "$with_gnu_ld" = yes; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12388 $as_echo_n "checking for GNU ld... " >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12391 $as_echo_n "checking for non-GNU ld... " >&6; }
12393 if test "${lt_cv_path_LD+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -z "$LD"; then
12397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12398 for ac_dir in $PATH; do
12399 IFS="$lt_save_ifs"
12400 test -z "$ac_dir" && ac_dir=.
12401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12402 lt_cv_path_LD="$ac_dir/$ac_prog"
12403 # Check to see if the program is GNU ld. I'd rather use --version,
12404 # but apparently some variants of GNU ld only accept -v.
12405 # Break only if it was the GNU/non-GNU ld that we prefer.
12406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12407 *GNU* | *'with BFD'*)
12408 test "$with_gnu_ld" != no && break
12411 test "$with_gnu_ld" != yes && break
12413 esac
12415 done
12416 IFS="$lt_save_ifs"
12417 else
12418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12422 LD="$lt_cv_path_LD"
12423 if test -n "$LD"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12425 $as_echo "$LD" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12430 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12433 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12437 case `$LD -v 2>&1 </dev/null` in
12438 *GNU* | *'with BFD'*)
12439 lt_cv_prog_gnu_ld=yes
12442 lt_cv_prog_gnu_ld=no
12444 esac
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12448 with_gnu_ld=$lt_cv_prog_gnu_ld
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12459 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12460 if test "${lt_cv_path_NM+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 if test -n "$NM"; then
12464 # Let the user override the test.
12465 lt_cv_path_NM="$NM"
12466 else
12467 lt_nm_to_check="${ac_tool_prefix}nm"
12468 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12469 lt_nm_to_check="$lt_nm_to_check nm"
12471 for lt_tmp_nm in $lt_nm_to_check; do
12472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12474 IFS="$lt_save_ifs"
12475 test -z "$ac_dir" && ac_dir=.
12476 tmp_nm="$ac_dir/$lt_tmp_nm"
12477 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12478 # Check to see if the nm accepts a BSD-compat flag.
12479 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12480 # nm: unknown option "B" ignored
12481 # Tru64's nm complains that /dev/null is an invalid object file
12482 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12483 */dev/null* | *'Invalid file or object type'*)
12484 lt_cv_path_NM="$tmp_nm -B"
12485 break
12488 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12489 */dev/null*)
12490 lt_cv_path_NM="$tmp_nm -p"
12491 break
12494 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12495 continue # so that we can try to find one that supports BSD flags
12497 esac
12499 esac
12501 done
12502 IFS="$lt_save_ifs"
12503 done
12504 : ${lt_cv_path_NM=no}
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12508 $as_echo "$lt_cv_path_NM" >&6; }
12509 if test "$lt_cv_path_NM" != "no"; then
12510 NM="$lt_cv_path_NM"
12511 else
12512 # Didn't find any BSD compatible name lister, look for dumpbin.
12513 if test -n "$DUMPBIN"; then :
12514 # Let the user override the test.
12515 else
12516 if test -n "$ac_tool_prefix"; then
12517 for ac_prog in dumpbin "link -dump"
12519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522 $as_echo_n "checking for $ac_word... " >&6; }
12523 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test -n "$DUMPBIN"; then
12527 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12528 else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12540 done
12541 done
12542 IFS=$as_save_IFS
12546 DUMPBIN=$ac_cv_prog_DUMPBIN
12547 if test -n "$DUMPBIN"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12549 $as_echo "$DUMPBIN" >&6; }
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12556 test -n "$DUMPBIN" && break
12557 done
12559 if test -z "$DUMPBIN"; then
12560 ac_ct_DUMPBIN=$DUMPBIN
12561 for ac_prog in dumpbin "link -dump"
12563 # Extract the first word of "$ac_prog", so it can be a program name with args.
12564 set dummy $ac_prog; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if test -n "$ac_ct_DUMPBIN"; then
12571 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12584 done
12585 done
12586 IFS=$as_save_IFS
12590 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12591 if test -n "$ac_ct_DUMPBIN"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12593 $as_echo "$ac_ct_DUMPBIN" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12600 test -n "$ac_ct_DUMPBIN" && break
12601 done
12603 if test "x$ac_ct_DUMPBIN" = x; then
12604 DUMPBIN=":"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607 yes:)
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610 ac_tool_warned=yes ;;
12611 esac
12612 DUMPBIN=$ac_ct_DUMPBIN
12616 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12617 *COFF*)
12618 DUMPBIN="$DUMPBIN -symbols"
12621 DUMPBIN=:
12623 esac
12626 if test "$DUMPBIN" != ":"; then
12627 NM="$DUMPBIN"
12630 test -z "$NM" && NM=nm
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12638 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12639 if test "${lt_cv_nm_interface+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 lt_cv_nm_interface="BSD nm"
12643 echo "int some_variable = 0;" > conftest.$ac_ext
12644 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12645 (eval "$ac_compile" 2>conftest.err)
12646 cat conftest.err >&5
12647 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12648 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12649 cat conftest.err >&5
12650 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12651 cat conftest.out >&5
12652 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12653 lt_cv_nm_interface="MS dumpbin"
12655 rm -f conftest*
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12658 $as_echo "$lt_cv_nm_interface" >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12661 $as_echo_n "checking whether ln -s works... " >&6; }
12662 LN_S=$as_ln_s
12663 if test "$LN_S" = "ln -s"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12668 $as_echo "no, using $LN_S" >&6; }
12671 # find the maximum length of command line arguments
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12673 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12674 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12678 teststring="ABCD"
12680 case $build_os in
12681 msdosdjgpp*)
12682 # On DJGPP, this test can blow up pretty badly due to problems in libc
12683 # (any single argument exceeding 2000 bytes causes a buffer overrun
12684 # during glob expansion). Even if it were fixed, the result of this
12685 # check would be larger than it should be.
12686 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12689 gnu*)
12690 # Under GNU Hurd, this test is not required because there is
12691 # no limit to the length of command line arguments.
12692 # Libtool will interpret -1 as no limit whatsoever
12693 lt_cv_sys_max_cmd_len=-1;
12696 cygwin* | mingw* | cegcc*)
12697 # On Win9x/ME, this test blows up -- it succeeds, but takes
12698 # about 5 minutes as the teststring grows exponentially.
12699 # Worse, since 9x/ME are not pre-emptively multitasking,
12700 # you end up with a "frozen" computer, even though with patience
12701 # the test eventually succeeds (with a max line length of 256k).
12702 # Instead, let's just punt: use the minimum linelength reported by
12703 # all of the supported platforms: 8192 (on NT/2K/XP).
12704 lt_cv_sys_max_cmd_len=8192;
12707 mint*)
12708 # On MiNT this can take a long time and run out of memory.
12709 lt_cv_sys_max_cmd_len=8192;
12712 amigaos*)
12713 # On AmigaOS with pdksh, this test takes hours, literally.
12714 # So we just punt and use a minimum line length of 8192.
12715 lt_cv_sys_max_cmd_len=8192;
12718 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12719 # This has been around since 386BSD, at least. Likely further.
12720 if test -x /sbin/sysctl; then
12721 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12722 elif test -x /usr/sbin/sysctl; then
12723 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12724 else
12725 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12727 # And add a safety zone
12728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12732 interix*)
12733 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12734 lt_cv_sys_max_cmd_len=196608
12737 osf*)
12738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12740 # nice to cause kernel panics so lets avoid the loop below.
12741 # First set a reasonable default.
12742 lt_cv_sys_max_cmd_len=16384
12744 if test -x /sbin/sysconfig; then
12745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12747 esac
12750 sco3.2v5*)
12751 lt_cv_sys_max_cmd_len=102400
12753 sysv5* | sco5v6* | sysv4.2uw2*)
12754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12755 if test -n "$kargmax"; then
12756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12757 else
12758 lt_cv_sys_max_cmd_len=32768
12762 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12763 if test -n "$lt_cv_sys_max_cmd_len"; then
12764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12766 else
12767 # Make teststring a little bigger before we do anything with it.
12768 # a 1K string should be a reasonable start.
12769 for i in 1 2 3 4 5 6 7 8 ; do
12770 teststring=$teststring$teststring
12771 done
12772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12773 # If test is not a shell built-in, we'll probably end up computing a
12774 # maximum length that is only half of the actual maximum length, but
12775 # we can't tell.
12776 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12777 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12778 test $i != 17 # 1/2 MB should be enough
12780 i=`expr $i + 1`
12781 teststring=$teststring$teststring
12782 done
12783 # Only check the string length outside the loop.
12784 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12785 teststring=
12786 # Add a significant safety factor because C++ compilers can tack on
12787 # massive amounts of additional arguments before passing them to the
12788 # linker. It appears as though 1/2 is a usable value.
12789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12792 esac
12796 if test -n $lt_cv_sys_max_cmd_len ; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12798 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12801 $as_echo "none" >&6; }
12803 max_cmd_len=$lt_cv_sys_max_cmd_len
12810 : ${CP="cp -f"}
12811 : ${MV="mv -f"}
12812 : ${RM="rm -f"}
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12815 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12816 # Try some XSI features
12817 xsi_shell=no
12818 ( _lt_dummy="a/b/c"
12819 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12820 = c,a/b,, \
12821 && eval 'test $(( 1 + 1 )) -eq 2 \
12822 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12823 && xsi_shell=yes
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12825 $as_echo "$xsi_shell" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12829 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12830 lt_shell_append=no
12831 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12832 >/dev/null 2>&1 \
12833 && lt_shell_append=yes
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12835 $as_echo "$lt_shell_append" >&6; }
12838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12839 lt_unset=unset
12840 else
12841 lt_unset=false
12848 # test EBCDIC or ASCII
12849 case `echo X|tr X '\101'` in
12850 A) # ASCII based system
12851 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12852 lt_SP2NL='tr \040 \012'
12853 lt_NL2SP='tr \015\012 \040\040'
12855 *) # EBCDIC based system
12856 lt_SP2NL='tr \100 \n'
12857 lt_NL2SP='tr \r\n \100\100'
12859 esac
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12870 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12871 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 lt_cv_ld_reload_flag='-r'
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12877 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12878 reload_flag=$lt_cv_ld_reload_flag
12879 case $reload_flag in
12880 "" | " "*) ;;
12881 *) reload_flag=" $reload_flag" ;;
12882 esac
12883 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12884 case $host_os in
12885 darwin*)
12886 if test "$GCC" = yes; then
12887 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12888 else
12889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12892 esac
12902 if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12904 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 if test -n "$OBJDUMP"; then
12911 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12912 else
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12924 done
12925 done
12926 IFS=$as_save_IFS
12930 OBJDUMP=$ac_cv_prog_OBJDUMP
12931 if test -n "$OBJDUMP"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12933 $as_echo "$OBJDUMP" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12941 if test -z "$ac_cv_prog_OBJDUMP"; then
12942 ac_ct_OBJDUMP=$OBJDUMP
12943 # Extract the first word of "objdump", so it can be a program name with args.
12944 set dummy objdump; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 if test -n "$ac_ct_OBJDUMP"; then
12951 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12952 else
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12956 IFS=$as_save_IFS
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12960 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 break 2
12964 done
12965 done
12966 IFS=$as_save_IFS
12970 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12971 if test -n "$ac_ct_OBJDUMP"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12973 $as_echo "$ac_ct_OBJDUMP" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12979 if test "x$ac_ct_OBJDUMP" = x; then
12980 OBJDUMP="false"
12981 else
12982 case $cross_compiling:$ac_tool_warned in
12983 yes:)
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12986 ac_tool_warned=yes ;;
12987 esac
12988 OBJDUMP=$ac_ct_OBJDUMP
12990 else
12991 OBJDUMP="$ac_cv_prog_OBJDUMP"
12994 test -z "$OBJDUMP" && OBJDUMP=objdump
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13005 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13006 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 lt_cv_file_magic_cmd='$MAGIC_CMD'
13010 lt_cv_file_magic_test_file=
13011 lt_cv_deplibs_check_method='unknown'
13012 # Need to set the preceding variable on all platforms that support
13013 # interlibrary dependencies.
13014 # 'none' -- dependencies not supported.
13015 # `unknown' -- same as none, but documents that we really don't know.
13016 # 'pass_all' -- all dependencies passed with no checks.
13017 # 'test_compile' -- check by making test program.
13018 # 'file_magic [[regex]]' -- check by looking for files in library path
13019 # which responds to the $file_magic_cmd with a given extended regex.
13020 # If you have `file' or equivalent on your system and you're not sure
13021 # whether `pass_all' will *always* work, you probably want this one.
13023 case $host_os in
13024 aix[4-9]*)
13025 lt_cv_deplibs_check_method=pass_all
13028 beos*)
13029 lt_cv_deplibs_check_method=pass_all
13032 bsdi[45]*)
13033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13034 lt_cv_file_magic_cmd='/usr/bin/file -L'
13035 lt_cv_file_magic_test_file=/shlib/libc.so
13038 cygwin*)
13039 # func_win32_libid is a shell function defined in ltmain.sh
13040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13041 lt_cv_file_magic_cmd='func_win32_libid'
13044 mingw* | pw32*)
13045 # Base MSYS/MinGW do not provide the 'file' command needed by
13046 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13047 # unless we find 'file', for example because we are cross-compiling.
13048 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13049 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13051 lt_cv_file_magic_cmd='func_win32_libid'
13052 else
13053 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13054 lt_cv_file_magic_cmd='$OBJDUMP -f'
13058 cegcc*)
13059 # use the weaker test based on 'objdump'. See mingw*.
13060 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13061 lt_cv_file_magic_cmd='$OBJDUMP -f'
13064 darwin* | rhapsody*)
13065 lt_cv_deplibs_check_method=pass_all
13068 freebsd* | dragonfly*)
13069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13070 case $host_cpu in
13071 i*86 )
13072 # Not sure whether the presence of OpenBSD here was a mistake.
13073 # Let's accept both of them until this is cleared up.
13074 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13075 lt_cv_file_magic_cmd=/usr/bin/file
13076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13078 esac
13079 else
13080 lt_cv_deplibs_check_method=pass_all
13084 gnu*)
13085 lt_cv_deplibs_check_method=pass_all
13088 haiku*)
13089 lt_cv_deplibs_check_method=pass_all
13092 hpux10.20* | hpux11*)
13093 lt_cv_file_magic_cmd=/usr/bin/file
13094 case $host_cpu in
13095 ia64*)
13096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13099 hppa*64*)
13100 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]'
13101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13105 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13107 esac
13110 interix[3-9]*)
13111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13115 irix5* | irix6* | nonstopux*)
13116 case $LD in
13117 *-32|*"-32 ") libmagic=32-bit;;
13118 *-n32|*"-n32 ") libmagic=N32;;
13119 *-64|*"-64 ") libmagic=64-bit;;
13120 *) libmagic=never-match;;
13121 esac
13122 lt_cv_deplibs_check_method=pass_all
13125 # This must be Linux ELF.
13126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13127 lt_cv_deplibs_check_method=pass_all
13130 netbsd*)
13131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13133 else
13134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13138 newos6*)
13139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13140 lt_cv_file_magic_cmd=/usr/bin/file
13141 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13144 *nto* | *qnx*)
13145 lt_cv_deplibs_check_method=pass_all
13148 openbsd*)
13149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13151 else
13152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13156 osf3* | osf4* | osf5*)
13157 lt_cv_deplibs_check_method=pass_all
13160 rdos*)
13161 lt_cv_deplibs_check_method=pass_all
13164 solaris*)
13165 lt_cv_deplibs_check_method=pass_all
13168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13169 lt_cv_deplibs_check_method=pass_all
13172 sysv4 | sysv4.3*)
13173 case $host_vendor in
13174 motorola)
13175 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]'
13176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13178 ncr)
13179 lt_cv_deplibs_check_method=pass_all
13181 sequent)
13182 lt_cv_file_magic_cmd='/bin/file'
13183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13185 sni)
13186 lt_cv_file_magic_cmd='/bin/file'
13187 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13188 lt_cv_file_magic_test_file=/lib/libc.so
13190 siemens)
13191 lt_cv_deplibs_check_method=pass_all
13194 lt_cv_deplibs_check_method=pass_all
13196 esac
13199 tpf*)
13200 lt_cv_deplibs_check_method=pass_all
13202 esac
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13206 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13207 file_magic_cmd=$lt_cv_file_magic_cmd
13208 deplibs_check_method=$lt_cv_deplibs_check_method
13209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13222 if test -n "$ac_tool_prefix"; then
13223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13224 set dummy ${ac_tool_prefix}ar; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if test "${ac_cv_prog_AR+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$AR"; then
13231 ac_cv_prog_AR="$AR" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_AR="${ac_tool_prefix}ar"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13244 done
13245 done
13246 IFS=$as_save_IFS
13250 AR=$ac_cv_prog_AR
13251 if test -n "$AR"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13253 $as_echo "$AR" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13261 if test -z "$ac_cv_prog_AR"; then
13262 ac_ct_AR=$AR
13263 # Extract the first word of "ar", so it can be a program name with args.
13264 set dummy ar; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$ac_ct_AR"; then
13271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_ac_ct_AR="ar"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13284 done
13285 done
13286 IFS=$as_save_IFS
13290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13291 if test -n "$ac_ct_AR"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13293 $as_echo "$ac_ct_AR" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13299 if test "x$ac_ct_AR" = x; then
13300 AR="false"
13301 else
13302 case $cross_compiling:$ac_tool_warned in
13303 yes:)
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13306 ac_tool_warned=yes ;;
13307 esac
13308 AR=$ac_ct_AR
13310 else
13311 AR="$ac_cv_prog_AR"
13314 test -z "$AR" && AR=ar
13315 test -z "$AR_FLAGS" && AR_FLAGS=cru
13327 if test -n "$ac_tool_prefix"; then
13328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13329 set dummy ${ac_tool_prefix}strip; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if test "${ac_cv_prog_STRIP+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 if test -n "$STRIP"; then
13336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13337 else
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13349 done
13350 done
13351 IFS=$as_save_IFS
13355 STRIP=$ac_cv_prog_STRIP
13356 if test -n "$STRIP"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13358 $as_echo "$STRIP" >&6; }
13359 else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13366 if test -z "$ac_cv_prog_STRIP"; then
13367 ac_ct_STRIP=$STRIP
13368 # Extract the first word of "strip", so it can be a program name with args.
13369 set dummy strip; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test -n "$ac_ct_STRIP"; then
13376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13377 else
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 ac_cv_prog_ac_ct_STRIP="strip"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13389 done
13390 done
13391 IFS=$as_save_IFS
13395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13396 if test -n "$ac_ct_STRIP"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13398 $as_echo "$ac_ct_STRIP" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13404 if test "x$ac_ct_STRIP" = x; then
13405 STRIP=":"
13406 else
13407 case $cross_compiling:$ac_tool_warned in
13408 yes:)
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13411 ac_tool_warned=yes ;;
13412 esac
13413 STRIP=$ac_ct_STRIP
13415 else
13416 STRIP="$ac_cv_prog_STRIP"
13419 test -z "$STRIP" && STRIP=:
13426 if test -n "$ac_tool_prefix"; then
13427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$RANLIB"; then
13435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13454 RANLIB=$ac_cv_prog_RANLIB
13455 if test -n "$RANLIB"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13457 $as_echo "$RANLIB" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13465 if test -z "$ac_cv_prog_RANLIB"; then
13466 ac_ct_RANLIB=$RANLIB
13467 # Extract the first word of "ranlib", so it can be a program name with args.
13468 set dummy ranlib; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 if test -n "$ac_ct_RANLIB"; then
13475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_ac_ct_RANLIB="ranlib"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13488 done
13489 done
13490 IFS=$as_save_IFS
13494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13495 if test -n "$ac_ct_RANLIB"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13497 $as_echo "$ac_ct_RANLIB" >&6; }
13498 else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13503 if test "x$ac_ct_RANLIB" = x; then
13504 RANLIB=":"
13505 else
13506 case $cross_compiling:$ac_tool_warned in
13507 yes:)
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13511 esac
13512 RANLIB=$ac_ct_RANLIB
13514 else
13515 RANLIB="$ac_cv_prog_RANLIB"
13518 test -z "$RANLIB" && RANLIB=:
13525 # Determine commands to create old-style static archives.
13526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13527 old_postinstall_cmds='chmod 644 $oldlib'
13528 old_postuninstall_cmds=
13530 if test -n "$RANLIB"; then
13531 case $host_os in
13532 openbsd*)
13533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13538 esac
13539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13542 case $host_os in
13543 darwin*)
13544 lock_old_archive_extraction=yes ;;
13546 lock_old_archive_extraction=no ;;
13547 esac
13587 # If no C compiler was specified, use CC.
13588 LTCC=${LTCC-"$CC"}
13590 # If no C compiler flags were specified, use CFLAGS.
13591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13593 # Allow CC to be a program name with arguments.
13594 compiler=$CC
13597 # Check for command to grab the raw symbol name followed by C symbol from nm.
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13600 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13604 # These are sane defaults that work on at least a few old systems.
13605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13607 # Character class describing NM global symbol codes.
13608 symcode='[BCDEGRST]'
13610 # Regexp to match symbols that can be accessed directly from C.
13611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13613 # Define system-specific variables.
13614 case $host_os in
13615 aix*)
13616 symcode='[BCDT]'
13618 cygwin* | mingw* | pw32* | cegcc*)
13619 symcode='[ABCDGISTW]'
13621 hpux*)
13622 if test "$host_cpu" = ia64; then
13623 symcode='[ABCDEGRST]'
13626 irix* | nonstopux*)
13627 symcode='[BCDEGRST]'
13629 osf*)
13630 symcode='[BCDEGQRST]'
13632 solaris*)
13633 symcode='[BDRT]'
13635 sco3.2v5*)
13636 symcode='[DT]'
13638 sysv4.2uw2*)
13639 symcode='[DT]'
13641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13642 symcode='[ABDT]'
13644 sysv4)
13645 symcode='[DFNSTU]'
13647 esac
13649 # If we're using GNU nm, then use its standard symbol codes.
13650 case `$NM -V 2>&1` in
13651 *GNU* | *'with BFD'*)
13652 symcode='[ABCDGIRSTW]' ;;
13653 esac
13655 # Transform an extracted symbol line into a proper C declaration.
13656 # Some systems (esp. on ia64) link data and code symbols differently,
13657 # so use this general approach.
13658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13660 # Transform an extracted symbol line into symbol name and symbol address
13661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13662 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'"
13664 # Handle CRLF in mingw tool chain
13665 opt_cr=
13666 case $build_os in
13667 mingw*)
13668 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13670 esac
13672 # Try without a prefix underscore, then with it.
13673 for ac_symprfx in "" "_"; do
13675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13676 symxfrm="\\1 $ac_symprfx\\2 \\2"
13678 # Write the raw and C identifiers.
13679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13680 # Fake it for dumpbin and say T for any non-static function
13681 # and D for any global variable.
13682 # Also find C++ and __fastcall symbols from MSVC++,
13683 # which start with @ or ?.
13684 lt_cv_sys_global_symbol_pipe="$AWK '"\
13685 " {last_section=section; section=\$ 3};"\
13686 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13687 " \$ 0!~/External *\|/{next};"\
13688 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13689 " {if(hide[section]) next};"\
13690 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13691 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13692 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13693 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13694 " ' prfx=^$ac_symprfx"
13695 else
13696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13699 # Check to see that the pipe works correctly.
13700 pipe_works=no
13702 rm -f conftest*
13703 cat > conftest.$ac_ext <<_LT_EOF
13704 #ifdef __cplusplus
13705 extern "C" {
13706 #endif
13707 char nm_test_var;
13708 void nm_test_func(void);
13709 void nm_test_func(void){}
13710 #ifdef __cplusplus
13712 #endif
13713 int main(){nm_test_var='a';nm_test_func();return(0);}
13714 _LT_EOF
13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13717 (eval $ac_compile) 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }; then
13721 # Now try to grab the symbols.
13722 nlist=conftest.nm
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13724 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; } && test -s "$nlist"; then
13728 # Try sorting and uniquifying the output.
13729 if sort "$nlist" | uniq > "$nlist"T; then
13730 mv -f "$nlist"T "$nlist"
13731 else
13732 rm -f "$nlist"T
13735 # Make sure that we snagged all the symbols we need.
13736 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13737 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13738 cat <<_LT_EOF > conftest.$ac_ext
13739 #ifdef __cplusplus
13740 extern "C" {
13741 #endif
13743 _LT_EOF
13744 # Now generate the symbol file.
13745 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13747 cat <<_LT_EOF >> conftest.$ac_ext
13749 /* The mapping between symbol names and symbols. */
13750 const struct {
13751 const char *name;
13752 void *address;
13754 lt__PROGRAM__LTX_preloaded_symbols[] =
13756 { "@PROGRAM@", (void *) 0 },
13757 _LT_EOF
13758 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13759 cat <<\_LT_EOF >> conftest.$ac_ext
13760 {0, (void *) 0}
13763 /* This works around a problem in FreeBSD linker */
13764 #ifdef FREEBSD_WORKAROUND
13765 static const void *lt_preloaded_setup() {
13766 return lt__PROGRAM__LTX_preloaded_symbols;
13768 #endif
13770 #ifdef __cplusplus
13772 #endif
13773 _LT_EOF
13774 # Now try linking the two files.
13775 mv conftest.$ac_objext conftstm.$ac_objext
13776 lt_save_LIBS="$LIBS"
13777 lt_save_CFLAGS="$CFLAGS"
13778 LIBS="conftstm.$ac_objext"
13779 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13781 (eval $ac_link) 2>&5
13782 ac_status=$?
13783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13785 pipe_works=yes
13787 LIBS="$lt_save_LIBS"
13788 CFLAGS="$lt_save_CFLAGS"
13789 else
13790 echo "cannot find nm_test_func in $nlist" >&5
13792 else
13793 echo "cannot find nm_test_var in $nlist" >&5
13795 else
13796 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13798 else
13799 echo "$progname: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13802 rm -rf conftest* conftst*
13804 # Do not use the global_symbol_pipe unless it works.
13805 if test "$pipe_works" = yes; then
13806 break
13807 else
13808 lt_cv_sys_global_symbol_pipe=
13810 done
13814 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13815 lt_cv_sys_global_symbol_to_cdecl=
13817 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13819 $as_echo "failed" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13822 $as_echo "ok" >&6; }
13846 # Check whether --enable-libtool-lock was given.
13847 if test "${enable_libtool_lock+set}" = set; then :
13848 enableval=$enable_libtool_lock;
13851 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13853 # Some flags need to be propagated to the compiler or linker for good
13854 # libtool support.
13855 case $host in
13856 ia64-*-hpux*)
13857 # Find out which ABI we are using.
13858 echo 'int i;' > conftest.$ac_ext
13859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13860 (eval $ac_compile) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863 test $ac_status = 0; }; then
13864 case `/usr/bin/file conftest.$ac_objext` in
13865 *ELF-32*)
13866 HPUX_IA64_MODE="32"
13868 *ELF-64*)
13869 HPUX_IA64_MODE="64"
13871 esac
13873 rm -rf conftest*
13875 *-*-irix6*)
13876 # Find out which ABI we are using.
13877 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13879 (eval $ac_compile) 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; then
13883 if test "$lt_cv_prog_gnu_ld" = yes; then
13884 case `/usr/bin/file conftest.$ac_objext` in
13885 *32-bit*)
13886 LD="${LD-ld} -melf32bsmip"
13888 *N32*)
13889 LD="${LD-ld} -melf32bmipn32"
13891 *64-bit*)
13892 LD="${LD-ld} -melf64bmip"
13894 esac
13895 else
13896 case `/usr/bin/file conftest.$ac_objext` in
13897 *32-bit*)
13898 LD="${LD-ld} -32"
13900 *N32*)
13901 LD="${LD-ld} -n32"
13903 *64-bit*)
13904 LD="${LD-ld} -64"
13906 esac
13909 rm -rf conftest*
13912 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13913 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13914 # Find out which ABI we are using.
13915 echo 'int i;' > conftest.$ac_ext
13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13917 (eval $ac_compile) 2>&5
13918 ac_status=$?
13919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920 test $ac_status = 0; }; then
13921 case `/usr/bin/file conftest.o` in
13922 *32-bit*)
13923 case $host in
13924 x86_64-*kfreebsd*-gnu)
13925 LD="${LD-ld} -m elf_i386_fbsd"
13927 x86_64-*linux*)
13928 case `/usr/bin/file conftest.o` in
13929 *x86-64*)
13930 LD="${LD-ld} -m elf32_x86_64"
13933 LD="${LD-ld} -m elf_i386"
13935 esac
13937 powerpc64le-*linux*)
13938 LD="${LD-ld} -m elf32lppclinux"
13940 powerpc64-*linux*)
13941 LD="${LD-ld} -m elf32ppclinux"
13943 s390x-*linux*)
13944 LD="${LD-ld} -m elf_s390"
13946 sparc64-*linux*)
13947 LD="${LD-ld} -m elf32_sparc"
13949 esac
13951 *64-bit*)
13952 case $host in
13953 x86_64-*kfreebsd*-gnu)
13954 LD="${LD-ld} -m elf_x86_64_fbsd"
13956 x86_64-*linux*)
13957 LD="${LD-ld} -m elf_x86_64"
13959 powerpcle-*linux*)
13960 LD="${LD-ld} -m elf64lppc"
13962 powerpc-*linux*)
13963 LD="${LD-ld} -m elf64ppc"
13965 s390*-*linux*|s390*-*tpf*)
13966 LD="${LD-ld} -m elf64_s390"
13968 sparc*-*linux*)
13969 LD="${LD-ld} -m elf64_sparc"
13971 esac
13973 esac
13975 rm -rf conftest*
13978 *-*-sco3.2v5*)
13979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13980 SAVE_CFLAGS="$CFLAGS"
13981 CFLAGS="$CFLAGS -belf"
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13983 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13984 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 ac_ext=c
13988 ac_cpp='$CPP $CPPFLAGS'
13989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13997 main ()
14001 return 0;
14003 _ACEOF
14004 if ac_fn_c_try_link "$LINENO"; then :
14005 lt_cv_cc_needs_belf=yes
14006 else
14007 lt_cv_cc_needs_belf=no
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 ac_ext=c
14012 ac_cpp='$CPP $CPPFLAGS'
14013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14019 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14022 CFLAGS="$SAVE_CFLAGS"
14025 sparc*-*solaris*)
14026 # Find out which ABI we are using.
14027 echo 'int i;' > conftest.$ac_ext
14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14029 (eval $ac_compile) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; then
14033 case `/usr/bin/file conftest.o` in
14034 *64-bit*)
14035 case $lt_cv_prog_gnu_ld in
14036 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14039 LD="${LD-ld} -64"
14042 esac
14044 esac
14046 rm -rf conftest*
14048 esac
14050 need_locks="$enable_libtool_lock"
14053 case $host_os in
14054 rhapsody* | darwin*)
14055 if test -n "$ac_tool_prefix"; then
14056 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14057 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 if test -n "$DSYMUTIL"; then
14064 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14065 else
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14073 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14075 break 2
14077 done
14078 done
14079 IFS=$as_save_IFS
14083 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14084 if test -n "$DSYMUTIL"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14086 $as_echo "$DSYMUTIL" >&6; }
14087 else
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14094 if test -z "$ac_cv_prog_DSYMUTIL"; then
14095 ac_ct_DSYMUTIL=$DSYMUTIL
14096 # Extract the first word of "dsymutil", so it can be a program name with args.
14097 set dummy dsymutil; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 if test -n "$ac_ct_DSYMUTIL"; then
14104 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14117 done
14118 done
14119 IFS=$as_save_IFS
14123 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14124 if test -n "$ac_ct_DSYMUTIL"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14126 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14132 if test "x$ac_ct_DSYMUTIL" = x; then
14133 DSYMUTIL=":"
14134 else
14135 case $cross_compiling:$ac_tool_warned in
14136 yes:)
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14139 ac_tool_warned=yes ;;
14140 esac
14141 DSYMUTIL=$ac_ct_DSYMUTIL
14143 else
14144 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14147 if test -n "$ac_tool_prefix"; then
14148 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14149 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151 $as_echo_n "checking for $ac_word... " >&6; }
14152 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 if test -n "$NMEDIT"; then
14156 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14157 else
14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 for as_dir in $PATH
14161 IFS=$as_save_IFS
14162 test -z "$as_dir" && as_dir=.
14163 for ac_exec_ext in '' $ac_executable_extensions; do
14164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14165 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14167 break 2
14169 done
14170 done
14171 IFS=$as_save_IFS
14175 NMEDIT=$ac_cv_prog_NMEDIT
14176 if test -n "$NMEDIT"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14178 $as_echo "$NMEDIT" >&6; }
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14186 if test -z "$ac_cv_prog_NMEDIT"; then
14187 ac_ct_NMEDIT=$NMEDIT
14188 # Extract the first word of "nmedit", so it can be a program name with args.
14189 set dummy nmedit; ac_word=$2
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191 $as_echo_n "checking for $ac_word... " >&6; }
14192 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
14194 else
14195 if test -n "$ac_ct_NMEDIT"; then
14196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14197 else
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $PATH
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
14204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14205 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14209 done
14210 done
14211 IFS=$as_save_IFS
14215 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14216 if test -n "$ac_ct_NMEDIT"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14218 $as_echo "$ac_ct_NMEDIT" >&6; }
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14224 if test "x$ac_ct_NMEDIT" = x; then
14225 NMEDIT=":"
14226 else
14227 case $cross_compiling:$ac_tool_warned in
14228 yes:)
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14231 ac_tool_warned=yes ;;
14232 esac
14233 NMEDIT=$ac_ct_NMEDIT
14235 else
14236 NMEDIT="$ac_cv_prog_NMEDIT"
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if test "${ac_cv_prog_LIPO+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$LIPO"; then
14248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14261 done
14262 done
14263 IFS=$as_save_IFS
14267 LIPO=$ac_cv_prog_LIPO
14268 if test -n "$LIPO"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14270 $as_echo "$LIPO" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14278 if test -z "$ac_cv_prog_LIPO"; then
14279 ac_ct_LIPO=$LIPO
14280 # Extract the first word of "lipo", so it can be a program name with args.
14281 set dummy lipo; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$ac_ct_LIPO"; then
14288 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14297 ac_cv_prog_ac_ct_LIPO="lipo"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14301 done
14302 done
14303 IFS=$as_save_IFS
14307 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14308 if test -n "$ac_ct_LIPO"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14310 $as_echo "$ac_ct_LIPO" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14316 if test "x$ac_ct_LIPO" = x; then
14317 LIPO=":"
14318 else
14319 case $cross_compiling:$ac_tool_warned in
14320 yes:)
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323 ac_tool_warned=yes ;;
14324 esac
14325 LIPO=$ac_ct_LIPO
14327 else
14328 LIPO="$ac_cv_prog_LIPO"
14331 if test -n "$ac_tool_prefix"; then
14332 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14333 set dummy ${ac_tool_prefix}otool; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$OTOOL"; then
14340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14353 done
14354 done
14355 IFS=$as_save_IFS
14359 OTOOL=$ac_cv_prog_OTOOL
14360 if test -n "$OTOOL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14362 $as_echo "$OTOOL" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14370 if test -z "$ac_cv_prog_OTOOL"; then
14371 ac_ct_OTOOL=$OTOOL
14372 # Extract the first word of "otool", so it can be a program name with args.
14373 set dummy otool; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$ac_ct_OTOOL"; then
14380 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_ac_ct_OTOOL="otool"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14393 done
14394 done
14395 IFS=$as_save_IFS
14399 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14400 if test -n "$ac_ct_OTOOL"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14402 $as_echo "$ac_ct_OTOOL" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14408 if test "x$ac_ct_OTOOL" = x; then
14409 OTOOL=":"
14410 else
14411 case $cross_compiling:$ac_tool_warned in
14412 yes:)
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14415 ac_tool_warned=yes ;;
14416 esac
14417 OTOOL=$ac_ct_OTOOL
14419 else
14420 OTOOL="$ac_cv_prog_OTOOL"
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$OTOOL64"; then
14432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14445 done
14446 done
14447 IFS=$as_save_IFS
14451 OTOOL64=$ac_cv_prog_OTOOL64
14452 if test -n "$OTOOL64"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14454 $as_echo "$OTOOL64" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test -z "$ac_cv_prog_OTOOL64"; then
14463 ac_ct_OTOOL64=$OTOOL64
14464 # Extract the first word of "otool64", so it can be a program name with args.
14465 set dummy otool64; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 if test -n "$ac_ct_OTOOL64"; then
14472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_ac_ct_OTOOL64="otool64"
14482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14485 done
14486 done
14487 IFS=$as_save_IFS
14491 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14492 if test -n "$ac_ct_OTOOL64"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14494 $as_echo "$ac_ct_OTOOL64" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14500 if test "x$ac_ct_OTOOL64" = x; then
14501 OTOOL64=":"
14502 else
14503 case $cross_compiling:$ac_tool_warned in
14504 yes:)
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 OTOOL64=$ac_ct_OTOOL64
14511 else
14512 OTOOL64="$ac_cv_prog_OTOOL64"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14542 $as_echo_n "checking for -single_module linker flag... " >&6; }
14543 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_apple_cc_single_mod=no
14547 if test -z "${LT_MULTI_MODULE}"; then
14548 # By default we will add the -single_module flag. You can override
14549 # by either setting the environment variable LT_MULTI_MODULE
14550 # non-empty at configure time, or by adding -multi_module to the
14551 # link flags.
14552 rm -rf libconftest.dylib*
14553 echo "int foo(void){return 1;}" > conftest.c
14554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14555 -dynamiclib -Wl,-single_module conftest.c" >&5
14556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14558 _lt_result=$?
14559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14560 lt_cv_apple_cc_single_mod=yes
14561 else
14562 cat conftest.err >&5
14564 rm -rf libconftest.dylib*
14565 rm -f conftest.*
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14569 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14572 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 lt_cv_ld_exported_symbols_list=no
14576 save_LDFLAGS=$LDFLAGS
14577 echo "_main" > conftest.sym
14578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14583 main ()
14587 return 0;
14589 _ACEOF
14590 if ac_fn_c_try_link "$LINENO"; then :
14591 lt_cv_ld_exported_symbols_list=yes
14592 else
14593 lt_cv_ld_exported_symbols_list=no
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LDFLAGS="$save_LDFLAGS"
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14603 $as_echo_n "checking for -force_load linker flag... " >&6; }
14604 if test "${lt_cv_ld_force_load+set}" = set; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 lt_cv_ld_force_load=no
14608 cat > conftest.c << _LT_EOF
14609 int forced_loaded() { return 2;}
14610 _LT_EOF
14611 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14612 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14613 echo "$AR cru libconftest.a conftest.o" >&5
14614 $AR cru libconftest.a conftest.o 2>&5
14615 cat > conftest.c << _LT_EOF
14616 int main() { return 0;}
14617 _LT_EOF
14618 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14619 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14620 _lt_result=$?
14621 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14622 lt_cv_ld_force_load=yes
14623 else
14624 cat conftest.err >&5
14626 rm -f conftest.err libconftest.a conftest conftest.c
14627 rm -rf conftest.dSYM
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14631 $as_echo "$lt_cv_ld_force_load" >&6; }
14632 case $host_os in
14633 rhapsody* | darwin1.[012])
14634 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14635 darwin1.*)
14636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14637 darwin*) # darwin 5.x on
14638 # if running on 10.5 or later, the deployment target defaults
14639 # to the OS version, if on x86, and 10.4, the deployment
14640 # target defaults to 10.4. Don't you love it?
14641 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14642 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14644 10.[012][,.]*)
14645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14646 10.*)
14647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14648 esac
14650 esac
14651 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14652 _lt_dar_single_mod='$single_module'
14654 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14655 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14656 else
14657 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14659 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14660 _lt_dsymutil='~$DSYMUTIL $lib || :'
14661 else
14662 _lt_dsymutil=
14665 esac
14667 for ac_header in dlfcn.h
14668 do :
14669 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14670 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DLFCN_H 1
14673 _ACEOF
14676 done
14682 # Set options
14686 enable_dlopen=no
14689 enable_win32_dll=no
14692 # Check whether --enable-shared was given.
14693 if test "${enable_shared+set}" = set; then :
14694 enableval=$enable_shared; p=${PACKAGE-default}
14695 case $enableval in
14696 yes) enable_shared=yes ;;
14697 no) enable_shared=no ;;
14699 enable_shared=no
14700 # Look at the argument we got. We use all the common list separators.
14701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14702 for pkg in $enableval; do
14703 IFS="$lt_save_ifs"
14704 if test "X$pkg" = "X$p"; then
14705 enable_shared=yes
14707 done
14708 IFS="$lt_save_ifs"
14710 esac
14711 else
14712 enable_shared=yes
14723 # Check whether --enable-static was given.
14724 if test "${enable_static+set}" = set; then :
14725 enableval=$enable_static; p=${PACKAGE-default}
14726 case $enableval in
14727 yes) enable_static=yes ;;
14728 no) enable_static=no ;;
14730 enable_static=no
14731 # Look at the argument we got. We use all the common list separators.
14732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14733 for pkg in $enableval; do
14734 IFS="$lt_save_ifs"
14735 if test "X$pkg" = "X$p"; then
14736 enable_static=yes
14738 done
14739 IFS="$lt_save_ifs"
14741 esac
14742 else
14743 enable_static=yes
14755 # Check whether --with-pic was given.
14756 if test "${with_pic+set}" = set; then :
14757 withval=$with_pic; pic_mode="$withval"
14758 else
14759 pic_mode=default
14763 test -z "$pic_mode" && pic_mode=default
14771 # Check whether --enable-fast-install was given.
14772 if test "${enable_fast_install+set}" = set; then :
14773 enableval=$enable_fast_install; p=${PACKAGE-default}
14774 case $enableval in
14775 yes) enable_fast_install=yes ;;
14776 no) enable_fast_install=no ;;
14778 enable_fast_install=no
14779 # Look at the argument we got. We use all the common list separators.
14780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14781 for pkg in $enableval; do
14782 IFS="$lt_save_ifs"
14783 if test "X$pkg" = "X$p"; then
14784 enable_fast_install=yes
14786 done
14787 IFS="$lt_save_ifs"
14789 esac
14790 else
14791 enable_fast_install=yes
14804 # This can be used to rebuild libtool when needed
14805 LIBTOOL_DEPS="$ltmain"
14807 # Always use our own libtool.
14808 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14835 test -z "$LN_S" && LN_S="ln -s"
14850 if test -n "${ZSH_VERSION+set}" ; then
14851 setopt NO_GLOB_SUBST
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14855 $as_echo_n "checking for objdir... " >&6; }
14856 if test "${lt_cv_objdir+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 rm -f .libs 2>/dev/null
14860 mkdir .libs 2>/dev/null
14861 if test -d .libs; then
14862 lt_cv_objdir=.libs
14863 else
14864 # MS-DOS does not allow filenames that begin with a dot.
14865 lt_cv_objdir=_libs
14867 rmdir .libs 2>/dev/null
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14870 $as_echo "$lt_cv_objdir" >&6; }
14871 objdir=$lt_cv_objdir
14877 cat >>confdefs.h <<_ACEOF
14878 #define LT_OBJDIR "$lt_cv_objdir/"
14879 _ACEOF
14884 case $host_os in
14885 aix3*)
14886 # AIX sometimes has problems with the GCC collect2 program. For some
14887 # reason, if we set the COLLECT_NAMES environment variable, the problems
14888 # vanish in a puff of smoke.
14889 if test "X${COLLECT_NAMES+set}" != Xset; then
14890 COLLECT_NAMES=
14891 export COLLECT_NAMES
14894 esac
14896 # Global variables:
14897 ofile=libtool
14898 can_build_shared=yes
14900 # All known linkers require a `.a' archive for static linking (except MSVC,
14901 # which needs '.lib').
14902 libext=a
14904 with_gnu_ld="$lt_cv_prog_gnu_ld"
14906 old_CC="$CC"
14907 old_CFLAGS="$CFLAGS"
14909 # Set sane defaults for various variables
14910 test -z "$CC" && CC=cc
14911 test -z "$LTCC" && LTCC=$CC
14912 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14913 test -z "$LD" && LD=ld
14914 test -z "$ac_objext" && ac_objext=o
14916 for cc_temp in $compiler""; do
14917 case $cc_temp in
14918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14920 \-*) ;;
14921 *) break;;
14922 esac
14923 done
14924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14927 # Only perform the check for file, if the check method requires it
14928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14929 case $deplibs_check_method in
14930 file_magic*)
14931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14933 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 case $MAGIC_CMD in
14938 [\\/*] | ?:[\\/]*)
14939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14942 lt_save_MAGIC_CMD="$MAGIC_CMD"
14943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14945 for ac_dir in $ac_dummy; do
14946 IFS="$lt_save_ifs"
14947 test -z "$ac_dir" && ac_dir=.
14948 if test -f $ac_dir/${ac_tool_prefix}file; then
14949 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14950 if test -n "$file_magic_test_file"; then
14951 case $deplibs_check_method in
14952 "file_magic "*)
14953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14956 $EGREP "$file_magic_regex" > /dev/null; then
14958 else
14959 cat <<_LT_EOF 1>&2
14961 *** Warning: the command libtool uses to detect shared libraries,
14962 *** $file_magic_cmd, produces output that libtool cannot recognize.
14963 *** The result is that libtool may fail to recognize shared libraries
14964 *** as such. This will affect the creation of libtool libraries that
14965 *** depend on shared libraries, but programs linked with such libtool
14966 *** libraries will work regardless of this problem. Nevertheless, you
14967 *** may want to report the problem to your system manager and/or to
14968 *** bug-libtool@gnu.org
14970 _LT_EOF
14971 fi ;;
14972 esac
14974 break
14976 done
14977 IFS="$lt_save_ifs"
14978 MAGIC_CMD="$lt_save_MAGIC_CMD"
14980 esac
14983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14984 if test -n "$MAGIC_CMD"; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14986 $as_echo "$MAGIC_CMD" >&6; }
14987 else
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14996 if test -z "$lt_cv_path_MAGIC_CMD"; then
14997 if test -n "$ac_tool_prefix"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14999 $as_echo_n "checking for file... " >&6; }
15000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 case $MAGIC_CMD in
15004 [\\/*] | ?:[\\/]*)
15005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15008 lt_save_MAGIC_CMD="$MAGIC_CMD"
15009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15011 for ac_dir in $ac_dummy; do
15012 IFS="$lt_save_ifs"
15013 test -z "$ac_dir" && ac_dir=.
15014 if test -f $ac_dir/file; then
15015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15016 if test -n "$file_magic_test_file"; then
15017 case $deplibs_check_method in
15018 "file_magic "*)
15019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15022 $EGREP "$file_magic_regex" > /dev/null; then
15024 else
15025 cat <<_LT_EOF 1>&2
15027 *** Warning: the command libtool uses to detect shared libraries,
15028 *** $file_magic_cmd, produces output that libtool cannot recognize.
15029 *** The result is that libtool may fail to recognize shared libraries
15030 *** as such. This will affect the creation of libtool libraries that
15031 *** depend on shared libraries, but programs linked with such libtool
15032 *** libraries will work regardless of this problem. Nevertheless, you
15033 *** may want to report the problem to your system manager and/or to
15034 *** bug-libtool@gnu.org
15036 _LT_EOF
15037 fi ;;
15038 esac
15040 break
15042 done
15043 IFS="$lt_save_ifs"
15044 MAGIC_CMD="$lt_save_MAGIC_CMD"
15046 esac
15049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15050 if test -n "$MAGIC_CMD"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15052 $as_echo "$MAGIC_CMD" >&6; }
15053 else
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15059 else
15060 MAGIC_CMD=:
15066 esac
15068 # Use C for the default configuration in the libtool script
15070 lt_save_CC="$CC"
15071 ac_ext=c
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078 # Source file extension for C test sources.
15079 ac_ext=c
15081 # Object file extension for compiled C test sources.
15082 objext=o
15083 objext=$objext
15085 # Code to be used in simple compile tests
15086 lt_simple_compile_test_code="int some_variable = 0;"
15088 # Code to be used in simple link tests
15089 lt_simple_link_test_code='int main(){return(0);}'
15097 # If no C compiler was specified, use CC.
15098 LTCC=${LTCC-"$CC"}
15100 # If no C compiler flags were specified, use CFLAGS.
15101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15103 # Allow CC to be a program name with arguments.
15104 compiler=$CC
15106 # Save the default compiler, since it gets overwritten when the other
15107 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15108 compiler_DEFAULT=$CC
15110 # save warnings/boilerplate of simple test code
15111 ac_outfile=conftest.$ac_objext
15112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15114 _lt_compiler_boilerplate=`cat conftest.err`
15115 $RM conftest*
15117 ac_outfile=conftest.$ac_objext
15118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15120 _lt_linker_boilerplate=`cat conftest.err`
15121 $RM -r conftest*
15124 ## CAVEAT EMPTOR:
15125 ## There is no encapsulation within the following macros, do not change
15126 ## the running order or otherwise move them around unless you know exactly
15127 ## what you are doing...
15128 if test -n "$compiler"; then
15130 lt_prog_compiler_no_builtin_flag=
15132 if test "$GCC" = yes; then
15133 case $cc_basename in
15134 nvcc*)
15135 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15137 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15138 esac
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15141 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 lt_cv_prog_compiler_rtti_exceptions=no
15146 ac_outfile=conftest.$ac_objext
15147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15148 lt_compiler_flag="-fno-rtti -fno-exceptions"
15149 # Insert the option either (1) after the last *FLAGS variable, or
15150 # (2) before a word containing "conftest.", or (3) at the end.
15151 # Note that $ac_compile itself does not contain backslashes and begins
15152 # with a dollar sign (not a hyphen), so the echo should work correctly.
15153 # The option is referenced via a variable to avoid confusing sed.
15154 lt_compile=`echo "$ac_compile" | $SED \
15155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15157 -e 's:$: $lt_compiler_flag:'`
15158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15159 (eval "$lt_compile" 2>conftest.err)
15160 ac_status=$?
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 if (exit $ac_status) && test -s "$ac_outfile"; then
15164 # The compiler can only warn and ignore the option if not recognized
15165 # So say no if there are warnings other than the usual output.
15166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15169 lt_cv_prog_compiler_rtti_exceptions=yes
15172 $RM conftest*
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15176 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15178 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15179 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15180 else
15191 lt_prog_compiler_wl=
15192 lt_prog_compiler_pic=
15193 lt_prog_compiler_static=
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15198 if test "$GCC" = yes; then
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_static='-static'
15202 case $host_os in
15203 aix*)
15204 # All AIX code is PIC.
15205 if test "$host_cpu" = ia64; then
15206 # AIX 5 now supports IA64 processor
15207 lt_prog_compiler_static='-Bstatic'
15209 lt_prog_compiler_pic='-fPIC'
15212 amigaos*)
15213 case $host_cpu in
15214 powerpc)
15215 # see comment about AmigaOS4 .so support
15216 lt_prog_compiler_pic='-fPIC'
15218 m68k)
15219 # FIXME: we need at least 68020 code to build shared libraries, but
15220 # adding the `-m68020' flag to GCC prevents building anything better,
15221 # like `-m68040'.
15222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15224 esac
15227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15228 # PIC is the default for these OSes.
15231 mingw* | cygwin* | pw32* | os2* | cegcc*)
15232 # This hack is so that the source file can tell whether it is being
15233 # built for inclusion in a dll (and should export symbols for example).
15234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15235 # (--disable-auto-import) libraries
15236 lt_prog_compiler_pic='-DDLL_EXPORT'
15239 darwin* | rhapsody*)
15240 # PIC is the default on this platform
15241 # Common symbols not allowed in MH_DYLIB files
15242 lt_prog_compiler_pic='-fno-common'
15245 haiku*)
15246 # PIC is the default for Haiku.
15247 # The "-static" flag exists, but is broken.
15248 lt_prog_compiler_static=
15251 hpux*)
15252 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15253 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15254 # sets the default TLS model and affects inlining.
15255 case $host_cpu in
15256 hppa*64*)
15257 # +Z the default
15260 lt_prog_compiler_pic='-fPIC'
15262 esac
15265 interix[3-9]*)
15266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15267 # Instead, we relocate shared libraries at runtime.
15270 msdosdjgpp*)
15271 # Just because we use GCC doesn't mean we suddenly get shared libraries
15272 # on systems that don't support them.
15273 lt_prog_compiler_can_build_shared=no
15274 enable_shared=no
15277 *nto* | *qnx*)
15278 # QNX uses GNU C++, but need to define -shared option too, otherwise
15279 # it will coredump.
15280 lt_prog_compiler_pic='-fPIC -shared'
15283 sysv4*MP*)
15284 if test -d /usr/nec; then
15285 lt_prog_compiler_pic=-Kconform_pic
15290 lt_prog_compiler_pic='-fPIC'
15292 esac
15294 case $cc_basename in
15295 nvcc*) # Cuda Compiler Driver 2.2
15296 lt_prog_compiler_wl='-Xlinker '
15297 lt_prog_compiler_pic='-Xcompiler -fPIC'
15299 esac
15300 else
15301 # PORTME Check for flag to pass linker flags through the system compiler.
15302 case $host_os in
15303 aix*)
15304 lt_prog_compiler_wl='-Wl,'
15305 if test "$host_cpu" = ia64; then
15306 # AIX 5 now supports IA64 processor
15307 lt_prog_compiler_static='-Bstatic'
15308 else
15309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15313 mingw* | cygwin* | pw32* | os2* | cegcc*)
15314 # This hack is so that the source file can tell whether it is being
15315 # built for inclusion in a dll (and should export symbols for example).
15316 lt_prog_compiler_pic='-DDLL_EXPORT'
15319 hpux9* | hpux10* | hpux11*)
15320 lt_prog_compiler_wl='-Wl,'
15321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15322 # not for PA HP-UX.
15323 case $host_cpu in
15324 hppa*64*|ia64*)
15325 # +Z the default
15328 lt_prog_compiler_pic='+Z'
15330 esac
15331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15332 lt_prog_compiler_static='${wl}-a ${wl}archive'
15335 irix5* | irix6* | nonstopux*)
15336 lt_prog_compiler_wl='-Wl,'
15337 # PIC (with -KPIC) is the default.
15338 lt_prog_compiler_static='-non_shared'
15341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15342 case $cc_basename in
15343 # old Intel for x86_64 which still supported -KPIC.
15344 ecc*)
15345 lt_prog_compiler_wl='-Wl,'
15346 lt_prog_compiler_pic='-KPIC'
15347 lt_prog_compiler_static='-static'
15349 # icc used to be incompatible with GCC.
15350 # ICC 10 doesn't accept -KPIC any more.
15351 icc* | ifort*)
15352 lt_prog_compiler_wl='-Wl,'
15353 lt_prog_compiler_pic='-fPIC'
15354 lt_prog_compiler_static='-static'
15356 # Lahey Fortran 8.1.
15357 lf95*)
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='--shared'
15360 lt_prog_compiler_static='--static'
15362 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15363 # Portland Group compilers (*not* the Pentium gcc compiler,
15364 # which looks to be a dead project)
15365 lt_prog_compiler_wl='-Wl,'
15366 lt_prog_compiler_pic='-fpic'
15367 lt_prog_compiler_static='-Bstatic'
15369 ccc*)
15370 lt_prog_compiler_wl='-Wl,'
15371 # All Alpha code is PIC.
15372 lt_prog_compiler_static='-non_shared'
15374 xl* | bgxl* | bgf* | mpixl*)
15375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15376 lt_prog_compiler_wl='-Wl,'
15377 lt_prog_compiler_pic='-qpic'
15378 lt_prog_compiler_static='-qstaticlink'
15381 case `$CC -V 2>&1 | sed 5q` in
15382 *Sun\ F* | *Sun*Fortran*)
15383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15384 lt_prog_compiler_pic='-KPIC'
15385 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_wl=''
15388 *Sun\ C*)
15389 # Sun C 5.9
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_wl='-Wl,'
15394 esac
15396 esac
15399 newsos6)
15400 lt_prog_compiler_pic='-KPIC'
15401 lt_prog_compiler_static='-Bstatic'
15404 *nto* | *qnx*)
15405 # QNX uses GNU C++, but need to define -shared option too, otherwise
15406 # it will coredump.
15407 lt_prog_compiler_pic='-fPIC -shared'
15410 osf3* | osf4* | osf5*)
15411 lt_prog_compiler_wl='-Wl,'
15412 # All OSF/1 code is PIC.
15413 lt_prog_compiler_static='-non_shared'
15416 rdos*)
15417 lt_prog_compiler_static='-non_shared'
15420 solaris*)
15421 lt_prog_compiler_pic='-KPIC'
15422 lt_prog_compiler_static='-Bstatic'
15423 case $cc_basename in
15424 f77* | f90* | f95*)
15425 lt_prog_compiler_wl='-Qoption ld ';;
15427 lt_prog_compiler_wl='-Wl,';;
15428 esac
15431 sunos4*)
15432 lt_prog_compiler_wl='-Qoption ld '
15433 lt_prog_compiler_pic='-PIC'
15434 lt_prog_compiler_static='-Bstatic'
15437 sysv4 | sysv4.2uw2* | sysv4.3*)
15438 lt_prog_compiler_wl='-Wl,'
15439 lt_prog_compiler_pic='-KPIC'
15440 lt_prog_compiler_static='-Bstatic'
15443 sysv4*MP*)
15444 if test -d /usr/nec ;then
15445 lt_prog_compiler_pic='-Kconform_pic'
15446 lt_prog_compiler_static='-Bstatic'
15450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_pic='-KPIC'
15453 lt_prog_compiler_static='-Bstatic'
15456 unicos*)
15457 lt_prog_compiler_wl='-Wl,'
15458 lt_prog_compiler_can_build_shared=no
15461 uts4*)
15462 lt_prog_compiler_pic='-pic'
15463 lt_prog_compiler_static='-Bstatic'
15467 lt_prog_compiler_can_build_shared=no
15469 esac
15472 case $host_os in
15473 # For platforms which do not support PIC, -DPIC is meaningless:
15474 *djgpp*)
15475 lt_prog_compiler_pic=
15478 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15480 esac
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15482 $as_echo "$lt_prog_compiler_pic" >&6; }
15490 # Check to make sure the PIC flag actually works.
15492 if test -n "$lt_prog_compiler_pic"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15495 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 lt_cv_prog_compiler_pic_works=no
15499 ac_outfile=conftest.$ac_objext
15500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15501 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15502 # Insert the option either (1) after the last *FLAGS variable, or
15503 # (2) before a word containing "conftest.", or (3) at the end.
15504 # Note that $ac_compile itself does not contain backslashes and begins
15505 # with a dollar sign (not a hyphen), so the echo should work correctly.
15506 # The option is referenced via a variable to avoid confusing sed.
15507 lt_compile=`echo "$ac_compile" | $SED \
15508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15510 -e 's:$: $lt_compiler_flag:'`
15511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15512 (eval "$lt_compile" 2>conftest.err)
15513 ac_status=$?
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 if (exit $ac_status) && test -s "$ac_outfile"; then
15517 # The compiler can only warn and ignore the option if not recognized
15518 # So say no if there are warnings other than the usual output.
15519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15522 lt_cv_prog_compiler_pic_works=yes
15525 $RM conftest*
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15529 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15531 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15532 case $lt_prog_compiler_pic in
15533 "" | " "*) ;;
15534 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15535 esac
15536 else
15537 lt_prog_compiler_pic=
15538 lt_prog_compiler_can_build_shared=no
15549 # Check to make sure the static flag actually works.
15551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15553 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15554 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 lt_cv_prog_compiler_static_works=no
15558 save_LDFLAGS="$LDFLAGS"
15559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15562 # The linker can only warn and ignore the option if not recognized
15563 # So say no if there are warnings
15564 if test -s conftest.err; then
15565 # Append any errors to the config.log.
15566 cat conftest.err 1>&5
15567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15569 if diff conftest.exp conftest.er2 >/dev/null; then
15570 lt_cv_prog_compiler_static_works=yes
15572 else
15573 lt_cv_prog_compiler_static_works=yes
15576 $RM -r conftest*
15577 LDFLAGS="$save_LDFLAGS"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15581 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15583 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15585 else
15586 lt_prog_compiler_static=
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 lt_cv_prog_compiler_c_o=no
15601 $RM -r conftest 2>/dev/null
15602 mkdir conftest
15603 cd conftest
15604 mkdir out
15605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15607 lt_compiler_flag="-o out/conftest2.$ac_objext"
15608 # Insert the option either (1) after the last *FLAGS variable, or
15609 # (2) before a word containing "conftest.", or (3) at the end.
15610 # Note that $ac_compile itself does not contain backslashes and begins
15611 # with a dollar sign (not a hyphen), so the echo should work correctly.
15612 lt_compile=`echo "$ac_compile" | $SED \
15613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15615 -e 's:$: $lt_compiler_flag:'`
15616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15617 (eval "$lt_compile" 2>out/conftest.err)
15618 ac_status=$?
15619 cat out/conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15622 then
15623 # The compiler can only warn and ignore the option if not recognized
15624 # So say no if there are warnings
15625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15628 lt_cv_prog_compiler_c_o=yes
15631 chmod u+w . 2>&5
15632 $RM conftest*
15633 # SGI C++ compiler will create directory out/ii_files/ for
15634 # template instantiation
15635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15636 $RM out/* && rmdir out
15637 cd ..
15638 $RM -r conftest
15639 $RM conftest*
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15652 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 lt_cv_prog_compiler_c_o=no
15656 $RM -r conftest 2>/dev/null
15657 mkdir conftest
15658 cd conftest
15659 mkdir out
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15662 lt_compiler_flag="-o out/conftest2.$ac_objext"
15663 # Insert the option either (1) after the last *FLAGS variable, or
15664 # (2) before a word containing "conftest.", or (3) at the end.
15665 # Note that $ac_compile itself does not contain backslashes and begins
15666 # with a dollar sign (not a hyphen), so the echo should work correctly.
15667 lt_compile=`echo "$ac_compile" | $SED \
15668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15670 -e 's:$: $lt_compiler_flag:'`
15671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15672 (eval "$lt_compile" 2>out/conftest.err)
15673 ac_status=$?
15674 cat out/conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15677 then
15678 # The compiler can only warn and ignore the option if not recognized
15679 # So say no if there are warnings
15680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15683 lt_cv_prog_compiler_c_o=yes
15686 chmod u+w . 2>&5
15687 $RM conftest*
15688 # SGI C++ compiler will create directory out/ii_files/ for
15689 # template instantiation
15690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15691 $RM out/* && rmdir out
15692 cd ..
15693 $RM -r conftest
15694 $RM conftest*
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15703 hard_links="nottested"
15704 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15705 # do not overwrite the value of need_locks provided by the user
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15707 $as_echo_n "checking if we can lock with hard links... " >&6; }
15708 hard_links=yes
15709 $RM conftest*
15710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15711 touch conftest.a
15712 ln conftest.a conftest.b 2>&5 || hard_links=no
15713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15715 $as_echo "$hard_links" >&6; }
15716 if test "$hard_links" = no; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15718 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15719 need_locks=warn
15721 else
15722 need_locks=no
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15733 runpath_var=
15734 allow_undefined_flag=
15735 always_export_symbols=no
15736 archive_cmds=
15737 archive_expsym_cmds=
15738 compiler_needs_object=no
15739 enable_shared_with_static_runtimes=no
15740 export_dynamic_flag_spec=
15741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15742 hardcode_automatic=no
15743 hardcode_direct=no
15744 hardcode_direct_absolute=no
15745 hardcode_libdir_flag_spec=
15746 hardcode_libdir_flag_spec_ld=
15747 hardcode_libdir_separator=
15748 hardcode_minus_L=no
15749 hardcode_shlibpath_var=unsupported
15750 inherit_rpath=no
15751 link_all_deplibs=unknown
15752 module_cmds=
15753 module_expsym_cmds=
15754 old_archive_from_new_cmds=
15755 old_archive_from_expsyms_cmds=
15756 thread_safe_flag_spec=
15757 whole_archive_flag_spec=
15758 # include_expsyms should be a list of space-separated symbols to be *always*
15759 # included in the symbol list
15760 include_expsyms=
15761 # exclude_expsyms can be an extended regexp of symbols to exclude
15762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15764 # as well as any symbol that contains `d'.
15765 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15767 # platforms (ab)use it in PIC code, but their linkers get confused if
15768 # the symbol is explicitly referenced. Since portable code cannot
15769 # rely on this symbol name, it's probably fine to never include it in
15770 # preloaded symbol tables.
15771 # Exclude shared library initialization/finalization symbols.
15772 extract_expsyms_cmds=
15774 case $host_os in
15775 cygwin* | mingw* | pw32* | cegcc*)
15776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15777 # When not using gcc, we currently assume that we are using
15778 # Microsoft Visual C++.
15779 if test "$GCC" != yes; then
15780 with_gnu_ld=no
15783 interix*)
15784 # we just hope/assume this is gcc and not c89 (= MSVC++)
15785 with_gnu_ld=yes
15787 openbsd*)
15788 with_gnu_ld=no
15790 esac
15792 ld_shlibs=yes
15794 # On some targets, GNU ld is compatible enough with the native linker
15795 # that we're better off using the native interface for both.
15796 lt_use_gnu_ld_interface=no
15797 if test "$with_gnu_ld" = yes; then
15798 case $host_os in
15799 aix*)
15800 # The AIX port of GNU ld has always aspired to compatibility
15801 # with the native linker. However, as the warning in the GNU ld
15802 # block says, versions before 2.19.5* couldn't really create working
15803 # shared libraries, regardless of the interface used.
15804 case `$LD -v 2>&1` in
15805 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15806 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15807 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15809 lt_use_gnu_ld_interface=yes
15811 esac
15814 lt_use_gnu_ld_interface=yes
15816 esac
15819 if test "$lt_use_gnu_ld_interface" = yes; then
15820 # If archive_cmds runs LD, not CC, wlarc should be empty
15821 wlarc='${wl}'
15823 # Set some defaults for GNU ld with shared library support. These
15824 # are reset later if shared libraries are not supported. Putting them
15825 # here allows them to be overridden if necessary.
15826 runpath_var=LD_RUN_PATH
15827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15828 export_dynamic_flag_spec='${wl}--export-dynamic'
15829 # ancient GNU ld didn't support --whole-archive et. al.
15830 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15832 else
15833 whole_archive_flag_spec=
15835 supports_anon_versioning=no
15836 case `$LD -v 2>&1` in
15837 *GNU\ gold*) supports_anon_versioning=yes ;;
15838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15841 *\ 2.11.*) ;; # other 2.11 versions
15842 *) supports_anon_versioning=yes ;;
15843 esac
15845 # See if GNU ld supports shared libraries.
15846 case $host_os in
15847 aix[3-9]*)
15848 # On AIX/PPC, the GNU linker is very broken
15849 if test "$host_cpu" != ia64; then
15850 ld_shlibs=no
15851 cat <<_LT_EOF 1>&2
15853 *** Warning: the GNU linker, at least up to release 2.19, is reported
15854 *** to be unable to reliably create shared libraries on AIX.
15855 *** Therefore, libtool is disabling shared libraries support. If you
15856 *** really care for shared libraries, you may want to install binutils
15857 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15858 *** You will then need to restart the configuration process.
15860 _LT_EOF
15864 amigaos*)
15865 case $host_cpu in
15866 powerpc)
15867 # see comment about AmigaOS4 .so support
15868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869 archive_expsym_cmds=''
15871 m68k)
15872 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)'
15873 hardcode_libdir_flag_spec='-L$libdir'
15874 hardcode_minus_L=yes
15876 esac
15879 beos*)
15880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15881 allow_undefined_flag=unsupported
15882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15883 # support --undefined. This deserves some investigation. FIXME
15884 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 else
15886 ld_shlibs=no
15890 cygwin* | mingw* | pw32* | cegcc*)
15891 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15892 # as there is no search path for DLLs.
15893 hardcode_libdir_flag_spec='-L$libdir'
15894 export_dynamic_flag_spec='${wl}--export-all-symbols'
15895 allow_undefined_flag=unsupported
15896 always_export_symbols=no
15897 enable_shared_with_static_runtimes=yes
15898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15900 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15902 # If the export-symbols file already is a .def file (1st line
15903 # is EXPORTS), use it as is; otherwise, prepend...
15904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15905 cp $export_symbols $output_objdir/$soname.def;
15906 else
15907 echo EXPORTS > $output_objdir/$soname.def;
15908 cat $export_symbols >> $output_objdir/$soname.def;
15910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15911 else
15912 ld_shlibs=no
15916 haiku*)
15917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 link_all_deplibs=yes
15921 interix[3-9]*)
15922 hardcode_direct=no
15923 hardcode_shlibpath_var=no
15924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15925 export_dynamic_flag_spec='${wl}-E'
15926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15927 # Instead, shared libraries are loaded at an image base (0x10000000 by
15928 # default) and relocated if they conflict, which is a slow very memory
15929 # consuming and fragmenting process. To avoid this, we pick a random,
15930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15933 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'
15936 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15937 tmp_diet=no
15938 if test "$host_os" = linux-dietlibc; then
15939 case $cc_basename in
15940 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15941 esac
15943 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15944 && test "$tmp_diet" = no
15945 then
15946 tmp_addflag=' $pic_flag'
15947 tmp_sharedflag='-shared'
15948 case $cc_basename,$host_cpu in
15949 pgcc*) # Portland Group C compiler
15950 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'
15951 tmp_addflag=' $pic_flag'
15953 pgf77* | pgf90* | pgf95* | pgfortran*)
15954 # Portland Group f77 and f90 compilers
15955 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'
15956 tmp_addflag=' $pic_flag -Mnomain' ;;
15957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15958 tmp_addflag=' -i_dynamic' ;;
15959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15960 tmp_addflag=' -i_dynamic -nofor_main' ;;
15961 ifc* | ifort*) # Intel Fortran compiler
15962 tmp_addflag=' -nofor_main' ;;
15963 lf95*) # Lahey Fortran 8.1
15964 whole_archive_flag_spec=
15965 tmp_sharedflag='--shared' ;;
15966 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15967 tmp_sharedflag='-qmkshrobj'
15968 tmp_addflag= ;;
15969 nvcc*) # Cuda Compiler Driver 2.2
15970 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'
15971 compiler_needs_object=yes
15973 esac
15974 case `$CC -V 2>&1 | sed 5q` in
15975 *Sun\ C*) # Sun C 5.9
15976 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'
15977 compiler_needs_object=yes
15978 tmp_sharedflag='-G' ;;
15979 *Sun\ F*) # Sun Fortran 8.3
15980 tmp_sharedflag='-G' ;;
15981 esac
15982 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984 if test "x$supports_anon_versioning" = xyes; then
15985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15987 echo "local: *; };" >> $output_objdir/$libname.ver~
15988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15991 case $cc_basename in
15992 xlf* | bgf* | bgxlf* | mpixlf*)
15993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15994 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15995 hardcode_libdir_flag_spec=
15996 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15997 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15998 if test "x$supports_anon_versioning" = xyes; then
15999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16001 echo "local: *; };" >> $output_objdir/$libname.ver~
16002 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16005 esac
16006 else
16007 ld_shlibs=no
16011 netbsd*)
16012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16014 wlarc=
16015 else
16016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16021 solaris*)
16022 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16023 ld_shlibs=no
16024 cat <<_LT_EOF 1>&2
16026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16027 *** create shared libraries on Solaris systems. Therefore, libtool
16028 *** is disabling shared libraries support. We urge you to upgrade GNU
16029 *** binutils to release 2.9.1 or newer. Another option is to modify
16030 *** your PATH or compiler configuration so that the native linker is
16031 *** used, and then restart.
16033 _LT_EOF
16034 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037 else
16038 ld_shlibs=no
16042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16043 case `$LD -v 2>&1` in
16044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16045 ld_shlibs=no
16046 cat <<_LT_EOF 1>&2
16048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16049 *** reliably create shared libraries on SCO systems. Therefore, libtool
16050 *** is disabling shared libraries support. We urge you to upgrade GNU
16051 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16052 *** your PATH or compiler configuration so that the native linker is
16053 *** used, and then restart.
16055 _LT_EOF
16058 # For security reasons, it is highly recommended that you always
16059 # use absolute paths for naming shared libraries, and exclude the
16060 # DT_RUNPATH tag from executables and libraries. But doing so
16061 # requires that you compile everything twice, which is a pain.
16062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16066 else
16067 ld_shlibs=no
16070 esac
16073 sunos4*)
16074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16075 wlarc=
16076 hardcode_direct=yes
16077 hardcode_shlibpath_var=no
16081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 else
16085 ld_shlibs=no
16088 esac
16090 if test "$ld_shlibs" = no; then
16091 runpath_var=
16092 hardcode_libdir_flag_spec=
16093 export_dynamic_flag_spec=
16094 whole_archive_flag_spec=
16096 else
16097 # PORTME fill in a description of your system's linker (not GNU ld)
16098 case $host_os in
16099 aix3*)
16100 allow_undefined_flag=unsupported
16101 always_export_symbols=yes
16102 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'
16103 # Note: this linker hardcodes the directories in LIBPATH if there
16104 # are no directories specified by -L.
16105 hardcode_minus_L=yes
16106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16107 # Neither direct hardcoding nor static linking is supported with a
16108 # broken collect2.
16109 hardcode_direct=unsupported
16113 aix[4-9]*)
16114 if test "$host_cpu" = ia64; then
16115 # On IA64, the linker does run time linking by default, so we don't
16116 # have to do anything special.
16117 aix_use_runtimelinking=no
16118 exp_sym_flag='-Bexport'
16119 no_entry_flag=""
16120 else
16121 # If we're using GNU nm, then we don't want the "-C" option.
16122 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16123 # Also, AIX nm treats weak defined symbols like other global
16124 # defined symbols, whereas GNU nm marks them as "W".
16125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16126 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'
16127 else
16128 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'
16130 aix_use_runtimelinking=no
16132 # Test if we are trying to use run time linking or normal
16133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16134 # need to do runtime linking.
16135 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16136 for ld_flag in $LDFLAGS; do
16137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16138 aix_use_runtimelinking=yes
16139 break
16141 done
16143 esac
16145 exp_sym_flag='-bexport'
16146 no_entry_flag='-bnoentry'
16149 # When large executables or shared objects are built, AIX ld can
16150 # have problems creating the table of contents. If linking a library
16151 # or program results in "error TOC overflow" add -mminimal-toc to
16152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16155 archive_cmds=''
16156 hardcode_direct=yes
16157 hardcode_direct_absolute=yes
16158 hardcode_libdir_separator=':'
16159 link_all_deplibs=yes
16160 file_list_spec='${wl}-f,'
16162 if test "$GCC" = yes; then
16163 case $host_os in aix4.[012]|aix4.[012].*)
16164 # We only want to do this on AIX 4.2 and lower, the check
16165 # below for broken collect2 doesn't work under 4.3+
16166 collect2name=`${CC} -print-prog-name=collect2`
16167 if test -f "$collect2name" &&
16168 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16169 then
16170 # We have reworked collect2
16172 else
16173 # We have old collect2
16174 hardcode_direct=unsupported
16175 # It fails to find uninstalled libraries when the uninstalled
16176 # path is not listed in the libpath. Setting hardcode_minus_L
16177 # to unsupported forces relinking
16178 hardcode_minus_L=yes
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_libdir_separator=
16183 esac
16184 shared_flag='-shared'
16185 if test "$aix_use_runtimelinking" = yes; then
16186 shared_flag="$shared_flag "'${wl}-G'
16188 else
16189 # not using gcc
16190 if test "$host_cpu" = ia64; then
16191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16192 # chokes on -Wl,-G. The following line is correct:
16193 shared_flag='-G'
16194 else
16195 if test "$aix_use_runtimelinking" = yes; then
16196 shared_flag='${wl}-G'
16197 else
16198 shared_flag='${wl}-bM:SRE'
16203 export_dynamic_flag_spec='${wl}-bexpall'
16204 # It seems that -bexpall does not export symbols beginning with
16205 # underscore (_), so it is better to generate a list of symbols to export.
16206 always_export_symbols=yes
16207 if test "$aix_use_runtimelinking" = yes; then
16208 # Warning - without using the other runtime loading flags (-brtl),
16209 # -berok will link without error, but may produce a broken library.
16210 allow_undefined_flag='-berok'
16211 # Determine the default libpath from the value encoded in an
16212 # empty executable.
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16217 main ()
16221 return 0;
16223 _ACEOF
16224 if ac_fn_c_try_link "$LINENO"; then :
16226 lt_aix_libpath_sed='
16227 /Import File Strings/,/^$/ {
16228 /^0/ {
16229 s/^0 *\(.*\)$/\1/
16233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16234 # Check for a 64-bit object if we didn't find anything.
16235 if test -z "$aix_libpath"; then
16236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16239 rm -f core conftest.err conftest.$ac_objext \
16240 conftest$ac_exeext conftest.$ac_ext
16241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16244 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"
16245 else
16246 if test "$host_cpu" = ia64; then
16247 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16248 allow_undefined_flag="-z nodefs"
16249 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"
16250 else
16251 # Determine the default libpath from the value encoded in an
16252 # empty executable.
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16257 main ()
16261 return 0;
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16266 lt_aix_libpath_sed='
16267 /Import File Strings/,/^$/ {
16268 /^0/ {
16269 s/^0 *\(.*\)$/\1/
16273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16274 # Check for a 64-bit object if we didn't find anything.
16275 if test -z "$aix_libpath"; then
16276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16279 rm -f core conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16284 # Warning - without using the other run time loading flags,
16285 # -berok will link without error, but may produce a broken library.
16286 no_undefined_flag=' ${wl}-bernotok'
16287 allow_undefined_flag=' ${wl}-berok'
16288 if test "$with_gnu_ld" = yes; then
16289 # We only use this code for GNU lds that support --whole-archive.
16290 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16291 else
16292 # Exported symbols can be pulled into shared objects from archives
16293 whole_archive_flag_spec='$convenience'
16295 archive_cmds_need_lc=yes
16296 # This is similar to how AIX traditionally builds its shared libraries.
16297 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'
16302 amigaos*)
16303 case $host_cpu in
16304 powerpc)
16305 # see comment about AmigaOS4 .so support
16306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16307 archive_expsym_cmds=''
16309 m68k)
16310 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)'
16311 hardcode_libdir_flag_spec='-L$libdir'
16312 hardcode_minus_L=yes
16314 esac
16317 bsdi[45]*)
16318 export_dynamic_flag_spec=-rdynamic
16321 cygwin* | mingw* | pw32* | cegcc*)
16322 # When not using gcc, we currently assume that we are using
16323 # Microsoft Visual C++.
16324 # hardcode_libdir_flag_spec is actually meaningless, as there is
16325 # no search path for DLLs.
16326 hardcode_libdir_flag_spec=' '
16327 allow_undefined_flag=unsupported
16328 # Tell ltmain to make .lib files, not .a files.
16329 libext=lib
16330 # Tell ltmain to make .dll files, not .so files.
16331 shrext_cmds=".dll"
16332 # FIXME: Setting linknames here is a bad hack.
16333 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16334 # The linker will automatically build a .lib file if we build a DLL.
16335 old_archive_from_new_cmds='true'
16336 # FIXME: Should let the user specify the lib program.
16337 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16338 fix_srcfile_path='`cygpath -w "$srcfile"`'
16339 enable_shared_with_static_runtimes=yes
16342 darwin* | rhapsody*)
16345 archive_cmds_need_lc=no
16346 hardcode_direct=no
16347 hardcode_automatic=yes
16348 hardcode_shlibpath_var=unsupported
16349 if test "$lt_cv_ld_force_load" = "yes"; then
16350 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\"`'
16351 else
16352 whole_archive_flag_spec=''
16354 link_all_deplibs=yes
16355 allow_undefined_flag="$_lt_dar_allow_undefined"
16356 case $cc_basename in
16357 ifort*) _lt_dar_can_shared=yes ;;
16358 *) _lt_dar_can_shared=$GCC ;;
16359 esac
16360 if test "$_lt_dar_can_shared" = "yes"; then
16361 output_verbose_link_cmd=func_echo_all
16362 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16363 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16364 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}"
16365 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}"
16367 else
16368 ld_shlibs=no
16373 dgux*)
16374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_libdir_flag_spec='-L$libdir'
16376 hardcode_shlibpath_var=no
16379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16380 # support. Future versions do this automatically, but an explicit c++rt0.o
16381 # does not break anything, and helps significantly (at the cost of a little
16382 # extra space).
16383 freebsd2.2*)
16384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16385 hardcode_libdir_flag_spec='-R$libdir'
16386 hardcode_direct=yes
16387 hardcode_shlibpath_var=no
16390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16391 freebsd2.*)
16392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_direct=yes
16394 hardcode_minus_L=yes
16395 hardcode_shlibpath_var=no
16398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16399 freebsd* | dragonfly*)
16400 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16401 hardcode_libdir_flag_spec='-R$libdir'
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16406 hpux9*)
16407 if test "$GCC" = yes; then
16408 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'
16409 else
16410 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'
16412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414 hardcode_direct=yes
16416 # hardcode_minus_L: Not really in the search PATH,
16417 # but as the default location of the library.
16418 hardcode_minus_L=yes
16419 export_dynamic_flag_spec='${wl}-E'
16422 hpux10*)
16423 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16425 else
16426 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16428 if test "$with_gnu_ld" = no; then
16429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16430 hardcode_libdir_flag_spec_ld='+b $libdir'
16431 hardcode_libdir_separator=:
16432 hardcode_direct=yes
16433 hardcode_direct_absolute=yes
16434 export_dynamic_flag_spec='${wl}-E'
16435 # hardcode_minus_L: Not really in the search PATH,
16436 # but as the default location of the library.
16437 hardcode_minus_L=yes
16441 hpux11*)
16442 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16443 case $host_cpu in
16444 hppa*64*)
16445 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 ia64*)
16448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16453 esac
16454 else
16455 case $host_cpu in
16456 hppa*64*)
16457 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16459 ia64*)
16460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16464 # Older versions of the 11.00 compiler do not understand -b yet
16465 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16467 $as_echo_n "checking if $CC understands -b... " >&6; }
16468 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 lt_cv_prog_compiler__b=no
16472 save_LDFLAGS="$LDFLAGS"
16473 LDFLAGS="$LDFLAGS -b"
16474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16476 # The linker can only warn and ignore the option if not recognized
16477 # So say no if there are warnings
16478 if test -s conftest.err; then
16479 # Append any errors to the config.log.
16480 cat conftest.err 1>&5
16481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16483 if diff conftest.exp conftest.er2 >/dev/null; then
16484 lt_cv_prog_compiler__b=yes
16486 else
16487 lt_cv_prog_compiler__b=yes
16490 $RM -r conftest*
16491 LDFLAGS="$save_LDFLAGS"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16495 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16497 if test x"$lt_cv_prog_compiler__b" = xyes; then
16498 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16499 else
16500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16504 esac
16506 if test "$with_gnu_ld" = no; then
16507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16508 hardcode_libdir_separator=:
16510 case $host_cpu in
16511 hppa*64*|ia64*)
16512 hardcode_direct=no
16513 hardcode_shlibpath_var=no
16516 hardcode_direct=yes
16517 hardcode_direct_absolute=yes
16518 export_dynamic_flag_spec='${wl}-E'
16520 # hardcode_minus_L: Not really in the search PATH,
16521 # but as the default location of the library.
16522 hardcode_minus_L=yes
16524 esac
16528 irix5* | irix6* | nonstopux*)
16529 if test "$GCC" = yes; then
16530 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'
16531 # Try to use the -exported_symbol ld option, if it does not
16532 # work, assume that -exports_file does not work either and
16533 # implicitly export all symbols.
16534 save_LDFLAGS="$LDFLAGS"
16535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 int foo(void) {}
16539 _ACEOF
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 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'
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LDFLAGS="$save_LDFLAGS"
16547 else
16548 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'
16549 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'
16551 archive_cmds_need_lc='no'
16552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16553 hardcode_libdir_separator=:
16554 inherit_rpath=yes
16555 link_all_deplibs=yes
16558 netbsd*)
16559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16561 else
16562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16564 hardcode_libdir_flag_spec='-R$libdir'
16565 hardcode_direct=yes
16566 hardcode_shlibpath_var=no
16569 newsos6)
16570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_direct=yes
16572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16573 hardcode_libdir_separator=:
16574 hardcode_shlibpath_var=no
16577 *nto* | *qnx*)
16580 openbsd*)
16581 if test -f /usr/libexec/ld.so; then
16582 hardcode_direct=yes
16583 hardcode_shlibpath_var=no
16584 hardcode_direct_absolute=yes
16585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16587 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16588 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16589 export_dynamic_flag_spec='${wl}-E'
16590 else
16591 case $host_os in
16592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_libdir_flag_spec='-R$libdir'
16597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16600 esac
16602 else
16603 ld_shlibs=no
16607 os2*)
16608 hardcode_libdir_flag_spec='-L$libdir'
16609 hardcode_minus_L=yes
16610 allow_undefined_flag=unsupported
16611 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'
16612 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16615 osf3*)
16616 if test "$GCC" = yes; then
16617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16618 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'
16619 else
16620 allow_undefined_flag=' -expect_unresolved \*'
16621 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'
16623 archive_cmds_need_lc='no'
16624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16625 hardcode_libdir_separator=:
16628 osf4* | osf5*) # as osf3* with the addition of -msym flag
16629 if test "$GCC" = yes; then
16630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16631 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'
16632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16633 else
16634 allow_undefined_flag=' -expect_unresolved \*'
16635 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'
16636 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~
16637 $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'
16639 # Both c and cxx compiler support -rpath directly
16640 hardcode_libdir_flag_spec='-rpath $libdir'
16642 archive_cmds_need_lc='no'
16643 hardcode_libdir_separator=:
16646 solaris*)
16647 no_undefined_flag=' -z defs'
16648 if test "$GCC" = yes; then
16649 wlarc='${wl}'
16650 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16652 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16653 else
16654 case `$CC -V 2>&1` in
16655 *"Compilers 5.0"*)
16656 wlarc=''
16657 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16662 wlarc='${wl}'
16663 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16665 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16667 esac
16669 hardcode_libdir_flag_spec='-R$libdir'
16670 hardcode_shlibpath_var=no
16671 case $host_os in
16672 solaris2.[0-5] | solaris2.[0-5].*) ;;
16674 # The compiler driver will combine and reorder linker options,
16675 # but understands `-z linker_flag'. GCC discards it without `$wl',
16676 # but is careful enough not to reorder.
16677 # Supported since Solaris 2.6 (maybe 2.5.1?)
16678 if test "$GCC" = yes; then
16679 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16680 else
16681 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16684 esac
16685 link_all_deplibs=yes
16688 sunos4*)
16689 if test "x$host_vendor" = xsequent; then
16690 # Use $CC to link under sequent, because it throws in some extra .o
16691 # files that make .init and .fini sections work.
16692 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16693 else
16694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16696 hardcode_libdir_flag_spec='-L$libdir'
16697 hardcode_direct=yes
16698 hardcode_minus_L=yes
16699 hardcode_shlibpath_var=no
16702 sysv4)
16703 case $host_vendor in
16704 sni)
16705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_direct=yes # is this really true???
16708 siemens)
16709 ## LD is ld it makes a PLAMLIB
16710 ## CC just makes a GrossModule.
16711 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16712 reload_cmds='$CC -r -o $output$reload_objs'
16713 hardcode_direct=no
16715 motorola)
16716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16719 esac
16720 runpath_var='LD_RUN_PATH'
16721 hardcode_shlibpath_var=no
16724 sysv4.3*)
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var=no
16727 export_dynamic_flag_spec='-Bexport'
16730 sysv4*MP*)
16731 if test -d /usr/nec; then
16732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16733 hardcode_shlibpath_var=no
16734 runpath_var=LD_RUN_PATH
16735 hardcode_runpath_var=yes
16736 ld_shlibs=yes
16740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16741 no_undefined_flag='${wl}-z,text'
16742 archive_cmds_need_lc=no
16743 hardcode_shlibpath_var=no
16744 runpath_var='LD_RUN_PATH'
16746 if test "$GCC" = yes; then
16747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 else
16750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 sysv5* | sco3.2v5* | sco5v6*)
16756 # Note: We can NOT use -z defs as we might desire, because we do not
16757 # link with -lc, and that would cause any symbols used from libc to
16758 # always be unresolved, which means just about no library would
16759 # ever link correctly. If we're not using GNU ld we use -z text
16760 # though, which does catch some bad symbols but isn't as heavy-handed
16761 # as -z defs.
16762 no_undefined_flag='${wl}-z,text'
16763 allow_undefined_flag='${wl}-z,nodefs'
16764 archive_cmds_need_lc=no
16765 hardcode_shlibpath_var=no
16766 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16767 hardcode_libdir_separator=':'
16768 link_all_deplibs=yes
16769 export_dynamic_flag_spec='${wl}-Bexport'
16770 runpath_var='LD_RUN_PATH'
16772 if test "$GCC" = yes; then
16773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 else
16776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 uts4*)
16782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16783 hardcode_libdir_flag_spec='-L$libdir'
16784 hardcode_shlibpath_var=no
16788 ld_shlibs=no
16790 esac
16792 if test x$host_vendor = xsni; then
16793 case $host in
16794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16795 export_dynamic_flag_spec='${wl}-Blargedynsym'
16797 esac
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16802 $as_echo "$ld_shlibs" >&6; }
16803 test "$ld_shlibs" = no && can_build_shared=no
16805 with_gnu_ld=$with_gnu_ld
16822 # Do we need to explicitly link libc?
16824 case "x$archive_cmds_need_lc" in
16825 x|xyes)
16826 # Assume -lc should be added
16827 archive_cmds_need_lc=yes
16829 if test "$enable_shared" = yes && test "$GCC" = yes; then
16830 case $archive_cmds in
16831 *'~'*)
16832 # FIXME: we may have to deal with multi-command sequences.
16834 '$CC '*)
16835 # Test whether the compiler implicitly links with -lc since on some
16836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16837 # to ld, don't add -lc before -lgcc.
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16839 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16840 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 $RM conftest*
16844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16847 (eval $ac_compile) 2>&5
16848 ac_status=$?
16849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16850 test $ac_status = 0; } 2>conftest.err; then
16851 soname=conftest
16852 lib=conftest
16853 libobjs=conftest.$ac_objext
16854 deplibs=
16855 wl=$lt_prog_compiler_wl
16856 pic_flag=$lt_prog_compiler_pic
16857 compiler_flags=-v
16858 linker_flags=-v
16859 verstring=
16860 output_objdir=.
16861 libname=conftest
16862 lt_save_allow_undefined_flag=$allow_undefined_flag
16863 allow_undefined_flag=
16864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16865 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }
16869 then
16870 lt_cv_archive_cmds_need_lc=no
16871 else
16872 lt_cv_archive_cmds_need_lc=yes
16874 allow_undefined_flag=$lt_save_allow_undefined_flag
16875 else
16876 cat conftest.err 1>&5
16878 $RM conftest*
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16882 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16883 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16885 esac
16888 esac
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17047 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17049 if test "$GCC" = yes; then
17050 case $host_os in
17051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17052 *) lt_awk_arg="/^libraries:/" ;;
17053 esac
17054 case $host_os in
17055 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17056 *) lt_sed_strip_eq="s,=/,/,g" ;;
17057 esac
17058 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17059 case $lt_search_path_spec in
17060 *\;*)
17061 # if the path contains ";" then we assume it to be the separator
17062 # otherwise default to the standard path separator (i.e. ":") - it is
17063 # assumed that no part of a normal pathname contains ";" but that should
17064 # okay in the real world where ";" in dirpaths is itself problematic.
17065 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17070 esac
17071 # Ok, now we have the path, separated by spaces, we can step through it
17072 # and add multilib dir if necessary.
17073 lt_tmp_lt_search_path_spec=
17074 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17075 for lt_sys_path in $lt_search_path_spec; do
17076 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17078 else
17079 test -d "$lt_sys_path" && \
17080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17082 done
17083 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17084 BEGIN {RS=" "; FS="/|\n";} {
17085 lt_foo="";
17086 lt_count=0;
17087 for (lt_i = NF; lt_i > 0; lt_i--) {
17088 if ($lt_i != "" && $lt_i != ".") {
17089 if ($lt_i == "..") {
17090 lt_count++;
17091 } else {
17092 if (lt_count == 0) {
17093 lt_foo="/" $lt_i lt_foo;
17094 } else {
17095 lt_count--;
17100 if (lt_foo != "") { lt_freq[lt_foo]++; }
17101 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17103 # AWK program above erroneously prepends '/' to C:/dos/paths
17104 # for these hosts.
17105 case $host_os in
17106 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17107 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17108 esac
17109 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17110 else
17111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17113 library_names_spec=
17114 libname_spec='lib$name'
17115 soname_spec=
17116 shrext_cmds=".so"
17117 postinstall_cmds=
17118 postuninstall_cmds=
17119 finish_cmds=
17120 finish_eval=
17121 shlibpath_var=
17122 shlibpath_overrides_runpath=unknown
17123 version_type=none
17124 dynamic_linker="$host_os ld.so"
17125 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17126 need_lib_prefix=unknown
17127 hardcode_into_libs=no
17129 # when you set need_version to no, make sure it does not cause -set_version
17130 # flags to be left without arguments
17131 need_version=unknown
17133 case $host_os in
17134 aix3*)
17135 version_type=linux
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17137 shlibpath_var=LIBPATH
17139 # AIX 3 has no versioning support, so we append a major version to the name.
17140 soname_spec='${libname}${release}${shared_ext}$major'
17143 aix[4-9]*)
17144 version_type=linux
17145 need_lib_prefix=no
17146 need_version=no
17147 hardcode_into_libs=yes
17148 if test "$host_cpu" = ia64; then
17149 # AIX 5 supports IA64
17150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 else
17153 # With GCC up to 2.95.x, collect2 would create an import file
17154 # for dependence libraries. The import file would start with
17155 # the line `#! .'. This would cause the generated library to
17156 # depend on `.', always an invalid library. This was fixed in
17157 # development snapshots of GCC prior to 3.0.
17158 case $host_os in
17159 aix4 | aix4.[01] | aix4.[01].*)
17160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17161 echo ' yes '
17162 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17164 else
17165 can_build_shared=no
17168 esac
17169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17170 # soname into executable. Probably we can add versioning support to
17171 # collect2, so additional links can be useful in future.
17172 if test "$aix_use_runtimelinking" = yes; then
17173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17174 # instead of lib<name>.a to let people know that these are not
17175 # typical AIX shared libraries.
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 else
17178 # We preserve .a as extension for shared libraries through AIX4.2
17179 # and later when we are not doing run time linking.
17180 library_names_spec='${libname}${release}.a $libname.a'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17183 shlibpath_var=LIBPATH
17187 amigaos*)
17188 case $host_cpu in
17189 powerpc)
17190 # Since July 2007 AmigaOS4 officially supports .so libraries.
17191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 m68k)
17195 library_names_spec='$libname.ixlibrary $libname.a'
17196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17197 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'
17199 esac
17202 beos*)
17203 library_names_spec='${libname}${shared_ext}'
17204 dynamic_linker="$host_os ld.so"
17205 shlibpath_var=LIBRARY_PATH
17208 bsdi[45]*)
17209 version_type=linux
17210 need_version=no
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17217 # the default ld.so.conf also contains /usr/contrib/lib and
17218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17219 # libtool to hard-code these into programs
17222 cygwin* | mingw* | pw32* | cegcc*)
17223 version_type=windows
17224 shrext_cmds=".dll"
17225 need_version=no
17226 need_lib_prefix=no
17228 case $GCC,$host_os in
17229 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17230 library_names_spec='$libname.dll.a'
17231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17232 postinstall_cmds='base_file=`basename \${file}`~
17233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17234 dldir=$destdir/`dirname \$dlpath`~
17235 test -d \$dldir || mkdir -p \$dldir~
17236 $install_prog $dir/$dlname \$dldir/$dlname~
17237 chmod a+x \$dldir/$dlname~
17238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17242 dlpath=$dir/\$dldll~
17243 $RM \$dlpath'
17244 shlibpath_overrides_runpath=yes
17246 case $host_os in
17247 cygwin*)
17248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17253 mingw* | cegcc*)
17254 # MinGW DLLs use traditional 'lib' prefix
17255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257 pw32*)
17258 # pw32 DLLs use 'pw' prefix rather than 'lib'
17259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17261 esac
17265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17267 esac
17268 dynamic_linker='Win32 ld.exe'
17269 # FIXME: first we should search . and the directory the executable is in
17270 shlibpath_var=PATH
17273 darwin* | rhapsody*)
17274 dynamic_linker="$host_os dyld"
17275 version_type=darwin
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17279 soname_spec='${libname}${release}${major}$shared_ext'
17280 shlibpath_overrides_runpath=yes
17281 shlibpath_var=DYLD_LIBRARY_PATH
17282 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17288 dgux*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17297 freebsd* | dragonfly*)
17298 # DragonFly does not have aout. When/if they implement a new
17299 # versioning mechanism, adjust this.
17300 if test -x /usr/bin/objformat; then
17301 objformat=`/usr/bin/objformat`
17302 else
17303 case $host_os in
17304 freebsd[23].*) objformat=aout ;;
17305 *) objformat=elf ;;
17306 esac
17308 version_type=freebsd-$objformat
17309 case $version_type in
17310 freebsd-elf*)
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17312 need_version=no
17313 need_lib_prefix=no
17315 freebsd-*)
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17317 need_version=yes
17319 esac
17320 shlibpath_var=LD_LIBRARY_PATH
17321 case $host_os in
17322 freebsd2.*)
17323 shlibpath_overrides_runpath=yes
17325 freebsd3.[01]* | freebsdelf3.[01]*)
17326 shlibpath_overrides_runpath=yes
17327 hardcode_into_libs=yes
17329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17331 shlibpath_overrides_runpath=no
17332 hardcode_into_libs=yes
17334 *) # from 4.6 on, and DragonFly
17335 shlibpath_overrides_runpath=yes
17336 hardcode_into_libs=yes
17338 esac
17341 gnu*)
17342 version_type=linux
17343 need_lib_prefix=no
17344 need_version=no
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 hardcode_into_libs=yes
17351 haiku*)
17352 version_type=linux
17353 need_lib_prefix=no
17354 need_version=no
17355 dynamic_linker="$host_os runtime_loader"
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17361 hardcode_into_libs=yes
17364 hpux9* | hpux10* | hpux11*)
17365 # Give a soname corresponding to the major version so that dld.sl refuses to
17366 # link against other versions.
17367 version_type=sunos
17368 need_lib_prefix=no
17369 need_version=no
17370 case $host_cpu in
17371 ia64*)
17372 shrext_cmds='.so'
17373 hardcode_into_libs=yes
17374 dynamic_linker="$host_os dld.so"
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 if test "X$HPUX_IA64_MODE" = X32; then
17380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17381 else
17382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17386 hppa*64*)
17387 shrext_cmds='.sl'
17388 hardcode_into_libs=yes
17389 dynamic_linker="$host_os dld.sl"
17390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17398 shrext_cmds='.sl'
17399 dynamic_linker="$host_os dld.sl"
17400 shlibpath_var=SHLIB_PATH
17401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17405 esac
17406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17407 postinstall_cmds='chmod 555 $lib'
17408 # or fails outright, so override atomically:
17409 install_override_mode=555
17412 interix[3-9]*)
17413 version_type=linux
17414 need_lib_prefix=no
17415 need_version=no
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=no
17421 hardcode_into_libs=yes
17424 irix5* | irix6* | nonstopux*)
17425 case $host_os in
17426 nonstopux*) version_type=nonstopux ;;
17428 if test "$lt_cv_prog_gnu_ld" = yes; then
17429 version_type=linux
17430 else
17431 version_type=irix
17432 fi ;;
17433 esac
17434 need_lib_prefix=no
17435 need_version=no
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17438 case $host_os in
17439 irix5* | nonstopux*)
17440 libsuff= shlibsuff=
17443 case $LD in # libtool.m4 will add one of these switches to LD
17444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17445 libsuff= shlibsuff= libmagic=32-bit;;
17446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17447 libsuff=32 shlibsuff=N32 libmagic=N32;;
17448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17450 *) libsuff= shlibsuff= libmagic=never-match;;
17451 esac
17453 esac
17454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17455 shlibpath_overrides_runpath=no
17456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17458 hardcode_into_libs=yes
17461 # No shared lib support for Linux oldld, aout, or coff.
17462 linux*oldld* | linux*aout* | linux*coff*)
17463 dynamic_linker=no
17466 # This must be Linux ELF.
17467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17468 version_type=linux
17469 need_lib_prefix=no
17470 need_version=no
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=no
17477 # Some binutils ld are patched to set DT_RUNPATH
17478 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 lt_cv_shlibpath_overrides_runpath=no
17482 save_LDFLAGS=$LDFLAGS
17483 save_libdir=$libdir
17484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17490 main ()
17494 return 0;
17496 _ACEOF
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17499 lt_cv_shlibpath_overrides_runpath=yes
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 LDFLAGS=$save_LDFLAGS
17505 libdir=$save_libdir
17509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17511 # This implies no fast_install, which is unacceptable.
17512 # Some rework will be needed to allow for fast_install
17513 # before this can be enabled.
17514 hardcode_into_libs=yes
17516 # Append ld.so.conf contents to the search path
17517 if test -f /etc/ld.so.conf; then
17518 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' ' '`
17519 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17522 # We used to test for /lib/ld.so.1 and disable shared libraries on
17523 # powerpc, because MkLinux only supported shared libraries with the
17524 # GNU dynamic linker. Since this was broken with cross compilers,
17525 # most powerpc-linux boxes support dynamic linking these days and
17526 # people can always --disable-shared, the test was removed, and we
17527 # assume the GNU/Linux dynamic linker is in use.
17528 dynamic_linker='GNU/Linux ld.so'
17531 netbsd*)
17532 version_type=sunos
17533 need_lib_prefix=no
17534 need_version=no
17535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17538 dynamic_linker='NetBSD (a.out) ld.so'
17539 else
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 dynamic_linker='NetBSD ld.elf_so'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 shlibpath_overrides_runpath=yes
17546 hardcode_into_libs=yes
17549 newsos6)
17550 version_type=linux
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 shlibpath_overrides_runpath=yes
17556 *nto* | *qnx*)
17557 version_type=qnx
17558 need_lib_prefix=no
17559 need_version=no
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 dynamic_linker='ldqnx.so'
17568 openbsd*)
17569 version_type=sunos
17570 sys_lib_dlsearch_path_spec="/usr/lib"
17571 need_lib_prefix=no
17572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17573 case $host_os in
17574 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17575 *) need_version=no ;;
17576 esac
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17581 case $host_os in
17582 openbsd2.[89] | openbsd2.[89].*)
17583 shlibpath_overrides_runpath=no
17586 shlibpath_overrides_runpath=yes
17588 esac
17589 else
17590 shlibpath_overrides_runpath=yes
17594 os2*)
17595 libname_spec='$name'
17596 shrext_cmds=".dll"
17597 need_lib_prefix=no
17598 library_names_spec='$libname${shared_ext} $libname.a'
17599 dynamic_linker='OS/2 ld.exe'
17600 shlibpath_var=LIBPATH
17603 osf3* | osf4* | osf5*)
17604 version_type=osf
17605 need_lib_prefix=no
17606 need_version=no
17607 soname_spec='${libname}${release}${shared_ext}$major'
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17614 rdos*)
17615 dynamic_linker=no
17618 solaris*)
17619 version_type=linux
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17627 # ldd complains unless libraries are executable
17628 postinstall_cmds='chmod +x $lib'
17631 sunos4*)
17632 version_type=sunos
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17637 if test "$with_gnu_ld" = yes; then
17638 need_lib_prefix=no
17640 need_version=yes
17643 sysv4 | sysv4.3*)
17644 version_type=linux
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 case $host_vendor in
17649 sni)
17650 shlibpath_overrides_runpath=no
17651 need_lib_prefix=no
17652 runpath_var=LD_RUN_PATH
17654 siemens)
17655 need_lib_prefix=no
17657 motorola)
17658 need_lib_prefix=no
17659 need_version=no
17660 shlibpath_overrides_runpath=no
17661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17663 esac
17666 sysv4*MP*)
17667 if test -d /usr/nec ;then
17668 version_type=linux
17669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17670 soname_spec='$libname${shared_ext}.$major'
17671 shlibpath_var=LD_LIBRARY_PATH
17675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17676 version_type=freebsd-elf
17677 need_lib_prefix=no
17678 need_version=no
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17683 hardcode_into_libs=yes
17684 if test "$with_gnu_ld" = yes; then
17685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17686 else
17687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17688 case $host_os in
17689 sco3.2v5*)
17690 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17692 esac
17694 sys_lib_dlsearch_path_spec='/usr/lib'
17697 tpf*)
17698 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17699 version_type=linux
17700 need_lib_prefix=no
17701 need_version=no
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=no
17705 hardcode_into_libs=yes
17708 uts4*)
17709 version_type=linux
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17716 dynamic_linker=no
17718 esac
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17720 $as_echo "$dynamic_linker" >&6; }
17721 test "$dynamic_linker" = no && can_build_shared=no
17723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17724 if test "$GCC" = yes; then
17725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17827 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17828 hardcode_action=
17829 if test -n "$hardcode_libdir_flag_spec" ||
17830 test -n "$runpath_var" ||
17831 test "X$hardcode_automatic" = "Xyes" ; then
17833 # We can hardcode non-existent directories.
17834 if test "$hardcode_direct" != no &&
17835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17836 # have to relink, otherwise we might link with an installed library
17837 # when we should be linking with a yet-to-be-installed one
17838 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17839 test "$hardcode_minus_L" != no; then
17840 # Linking always hardcodes the temporary library directory.
17841 hardcode_action=relink
17842 else
17843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17844 hardcode_action=immediate
17846 else
17847 # We cannot hardcode anything, or else we can only hardcode existing
17848 # directories.
17849 hardcode_action=unsupported
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17852 $as_echo "$hardcode_action" >&6; }
17854 if test "$hardcode_action" = relink ||
17855 test "$inherit_rpath" = yes; then
17856 # Fast installation is not supported
17857 enable_fast_install=no
17858 elif test "$shlibpath_overrides_runpath" = yes ||
17859 test "$enable_shared" = no; then
17860 # Fast installation is not necessary
17861 enable_fast_install=needless
17869 if test "x$enable_dlopen" != xyes; then
17870 enable_dlopen=unknown
17871 enable_dlopen_self=unknown
17872 enable_dlopen_self_static=unknown
17873 else
17874 lt_cv_dlopen=no
17875 lt_cv_dlopen_libs=
17877 case $host_os in
17878 beos*)
17879 lt_cv_dlopen="load_add_on"
17880 lt_cv_dlopen_libs=
17881 lt_cv_dlopen_self=yes
17884 mingw* | pw32* | cegcc*)
17885 lt_cv_dlopen="LoadLibrary"
17886 lt_cv_dlopen_libs=
17889 cygwin*)
17890 lt_cv_dlopen="dlopen"
17891 lt_cv_dlopen_libs=
17894 darwin*)
17895 # if libdl is installed we need to link against it
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ldl $LIBS"
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char dlopen ();
17914 main ()
17916 return dlopen ();
17918 return 0;
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"; then :
17922 ac_cv_lib_dl_dlopen=yes
17923 else
17924 ac_cv_lib_dl_dlopen=no
17926 rm -f core conftest.err conftest.$ac_objext \
17927 conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17934 else
17936 lt_cv_dlopen="dyld"
17937 lt_cv_dlopen_libs=
17938 lt_cv_dlopen_self=yes
17945 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17946 if test "x$ac_cv_func_shl_load" = x""yes; then :
17947 lt_cv_dlopen="shl_load"
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17950 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 ac_check_lib_save_LIBS=$LIBS
17955 LIBS="-ldld $LIBS"
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17959 /* Override any GCC internal prototype to avoid an error.
17960 Use char because int might match the return type of a GCC
17961 builtin and then its argument prototype would still apply. */
17962 #ifdef __cplusplus
17963 extern "C"
17964 #endif
17965 char shl_load ();
17967 main ()
17969 return shl_load ();
17971 return 0;
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 ac_cv_lib_dld_shl_load=yes
17976 else
17977 ac_cv_lib_dld_shl_load=no
17979 rm -f core conftest.err conftest.$ac_objext \
17980 conftest$ac_exeext conftest.$ac_ext
17981 LIBS=$ac_check_lib_save_LIBS
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17984 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17985 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17986 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17987 else
17988 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17989 if test "x$ac_cv_func_dlopen" = x""yes; then :
17990 lt_cv_dlopen="dlopen"
17991 else
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17993 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-ldl $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char dlopen ();
18010 main ()
18012 return dlopen ();
18014 return 0;
18016 _ACEOF
18017 if ac_fn_c_try_link "$LINENO"; then :
18018 ac_cv_lib_dl_dlopen=yes
18019 else
18020 ac_cv_lib_dl_dlopen=no
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18028 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18030 else
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18034 $as_echo_n "(cached) " >&6
18035 else
18036 ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lsvld $LIBS"
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18041 /* Override any GCC internal prototype to avoid an error.
18042 Use char because int might match the return type of a GCC
18043 builtin and then its argument prototype would still apply. */
18044 #ifdef __cplusplus
18045 extern "C"
18046 #endif
18047 char dlopen ();
18049 main ()
18051 return dlopen ();
18053 return 0;
18055 _ACEOF
18056 if ac_fn_c_try_link "$LINENO"; then :
18057 ac_cv_lib_svld_dlopen=yes
18058 else
18059 ac_cv_lib_svld_dlopen=no
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18066 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18067 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18069 else
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18071 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18073 $as_echo_n "(cached) " >&6
18074 else
18075 ac_check_lib_save_LIBS=$LIBS
18076 LIBS="-ldld $LIBS"
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char dld_link ();
18088 main ()
18090 return dld_link ();
18092 return 0;
18094 _ACEOF
18095 if ac_fn_c_try_link "$LINENO"; then :
18096 ac_cv_lib_dld_dld_link=yes
18097 else
18098 ac_cv_lib_dld_dld_link=no
18100 rm -f core conftest.err conftest.$ac_objext \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18106 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18126 esac
18128 if test "x$lt_cv_dlopen" != xno; then
18129 enable_dlopen=yes
18130 else
18131 enable_dlopen=no
18134 case $lt_cv_dlopen in
18135 dlopen)
18136 save_CPPFLAGS="$CPPFLAGS"
18137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18139 save_LDFLAGS="$LDFLAGS"
18140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18142 save_LIBS="$LIBS"
18143 LIBS="$lt_cv_dlopen_libs $LIBS"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18147 if test "${lt_cv_dlopen_self+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150 if test "$cross_compiling" = yes; then :
18151 lt_cv_dlopen_self=cross
18152 else
18153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18154 lt_status=$lt_dlunknown
18155 cat > conftest.$ac_ext <<_LT_EOF
18156 #line 18156 "configure"
18157 #include "confdefs.h"
18159 #if HAVE_DLFCN_H
18160 #include <dlfcn.h>
18161 #endif
18163 #include <stdio.h>
18165 #ifdef RTLD_GLOBAL
18166 # define LT_DLGLOBAL RTLD_GLOBAL
18167 #else
18168 # ifdef DL_GLOBAL
18169 # define LT_DLGLOBAL DL_GLOBAL
18170 # else
18171 # define LT_DLGLOBAL 0
18172 # endif
18173 #endif
18175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18176 find out it does not work in some platform. */
18177 #ifndef LT_DLLAZY_OR_NOW
18178 # ifdef RTLD_LAZY
18179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18180 # else
18181 # ifdef DL_LAZY
18182 # define LT_DLLAZY_OR_NOW DL_LAZY
18183 # else
18184 # ifdef RTLD_NOW
18185 # define LT_DLLAZY_OR_NOW RTLD_NOW
18186 # else
18187 # ifdef DL_NOW
18188 # define LT_DLLAZY_OR_NOW DL_NOW
18189 # else
18190 # define LT_DLLAZY_OR_NOW 0
18191 # endif
18192 # endif
18193 # endif
18194 # endif
18195 #endif
18197 /* When -fvisbility=hidden is used, assume the code has been annotated
18198 correspondingly for the symbols needed. */
18199 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18200 void fnord () __attribute__((visibility("default")));
18201 #endif
18203 void fnord () { int i=42; }
18204 int main ()
18206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18207 int status = $lt_dlunknown;
18209 if (self)
18211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18212 else
18214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18215 else puts (dlerror ());
18217 /* dlclose (self); */
18219 else
18220 puts (dlerror ());
18222 return status;
18224 _LT_EOF
18225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18226 (eval $ac_link) 2>&5
18227 ac_status=$?
18228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18230 (./conftest; exit; ) >&5 2>/dev/null
18231 lt_status=$?
18232 case x$lt_status in
18233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18235 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18236 esac
18237 else :
18238 # compilation failed
18239 lt_cv_dlopen_self=no
18242 rm -fr conftest*
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18247 $as_echo "$lt_cv_dlopen_self" >&6; }
18249 if test "x$lt_cv_dlopen_self" = xyes; then
18250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18252 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18253 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 if test "$cross_compiling" = yes; then :
18257 lt_cv_dlopen_self_static=cross
18258 else
18259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18260 lt_status=$lt_dlunknown
18261 cat > conftest.$ac_ext <<_LT_EOF
18262 #line 18262 "configure"
18263 #include "confdefs.h"
18265 #if HAVE_DLFCN_H
18266 #include <dlfcn.h>
18267 #endif
18269 #include <stdio.h>
18271 #ifdef RTLD_GLOBAL
18272 # define LT_DLGLOBAL RTLD_GLOBAL
18273 #else
18274 # ifdef DL_GLOBAL
18275 # define LT_DLGLOBAL DL_GLOBAL
18276 # else
18277 # define LT_DLGLOBAL 0
18278 # endif
18279 #endif
18281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18282 find out it does not work in some platform. */
18283 #ifndef LT_DLLAZY_OR_NOW
18284 # ifdef RTLD_LAZY
18285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18286 # else
18287 # ifdef DL_LAZY
18288 # define LT_DLLAZY_OR_NOW DL_LAZY
18289 # else
18290 # ifdef RTLD_NOW
18291 # define LT_DLLAZY_OR_NOW RTLD_NOW
18292 # else
18293 # ifdef DL_NOW
18294 # define LT_DLLAZY_OR_NOW DL_NOW
18295 # else
18296 # define LT_DLLAZY_OR_NOW 0
18297 # endif
18298 # endif
18299 # endif
18300 # endif
18301 #endif
18303 /* When -fvisbility=hidden is used, assume the code has been annotated
18304 correspondingly for the symbols needed. */
18305 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18306 void fnord () __attribute__((visibility("default")));
18307 #endif
18309 void fnord () { int i=42; }
18310 int main ()
18312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18313 int status = $lt_dlunknown;
18315 if (self)
18317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18318 else
18320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18321 else puts (dlerror ());
18323 /* dlclose (self); */
18325 else
18326 puts (dlerror ());
18328 return status;
18330 _LT_EOF
18331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18332 (eval $ac_link) 2>&5
18333 ac_status=$?
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18336 (./conftest; exit; ) >&5 2>/dev/null
18337 lt_status=$?
18338 case x$lt_status in
18339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18342 esac
18343 else :
18344 # compilation failed
18345 lt_cv_dlopen_self_static=no
18348 rm -fr conftest*
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18356 CPPFLAGS="$save_CPPFLAGS"
18357 LDFLAGS="$save_LDFLAGS"
18358 LIBS="$save_LIBS"
18360 esac
18362 case $lt_cv_dlopen_self in
18363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18364 *) enable_dlopen_self=unknown ;;
18365 esac
18367 case $lt_cv_dlopen_self_static in
18368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18369 *) enable_dlopen_self_static=unknown ;;
18370 esac
18389 striplib=
18390 old_striplib=
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18397 $as_echo "yes" >&6; }
18398 else
18399 # FIXME - insert some real tests, host_os isn't really good enough
18400 case $host_os in
18401 darwin*)
18402 if test -n "$STRIP" ; then
18403 striplib="$STRIP -x"
18404 old_striplib="$STRIP -S"
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18416 esac
18430 # Report which library types will actually be built
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18434 $as_echo "$can_build_shared" >&6; }
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18437 $as_echo_n "checking whether to build shared libraries... " >&6; }
18438 test "$can_build_shared" = "no" && enable_shared=no
18440 # On AIX, shared libraries and static libraries use the same namespace, and
18441 # are all built from PIC.
18442 case $host_os in
18443 aix3*)
18444 test "$enable_shared" = yes && enable_static=no
18445 if test -n "$RANLIB"; then
18446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18447 postinstall_cmds='$RANLIB $lib'
18451 aix[4-9]*)
18452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18453 test "$enable_shared" = yes && enable_static=no
18456 esac
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18458 $as_echo "$enable_shared" >&6; }
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18461 $as_echo_n "checking whether to build static libraries... " >&6; }
18462 # Make sure either enable_shared or enable_static is yes.
18463 test "$enable_shared" = yes || enable_static=yes
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18465 $as_echo "$enable_static" >&6; }
18471 ac_ext=c
18472 ac_cpp='$CPP $CPPFLAGS'
18473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18477 CC="$lt_save_CC"
18479 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18480 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18481 (test "X$CXX" != "Xg++"))) ; then
18482 ac_ext=cpp
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18488 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18489 if test -z "$CXXCPP"; then
18490 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 # Double quotes because CXXCPP needs to be expanded
18494 for CXXCPP in "$CXX -E" "/lib/cpp"
18496 ac_preproc_ok=false
18497 for ac_cxx_preproc_warn_flag in '' yes
18499 # Use a header file that comes with gcc, so configuring glibc
18500 # with a fresh cross-compiler works.
18501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 # <limits.h> exists even on freestanding compilers.
18503 # On the NeXT, cc -E runs the code through the compiler's parser,
18504 # not just through cpp. "Syntax error" is here to catch this case.
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 #ifdef __STDC__
18508 # include <limits.h>
18509 #else
18510 # include <assert.h>
18511 #endif
18512 Syntax error
18513 _ACEOF
18514 if ac_fn_cxx_try_cpp "$LINENO"; then :
18516 else
18517 # Broken: fails on valid input.
18518 continue
18520 rm -f conftest.err conftest.$ac_ext
18522 # OK, works on sane cases. Now check whether nonexistent headers
18523 # can be detected and how.
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526 #include <ac_nonexistent.h>
18527 _ACEOF
18528 if ac_fn_cxx_try_cpp "$LINENO"; then :
18529 # Broken: success on invalid input.
18530 continue
18531 else
18532 # Passes both tests.
18533 ac_preproc_ok=:
18534 break
18536 rm -f conftest.err conftest.$ac_ext
18538 done
18539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18540 rm -f conftest.err conftest.$ac_ext
18541 if $ac_preproc_ok; then :
18542 break
18545 done
18546 ac_cv_prog_CXXCPP=$CXXCPP
18549 CXXCPP=$ac_cv_prog_CXXCPP
18550 else
18551 ac_cv_prog_CXXCPP=$CXXCPP
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18554 $as_echo "$CXXCPP" >&6; }
18555 ac_preproc_ok=false
18556 for ac_cxx_preproc_warn_flag in '' yes
18558 # Use a header file that comes with gcc, so configuring glibc
18559 # with a fresh cross-compiler works.
18560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18561 # <limits.h> exists even on freestanding compilers.
18562 # On the NeXT, cc -E runs the code through the compiler's parser,
18563 # not just through cpp. "Syntax error" is here to catch this case.
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 #ifdef __STDC__
18567 # include <limits.h>
18568 #else
18569 # include <assert.h>
18570 #endif
18571 Syntax error
18572 _ACEOF
18573 if ac_fn_cxx_try_cpp "$LINENO"; then :
18575 else
18576 # Broken: fails on valid input.
18577 continue
18579 rm -f conftest.err conftest.$ac_ext
18581 # OK, works on sane cases. Now check whether nonexistent headers
18582 # can be detected and how.
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18585 #include <ac_nonexistent.h>
18586 _ACEOF
18587 if ac_fn_cxx_try_cpp "$LINENO"; then :
18588 # Broken: success on invalid input.
18589 continue
18590 else
18591 # Passes both tests.
18592 ac_preproc_ok=:
18593 break
18595 rm -f conftest.err conftest.$ac_ext
18597 done
18598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18599 rm -f conftest.err conftest.$ac_ext
18600 if $ac_preproc_ok; then :
18602 else
18603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18605 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18606 See \`config.log' for more details." "$LINENO" 5; }
18609 ac_ext=c
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615 else
18616 _lt_caught_CXX_error=yes
18619 ac_ext=cpp
18620 ac_cpp='$CXXCPP $CPPFLAGS'
18621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18625 archive_cmds_need_lc_CXX=no
18626 allow_undefined_flag_CXX=
18627 always_export_symbols_CXX=no
18628 archive_expsym_cmds_CXX=
18629 compiler_needs_object_CXX=no
18630 export_dynamic_flag_spec_CXX=
18631 hardcode_direct_CXX=no
18632 hardcode_direct_absolute_CXX=no
18633 hardcode_libdir_flag_spec_CXX=
18634 hardcode_libdir_flag_spec_ld_CXX=
18635 hardcode_libdir_separator_CXX=
18636 hardcode_minus_L_CXX=no
18637 hardcode_shlibpath_var_CXX=unsupported
18638 hardcode_automatic_CXX=no
18639 inherit_rpath_CXX=no
18640 module_cmds_CXX=
18641 module_expsym_cmds_CXX=
18642 link_all_deplibs_CXX=unknown
18643 old_archive_cmds_CXX=$old_archive_cmds
18644 reload_flag_CXX=$reload_flag
18645 reload_cmds_CXX=$reload_cmds
18646 no_undefined_flag_CXX=
18647 whole_archive_flag_spec_CXX=
18648 enable_shared_with_static_runtimes_CXX=no
18650 # Source file extension for C++ test sources.
18651 ac_ext=cpp
18653 # Object file extension for compiled C++ test sources.
18654 objext=o
18655 objext_CXX=$objext
18657 # No sense in running all these tests if we already determined that
18658 # the CXX compiler isn't working. Some variables (like enable_shared)
18659 # are currently assumed to apply to all compilers on this platform,
18660 # and will be corrupted by setting them based on a non-working compiler.
18661 if test "$_lt_caught_CXX_error" != yes; then
18662 # Code to be used in simple compile tests
18663 lt_simple_compile_test_code="int some_variable = 0;"
18665 # Code to be used in simple link tests
18666 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18675 # If no C compiler was specified, use CC.
18676 LTCC=${LTCC-"$CC"}
18678 # If no C compiler flags were specified, use CFLAGS.
18679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18681 # Allow CC to be a program name with arguments.
18682 compiler=$CC
18685 # save warnings/boilerplate of simple test code
18686 ac_outfile=conftest.$ac_objext
18687 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18689 _lt_compiler_boilerplate=`cat conftest.err`
18690 $RM conftest*
18692 ac_outfile=conftest.$ac_objext
18693 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18695 _lt_linker_boilerplate=`cat conftest.err`
18696 $RM -r conftest*
18699 # Allow CC to be a program name with arguments.
18700 lt_save_CC=$CC
18701 lt_save_LD=$LD
18702 lt_save_GCC=$GCC
18703 GCC=$GXX
18704 lt_save_with_gnu_ld=$with_gnu_ld
18705 lt_save_path_LD=$lt_cv_path_LD
18706 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18707 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18708 else
18709 $as_unset lt_cv_prog_gnu_ld
18711 if test -n "${lt_cv_path_LDCXX+set}"; then
18712 lt_cv_path_LD=$lt_cv_path_LDCXX
18713 else
18714 $as_unset lt_cv_path_LD
18716 test -z "${LDCXX+set}" || LD=$LDCXX
18717 CC=${CXX-"c++"}
18718 compiler=$CC
18719 compiler_CXX=$CC
18720 for cc_temp in $compiler""; do
18721 case $cc_temp in
18722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18724 \-*) ;;
18725 *) break;;
18726 esac
18727 done
18728 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18731 if test -n "$compiler"; then
18732 # We don't want -fno-exception when compiling C++ code, so set the
18733 # no_builtin_flag separately
18734 if test "$GXX" = yes; then
18735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18736 else
18737 lt_prog_compiler_no_builtin_flag_CXX=
18740 if test "$GXX" = yes; then
18741 # Set up default GNU C++ configuration
18745 # Check whether --with-gnu-ld was given.
18746 if test "${with_gnu_ld+set}" = set; then :
18747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18748 else
18749 with_gnu_ld=no
18752 ac_prog=ld
18753 if test "$GCC" = yes; then
18754 # Check if gcc -print-prog-name=ld gives a path.
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18756 $as_echo_n "checking for ld used by $CC... " >&6; }
18757 case $host in
18758 *-*-mingw*)
18759 # gcc leaves a trailing carriage return which upsets mingw
18760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18763 esac
18764 case $ac_prog in
18765 # Accept absolute paths.
18766 [\\/]* | ?:[\\/]*)
18767 re_direlt='/[^/][^/]*/\.\./'
18768 # Canonicalize the pathname of ld
18769 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18770 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18771 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18772 done
18773 test -z "$LD" && LD="$ac_prog"
18776 # If it fails, then pretend we aren't using GCC.
18777 ac_prog=ld
18780 # If it is relative, then search for the first ld in PATH.
18781 with_gnu_ld=unknown
18783 esac
18784 elif test "$with_gnu_ld" = yes; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18786 $as_echo_n "checking for GNU ld... " >&6; }
18787 else
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18789 $as_echo_n "checking for non-GNU ld... " >&6; }
18791 if test "${lt_cv_path_LD+set}" = set; then :
18792 $as_echo_n "(cached) " >&6
18793 else
18794 if test -z "$LD"; then
18795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18796 for ac_dir in $PATH; do
18797 IFS="$lt_save_ifs"
18798 test -z "$ac_dir" && ac_dir=.
18799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18800 lt_cv_path_LD="$ac_dir/$ac_prog"
18801 # Check to see if the program is GNU ld. I'd rather use --version,
18802 # but apparently some variants of GNU ld only accept -v.
18803 # Break only if it was the GNU/non-GNU ld that we prefer.
18804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18805 *GNU* | *'with BFD'*)
18806 test "$with_gnu_ld" != no && break
18809 test "$with_gnu_ld" != yes && break
18811 esac
18813 done
18814 IFS="$lt_save_ifs"
18815 else
18816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18820 LD="$lt_cv_path_LD"
18821 if test -n "$LD"; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18823 $as_echo "$LD" >&6; }
18824 else
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18828 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18830 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18831 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18832 $as_echo_n "(cached) " >&6
18833 else
18834 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18835 case `$LD -v 2>&1 </dev/null` in
18836 *GNU* | *'with BFD'*)
18837 lt_cv_prog_gnu_ld=yes
18840 lt_cv_prog_gnu_ld=no
18842 esac
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18845 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18846 with_gnu_ld=$lt_cv_prog_gnu_ld
18854 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18855 # archiving commands below assume that GNU ld is being used.
18856 if test "$with_gnu_ld" = yes; then
18857 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18858 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18863 # If archive_cmds runs LD, not CC, wlarc should be empty
18864 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18865 # investigate it a little bit more. (MM)
18866 wlarc='${wl}'
18868 # ancient GNU ld didn't support --whole-archive et. al.
18869 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18870 $GREP 'no-whole-archive' > /dev/null; then
18871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18872 else
18873 whole_archive_flag_spec_CXX=
18875 else
18876 with_gnu_ld=no
18877 wlarc=
18879 # A generic and very simple default shared library creation
18880 # command for GNU C++ for the case where it uses the native
18881 # linker, instead of GNU ld. If possible, this setting should
18882 # overridden to take advantage of the native linker features on
18883 # the platform it is being used on.
18884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
18890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18892 else
18893 GXX=no
18894 with_gnu_ld=no
18895 wlarc=
18898 # PORTME: fill in a description of your system's C++ link characteristics
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18901 ld_shlibs_CXX=yes
18902 case $host_os in
18903 aix3*)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18907 aix[4-9]*)
18908 if test "$host_cpu" = ia64; then
18909 # On IA64, the linker does run time linking by default, so we don't
18910 # have to do anything special.
18911 aix_use_runtimelinking=no
18912 exp_sym_flag='-Bexport'
18913 no_entry_flag=""
18914 else
18915 aix_use_runtimelinking=no
18917 # Test if we are trying to use run time linking or normal
18918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18919 # need to do runtime linking.
18920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18921 for ld_flag in $LDFLAGS; do
18922 case $ld_flag in
18923 *-brtl*)
18924 aix_use_runtimelinking=yes
18925 break
18927 esac
18928 done
18930 esac
18932 exp_sym_flag='-bexport'
18933 no_entry_flag='-bnoentry'
18936 # When large executables or shared objects are built, AIX ld can
18937 # have problems creating the table of contents. If linking a library
18938 # or program results in "error TOC overflow" add -mminimal-toc to
18939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18942 archive_cmds_CXX=''
18943 hardcode_direct_CXX=yes
18944 hardcode_direct_absolute_CXX=yes
18945 hardcode_libdir_separator_CXX=':'
18946 link_all_deplibs_CXX=yes
18947 file_list_spec_CXX='${wl}-f,'
18949 if test "$GXX" = yes; then
18950 case $host_os in aix4.[012]|aix4.[012].*)
18951 # We only want to do this on AIX 4.2 and lower, the check
18952 # below for broken collect2 doesn't work under 4.3+
18953 collect2name=`${CC} -print-prog-name=collect2`
18954 if test -f "$collect2name" &&
18955 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18956 then
18957 # We have reworked collect2
18959 else
18960 # We have old collect2
18961 hardcode_direct_CXX=unsupported
18962 # It fails to find uninstalled libraries when the uninstalled
18963 # path is not listed in the libpath. Setting hardcode_minus_L
18964 # to unsupported forces relinking
18965 hardcode_minus_L_CXX=yes
18966 hardcode_libdir_flag_spec_CXX='-L$libdir'
18967 hardcode_libdir_separator_CXX=
18969 esac
18970 shared_flag='-shared'
18971 if test "$aix_use_runtimelinking" = yes; then
18972 shared_flag="$shared_flag "'${wl}-G'
18974 else
18975 # not using gcc
18976 if test "$host_cpu" = ia64; then
18977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18978 # chokes on -Wl,-G. The following line is correct:
18979 shared_flag='-G'
18980 else
18981 if test "$aix_use_runtimelinking" = yes; then
18982 shared_flag='${wl}-G'
18983 else
18984 shared_flag='${wl}-bM:SRE'
18989 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18990 # It seems that -bexpall does not export symbols beginning with
18991 # underscore (_), so it is better to generate a list of symbols to
18992 # export.
18993 always_export_symbols_CXX=yes
18994 if test "$aix_use_runtimelinking" = yes; then
18995 # Warning - without using the other runtime loading flags (-brtl),
18996 # -berok will link without error, but may produce a broken library.
18997 allow_undefined_flag_CXX='-berok'
18998 # Determine the default libpath from the value encoded in an empty
18999 # executable.
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19004 main ()
19008 return 0;
19010 _ACEOF
19011 if ac_fn_cxx_try_link "$LINENO"; then :
19013 lt_aix_libpath_sed='
19014 /Import File Strings/,/^$/ {
19015 /^0/ {
19016 s/^0 *\(.*\)$/\1/
19020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 # Check for a 64-bit object if we didn't find anything.
19022 if test -z "$aix_libpath"; then
19023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19030 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19032 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"
19033 else
19034 if test "$host_cpu" = ia64; then
19035 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19036 allow_undefined_flag_CXX="-z nodefs"
19037 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"
19038 else
19039 # Determine the default libpath from the value encoded in an
19040 # empty executable.
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19045 main ()
19049 return 0;
19051 _ACEOF
19052 if ac_fn_cxx_try_link "$LINENO"; then :
19054 lt_aix_libpath_sed='
19055 /Import File Strings/,/^$/ {
19056 /^0/ {
19057 s/^0 *\(.*\)$/\1/
19061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19062 # Check for a 64-bit object if we didn't find anything.
19063 if test -z "$aix_libpath"; then
19064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19071 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19072 # Warning - without using the other run time loading flags,
19073 # -berok will link without error, but may produce a broken library.
19074 no_undefined_flag_CXX=' ${wl}-bernotok'
19075 allow_undefined_flag_CXX=' ${wl}-berok'
19076 if test "$with_gnu_ld" = yes; then
19077 # We only use this code for GNU lds that support --whole-archive.
19078 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19079 else
19080 # Exported symbols can be pulled into shared objects from archives
19081 whole_archive_flag_spec_CXX='$convenience'
19083 archive_cmds_need_lc_CXX=yes
19084 # This is similar to how AIX traditionally builds its shared
19085 # libraries.
19086 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'
19091 beos*)
19092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19093 allow_undefined_flag_CXX=unsupported
19094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19095 # support --undefined. This deserves some investigation. FIXME
19096 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19097 else
19098 ld_shlibs_CXX=no
19102 chorus*)
19103 case $cc_basename in
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19108 esac
19111 cygwin* | mingw* | pw32* | cegcc*)
19112 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19113 # as there is no search path for DLLs.
19114 hardcode_libdir_flag_spec_CXX='-L$libdir'
19115 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19116 allow_undefined_flag_CXX=unsupported
19117 always_export_symbols_CXX=no
19118 enable_shared_with_static_runtimes_CXX=yes
19120 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19121 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'
19122 # If the export-symbols file already is a .def file (1st line
19123 # is EXPORTS), use it as is; otherwise, prepend...
19124 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19125 cp $export_symbols $output_objdir/$soname.def;
19126 else
19127 echo EXPORTS > $output_objdir/$soname.def;
19128 cat $export_symbols >> $output_objdir/$soname.def;
19130 $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'
19131 else
19132 ld_shlibs_CXX=no
19135 darwin* | rhapsody*)
19138 archive_cmds_need_lc_CXX=no
19139 hardcode_direct_CXX=no
19140 hardcode_automatic_CXX=yes
19141 hardcode_shlibpath_var_CXX=unsupported
19142 if test "$lt_cv_ld_force_load" = "yes"; then
19143 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\"`'
19144 else
19145 whole_archive_flag_spec_CXX=''
19147 link_all_deplibs_CXX=yes
19148 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19149 case $cc_basename in
19150 ifort*) _lt_dar_can_shared=yes ;;
19151 *) _lt_dar_can_shared=$GCC ;;
19152 esac
19153 if test "$_lt_dar_can_shared" = "yes"; then
19154 output_verbose_link_cmd=func_echo_all
19155 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}"
19156 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19157 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}"
19158 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}"
19159 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19160 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}"
19161 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}"
19164 else
19165 ld_shlibs_CXX=no
19170 dgux*)
19171 case $cc_basename in
19172 ec++*)
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19176 ghcx*)
19177 # Green Hills C++ Compiler
19178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19185 esac
19188 freebsd2.*)
19189 # C++ shared libraries reported to be fairly broken before
19190 # switch to ELF
19191 ld_shlibs_CXX=no
19194 freebsd-elf*)
19195 archive_cmds_need_lc_CXX=no
19198 freebsd* | dragonfly*)
19199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19200 # conventions
19201 ld_shlibs_CXX=yes
19204 gnu*)
19207 haiku*)
19208 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 link_all_deplibs_CXX=yes
19212 hpux9*)
19213 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19214 hardcode_libdir_separator_CXX=:
19215 export_dynamic_flag_spec_CXX='${wl}-E'
19216 hardcode_direct_CXX=yes
19217 hardcode_minus_L_CXX=yes # Not in the search PATH,
19218 # but as the default
19219 # location of the library.
19221 case $cc_basename in
19222 CC*)
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19226 aCC*)
19227 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'
19228 # Commands to make compiler produce verbose output that lists
19229 # what "hidden" libraries, object files and flags are used when
19230 # linking a shared library.
19232 # There doesn't appear to be a way to prevent this compiler from
19233 # explicitly linking system object files so we need to strip them
19234 # from the output so that they don't get included in the library
19235 # dependencies.
19236 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"'
19239 if test "$GXX" = yes; then
19240 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'
19241 else
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19246 esac
19249 hpux10*|hpux11*)
19250 if test $with_gnu_ld = no; then
19251 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19252 hardcode_libdir_separator_CXX=:
19254 case $host_cpu in
19255 hppa*64*|ia64*)
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19260 esac
19262 case $host_cpu in
19263 hppa*64*|ia64*)
19264 hardcode_direct_CXX=no
19265 hardcode_shlibpath_var_CXX=no
19268 hardcode_direct_CXX=yes
19269 hardcode_direct_absolute_CXX=yes
19270 hardcode_minus_L_CXX=yes # Not in the search PATH,
19271 # but as the default
19272 # location of the library.
19274 esac
19276 case $cc_basename in
19277 CC*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19281 aCC*)
19282 case $host_cpu in
19283 hppa*64*)
19284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19286 ia64*)
19287 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19290 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19292 esac
19293 # Commands to make compiler produce verbose output that lists
19294 # what "hidden" libraries, object files and flags are used when
19295 # linking a shared library.
19297 # There doesn't appear to be a way to prevent this compiler from
19298 # explicitly linking system object files so we need to strip them
19299 # from the output so that they don't get included in the library
19300 # dependencies.
19301 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"'
19304 if test "$GXX" = yes; then
19305 if test $with_gnu_ld = no; then
19306 case $host_cpu in
19307 hppa*64*)
19308 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19310 ia64*)
19311 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19314 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'
19316 esac
19318 else
19319 # FIXME: insert proper C++ library support
19320 ld_shlibs_CXX=no
19323 esac
19326 interix[3-9]*)
19327 hardcode_direct_CXX=no
19328 hardcode_shlibpath_var_CXX=no
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX='${wl}-E'
19331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19332 # Instead, shared libraries are loaded at an image base (0x10000000 by
19333 # default) and relocated if they conflict, which is a slow very memory
19334 # consuming and fragmenting process. To avoid this, we pick a random,
19335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19337 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'
19338 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'
19340 irix5* | irix6*)
19341 case $cc_basename in
19342 CC*)
19343 # SGI C++
19344 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'
19346 # Archives containing C++ object files must be created using
19347 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19348 # necessary to make sure instantiated templates are included
19349 # in the archive.
19350 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19353 if test "$GXX" = yes; then
19354 if test "$with_gnu_ld" = no; then
19355 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'
19356 else
19357 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'
19360 link_all_deplibs_CXX=yes
19362 esac
19363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19364 hardcode_libdir_separator_CXX=:
19365 inherit_rpath_CXX=yes
19368 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19369 case $cc_basename in
19370 KCC*)
19371 # Kuck and Associates, Inc. (KAI) C++ Compiler
19373 # KCC will only create a shared library if the output file
19374 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19375 # to its proper name (with version) after linking.
19376 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'
19377 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'
19378 # Commands to make compiler produce verbose output that lists
19379 # what "hidden" libraries, object files and flags are used when
19380 # linking a shared library.
19382 # There doesn't appear to be a way to prevent this compiler from
19383 # explicitly linking system object files so we need to strip them
19384 # from the output so that they don't get included in the library
19385 # dependencies.
19386 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"'
19388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19391 # Archives containing C++ object files must be created using
19392 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19393 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19395 icpc* | ecpc* )
19396 # Intel C++
19397 with_gnu_ld=yes
19398 # version 8.0 and above of icpc choke on multiply defined symbols
19399 # if we add $predep_objects and $postdep_objects, however 7.1 and
19400 # earlier do not add the objects themselves.
19401 case `$CC -V 2>&1` in
19402 *"Version 7."*)
19403 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19404 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'
19406 *) # Version 8.0 or newer
19407 tmp_idyn=
19408 case $host_cpu in
19409 ia64*) tmp_idyn=' -i_dynamic';;
19410 esac
19411 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412 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'
19414 esac
19415 archive_cmds_need_lc_CXX=no
19416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19418 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19420 pgCC* | pgcpp*)
19421 # Portland Group C++ compiler
19422 case `$CC -V` in
19423 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19424 prelink_cmds_CXX='tpldir=Template.dir~
19425 rm -rf $tpldir~
19426 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19427 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19428 old_archive_cmds_CXX='tpldir=Template.dir~
19429 rm -rf $tpldir~
19430 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19431 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19432 $RANLIB $oldlib'
19433 archive_cmds_CXX='tpldir=Template.dir~
19434 rm -rf $tpldir~
19435 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19436 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19437 archive_expsym_cmds_CXX='tpldir=Template.dir~
19438 rm -rf $tpldir~
19439 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19440 $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'
19442 *) # Version 6 and above use weak symbols
19443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19444 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'
19446 esac
19448 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19450 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'
19452 cxx*)
19453 # Compaq C++
19454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19455 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'
19457 runpath_var=LD_RUN_PATH
19458 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19459 hardcode_libdir_separator_CXX=:
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19465 # There doesn't appear to be a way to prevent this compiler from
19466 # explicitly linking system object files so we need to strip them
19467 # from the output so that they don't get included in the library
19468 # dependencies.
19469 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'
19471 xl* | mpixl* | bgxl*)
19472 # IBM XL 8.0 on PPC, with GNU ld
19473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19475 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19476 if test "x$supports_anon_versioning" = xyes; then
19477 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19479 echo "local: *; };" >> $output_objdir/$libname.ver~
19480 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19484 case `$CC -V 2>&1 | sed 5q` in
19485 *Sun\ C*)
19486 # Sun C++ 5.9
19487 no_undefined_flag_CXX=' -zdefs'
19488 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19489 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'
19490 hardcode_libdir_flag_spec_CXX='-R$libdir'
19491 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'
19492 compiler_needs_object_CXX=yes
19494 # Not sure whether something based on
19495 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19496 # would be better.
19497 output_verbose_link_cmd='func_echo_all'
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19502 # in the archive.
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19505 esac
19507 esac
19510 lynxos*)
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19515 m88k*)
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19520 mvs*)
19521 case $cc_basename in
19522 cxx*)
19523 # FIXME: insert proper C++ library support
19524 ld_shlibs_CXX=no
19527 # FIXME: insert proper C++ library support
19528 ld_shlibs_CXX=no
19530 esac
19533 netbsd*)
19534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19535 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19536 wlarc=
19537 hardcode_libdir_flag_spec_CXX='-R$libdir'
19538 hardcode_direct_CXX=yes
19539 hardcode_shlibpath_var_CXX=no
19541 # Workaround some broken pre-1.5 toolchains
19542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19545 *nto* | *qnx*)
19546 ld_shlibs_CXX=yes
19549 openbsd2*)
19550 # C++ shared libraries are fairly broken
19551 ld_shlibs_CXX=no
19554 openbsd*)
19555 if test -f /usr/libexec/ld.so; then
19556 hardcode_direct_CXX=yes
19557 hardcode_shlibpath_var_CXX=no
19558 hardcode_direct_absolute_CXX=yes
19559 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19562 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19563 export_dynamic_flag_spec_CXX='${wl}-E'
19564 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19566 output_verbose_link_cmd=func_echo_all
19567 else
19568 ld_shlibs_CXX=no
19572 osf3* | osf4* | osf5*)
19573 case $cc_basename in
19574 KCC*)
19575 # Kuck and Associates, Inc. (KAI) C++ Compiler
19577 # KCC will only create a shared library if the output file
19578 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19579 # to its proper name (with version) after linking.
19580 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'
19582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19583 hardcode_libdir_separator_CXX=:
19585 # Archives containing C++ object files must be created using
19586 # the KAI C++ compiler.
19587 case $host in
19588 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19589 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19590 esac
19592 RCC*)
19593 # Rational C++ 2.4.1
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19597 cxx*)
19598 case $host in
19599 osf3*)
19600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19601 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'
19602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19605 allow_undefined_flag_CXX=' -expect_unresolved \*'
19606 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'
19607 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19608 echo "-hidden">> $lib.exp~
19609 $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~
19610 $RM $lib.exp'
19611 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19613 esac
19615 hardcode_libdir_separator_CXX=:
19617 # Commands to make compiler produce verbose output that lists
19618 # what "hidden" libraries, object files and flags are used when
19619 # linking a shared library.
19621 # There doesn't appear to be a way to prevent this compiler from
19622 # explicitly linking system object files so we need to strip them
19623 # from the output so that they don't get included in the library
19624 # dependencies.
19625 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"'
19628 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19630 case $host in
19631 osf3*)
19632 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'
19635 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'
19637 esac
19639 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19640 hardcode_libdir_separator_CXX=:
19642 # Commands to make compiler produce verbose output that lists
19643 # what "hidden" libraries, object files and flags are used when
19644 # linking a shared library.
19645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19647 else
19648 # FIXME: insert proper C++ library support
19649 ld_shlibs_CXX=no
19652 esac
19655 psos*)
19656 # FIXME: insert proper C++ library support
19657 ld_shlibs_CXX=no
19660 sunos4*)
19661 case $cc_basename in
19662 CC*)
19663 # Sun C++ 4.x
19664 # FIXME: insert proper C++ library support
19665 ld_shlibs_CXX=no
19667 lcc*)
19668 # Lucid
19669 # FIXME: insert proper C++ library support
19670 ld_shlibs_CXX=no
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19676 esac
19679 solaris*)
19680 case $cc_basename in
19681 CC*)
19682 # Sun C++ 4.2, 5.x and Centerline C++
19683 archive_cmds_need_lc_CXX=yes
19684 no_undefined_flag_CXX=' -zdefs'
19685 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19686 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19687 $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'
19689 hardcode_libdir_flag_spec_CXX='-R$libdir'
19690 hardcode_shlibpath_var_CXX=no
19691 case $host_os in
19692 solaris2.[0-5] | solaris2.[0-5].*) ;;
19694 # The compiler driver will combine and reorder linker options,
19695 # but understands `-z linker_flag'.
19696 # Supported since Solaris 2.6 (maybe 2.5.1?)
19697 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19699 esac
19700 link_all_deplibs_CXX=yes
19702 output_verbose_link_cmd='func_echo_all'
19704 # Archives containing C++ object files must be created using
19705 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19706 # necessary to make sure instantiated templates are included
19707 # in the archive.
19708 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19710 gcx*)
19711 # Green Hills C++ Compiler
19712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19714 # The C++ compiler must be used to create the archive.
19715 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19718 # GNU C++ compiler with Solaris linker
19719 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19720 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19721 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19722 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19723 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19724 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19726 # Commands to make compiler produce verbose output that lists
19727 # what "hidden" libraries, object files and flags are used when
19728 # linking a shared library.
19729 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19730 else
19731 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19732 # platform.
19733 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19735 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19737 # Commands to make compiler produce verbose output that lists
19738 # what "hidden" libraries, object files and flags are used when
19739 # linking a shared library.
19740 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19743 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19744 case $host_os in
19745 solaris2.[0-5] | solaris2.[0-5].*) ;;
19747 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19749 esac
19752 esac
19755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19756 no_undefined_flag_CXX='${wl}-z,text'
19757 archive_cmds_need_lc_CXX=no
19758 hardcode_shlibpath_var_CXX=no
19759 runpath_var='LD_RUN_PATH'
19761 case $cc_basename in
19762 CC*)
19763 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 esac
19773 sysv5* | sco3.2v5* | sco5v6*)
19774 # Note: We can NOT use -z defs as we might desire, because we do not
19775 # link with -lc, and that would cause any symbols used from libc to
19776 # always be unresolved, which means just about no library would
19777 # ever link correctly. If we're not using GNU ld we use -z text
19778 # though, which does catch some bad symbols but isn't as heavy-handed
19779 # as -z defs.
19780 no_undefined_flag_CXX='${wl}-z,text'
19781 allow_undefined_flag_CXX='${wl}-z,nodefs'
19782 archive_cmds_need_lc_CXX=no
19783 hardcode_shlibpath_var_CXX=no
19784 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19785 hardcode_libdir_separator_CXX=':'
19786 link_all_deplibs_CXX=yes
19787 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19788 runpath_var='LD_RUN_PATH'
19790 case $cc_basename in
19791 CC*)
19792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19794 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19795 '"$old_archive_cmds_CXX"
19796 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19797 '"$reload_cmds_CXX"
19800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19803 esac
19806 tandem*)
19807 case $cc_basename in
19808 NCC*)
19809 # NonStop-UX NCC 3.20
19810 # FIXME: insert proper C++ library support
19811 ld_shlibs_CXX=no
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19817 esac
19820 vxworks*)
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19826 # FIXME: insert proper C++ library support
19827 ld_shlibs_CXX=no
19829 esac
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19832 $as_echo "$ld_shlibs_CXX" >&6; }
19833 test "$ld_shlibs_CXX" = no && can_build_shared=no
19835 GCC_CXX="$GXX"
19836 LD_CXX="$LD"
19838 ## CAVEAT EMPTOR:
19839 ## There is no encapsulation within the following macros, do not change
19840 ## the running order or otherwise move them around unless you know exactly
19841 ## what you are doing...
19842 # Dependencies to place before and after the object being linked:
19843 predep_objects_CXX=
19844 postdep_objects_CXX=
19845 predeps_CXX=
19846 postdeps_CXX=
19847 compiler_lib_search_path_CXX=
19849 cat > conftest.$ac_ext <<_LT_EOF
19850 class Foo
19852 public:
19853 Foo (void) { a = 0; }
19854 private:
19855 int a;
19857 _LT_EOF
19859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19860 (eval $ac_compile) 2>&5
19861 ac_status=$?
19862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19863 test $ac_status = 0; }; then
19864 # Parse the compiler output and extract the necessary
19865 # objects, libraries and library flags.
19867 # Sentinel used to keep track of whether or not we are before
19868 # the conftest object file.
19869 pre_test_object_deps_done=no
19871 for p in `eval "$output_verbose_link_cmd"`; do
19872 case $p in
19874 -L* | -R* | -l*)
19875 # Some compilers place space between "-{L,R}" and the path.
19876 # Remove the space.
19877 if test $p = "-L" ||
19878 test $p = "-R"; then
19879 prev=$p
19880 continue
19881 else
19882 prev=
19885 if test "$pre_test_object_deps_done" = no; then
19886 case $p in
19887 -L* | -R*)
19888 # Internal compiler library paths should come after those
19889 # provided the user. The postdeps already come after the
19890 # user supplied libs so there is no need to process them.
19891 if test -z "$compiler_lib_search_path_CXX"; then
19892 compiler_lib_search_path_CXX="${prev}${p}"
19893 else
19894 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19897 # The "-l" case would never come before the object being
19898 # linked, so don't bother handling this case.
19899 esac
19900 else
19901 if test -z "$postdeps_CXX"; then
19902 postdeps_CXX="${prev}${p}"
19903 else
19904 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19909 *.$objext)
19910 # This assumes that the test object file only shows up
19911 # once in the compiler output.
19912 if test "$p" = "conftest.$objext"; then
19913 pre_test_object_deps_done=yes
19914 continue
19917 if test "$pre_test_object_deps_done" = no; then
19918 if test -z "$predep_objects_CXX"; then
19919 predep_objects_CXX="$p"
19920 else
19921 predep_objects_CXX="$predep_objects_CXX $p"
19923 else
19924 if test -z "$postdep_objects_CXX"; then
19925 postdep_objects_CXX="$p"
19926 else
19927 postdep_objects_CXX="$postdep_objects_CXX $p"
19932 *) ;; # Ignore the rest.
19934 esac
19935 done
19937 # Clean up.
19938 rm -f a.out a.exe
19939 else
19940 echo "libtool.m4: error: problem compiling CXX test program"
19943 $RM -f confest.$objext
19945 # PORTME: override above test on systems where it is broken
19946 case $host_os in
19947 interix[3-9]*)
19948 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19949 # hack all around it, let's just trust "g++" to DTRT.
19950 predep_objects_CXX=
19951 postdep_objects_CXX=
19952 postdeps_CXX=
19955 linux*)
19956 case `$CC -V 2>&1 | sed 5q` in
19957 *Sun\ C*)
19958 # Sun C++ 5.9
19960 # The more standards-conforming stlport4 library is
19961 # incompatible with the Cstd library. Avoid specifying
19962 # it if it's in CXXFLAGS. Ignore libCrun as
19963 # -library=stlport4 depends on it.
19964 case " $CXX $CXXFLAGS " in
19965 *" -library=stlport4 "*)
19966 solaris_use_stlport4=yes
19968 esac
19970 if test "$solaris_use_stlport4" != yes; then
19971 postdeps_CXX='-library=Cstd -library=Crun'
19974 esac
19977 solaris*)
19978 case $cc_basename in
19979 CC*)
19980 # The more standards-conforming stlport4 library is
19981 # incompatible with the Cstd library. Avoid specifying
19982 # it if it's in CXXFLAGS. Ignore libCrun as
19983 # -library=stlport4 depends on it.
19984 case " $CXX $CXXFLAGS " in
19985 *" -library=stlport4 "*)
19986 solaris_use_stlport4=yes
19988 esac
19990 # Adding this requires a known-good setup of shared libraries for
19991 # Sun compiler versions before 5.6, else PIC objects from an old
19992 # archive will be linked into the output, leading to subtle bugs.
19993 if test "$solaris_use_stlport4" != yes; then
19994 postdeps_CXX='-library=Cstd -library=Crun'
19997 esac
19999 esac
20002 case " $postdeps_CXX " in
20003 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20004 esac
20005 compiler_lib_search_dirs_CXX=
20006 if test -n "${compiler_lib_search_path_CXX}"; then
20007 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20040 lt_prog_compiler_wl_CXX=
20041 lt_prog_compiler_pic_CXX=
20042 lt_prog_compiler_static_CXX=
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20045 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20047 # C++ specific cases for pic, static, wl, etc.
20048 if test "$GXX" = yes; then
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 lt_prog_compiler_static_CXX='-static'
20052 case $host_os in
20053 aix*)
20054 # All AIX code is PIC.
20055 if test "$host_cpu" = ia64; then
20056 # AIX 5 now supports IA64 processor
20057 lt_prog_compiler_static_CXX='-Bstatic'
20059 lt_prog_compiler_pic_CXX='-fPIC'
20062 amigaos*)
20063 case $host_cpu in
20064 powerpc)
20065 # see comment about AmigaOS4 .so support
20066 lt_prog_compiler_pic_CXX='-fPIC'
20068 m68k)
20069 # FIXME: we need at least 68020 code to build shared libraries, but
20070 # adding the `-m68020' flag to GCC prevents building anything better,
20071 # like `-m68040'.
20072 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20074 esac
20077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20078 # PIC is the default for these OSes.
20080 mingw* | cygwin* | os2* | pw32* | cegcc*)
20081 # This hack is so that the source file can tell whether it is being
20082 # built for inclusion in a dll (and should export symbols for example).
20083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20084 # (--disable-auto-import) libraries
20085 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20087 darwin* | rhapsody*)
20088 # PIC is the default on this platform
20089 # Common symbols not allowed in MH_DYLIB files
20090 lt_prog_compiler_pic_CXX='-fno-common'
20092 *djgpp*)
20093 # DJGPP does not support shared libraries at all
20094 lt_prog_compiler_pic_CXX=
20096 haiku*)
20097 # PIC is the default for Haiku.
20098 # The "-static" flag exists, but is broken.
20099 lt_prog_compiler_static_CXX=
20101 interix[3-9]*)
20102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20103 # Instead, we relocate shared libraries at runtime.
20105 sysv4*MP*)
20106 if test -d /usr/nec; then
20107 lt_prog_compiler_pic_CXX=-Kconform_pic
20110 hpux*)
20111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20113 # sets the default TLS model and affects inlining.
20114 case $host_cpu in
20115 hppa*64*)
20118 lt_prog_compiler_pic_CXX='-fPIC'
20120 esac
20122 *qnx* | *nto*)
20123 # QNX uses GNU C++, but need to define -shared option too, otherwise
20124 # it will coredump.
20125 lt_prog_compiler_pic_CXX='-fPIC -shared'
20128 lt_prog_compiler_pic_CXX='-fPIC'
20130 esac
20131 else
20132 case $host_os in
20133 aix[4-9]*)
20134 # All AIX code is PIC.
20135 if test "$host_cpu" = ia64; then
20136 # AIX 5 now supports IA64 processor
20137 lt_prog_compiler_static_CXX='-Bstatic'
20138 else
20139 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20142 chorus*)
20143 case $cc_basename in
20144 cxch68*)
20145 # Green Hills C++ Compiler
20146 # _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"
20148 esac
20150 dgux*)
20151 case $cc_basename in
20152 ec++*)
20153 lt_prog_compiler_pic_CXX='-KPIC'
20155 ghcx*)
20156 # Green Hills C++ Compiler
20157 lt_prog_compiler_pic_CXX='-pic'
20161 esac
20163 freebsd* | dragonfly*)
20164 # FreeBSD uses GNU C++
20166 hpux9* | hpux10* | hpux11*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20171 if test "$host_cpu" != ia64; then
20172 lt_prog_compiler_pic_CXX='+Z'
20175 aCC*)
20176 lt_prog_compiler_wl_CXX='-Wl,'
20177 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20178 case $host_cpu in
20179 hppa*64*|ia64*)
20180 # +Z the default
20183 lt_prog_compiler_pic_CXX='+Z'
20185 esac
20189 esac
20191 interix*)
20192 # This is c89, which is MS Visual C++ (no shared libs)
20193 # Anyone wants to do a port?
20195 irix5* | irix6* | nonstopux*)
20196 case $cc_basename in
20197 CC*)
20198 lt_prog_compiler_wl_CXX='-Wl,'
20199 lt_prog_compiler_static_CXX='-non_shared'
20200 # CC pic flag -KPIC is the default.
20204 esac
20206 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20207 case $cc_basename in
20208 KCC*)
20209 # KAI C++ Compiler
20210 lt_prog_compiler_wl_CXX='--backend -Wl,'
20211 lt_prog_compiler_pic_CXX='-fPIC'
20213 ecpc* )
20214 # old Intel C++ for x86_64 which still supported -KPIC.
20215 lt_prog_compiler_wl_CXX='-Wl,'
20216 lt_prog_compiler_pic_CXX='-KPIC'
20217 lt_prog_compiler_static_CXX='-static'
20219 icpc* )
20220 # Intel C++, used to be incompatible with GCC.
20221 # ICC 10 doesn't accept -KPIC any more.
20222 lt_prog_compiler_wl_CXX='-Wl,'
20223 lt_prog_compiler_pic_CXX='-fPIC'
20224 lt_prog_compiler_static_CXX='-static'
20226 pgCC* | pgcpp*)
20227 # Portland Group C++ compiler
20228 lt_prog_compiler_wl_CXX='-Wl,'
20229 lt_prog_compiler_pic_CXX='-fpic'
20230 lt_prog_compiler_static_CXX='-Bstatic'
20232 cxx*)
20233 # Compaq C++
20234 # Make sure the PIC flag is empty. It appears that all Alpha
20235 # Linux and Compaq Tru64 Unix objects are PIC.
20236 lt_prog_compiler_pic_CXX=
20237 lt_prog_compiler_static_CXX='-non_shared'
20239 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20240 # IBM XL 8.0, 9.0 on PPC and BlueGene
20241 lt_prog_compiler_wl_CXX='-Wl,'
20242 lt_prog_compiler_pic_CXX='-qpic'
20243 lt_prog_compiler_static_CXX='-qstaticlink'
20246 case `$CC -V 2>&1 | sed 5q` in
20247 *Sun\ C*)
20248 # Sun C++ 5.9
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 lt_prog_compiler_static_CXX='-Bstatic'
20251 lt_prog_compiler_wl_CXX='-Qoption ld '
20253 esac
20255 esac
20257 lynxos*)
20259 m88k*)
20261 mvs*)
20262 case $cc_basename in
20263 cxx*)
20264 lt_prog_compiler_pic_CXX='-W c,exportall'
20268 esac
20270 netbsd*)
20272 *qnx* | *nto*)
20273 # QNX uses GNU C++, but need to define -shared option too, otherwise
20274 # it will coredump.
20275 lt_prog_compiler_pic_CXX='-fPIC -shared'
20277 osf3* | osf4* | osf5*)
20278 case $cc_basename in
20279 KCC*)
20280 lt_prog_compiler_wl_CXX='--backend -Wl,'
20282 RCC*)
20283 # Rational C++ 2.4.1
20284 lt_prog_compiler_pic_CXX='-pic'
20286 cxx*)
20287 # Digital/Compaq C++
20288 lt_prog_compiler_wl_CXX='-Wl,'
20289 # Make sure the PIC flag is empty. It appears that all Alpha
20290 # Linux and Compaq Tru64 Unix objects are PIC.
20291 lt_prog_compiler_pic_CXX=
20292 lt_prog_compiler_static_CXX='-non_shared'
20296 esac
20298 psos*)
20300 solaris*)
20301 case $cc_basename in
20302 CC*)
20303 # Sun C++ 4.2, 5.x and Centerline C++
20304 lt_prog_compiler_pic_CXX='-KPIC'
20305 lt_prog_compiler_static_CXX='-Bstatic'
20306 lt_prog_compiler_wl_CXX='-Qoption ld '
20308 gcx*)
20309 # Green Hills C++ Compiler
20310 lt_prog_compiler_pic_CXX='-PIC'
20314 esac
20316 sunos4*)
20317 case $cc_basename in
20318 CC*)
20319 # Sun C++ 4.x
20320 lt_prog_compiler_pic_CXX='-pic'
20321 lt_prog_compiler_static_CXX='-Bstatic'
20323 lcc*)
20324 # Lucid
20325 lt_prog_compiler_pic_CXX='-pic'
20329 esac
20331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20332 case $cc_basename in
20333 CC*)
20334 lt_prog_compiler_wl_CXX='-Wl,'
20335 lt_prog_compiler_pic_CXX='-KPIC'
20336 lt_prog_compiler_static_CXX='-Bstatic'
20338 esac
20340 tandem*)
20341 case $cc_basename in
20342 NCC*)
20343 # NonStop-UX NCC 3.20
20344 lt_prog_compiler_pic_CXX='-KPIC'
20348 esac
20350 vxworks*)
20353 lt_prog_compiler_can_build_shared_CXX=no
20355 esac
20358 case $host_os in
20359 # For platforms which do not support PIC, -DPIC is meaningless:
20360 *djgpp*)
20361 lt_prog_compiler_pic_CXX=
20364 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20366 esac
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20368 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20373 # Check to make sure the PIC flag actually works.
20375 if test -n "$lt_prog_compiler_pic_CXX"; then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20378 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20381 lt_cv_prog_compiler_pic_works_CXX=no
20382 ac_outfile=conftest.$ac_objext
20383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20385 # Insert the option either (1) after the last *FLAGS variable, or
20386 # (2) before a word containing "conftest.", or (3) at the end.
20387 # Note that $ac_compile itself does not contain backslashes and begins
20388 # with a dollar sign (not a hyphen), so the echo should work correctly.
20389 # The option is referenced via a variable to avoid confusing sed.
20390 lt_compile=`echo "$ac_compile" | $SED \
20391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20393 -e 's:$: $lt_compiler_flag:'`
20394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20395 (eval "$lt_compile" 2>conftest.err)
20396 ac_status=$?
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 if (exit $ac_status) && test -s "$ac_outfile"; then
20400 # The compiler can only warn and ignore the option if not recognized
20401 # So say no if there are warnings other than the usual output.
20402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20405 lt_cv_prog_compiler_pic_works_CXX=yes
20408 $RM conftest*
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20415 case $lt_prog_compiler_pic_CXX in
20416 "" | " "*) ;;
20417 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20418 esac
20419 else
20420 lt_prog_compiler_pic_CXX=
20421 lt_prog_compiler_can_build_shared_CXX=no
20429 # Check to make sure the static flag actually works.
20431 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20433 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20434 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20435 $as_echo_n "(cached) " >&6
20436 else
20437 lt_cv_prog_compiler_static_works_CXX=no
20438 save_LDFLAGS="$LDFLAGS"
20439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20440 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20442 # The linker can only warn and ignore the option if not recognized
20443 # So say no if there are warnings
20444 if test -s conftest.err; then
20445 # Append any errors to the config.log.
20446 cat conftest.err 1>&5
20447 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20449 if diff conftest.exp conftest.er2 >/dev/null; then
20450 lt_cv_prog_compiler_static_works_CXX=yes
20452 else
20453 lt_cv_prog_compiler_static_works_CXX=yes
20456 $RM -r conftest*
20457 LDFLAGS="$save_LDFLAGS"
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20461 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20463 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20465 else
20466 lt_prog_compiler_static_CXX=
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20473 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20474 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20477 lt_cv_prog_compiler_c_o_CXX=no
20478 $RM -r conftest 2>/dev/null
20479 mkdir conftest
20480 cd conftest
20481 mkdir out
20482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20484 lt_compiler_flag="-o out/conftest2.$ac_objext"
20485 # Insert the option either (1) after the last *FLAGS variable, or
20486 # (2) before a word containing "conftest.", or (3) at the end.
20487 # Note that $ac_compile itself does not contain backslashes and begins
20488 # with a dollar sign (not a hyphen), so the echo should work correctly.
20489 lt_compile=`echo "$ac_compile" | $SED \
20490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20492 -e 's:$: $lt_compiler_flag:'`
20493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20494 (eval "$lt_compile" 2>out/conftest.err)
20495 ac_status=$?
20496 cat out/conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20499 then
20500 # The compiler can only warn and ignore the option if not recognized
20501 # So say no if there are warnings
20502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20505 lt_cv_prog_compiler_c_o_CXX=yes
20508 chmod u+w . 2>&5
20509 $RM conftest*
20510 # SGI C++ compiler will create directory out/ii_files/ for
20511 # template instantiation
20512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20513 $RM out/* && rmdir out
20514 cd ..
20515 $RM -r conftest
20516 $RM conftest*
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20520 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20525 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20526 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20528 else
20529 lt_cv_prog_compiler_c_o_CXX=no
20530 $RM -r conftest 2>/dev/null
20531 mkdir conftest
20532 cd conftest
20533 mkdir out
20534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20536 lt_compiler_flag="-o out/conftest2.$ac_objext"
20537 # Insert the option either (1) after the last *FLAGS variable, or
20538 # (2) before a word containing "conftest.", or (3) at the end.
20539 # Note that $ac_compile itself does not contain backslashes and begins
20540 # with a dollar sign (not a hyphen), so the echo should work correctly.
20541 lt_compile=`echo "$ac_compile" | $SED \
20542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20544 -e 's:$: $lt_compiler_flag:'`
20545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20546 (eval "$lt_compile" 2>out/conftest.err)
20547 ac_status=$?
20548 cat out/conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20551 then
20552 # The compiler can only warn and ignore the option if not recognized
20553 # So say no if there are warnings
20554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20555 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20556 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20557 lt_cv_prog_compiler_c_o_CXX=yes
20560 chmod u+w . 2>&5
20561 $RM conftest*
20562 # SGI C++ compiler will create directory out/ii_files/ for
20563 # template instantiation
20564 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20565 $RM out/* && rmdir out
20566 cd ..
20567 $RM -r conftest
20568 $RM conftest*
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20572 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20577 hard_links="nottested"
20578 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20579 # do not overwrite the value of need_locks provided by the user
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20581 $as_echo_n "checking if we can lock with hard links... " >&6; }
20582 hard_links=yes
20583 $RM conftest*
20584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20585 touch conftest.a
20586 ln conftest.a conftest.b 2>&5 || hard_links=no
20587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20589 $as_echo "$hard_links" >&6; }
20590 if test "$hard_links" = no; then
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20592 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20593 need_locks=warn
20595 else
20596 need_locks=no
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20602 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20605 case $host_os in
20606 aix[4-9]*)
20607 # If we're using GNU nm, then we don't want the "-C" option.
20608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20609 # Also, AIX nm treats weak defined symbols like other global defined
20610 # symbols, whereas GNU nm marks them as "W".
20611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20612 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'
20613 else
20614 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'
20617 pw32*)
20618 export_symbols_cmds_CXX="$ltdll_cmds"
20620 cygwin* | mingw* | cegcc*)
20621 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'
20624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20626 esac
20627 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20630 $as_echo "$ld_shlibs_CXX" >&6; }
20631 test "$ld_shlibs_CXX" = no && can_build_shared=no
20633 with_gnu_ld_CXX=$with_gnu_ld
20641 # Do we need to explicitly link libc?
20643 case "x$archive_cmds_need_lc_CXX" in
20644 x|xyes)
20645 # Assume -lc should be added
20646 archive_cmds_need_lc_CXX=yes
20648 if test "$enable_shared" = yes && test "$GCC" = yes; then
20649 case $archive_cmds_CXX in
20650 *'~'*)
20651 # FIXME: we may have to deal with multi-command sequences.
20653 '$CC '*)
20654 # Test whether the compiler implicitly links with -lc since on some
20655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20656 # to ld, don't add -lc before -lgcc.
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20658 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20659 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20660 $as_echo_n "(cached) " >&6
20661 else
20662 $RM conftest*
20663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20666 (eval $ac_compile) 2>&5
20667 ac_status=$?
20668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20669 test $ac_status = 0; } 2>conftest.err; then
20670 soname=conftest
20671 lib=conftest
20672 libobjs=conftest.$ac_objext
20673 deplibs=
20674 wl=$lt_prog_compiler_wl_CXX
20675 pic_flag=$lt_prog_compiler_pic_CXX
20676 compiler_flags=-v
20677 linker_flags=-v
20678 verstring=
20679 output_objdir=.
20680 libname=conftest
20681 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20682 allow_undefined_flag_CXX=
20683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20684 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20685 ac_status=$?
20686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20687 test $ac_status = 0; }
20688 then
20689 lt_cv_archive_cmds_need_lc_CXX=no
20690 else
20691 lt_cv_archive_cmds_need_lc_CXX=yes
20693 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20694 else
20695 cat conftest.err 1>&5
20697 $RM conftest*
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20701 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20702 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20704 esac
20707 esac
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20773 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20775 library_names_spec=
20776 libname_spec='lib$name'
20777 soname_spec=
20778 shrext_cmds=".so"
20779 postinstall_cmds=
20780 postuninstall_cmds=
20781 finish_cmds=
20782 finish_eval=
20783 shlibpath_var=
20784 shlibpath_overrides_runpath=unknown
20785 version_type=none
20786 dynamic_linker="$host_os ld.so"
20787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20788 need_lib_prefix=unknown
20789 hardcode_into_libs=no
20791 # when you set need_version to no, make sure it does not cause -set_version
20792 # flags to be left without arguments
20793 need_version=unknown
20795 case $host_os in
20796 aix3*)
20797 version_type=linux
20798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20799 shlibpath_var=LIBPATH
20801 # AIX 3 has no versioning support, so we append a major version to the name.
20802 soname_spec='${libname}${release}${shared_ext}$major'
20805 aix[4-9]*)
20806 version_type=linux
20807 need_lib_prefix=no
20808 need_version=no
20809 hardcode_into_libs=yes
20810 if test "$host_cpu" = ia64; then
20811 # AIX 5 supports IA64
20812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 else
20815 # With GCC up to 2.95.x, collect2 would create an import file
20816 # for dependence libraries. The import file would start with
20817 # the line `#! .'. This would cause the generated library to
20818 # depend on `.', always an invalid library. This was fixed in
20819 # development snapshots of GCC prior to 3.0.
20820 case $host_os in
20821 aix4 | aix4.[01] | aix4.[01].*)
20822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20823 echo ' yes '
20824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20826 else
20827 can_build_shared=no
20830 esac
20831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20832 # soname into executable. Probably we can add versioning support to
20833 # collect2, so additional links can be useful in future.
20834 if test "$aix_use_runtimelinking" = yes; then
20835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20836 # instead of lib<name>.a to let people know that these are not
20837 # typical AIX shared libraries.
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 else
20840 # We preserve .a as extension for shared libraries through AIX4.2
20841 # and later when we are not doing run time linking.
20842 library_names_spec='${libname}${release}.a $libname.a'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LIBPATH
20849 amigaos*)
20850 case $host_cpu in
20851 powerpc)
20852 # Since July 2007 AmigaOS4 officially supports .so libraries.
20853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 m68k)
20857 library_names_spec='$libname.ixlibrary $libname.a'
20858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20859 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'
20861 esac
20864 beos*)
20865 library_names_spec='${libname}${shared_ext}'
20866 dynamic_linker="$host_os ld.so"
20867 shlibpath_var=LIBRARY_PATH
20870 bsdi[45]*)
20871 version_type=linux
20872 need_version=no
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20874 soname_spec='${libname}${release}${shared_ext}$major'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20879 # the default ld.so.conf also contains /usr/contrib/lib and
20880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20881 # libtool to hard-code these into programs
20884 cygwin* | mingw* | pw32* | cegcc*)
20885 version_type=windows
20886 shrext_cmds=".dll"
20887 need_version=no
20888 need_lib_prefix=no
20890 case $GCC,$host_os in
20891 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20892 library_names_spec='$libname.dll.a'
20893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20894 postinstall_cmds='base_file=`basename \${file}`~
20895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20896 dldir=$destdir/`dirname \$dlpath`~
20897 test -d \$dldir || mkdir -p \$dldir~
20898 $install_prog $dir/$dlname \$dldir/$dlname~
20899 chmod a+x \$dldir/$dlname~
20900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20904 dlpath=$dir/\$dldll~
20905 $RM \$dlpath'
20906 shlibpath_overrides_runpath=yes
20908 case $host_os in
20909 cygwin*)
20910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20914 mingw* | cegcc*)
20915 # MinGW DLLs use traditional 'lib' prefix
20916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20918 pw32*)
20919 # pw32 DLLs use 'pw' prefix rather than 'lib'
20920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20922 esac
20926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20928 esac
20929 dynamic_linker='Win32 ld.exe'
20930 # FIXME: first we should search . and the directory the executable is in
20931 shlibpath_var=PATH
20934 darwin* | rhapsody*)
20935 dynamic_linker="$host_os dyld"
20936 version_type=darwin
20937 need_lib_prefix=no
20938 need_version=no
20939 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20940 soname_spec='${libname}${release}${major}$shared_ext'
20941 shlibpath_overrides_runpath=yes
20942 shlibpath_var=DYLD_LIBRARY_PATH
20943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20948 dgux*)
20949 version_type=linux
20950 need_lib_prefix=no
20951 need_version=no
20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20953 soname_spec='${libname}${release}${shared_ext}$major'
20954 shlibpath_var=LD_LIBRARY_PATH
20957 freebsd* | dragonfly*)
20958 # DragonFly does not have aout. When/if they implement a new
20959 # versioning mechanism, adjust this.
20960 if test -x /usr/bin/objformat; then
20961 objformat=`/usr/bin/objformat`
20962 else
20963 case $host_os in
20964 freebsd[23].*) objformat=aout ;;
20965 *) objformat=elf ;;
20966 esac
20968 version_type=freebsd-$objformat
20969 case $version_type in
20970 freebsd-elf*)
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20972 need_version=no
20973 need_lib_prefix=no
20975 freebsd-*)
20976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20977 need_version=yes
20979 esac
20980 shlibpath_var=LD_LIBRARY_PATH
20981 case $host_os in
20982 freebsd2.*)
20983 shlibpath_overrides_runpath=yes
20985 freebsd3.[01]* | freebsdelf3.[01]*)
20986 shlibpath_overrides_runpath=yes
20987 hardcode_into_libs=yes
20989 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20990 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20991 shlibpath_overrides_runpath=no
20992 hardcode_into_libs=yes
20994 *) # from 4.6 on, and DragonFly
20995 shlibpath_overrides_runpath=yes
20996 hardcode_into_libs=yes
20998 esac
21001 gnu*)
21002 version_type=linux
21003 need_lib_prefix=no
21004 need_version=no
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21006 soname_spec='${libname}${release}${shared_ext}$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21008 hardcode_into_libs=yes
21011 haiku*)
21012 version_type=linux
21013 need_lib_prefix=no
21014 need_version=no
21015 dynamic_linker="$host_os runtime_loader"
21016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21017 soname_spec='${libname}${release}${shared_ext}$major'
21018 shlibpath_var=LIBRARY_PATH
21019 shlibpath_overrides_runpath=yes
21020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21021 hardcode_into_libs=yes
21024 hpux9* | hpux10* | hpux11*)
21025 # Give a soname corresponding to the major version so that dld.sl refuses to
21026 # link against other versions.
21027 version_type=sunos
21028 need_lib_prefix=no
21029 need_version=no
21030 case $host_cpu in
21031 ia64*)
21032 shrext_cmds='.so'
21033 hardcode_into_libs=yes
21034 dynamic_linker="$host_os dld.so"
21035 shlibpath_var=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21038 soname_spec='${libname}${release}${shared_ext}$major'
21039 if test "X$HPUX_IA64_MODE" = X32; then
21040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21041 else
21042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21046 hppa*64*)
21047 shrext_cmds='.sl'
21048 hardcode_into_libs=yes
21049 dynamic_linker="$host_os dld.sl"
21050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21058 shrext_cmds='.sl'
21059 dynamic_linker="$host_os dld.sl"
21060 shlibpath_var=SHLIB_PATH
21061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21063 soname_spec='${libname}${release}${shared_ext}$major'
21065 esac
21066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21067 postinstall_cmds='chmod 555 $lib'
21068 # or fails outright, so override atomically:
21069 install_override_mode=555
21072 interix[3-9]*)
21073 version_type=linux
21074 need_lib_prefix=no
21075 need_version=no
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath=no
21081 hardcode_into_libs=yes
21084 irix5* | irix6* | nonstopux*)
21085 case $host_os in
21086 nonstopux*) version_type=nonstopux ;;
21088 if test "$lt_cv_prog_gnu_ld" = yes; then
21089 version_type=linux
21090 else
21091 version_type=irix
21092 fi ;;
21093 esac
21094 need_lib_prefix=no
21095 need_version=no
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21098 case $host_os in
21099 irix5* | nonstopux*)
21100 libsuff= shlibsuff=
21103 case $LD in # libtool.m4 will add one of these switches to LD
21104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21105 libsuff= shlibsuff= libmagic=32-bit;;
21106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21107 libsuff=32 shlibsuff=N32 libmagic=N32;;
21108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21110 *) libsuff= shlibsuff= libmagic=never-match;;
21111 esac
21113 esac
21114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21115 shlibpath_overrides_runpath=no
21116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21118 hardcode_into_libs=yes
21121 # No shared lib support for Linux oldld, aout, or coff.
21122 linux*oldld* | linux*aout* | linux*coff*)
21123 dynamic_linker=no
21126 # This must be Linux ELF.
21127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21128 version_type=linux
21129 need_lib_prefix=no
21130 need_version=no
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21134 shlibpath_var=LD_LIBRARY_PATH
21135 shlibpath_overrides_runpath=no
21137 # Some binutils ld are patched to set DT_RUNPATH
21138 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21139 $as_echo_n "(cached) " >&6
21140 else
21141 lt_cv_shlibpath_overrides_runpath=no
21142 save_LDFLAGS=$LDFLAGS
21143 save_libdir=$libdir
21144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21150 main ()
21154 return 0;
21156 _ACEOF
21157 if ac_fn_cxx_try_link "$LINENO"; then :
21158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21159 lt_cv_shlibpath_overrides_runpath=yes
21162 rm -f core conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21164 LDFLAGS=$save_LDFLAGS
21165 libdir=$save_libdir
21169 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21171 # This implies no fast_install, which is unacceptable.
21172 # Some rework will be needed to allow for fast_install
21173 # before this can be enabled.
21174 hardcode_into_libs=yes
21176 # Append ld.so.conf contents to the search path
21177 if test -f /etc/ld.so.conf; then
21178 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' ' '`
21179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21182 # We used to test for /lib/ld.so.1 and disable shared libraries on
21183 # powerpc, because MkLinux only supported shared libraries with the
21184 # GNU dynamic linker. Since this was broken with cross compilers,
21185 # most powerpc-linux boxes support dynamic linking these days and
21186 # people can always --disable-shared, the test was removed, and we
21187 # assume the GNU/Linux dynamic linker is in use.
21188 dynamic_linker='GNU/Linux ld.so'
21191 netbsd*)
21192 version_type=sunos
21193 need_lib_prefix=no
21194 need_version=no
21195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21198 dynamic_linker='NetBSD (a.out) ld.so'
21199 else
21200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21201 soname_spec='${libname}${release}${shared_ext}$major'
21202 dynamic_linker='NetBSD ld.elf_so'
21204 shlibpath_var=LD_LIBRARY_PATH
21205 shlibpath_overrides_runpath=yes
21206 hardcode_into_libs=yes
21209 newsos6)
21210 version_type=linux
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 shlibpath_overrides_runpath=yes
21216 *nto* | *qnx*)
21217 version_type=qnx
21218 need_lib_prefix=no
21219 need_version=no
21220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21221 soname_spec='${libname}${release}${shared_ext}$major'
21222 shlibpath_var=LD_LIBRARY_PATH
21223 shlibpath_overrides_runpath=no
21224 hardcode_into_libs=yes
21225 dynamic_linker='ldqnx.so'
21228 openbsd*)
21229 version_type=sunos
21230 sys_lib_dlsearch_path_spec="/usr/lib"
21231 need_lib_prefix=no
21232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21233 case $host_os in
21234 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21235 *) need_version=no ;;
21236 esac
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21241 case $host_os in
21242 openbsd2.[89] | openbsd2.[89].*)
21243 shlibpath_overrides_runpath=no
21246 shlibpath_overrides_runpath=yes
21248 esac
21249 else
21250 shlibpath_overrides_runpath=yes
21254 os2*)
21255 libname_spec='$name'
21256 shrext_cmds=".dll"
21257 need_lib_prefix=no
21258 library_names_spec='$libname${shared_ext} $libname.a'
21259 dynamic_linker='OS/2 ld.exe'
21260 shlibpath_var=LIBPATH
21263 osf3* | osf4* | osf5*)
21264 version_type=osf
21265 need_lib_prefix=no
21266 need_version=no
21267 soname_spec='${libname}${release}${shared_ext}$major'
21268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21269 shlibpath_var=LD_LIBRARY_PATH
21270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21274 rdos*)
21275 dynamic_linker=no
21278 solaris*)
21279 version_type=linux
21280 need_lib_prefix=no
21281 need_version=no
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 shlibpath_var=LD_LIBRARY_PATH
21285 shlibpath_overrides_runpath=yes
21286 hardcode_into_libs=yes
21287 # ldd complains unless libraries are executable
21288 postinstall_cmds='chmod +x $lib'
21291 sunos4*)
21292 version_type=sunos
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21295 shlibpath_var=LD_LIBRARY_PATH
21296 shlibpath_overrides_runpath=yes
21297 if test "$with_gnu_ld" = yes; then
21298 need_lib_prefix=no
21300 need_version=yes
21303 sysv4 | sysv4.3*)
21304 version_type=linux
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 case $host_vendor in
21309 sni)
21310 shlibpath_overrides_runpath=no
21311 need_lib_prefix=no
21312 runpath_var=LD_RUN_PATH
21314 siemens)
21315 need_lib_prefix=no
21317 motorola)
21318 need_lib_prefix=no
21319 need_version=no
21320 shlibpath_overrides_runpath=no
21321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21323 esac
21326 sysv4*MP*)
21327 if test -d /usr/nec ;then
21328 version_type=linux
21329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21330 soname_spec='$libname${shared_ext}.$major'
21331 shlibpath_var=LD_LIBRARY_PATH
21335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21336 version_type=freebsd-elf
21337 need_lib_prefix=no
21338 need_version=no
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21340 soname_spec='${libname}${release}${shared_ext}$major'
21341 shlibpath_var=LD_LIBRARY_PATH
21342 shlibpath_overrides_runpath=yes
21343 hardcode_into_libs=yes
21344 if test "$with_gnu_ld" = yes; then
21345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21346 else
21347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21348 case $host_os in
21349 sco3.2v5*)
21350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21352 esac
21354 sys_lib_dlsearch_path_spec='/usr/lib'
21357 tpf*)
21358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21359 version_type=linux
21360 need_lib_prefix=no
21361 need_version=no
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=no
21365 hardcode_into_libs=yes
21368 uts4*)
21369 version_type=linux
21370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21371 soname_spec='${libname}${release}${shared_ext}$major'
21372 shlibpath_var=LD_LIBRARY_PATH
21376 dynamic_linker=no
21378 esac
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21380 $as_echo "$dynamic_linker" >&6; }
21381 test "$dynamic_linker" = no && can_build_shared=no
21383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21384 if test "$GCC" = yes; then
21385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21392 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21434 hardcode_action_CXX=
21435 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21436 test -n "$runpath_var_CXX" ||
21437 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21439 # We can hardcode non-existent directories.
21440 if test "$hardcode_direct_CXX" != no &&
21441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21442 # have to relink, otherwise we might link with an installed library
21443 # when we should be linking with a yet-to-be-installed one
21444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21445 test "$hardcode_minus_L_CXX" != no; then
21446 # Linking always hardcodes the temporary library directory.
21447 hardcode_action_CXX=relink
21448 else
21449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21450 hardcode_action_CXX=immediate
21452 else
21453 # We cannot hardcode anything, or else we can only hardcode existing
21454 # directories.
21455 hardcode_action_CXX=unsupported
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21458 $as_echo "$hardcode_action_CXX" >&6; }
21460 if test "$hardcode_action_CXX" = relink ||
21461 test "$inherit_rpath_CXX" = yes; then
21462 # Fast installation is not supported
21463 enable_fast_install=no
21464 elif test "$shlibpath_overrides_runpath" = yes ||
21465 test "$enable_shared" = no; then
21466 # Fast installation is not necessary
21467 enable_fast_install=needless
21476 fi # test -n "$compiler"
21478 CC=$lt_save_CC
21479 LDCXX=$LD
21480 LD=$lt_save_LD
21481 GCC=$lt_save_GCC
21482 with_gnu_ld=$lt_save_with_gnu_ld
21483 lt_cv_path_LDCXX=$lt_cv_path_LD
21484 lt_cv_path_LD=$lt_save_path_LD
21485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21487 fi # test "$_lt_caught_CXX_error" != yes
21489 ac_ext=c
21490 ac_cpp='$CPP $CPPFLAGS'
21491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21510 # Only expand once:
21516 # Identify the assembler which will work hand-in-glove with the newly
21517 # built GCC, so that we can examine its features. This is the assembler
21518 # which will be driven by the driver program.
21520 # If build != host, and we aren't building gas in-tree, we identify a
21521 # build->target assembler and hope that it will have the same features
21522 # as the host->target assembler we'll be using.
21523 gcc_cv_gas_major_version=
21524 gcc_cv_gas_minor_version=
21525 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21527 if test "${gcc_cv_as+set}" = set; then :
21529 else
21531 if test -x "$DEFAULT_ASSEMBLER"; then
21532 gcc_cv_as="$DEFAULT_ASSEMBLER"
21533 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21534 && test -f ../gas/Makefile \
21535 && test x$build = x$host; then
21536 gcc_cv_as=../gas/as-new$build_exeext
21537 elif test -x as$build_exeext; then
21538 # Build using assembler in the current directory.
21539 gcc_cv_as=./as$build_exeext
21540 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21541 gcc_cv_as="$AS_FOR_TARGET"
21542 else
21543 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21544 set dummy $AS_FOR_TARGET; ac_word=$2
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21546 $as_echo_n "checking for $ac_word... " >&6; }
21547 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21549 else
21550 case $gcc_cv_as in
21551 [\\/]* | ?:[\\/]*)
21552 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21556 for as_dir in $PATH
21558 IFS=$as_save_IFS
21559 test -z "$as_dir" && as_dir=.
21560 for ac_exec_ext in '' $ac_executable_extensions; do
21561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21562 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21564 break 2
21566 done
21567 done
21568 IFS=$as_save_IFS
21571 esac
21573 gcc_cv_as=$ac_cv_path_gcc_cv_as
21574 if test -n "$gcc_cv_as"; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21576 $as_echo "$gcc_cv_as" >&6; }
21577 else
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 $as_echo "no" >&6; }
21586 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21588 case "$ORIGINAL_AS_FOR_TARGET" in
21589 ./as | ./as$build_exeext) ;;
21590 *) ac_config_files="$ac_config_files as:exec-tool.in"
21592 esac
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21595 $as_echo_n "checking what assembler to use... " >&6; }
21596 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21597 # Single tree build which includes gas. We want to prefer it
21598 # over whatever linker top-level may have detected, since
21599 # we'll use what we're building after installation anyway.
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21601 $as_echo "newly built gas" >&6; }
21602 in_tree_gas=yes
21603 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21604 for f in $gcc_cv_as_bfd_srcdir/configure \
21605 $gcc_cv_as_gas_srcdir/configure \
21606 $gcc_cv_as_gas_srcdir/configure.in \
21607 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21608 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21609 if test x$gcc_cv_gas_version != x; then
21610 break
21612 done
21613 case $gcc_cv_gas_version in
21614 VERSION=[0-9]*) ;;
21615 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21616 esac
21617 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21618 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21619 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21620 case $gcc_cv_gas_patch_version in
21621 "") gcc_cv_gas_patch_version="0" ;;
21622 esac
21623 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21624 + $gcc_cv_gas_minor_version \) \* 1000 \
21625 + $gcc_cv_gas_patch_version`
21627 in_tree_gas_is_elf=no
21628 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21629 || (grep 'obj_format = multi' ../gas/Makefile \
21630 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21631 then
21632 in_tree_gas_is_elf=yes
21634 else
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21636 $as_echo "$gcc_cv_as" >&6; }
21637 in_tree_gas=no
21640 default_ld=
21641 # Check whether --enable-ld was given.
21642 if test "${enable_ld+set}" = set; then :
21643 enableval=$enable_ld; case "${enableval}" in
21645 default_ld=ld.gold
21647 esac
21651 install_gold_as_default=no
21652 # Check whether --enable-gold was given.
21653 if test "${enable_gold+set}" = set; then :
21654 enableval=$enable_gold; case "${enableval}" in
21655 default)
21656 install_gold_as_default=yes
21658 yes)
21659 if test x${default_ld} != x; then
21660 install_gold_as_default=yes
21666 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21668 esac
21672 # Identify the linker which will work hand-in-glove with the newly
21673 # built GCC, so that we can examine its features. This is the linker
21674 # which will be driven by the driver program.
21676 # If build != host, and we aren't building gas in-tree, we identify a
21677 # build->target linker and hope that it will have the same features
21678 # as the host->target linker we'll be using.
21679 gcc_cv_gld_major_version=
21680 gcc_cv_gld_minor_version=
21681 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21682 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21683 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21685 if test "${gcc_cv_ld+set}" = set; then :
21687 else
21689 if test -x "$DEFAULT_LINKER"; then
21690 gcc_cv_ld="$DEFAULT_LINKER"
21691 elif test $install_gold_as_default = yes \
21692 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21693 && test -f ../gold/Makefile \
21694 && test x$build = x$host; then
21695 gcc_cv_ld=../gold/ld-new$build_exeext
21696 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21697 && test -f ../ld/Makefile \
21698 && test x$build = x$host; then
21699 gcc_cv_ld=../ld/ld-new$build_exeext
21700 elif test -x collect-ld$build_exeext; then
21701 # Build using linker in the current directory.
21702 gcc_cv_ld=./collect-ld$build_exeext
21703 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21704 gcc_cv_ld="$LD_FOR_TARGET"
21705 else
21706 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21707 set dummy $LD_FOR_TARGET; ac_word=$2
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21709 $as_echo_n "checking for $ac_word... " >&6; }
21710 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21711 $as_echo_n "(cached) " >&6
21712 else
21713 case $gcc_cv_ld in
21714 [\\/]* | ?:[\\/]*)
21715 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in $PATH
21721 IFS=$as_save_IFS
21722 test -z "$as_dir" && as_dir=.
21723 for ac_exec_ext in '' $ac_executable_extensions; do
21724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21725 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21727 break 2
21729 done
21730 done
21731 IFS=$as_save_IFS
21734 esac
21736 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21737 if test -n "$gcc_cv_ld"; then
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21739 $as_echo "$gcc_cv_ld" >&6; }
21740 else
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21742 $as_echo "no" >&6; }
21749 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21750 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21751 # if the PLUGIN_LD is set ld-new, just have it as ld
21752 # as that is the installed named.
21753 if test x$PLUGIN_LD_SUFFIX = xld-new \
21754 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21755 PLUGIN_LD_SUFFIX=ld
21758 # Check whether --with-plugin-ld was given.
21759 if test "${with_plugin_ld+set}" = set; then :
21760 withval=$with_plugin_ld; if test x"$withval" != x; then
21761 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21762 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21768 cat >>confdefs.h <<_ACEOF
21769 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21770 _ACEOF
21773 # Check to see if we are using gold instead of ld
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21775 $as_echo_n "checking whether we are using gold... " >&6; }
21776 ld_is_gold=no
21777 if test x$gcc_cv_ld != x; then
21778 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21779 | grep "GNU gold" > /dev/null; then
21780 ld_is_gold=yes
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21784 $as_echo "$ld_is_gold" >&6; }
21786 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21788 case "$ORIGINAL_LD_FOR_TARGET" in
21789 ./collect-ld | ./collect-ld$build_exeext) ;;
21790 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21792 esac
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21795 $as_echo_n "checking what linker to use... " >&6; }
21796 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21797 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21798 # Single tree build which includes ld. We want to prefer it
21799 # over whatever linker top-level may have detected, since
21800 # we'll use what we're building after installation anyway.
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21802 $as_echo "newly built ld" >&6; }
21803 in_tree_ld=yes
21804 in_tree_ld_is_elf=no
21805 if (grep 'EMUL = .*elf' ../ld/Makefile \
21806 || grep 'EMUL = .*linux' ../ld/Makefile \
21807 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21808 in_tree_ld_is_elf=yes
21809 elif test "$ld_is_gold" = yes; then
21810 in_tree_ld_is_elf=yes
21812 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
21814 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21815 if test x$gcc_cv_gld_version != x; then
21816 break
21818 done
21819 case $gcc_cv_gld_version in
21820 VERSION=[0-9]*) ;;
21821 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21822 esac
21823 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21824 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21825 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21826 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21827 else
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21829 $as_echo "$gcc_cv_ld" >&6; }
21830 in_tree_ld=no
21831 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21832 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21833 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21839 # Figure out what nm we will be using.
21840 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21841 if test "${gcc_cv_nm+set}" = set; then :
21843 else
21845 if test -f $gcc_cv_binutils_srcdir/configure.in \
21846 && test -f ../binutils/Makefile \
21847 && test x$build = x$host; then
21848 gcc_cv_nm=../binutils/nm-new$build_exeext
21849 elif test -x nm$build_exeext; then
21850 gcc_cv_nm=./nm$build_exeext
21851 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21852 gcc_cv_nm="$NM_FOR_TARGET"
21853 else
21854 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21855 set dummy $NM_FOR_TARGET; ac_word=$2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21857 $as_echo_n "checking for $ac_word... " >&6; }
21858 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21860 else
21861 case $gcc_cv_nm in
21862 [\\/]* | ?:[\\/]*)
21863 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21869 IFS=$as_save_IFS
21870 test -z "$as_dir" && as_dir=.
21871 for ac_exec_ext in '' $ac_executable_extensions; do
21872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21873 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875 break 2
21877 done
21878 done
21879 IFS=$as_save_IFS
21882 esac
21884 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21885 if test -n "$gcc_cv_nm"; then
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21887 $as_echo "$gcc_cv_nm" >&6; }
21888 else
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21898 $as_echo_n "checking what nm to use... " >&6; }
21899 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21900 # Single tree build which includes binutils.
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21902 $as_echo "newly built nm" >&6; }
21903 in_tree_nm=yes
21904 else
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21906 $as_echo "$gcc_cv_nm" >&6; }
21907 in_tree_nm=no
21910 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21912 case "$ORIGINAL_NM_FOR_TARGET" in
21913 ./nm | ./nm$build_exeext) ;;
21914 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21916 esac
21919 # Figure out what objdump we will be using.
21920 if test "${gcc_cv_objdump+set}" = set; then :
21922 else
21924 if test -f $gcc_cv_binutils_srcdir/configure.in \
21925 && test -f ../binutils/Makefile \
21926 && test x$build = x$host; then
21927 # Single tree build which includes binutils.
21928 gcc_cv_objdump=../binutils/objdump$build_exeext
21929 elif test -x objdump$build_exeext; then
21930 gcc_cv_objdump=./objdump$build_exeext
21931 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21932 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21933 else
21934 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21935 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21937 $as_echo_n "checking for $ac_word... " >&6; }
21938 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 case $gcc_cv_objdump in
21942 [\\/]* | ?:[\\/]*)
21943 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21949 IFS=$as_save_IFS
21950 test -z "$as_dir" && as_dir=.
21951 for ac_exec_ext in '' $ac_executable_extensions; do
21952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21953 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21955 break 2
21957 done
21958 done
21959 IFS=$as_save_IFS
21962 esac
21964 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21965 if test -n "$gcc_cv_objdump"; then
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21967 $as_echo "$gcc_cv_objdump" >&6; }
21968 else
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21970 $as_echo "no" >&6; }
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21978 $as_echo_n "checking what objdump to use... " >&6; }
21979 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21980 # Single tree build which includes binutils.
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21982 $as_echo "newly built objdump" >&6; }
21983 elif test x$gcc_cv_objdump = x; then
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21985 $as_echo "not found" >&6; }
21986 else
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21988 $as_echo "$gcc_cv_objdump" >&6; }
21991 # Figure out what readelf we will be using.
21992 if test "${gcc_cv_readelf+set}" = set; then :
21994 else
21996 if test -f $gcc_cv_binutils_srcdir/configure.in \
21997 && test -f ../binutils/Makefile \
21998 && test x$build = x$host; then
21999 # Single tree build which includes binutils.
22000 gcc_cv_readelf=../binutils/readelf$build_exeext
22001 elif test -x readelf$build_exeext; then
22002 gcc_cv_readelf=./readelf$build_exeext
22003 else
22004 # Extract the first word of "readelf", so it can be a program name with args.
22005 set dummy readelf; ac_word=$2
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22007 $as_echo_n "checking for $ac_word... " >&6; }
22008 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 case $gcc_cv_readelf in
22012 [\\/]* | ?:[\\/]*)
22013 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22017 for as_dir in $PATH
22019 IFS=$as_save_IFS
22020 test -z "$as_dir" && as_dir=.
22021 for ac_exec_ext in '' $ac_executable_extensions; do
22022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22023 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22025 break 2
22027 done
22028 done
22029 IFS=$as_save_IFS
22032 esac
22034 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22035 if test -n "$gcc_cv_readelf"; then
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22037 $as_echo "$gcc_cv_readelf" >&6; }
22038 else
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22040 $as_echo "no" >&6; }
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22048 $as_echo_n "checking what readelf to use... " >&6; }
22049 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22050 # Single tree build which includes binutils.
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22052 $as_echo "newly built readelf" >&6; }
22053 elif test x$gcc_cv_readelf = x; then
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22055 $as_echo "not found" >&6; }
22056 else
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22058 $as_echo "$gcc_cv_readelf" >&6; }
22061 # Figure out what assembler alignment features are present.
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22063 $as_echo_n "checking assembler flags... " >&6; }
22064 if test "${gcc_cv_as_flags+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 case "$target" in
22068 i[34567]86-*-linux*)
22069 gcc_cv_as_flags=--32
22071 x86_64-*-linux-gnux32)
22072 gcc_cv_as_flags=--x32
22074 x86_64-*-linux*)
22075 gcc_cv_as_flags=--64
22077 powerpc*-*-darwin*)
22078 gcc_cv_as_flags="-arch ppc"
22081 gcc_cv_as_flags=" "
22083 esac
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22086 $as_echo "$gcc_cv_as_flags" >&6; }
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22089 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22090 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22091 $as_echo_n "(cached) " >&6
22092 else
22093 gcc_cv_as_balign_and_p2align=no
22094 if test $in_tree_gas = yes; then
22095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22096 then gcc_cv_as_balign_and_p2align=yes
22098 elif test x$gcc_cv_as != x; then
22099 $as_echo '.balign 4
22100 .p2align 2' > conftest.s
22101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22106 test $ac_status = 0; }; }
22107 then
22108 gcc_cv_as_balign_and_p2align=yes
22109 else
22110 echo "configure: failed program was" >&5
22111 cat conftest.s >&5
22113 rm -f conftest.o conftest.s
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22117 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22118 if test $gcc_cv_as_balign_and_p2align = yes; then
22120 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22125 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22126 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 gcc_cv_as_max_skip_p2align=no
22130 if test $in_tree_gas = yes; then
22131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22132 then gcc_cv_as_max_skip_p2align=yes
22134 elif test x$gcc_cv_as != x; then
22135 $as_echo '.p2align 4,,7' > conftest.s
22136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }; }
22142 then
22143 gcc_cv_as_max_skip_p2align=yes
22144 else
22145 echo "configure: failed program was" >&5
22146 cat conftest.s >&5
22148 rm -f conftest.o conftest.s
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22152 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22153 if test $gcc_cv_as_max_skip_p2align = yes; then
22155 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22160 $as_echo_n "checking assembler for .literal16... " >&6; }
22161 if test "${gcc_cv_as_literal16+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22163 else
22164 gcc_cv_as_literal16=no
22165 if test $in_tree_gas = yes; then
22166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22167 then gcc_cv_as_literal16=yes
22169 elif test x$gcc_cv_as != x; then
22170 $as_echo '.literal16' > conftest.s
22171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22176 test $ac_status = 0; }; }
22177 then
22178 gcc_cv_as_literal16=yes
22179 else
22180 echo "configure: failed program was" >&5
22181 cat conftest.s >&5
22183 rm -f conftest.o conftest.s
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22187 $as_echo "$gcc_cv_as_literal16" >&6; }
22188 if test $gcc_cv_as_literal16 = yes; then
22190 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22195 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22196 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22197 $as_echo_n "(cached) " >&6
22198 else
22199 gcc_cv_as_subsection_m1=no
22200 if test $in_tree_gas = yes; then
22201 if test $in_tree_gas_is_elf = yes \
22202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22203 then gcc_cv_as_subsection_m1=yes
22205 elif test x$gcc_cv_as != x; then
22206 $as_echo 'conftest_label1: .word 0
22207 .subsection -1
22208 conftest_label2: .word 0
22209 .previous' > conftest.s
22210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22215 test $ac_status = 0; }; }
22216 then
22217 if test x$gcc_cv_nm != x; then
22218 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22219 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22220 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22221 then :
22222 else gcc_cv_as_subsection_m1=yes
22224 rm -f conftest.nm1 conftest.nm2
22226 else
22227 echo "configure: failed program was" >&5
22228 cat conftest.s >&5
22230 rm -f conftest.o conftest.s
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22234 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22235 if test $gcc_cv_as_subsection_m1 = yes; then
22237 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22242 $as_echo_n "checking assembler for .weak... " >&6; }
22243 if test "${gcc_cv_as_weak+set}" = set; then :
22244 $as_echo_n "(cached) " >&6
22245 else
22246 gcc_cv_as_weak=no
22247 if test $in_tree_gas = yes; then
22248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22249 then gcc_cv_as_weak=yes
22251 elif test x$gcc_cv_as != x; then
22252 $as_echo ' .weak foobar' > conftest.s
22253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22258 test $ac_status = 0; }; }
22259 then
22260 gcc_cv_as_weak=yes
22261 else
22262 echo "configure: failed program was" >&5
22263 cat conftest.s >&5
22265 rm -f conftest.o conftest.s
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22269 $as_echo "$gcc_cv_as_weak" >&6; }
22270 if test $gcc_cv_as_weak = yes; then
22272 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22277 $as_echo_n "checking assembler for .weakref... " >&6; }
22278 if test "${gcc_cv_as_weakref+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 gcc_cv_as_weakref=no
22282 if test $in_tree_gas = yes; then
22283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22284 then gcc_cv_as_weakref=yes
22286 elif test x$gcc_cv_as != x; then
22287 $as_echo ' .weakref foobar, barfnot' > conftest.s
22288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22293 test $ac_status = 0; }; }
22294 then
22295 gcc_cv_as_weakref=yes
22296 else
22297 echo "configure: failed program was" >&5
22298 cat conftest.s >&5
22300 rm -f conftest.o conftest.s
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22304 $as_echo "$gcc_cv_as_weakref" >&6; }
22305 if test $gcc_cv_as_weakref = yes; then
22307 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22312 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22313 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22314 $as_echo_n "(cached) " >&6
22315 else
22316 gcc_cv_as_nsubspa_comdat=no
22317 if test $in_tree_gas = yes; then
22318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22319 then gcc_cv_as_nsubspa_comdat=yes
22321 elif test x$gcc_cv_as != x; then
22322 $as_echo ' .SPACE $TEXT$
22323 .NSUBSPA $CODE$,COMDAT' > conftest.s
22324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; }
22330 then
22331 gcc_cv_as_nsubspa_comdat=yes
22332 else
22333 echo "configure: failed program was" >&5
22334 cat conftest.s >&5
22336 rm -f conftest.o conftest.s
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22340 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22341 if test $gcc_cv_as_nsubspa_comdat = yes; then
22343 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22347 # .hidden needs to be supported in both the assembler and the linker,
22348 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22349 # This is irritatingly difficult to feature test for; we have to check the
22350 # date string after the version number. If we've got an in-tree
22351 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22352 # to be safe.
22353 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22355 $as_echo_n "checking assembler for .hidden... " >&6; }
22356 if test "${gcc_cv_as_hidden+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 gcc_cv_as_hidden=no
22360 if test $in_tree_gas = yes; then
22361 if test $in_tree_gas_is_elf = yes \
22362 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22363 then gcc_cv_as_hidden=yes
22365 elif test x$gcc_cv_as != x; then
22366 $as_echo ' .hidden foobar
22367 foobar:' > conftest.s
22368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22374 then
22375 gcc_cv_as_hidden=yes
22376 else
22377 echo "configure: failed program was" >&5
22378 cat conftest.s >&5
22380 rm -f conftest.o conftest.s
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22384 $as_echo "$gcc_cv_as_hidden" >&6; }
22386 case "${target}" in
22387 *-*-darwin*)
22388 # Darwin as has some visibility support, though with a different syntax.
22389 gcc_cv_as_hidden=yes
22391 esac
22393 # gnu_indirect_function type is an extension proposed at
22394 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22395 # selection of function implementation
22396 # Check whether --enable-gnu-indirect-function was given.
22397 if test "${enable_gnu_indirect_function+set}" = set; then :
22398 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22399 yes | no) ;;
22400 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22401 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22402 esac
22403 else
22404 enable_gnu_indirect_function="$default_gnu_indirect_function"
22408 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22412 _ACEOF
22416 if test $in_tree_ld != yes ; then
22417 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22418 if echo "$ld_ver" | grep GNU > /dev/null; then
22419 if test x"$ld_is_gold" = xyes; then
22420 # GNU gold --version looks like this:
22422 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22424 # We extract the binutils version which is more familiar and specific
22425 # than the gold version.
22426 ld_vers=`echo $ld_ver | sed -n \
22427 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22428 else
22429 # GNU ld --version looks like this:
22431 # GNU ld (GNU Binutils) 2.21.51.20110225
22432 ld_vers=`echo $ld_ver | sed -n \
22433 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22435 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'`
22436 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22437 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22438 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22439 else
22440 case "${target}" in
22441 *-*-solaris2*)
22442 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22443 # format.
22445 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22446 # /usr/ccs/bin/ld has been configured.
22447 ld_ver=`$gcc_cv_ld -V 2>&1`
22448 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22449 ld_vers=`echo $ld_ver | sed -n \
22450 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22451 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22452 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22455 esac
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22460 $as_echo_n "checking linker for .hidden support... " >&6; }
22461 if test "${gcc_cv_ld_hidden+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22463 else
22464 if test $in_tree_ld = yes ; then
22465 gcc_cv_ld_hidden=no
22466 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 \
22467 && test $in_tree_ld_is_elf = yes; then
22468 gcc_cv_ld_hidden=yes
22470 else
22471 gcc_cv_ld_hidden=yes
22472 if test x"$ld_is_gold" = xyes; then
22474 elif echo "$ld_ver" | grep GNU > /dev/null; then
22475 case "${target}" in
22476 mmix-knuth-mmixware)
22477 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22478 gcc_cv_ld_hidden=no
22480 esac
22481 if test 0"$ld_date" -lt 20020404; then
22482 if test -n "$ld_date"; then
22483 # If there was date string, but was earlier than 2002-04-04, fail
22484 gcc_cv_ld_hidden=no
22485 elif test -z "$ld_vers"; then
22486 # If there was no date string nor ld version number, something is wrong
22487 gcc_cv_ld_hidden=no
22488 else
22489 test -z "$ld_vers_patch" && ld_vers_patch=0
22490 if test "$ld_vers_major" -lt 2; then
22491 gcc_cv_ld_hidden=no
22492 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22493 gcc_cv_ld_hidden="no"
22494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22495 gcc_cv_ld_hidden=no
22499 else
22500 case "${target}" in
22501 *-*-darwin*)
22502 # Darwin ld has some visibility support.
22503 gcc_cv_ld_hidden=yes
22505 hppa64*-*-hpux* | ia64*-*-hpux*)
22506 gcc_cv_ld_hidden=yes
22508 *-*-solaris2.1[0-9]*)
22509 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22510 # .symbolic was only added in Solaris 9 12/02.
22511 gcc_cv_ld_hidden=yes
22514 gcc_cv_ld_hidden=no
22516 esac
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22521 $as_echo "$gcc_cv_ld_hidden" >&6; }
22522 libgcc_visibility=no
22525 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22526 libgcc_visibility=yes
22528 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22533 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22534 gcc_cv_ld_ro_rw_mix=unknown
22535 if test $in_tree_ld = yes ; then
22536 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 \
22537 && test $in_tree_ld_is_elf = yes; then
22538 gcc_cv_ld_ro_rw_mix=read-write
22540 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22541 echo '.section myfoosect, "a"' > conftest1.s
22542 echo '.section myfoosect, "aw"' > conftest2.s
22543 echo '.byte 1' >> conftest2.s
22544 echo '.section myfoosect, "a"' > conftest3.s
22545 echo '.byte 0' >> conftest3.s
22546 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22547 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22548 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22549 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22550 conftest2.o conftest3.o > /dev/null 2>&1; then
22551 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22552 | sed -e '/myfoosect/!d' -e N`
22553 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22554 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22555 gcc_cv_ld_ro_rw_mix=read-only
22556 else
22557 gcc_cv_ld_ro_rw_mix=read-write
22561 rm -f conftest.* conftest[123].*
22563 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22565 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22569 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22571 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22572 case "${target}" in
22573 *-*-solaris2*)
22575 # Solaris 2 ld -V output looks like this for a regular version:
22577 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22579 # but test versions add stuff at the end:
22581 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22583 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22584 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22585 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22586 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22587 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22588 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22591 esac
22594 # Check whether --enable-initfini-array was given.
22595 if test "${enable_initfini_array+set}" = set; then :
22596 enableval=$enable_initfini_array;
22597 else
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22600 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22601 if test "${gcc_cv_initfini_array+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22605 case "${target}" in
22606 ia64-*)
22607 if test "$cross_compiling" = yes; then :
22608 gcc_cv_initfini_array=no
22609 else
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22613 #ifndef __ELF__
22614 #error Not an ELF OS
22615 #endif
22616 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22617 if it can be used. */
22618 static int x = -1;
22619 int main (void) { return x; }
22620 int foo (void) { x = 0; }
22621 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22623 _ACEOF
22624 if ac_fn_c_try_run "$LINENO"; then :
22625 gcc_cv_initfini_array=yes
22626 else
22627 gcc_cv_initfini_array=no
22629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22630 conftest.$ac_objext conftest.beam conftest.$ac_ext
22634 gcc_cv_initfini_array=no
22635 if test $in_tree_ld = yes ; then
22636 if test "$gcc_cv_gld_major_version" -eq 2 \
22637 -a "$gcc_cv_gld_minor_version" -ge 22 \
22638 -o "$gcc_cv_gld_major_version" -gt 2 \
22639 && test $in_tree_ld_is_elf = yes; then
22640 gcc_cv_initfini_array=yes
22642 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22643 cat > conftest.s <<\EOF
22644 .section .dtors,"a",%progbits
22645 .balign 4
22646 .byte 'A', 'A', 'A', 'A'
22647 .section .ctors,"a",%progbits
22648 .balign 4
22649 .byte 'B', 'B', 'B', 'B'
22650 .section .fini_array.65530,"a",%progbits
22651 .balign 4
22652 .byte 'C', 'C', 'C', 'C'
22653 .section .init_array.65530,"a",%progbits
22654 .balign 4
22655 .byte 'D', 'D', 'D', 'D'
22656 .section .dtors.64528,"a",%progbits
22657 .balign 4
22658 .byte 'E', 'E', 'E', 'E'
22659 .section .ctors.64528,"a",%progbits
22660 .balign 4
22661 .byte 'F', 'F', 'F', 'F'
22662 .section .fini_array.01005,"a",%progbits
22663 .balign 4
22664 .byte 'G', 'G', 'G', 'G'
22665 .section .init_array.01005,"a",%progbits
22666 .balign 4
22667 .byte 'H', 'H', 'H', 'H'
22668 .text
22669 .globl _start
22670 _start:
22672 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22673 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22674 && $gcc_cv_objdump -s -j .init_array conftest \
22675 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22676 && $gcc_cv_objdump -s -j .fini_array conftest \
22677 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22678 gcc_cv_initfini_array=yes
22680 rm -f conftest conftest.*
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683 /* end confdefs.h. */
22685 #ifndef __ELF__
22686 # error Not an ELF OS
22687 #endif
22688 #include <stdlib.h>
22689 #if defined __GLIBC_PREREQ
22690 # if __GLIBC_PREREQ (2, 4)
22691 # else
22692 # error GLIBC 2.4 required
22693 # endif
22694 #else
22695 # if defined __sun__ && defined __svr4__
22696 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22697 # else
22698 # error The C library not known to support .init_array/.fini_array
22699 # endif
22700 #endif
22702 _ACEOF
22703 if ac_fn_c_try_cpp "$LINENO"; then :
22705 else
22706 gcc_cv_initfini_array=no
22708 rm -f conftest.err conftest.$ac_ext;;
22709 esac
22710 else
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22712 $as_echo_n "checking cross compile... guessing... " >&6; }
22713 gcc_cv_initfini_array=no
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22717 $as_echo "$gcc_cv_initfini_array" >&6; }
22718 enable_initfini_array=$gcc_cv_initfini_array
22722 if test $enable_initfini_array = yes; then
22724 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22728 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22730 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22731 if test "${gcc_cv_as_leb128+set}" = set; then :
22732 $as_echo_n "(cached) " >&6
22733 else
22734 gcc_cv_as_leb128=no
22735 if test $in_tree_gas = yes; then
22736 if test $in_tree_gas_is_elf = yes \
22737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22738 then gcc_cv_as_leb128=yes
22740 elif test x$gcc_cv_as != x; then
22741 $as_echo ' .data
22742 .uleb128 L2 - L1
22744 .uleb128 1280
22745 .sleb128 -1010
22746 L2:' > conftest.s
22747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22753 then
22754 # GAS versions before 2.11 do not support uleb128,
22755 # despite appearing to.
22756 # ??? There exists an elf-specific test that will crash
22757 # the assembler. Perhaps it's better to figure out whether
22758 # arbitrary sections are supported and try the test.
22759 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22760 if echo "$as_ver" | grep GNU > /dev/null; then
22761 as_vers=`echo $as_ver | sed -n \
22762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22763 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22764 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22765 if test $as_major -eq 2 && test $as_minor -lt 11
22766 then :
22767 else gcc_cv_as_leb128=yes
22770 else
22771 echo "configure: failed program was" >&5
22772 cat conftest.s >&5
22774 rm -f conftest.o conftest.s
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22778 $as_echo "$gcc_cv_as_leb128" >&6; }
22779 if test $gcc_cv_as_leb128 = yes; then
22781 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22785 # Check if we have assembler support for unwind directives.
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22787 $as_echo_n "checking assembler for cfi directives... " >&6; }
22788 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22789 $as_echo_n "(cached) " >&6
22790 else
22791 gcc_cv_as_cfi_directive=no
22792 if test x$gcc_cv_as != x; then
22793 $as_echo ' .text
22794 .cfi_startproc
22795 .cfi_offset 0, 0
22796 .cfi_same_value 1
22797 .cfi_def_cfa 1, 2
22798 .cfi_escape 1, 2, 3, 4, 5
22799 .cfi_endproc' > conftest.s
22800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22806 then
22807 case "$target" in
22808 *-*-solaris*)
22809 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22810 # read-only and read-write sections, we need to make sure that the
22811 # assembler used emits read-write .eh_frame sections.
22812 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22813 if test "x$gcc_cv_objdump" != x; then
22814 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22815 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22816 gcc_cv_as_cfi_directive=no
22817 else
22818 case "$target" in
22819 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22820 # On Solaris/x86, make sure that GCC and assembler agree on using
22821 # read-only .eh_frame sections for 64-bit.
22822 if test x$gas = xyes; then
22823 as_ix86_64_opt="--64"
22824 else
22825 as_ix86_64_opt="-xarch=amd64"
22827 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22828 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22829 sed -e /.eh_frame/!d -e N | \
22830 grep READONLY > /dev/null; then
22831 gcc_cv_as_cfi_directive=yes
22832 else
22833 gcc_cv_as_cfi_directive=no
22837 gcc_cv_as_cfi_directive=yes
22839 esac
22841 else
22842 # no objdump, err on the side of caution
22843 gcc_cv_as_cfi_directive=no
22845 else
22846 gcc_cv_as_cfi_directive=yes
22849 *-*-*)
22850 gcc_cv_as_cfi_directive=yes
22852 esac
22853 else
22854 echo "configure: failed program was" >&5
22855 cat conftest.s >&5
22857 rm -f conftest.o conftest.s
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22861 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22863 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22865 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22866 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22867 $as_echo_n "(cached) " >&6
22868 else
22869 gcc_cv_as_cfi_advance_working=no
22870 if test x$gcc_cv_as != x; then
22871 $as_echo ' .text
22872 .cfi_startproc
22873 .cfi_adjust_cfa_offset 64
22874 .skip 75040, 0
22875 .cfi_adjust_cfa_offset 128
22876 .cfi_endproc' > conftest.s
22877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22882 test $ac_status = 0; }; }
22883 then
22885 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22886 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22887 gcc_cv_as_cfi_advance_working=yes
22890 else
22891 echo "configure: failed program was" >&5
22892 cat conftest.s >&5
22894 rm -f conftest.o conftest.s
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22898 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22900 else
22901 # no objdump, err on the side of caution
22902 gcc_cv_as_cfi_advance_working=no
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22908 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22909 _ACEOF
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22914 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22915 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22917 else
22918 gcc_cv_as_cfi_personality_directive=no
22919 if test x$gcc_cv_as != x; then
22920 $as_echo ' .text
22921 .cfi_startproc
22922 .cfi_personality 0, symbol
22923 .cfi_endproc' > conftest.s
22924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22930 then
22931 gcc_cv_as_cfi_personality_directive=yes
22932 else
22933 echo "configure: failed program was" >&5
22934 cat conftest.s >&5
22936 rm -f conftest.o conftest.s
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22940 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22945 then echo 1; else echo 0; fi`
22946 _ACEOF
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22950 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22951 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 gcc_cv_as_cfi_sections_directive=no
22955 if test x$gcc_cv_as != x; then
22956 $as_echo ' .text
22957 .cfi_sections .debug_frame, .eh_frame
22958 .cfi_startproc
22959 .cfi_endproc' > conftest.s
22960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22965 test $ac_status = 0; }; }
22966 then
22967 case $target_os in
22968 win32 | pe | cygwin* | mingw32* | uwin*)
22969 # Need to check that we generated the correct relocation for the
22970 # .debug_frame section. This was fixed for binutils 2.21.
22971 gcc_cv_as_cfi_sections_directive=no
22972 if test "x$gcc_cv_objdump" != x; then
22973 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22974 grep secrel > /dev/null; then
22975 gcc_cv_as_cfi_sections_directive=yes
22980 gcc_cv_as_cfi_sections_directive=yes
22982 esac
22983 else
22984 echo "configure: failed program was" >&5
22985 cat conftest.s >&5
22987 rm -f conftest.o conftest.s
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22991 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22995 cat >>confdefs.h <<_ACEOF
22996 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22997 then echo 1; else echo 0; fi`
22998 _ACEOF
23001 # GAS versions up to and including 2.11.0 may mis-optimize
23002 # .eh_frame data.
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23004 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23005 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23007 else
23008 gcc_cv_as_eh_frame=no
23009 if test $in_tree_gas = yes; then
23010 if test $in_tree_gas_is_elf = yes \
23011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23012 then gcc_cv_as_eh_frame=yes
23014 elif test x$gcc_cv_as != x; then
23015 $as_echo ' .text
23016 .LFB1:
23017 .4byte 0
23018 .L1:
23019 .4byte 0
23020 .LFE1:
23021 .section .eh_frame,"aw",@progbits
23022 __FRAME_BEGIN__:
23023 .4byte .LECIE1-.LSCIE1
23024 .LSCIE1:
23025 .4byte 0x0
23026 .byte 0x1
23027 .ascii "z\0"
23028 .byte 0x1
23029 .byte 0x78
23030 .byte 0x1a
23031 .byte 0x0
23032 .byte 0x4
23033 .4byte 1
23034 .p2align 1
23035 .LECIE1:
23036 .LSFDE1:
23037 .4byte .LEFDE1-.LASFDE1
23038 .LASFDE1:
23039 .4byte .LASFDE1-__FRAME_BEGIN__
23040 .4byte .LFB1
23041 .4byte .LFE1-.LFB1
23042 .byte 0x4
23043 .4byte .LFE1-.LFB1
23044 .byte 0x4
23045 .4byte .L1-.LFB1
23046 .LEFDE1:' > conftest.s
23047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23052 test $ac_status = 0; }; }
23053 then
23054 cat > conftest.lit <<EOF
23055 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23056 0010 01000000 12000000 18000000 00000000 ................
23057 0020 08000000 04080000 0044 .........D
23059 cat > conftest.big <<EOF
23060 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23061 0010 00000001 00000012 00000018 00000000 ................
23062 0020 00000008 04000000 0844 .........D
23064 # If the assembler didn't choke, and we can objdump,
23065 # and we got the correct data, then succeed.
23066 # The text in the here-document typically retains its unix-style line
23067 # endings, while the output of objdump will use host line endings.
23068 # Therefore, use diff -b for the comparisons.
23069 if test x$gcc_cv_objdump != x \
23070 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23071 | tail -3 > conftest.got \
23072 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23073 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23074 then
23075 gcc_cv_as_eh_frame=yes
23076 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23081 test $ac_status = 0; }; }; then
23082 gcc_cv_as_eh_frame=buggy
23083 else
23084 # Uh oh, what do we do now?
23085 gcc_cv_as_eh_frame=no
23087 else
23088 echo "configure: failed program was" >&5
23089 cat conftest.s >&5
23091 rm -f conftest.o conftest.s
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23095 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23098 if test $gcc_cv_as_eh_frame = buggy; then
23100 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23105 $as_echo_n "checking assembler for section merging support... " >&6; }
23106 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23108 else
23109 gcc_cv_as_shf_merge=no
23110 if test $in_tree_gas = yes; then
23111 if test $in_tree_gas_is_elf = yes \
23112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23113 then gcc_cv_as_shf_merge=yes
23115 elif test x$gcc_cv_as != x; then
23116 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23123 then
23124 gcc_cv_as_shf_merge=yes
23125 else
23126 echo "configure: failed program was" >&5
23127 cat conftest.s >&5
23129 rm -f conftest.o conftest.s
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23133 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23135 if test $gcc_cv_as_shf_merge = no; then
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23137 $as_echo_n "checking assembler for section merging support... " >&6; }
23138 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23139 $as_echo_n "(cached) " >&6
23140 else
23141 gcc_cv_as_shf_merge=no
23142 if test $in_tree_gas = yes; then
23143 if test $in_tree_gas_is_elf = yes \
23144 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23145 then gcc_cv_as_shf_merge=yes
23147 elif test x$gcc_cv_as != x; then
23148 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23155 then
23156 gcc_cv_as_shf_merge=yes
23157 else
23158 echo "configure: failed program was" >&5
23159 cat conftest.s >&5
23161 rm -f conftest.o conftest.s
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23165 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23169 cat >>confdefs.h <<_ACEOF
23170 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23171 _ACEOF
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23175 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23176 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23178 else
23179 gcc_cv_as_comdat_group=no
23180 if test $in_tree_gas = yes; then
23181 if test $in_tree_gas_is_elf = yes \
23182 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23183 then gcc_cv_as_comdat_group=yes
23185 elif test x$gcc_cv_as != x; then
23186 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23193 then
23194 gcc_cv_as_comdat_group=yes
23195 else
23196 echo "configure: failed program was" >&5
23197 cat conftest.s >&5
23199 rm -f conftest.o conftest.s
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23203 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23205 if test $gcc_cv_as_comdat_group = yes; then
23206 gcc_cv_as_comdat_group_percent=no
23207 gcc_cv_as_comdat_group_group=no
23208 else
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23210 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23211 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23212 $as_echo_n "(cached) " >&6
23213 else
23214 gcc_cv_as_comdat_group_percent=no
23215 if test $in_tree_gas = yes; then
23216 if test $in_tree_gas_is_elf = yes \
23217 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23218 then gcc_cv_as_comdat_group_percent=yes
23220 elif test x$gcc_cv_as != x; then
23221 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }
23228 then
23229 gcc_cv_as_comdat_group_percent=yes
23230 else
23231 echo "configure: failed program was" >&5
23232 cat conftest.s >&5
23234 rm -f conftest.o conftest.s
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23238 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23240 if test $gcc_cv_as_comdat_group_percent = yes; then
23241 gcc_cv_as_comdat_group_group=no
23242 else
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
23292 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23293 gcc_cv_as_comdat_group_group=no
23297 if test x"$ld_is_gold" = xyes; then
23298 comdat_group=yes
23299 elif test $in_tree_ld = yes ; then
23300 comdat_group=no
23301 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 \
23302 && test $in_tree_ld_is_elf = yes; then
23303 comdat_group=yes
23305 elif echo "$ld_ver" | grep GNU > /dev/null; then
23306 comdat_group=yes
23307 if test 0"$ld_date" -lt 20050308; then
23308 if test -n "$ld_date"; then
23309 # If there was date string, but was earlier than 2005-03-08, fail
23310 comdat_group=no
23311 elif test "$ld_vers_major" -lt 2; then
23312 comdat_group=no
23313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23314 comdat_group=no
23317 else
23318 case "${target}" in
23319 *-*-solaris2.1[1-9]*)
23320 comdat_group=no
23321 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23322 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23323 # version 1.688.
23325 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23326 # least ld version 1.2267.
23327 if test "$ld_vers_major" -gt 1; then
23328 comdat_group=yes
23329 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23330 comdat_group=yes
23331 elif test "$ld_vers_minor" -ge 2267; then
23332 comdat_group=yes
23336 # Assume linkers other than GNU ld don't support COMDAT group.
23337 comdat_group=no
23339 esac
23341 # Allow overriding the automatic COMDAT group tests above.
23342 # Check whether --enable-comdat was given.
23343 if test "${enable_comdat+set}" = set; then :
23344 enableval=$enable_comdat; comdat_group="$enable_comdat"
23347 if test $comdat_group = no; then
23348 gcc_cv_as_comdat_group=no
23349 gcc_cv_as_comdat_group_percent=no
23350 gcc_cv_as_comdat_group_group=no
23353 cat >>confdefs.h <<_ACEOF
23354 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23355 || test $gcc_cv_as_comdat_group_percent = yes \
23356 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23357 _ACEOF
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23361 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23362 if test "${gcc_cv_as_discriminator+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 gcc_cv_as_discriminator=no
23366 if test $in_tree_gas = yes; then
23367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23368 then gcc_cv_as_discriminator=yes
23370 elif test x$gcc_cv_as != x; then
23371 $as_echo ' .text
23372 .file 1 "conf.c"
23373 .loc 1 1 0 discriminator 1' > conftest.s
23374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23379 test $ac_status = 0; }; }
23380 then
23381 gcc_cv_as_discriminator=yes
23382 else
23383 echo "configure: failed program was" >&5
23384 cat conftest.s >&5
23386 rm -f conftest.o conftest.s
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23390 $as_echo "$gcc_cv_as_discriminator" >&6; }
23391 if test $gcc_cv_as_discriminator = yes; then
23393 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23397 # Thread-local storage - the check is heavily parameterized.
23398 conftest_s=
23399 tls_first_major=
23400 tls_first_minor=
23401 tls_as_opt=
23402 case "$target" in
23403 alpha*-*-*)
23404 conftest_s='
23405 .section ".tdata","awT",@progbits
23406 foo: .long 25
23407 .text
23408 ldq $27,__tls_get_addr($29) !literal!1
23409 lda $16,foo($29) !tlsgd!1
23410 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23411 ldq $27,__tls_get_addr($29) !literal!2
23412 lda $16,foo($29) !tlsldm!2
23413 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23414 ldq $1,foo($29) !gotdtprel
23415 ldah $2,foo($29) !dtprelhi
23416 lda $3,foo($2) !dtprello
23417 lda $4,foo($29) !dtprel
23418 ldq $1,foo($29) !gottprel
23419 ldah $2,foo($29) !tprelhi
23420 lda $3,foo($2) !tprello
23421 lda $4,foo($29) !tprel'
23422 tls_first_major=2
23423 tls_first_minor=13
23424 tls_as_opt=--fatal-warnings
23426 cris-*-*|crisv32-*-*)
23427 conftest_s='
23428 .section ".tdata","awT",@progbits
23429 x: .long 25
23430 .text
23431 move.d x:IE,$r10
23432 nop'
23433 tls_first_major=2
23434 tls_first_minor=20
23435 tls_as_opt=--fatal-warnings
23437 frv*-*-*)
23438 conftest_s='
23439 .section ".tdata","awT",@progbits
23440 x: .long 25
23441 .text
23442 call #gettlsoff(x)'
23443 tls_first_major=2
23444 tls_first_minor=14
23446 hppa*-*-linux*)
23447 conftest_s='
23448 t1: .reg %r20
23449 t2: .reg %r21
23450 gp: .reg %r19
23451 .section ".tdata","awT",@progbits
23452 foo: .long 25
23453 .text
23454 .align 4
23455 addil LT%foo-$tls_gdidx$,gp
23456 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23457 b __tls_get_addr
23459 addil LT%foo-$tls_ldidx$,gp
23460 b __tls_get_addr
23461 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23462 addil LR%foo-$tls_dtpoff$,%ret0
23463 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23464 mfctl %cr27,%t1
23465 addil LT%foo-$tls_ieoff$,gp
23466 ldw RT%foo-$tls_ieoff$(%r1),%t2
23467 add %t1,%t2,%t3
23468 mfctl %cr27,%t1
23469 addil LR%foo-$tls_leoff$,%t1
23470 ldo RR%foo-$tls_leoff$(%r1),%t2'
23471 tls_first_major=2
23472 tls_first_minor=15
23473 tls_as_opt=--fatal-warnings
23475 arm*-*-*)
23476 conftest_s='
23477 .section ".tdata","awT",%progbits
23478 foo: .long 25
23479 .text
23480 .word foo(gottpoff)
23481 .word foo(tpoff)
23482 .word foo(tlsgd)
23483 .word foo(tlsldm)
23484 .word foo(tlsldo)'
23485 tls_first_major=2
23486 tls_first_minor=17
23488 i[34567]86-*-* | x86_64-*-*)
23489 case "$target" in
23490 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23491 on_solaris=yes
23494 on_solaris=no
23496 esac
23497 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23498 conftest_s='
23499 .section .tdata,"awt",@progbits'
23500 tls_first_major=0
23501 tls_first_minor=0
23502 tls_section_flag=t
23504 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23506 else
23507 conftest_s='
23508 .section ".tdata","awT",@progbits'
23509 tls_first_major=2
23510 tls_first_minor=14
23511 tls_section_flag=T
23512 tls_as_opt="--fatal-warnings"
23514 case "$target" in
23515 i[34567]86-*-*)
23516 conftest_s="$conftest_s
23517 foo: .long 25
23518 .text
23519 movl %gs:0, %eax
23520 leal foo@tlsgd(,%ebx,1), %eax
23521 leal foo@tlsldm(%ebx), %eax
23522 leal foo@dtpoff(%eax), %edx
23523 movl foo@gottpoff(%ebx), %eax
23524 subl foo@gottpoff(%ebx), %eax
23525 addl foo@gotntpoff(%ebx), %eax
23526 movl foo@indntpoff, %eax
23527 movl \$foo@tpoff, %eax
23528 subl \$foo@tpoff, %eax
23529 leal foo@ntpoff(%ecx), %eax"
23531 x86_64-*-*)
23532 if test x$on_solaris = xyes; then
23533 case $gas_flag in
23534 yes) tls_as_opt="$tls_as_opt --64" ;;
23535 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23536 esac
23538 conftest_s="$conftest_s
23539 foo: .long 25
23540 .text
23541 movq %fs:0, %rax
23542 leaq foo@tlsgd(%rip), %rdi
23543 leaq foo@tlsld(%rip), %rdi
23544 leaq foo@dtpoff(%rax), %rdx
23545 movq foo@gottpoff(%rip), %rax
23546 movq \$foo@tpoff, %rax"
23548 esac
23550 ia64-*-*)
23551 conftest_s='
23552 .section ".tdata","awT",@progbits
23553 foo: data8 25
23554 .text
23555 addl r16 = @ltoff(@dtpmod(foo#)), gp
23556 addl r17 = @ltoff(@dtprel(foo#)), gp
23557 addl r18 = @ltoff(@tprel(foo#)), gp
23558 addl r19 = @dtprel(foo#), gp
23559 adds r21 = @dtprel(foo#), r13
23560 movl r23 = @dtprel(foo#)
23561 addl r20 = @tprel(foo#), gp
23562 adds r22 = @tprel(foo#), r13
23563 movl r24 = @tprel(foo#)'
23564 tls_first_major=2
23565 tls_first_minor=13
23566 tls_as_opt=--fatal-warnings
23568 microblaze*-*-*)
23569 conftest_s='
23570 .section .tdata,"awT",@progbits
23572 .word 2
23573 .text
23574 addik r5,r20,x@TLSGD
23575 addik r5,r20,x@TLSLDM'
23576 tls_first_major=2
23577 tls_first_minor=20
23578 tls_as_opt='--fatal-warnings'
23580 mips*-*-*)
23581 conftest_s='
23582 .section .tdata,"awT",@progbits
23584 .word 2
23585 .text
23586 addiu $4, $28, %tlsgd(x)
23587 addiu $4, $28, %tlsldm(x)
23588 lui $4, %dtprel_hi(x)
23589 addiu $4, $4, %dtprel_lo(x)
23590 lw $4, %gottprel(x)($28)
23591 lui $4, %tprel_hi(x)
23592 addiu $4, $4, %tprel_lo(x)'
23593 tls_first_major=2
23594 tls_first_minor=16
23595 tls_as_opt='-32 --fatal-warnings'
23597 m68k-*-*)
23598 conftest_s='
23599 .section .tdata,"awT",@progbits
23601 .word 2
23602 .text
23603 foo:
23604 move.l x@TLSGD(%a5),%a0
23605 move.l x@TLSLDM(%a5),%a0
23606 move.l x@TLSLDO(%a5),%a0
23607 move.l x@TLSIE(%a5),%a0
23608 move.l x@TLSLE(%a5),%a0'
23609 tls_first_major=2
23610 tls_first_minor=19
23611 tls_as_opt='--fatal-warnings'
23613 nios2-*-*)
23614 conftest_s='
23615 .section ".tdata","awT",@progbits'
23616 tls_first_major=2
23617 tls_first_minor=23
23618 tls_as_opt="--fatal-warnings"
23620 aarch64*-*-*)
23621 conftest_s='
23622 .section ".tdata","awT",%progbits
23623 foo: .long 25
23624 .text
23625 adrp x0, :tlsgd:x
23626 add x0, x0, #:tlsgd_lo12:x
23627 bl __tls_get_addr
23628 nop'
23629 tls_first_major=2
23630 tls_first_minor=20
23631 tls_as_opt='--fatal-warnings'
23633 powerpc-ibm-aix*)
23634 conftest_s='
23635 .extern __get_tpointer
23636 .toc
23637 LC..1:
23638 .tc a[TC],a[TL]@le
23639 .csect .text[PR]
23640 .tlstest:
23641 lwz 9,LC..1(2)
23642 bla __get_tpointer
23643 lwzx 3,9,3
23644 .globl a
23645 .csect a[TL],4
23647 .space 4'
23648 tls_first_major=0
23649 tls_first_minor=0
23651 powerpc64*-*-*)
23652 conftest_s='
23653 .section ".tdata","awT",@progbits
23654 .align 3
23655 ld0: .space 8
23656 ld1: .space 8
23657 x1: .space 8
23658 x2: .space 8
23659 x3: .space 8
23660 .text
23661 addi 3,2,ld0@got@tlsgd
23662 bl .__tls_get_addr
23664 addi 3,2,ld1@toc
23665 bl .__tls_get_addr
23667 addi 3,2,x1@got@tlsld
23668 bl .__tls_get_addr
23670 addi 9,3,x1@dtprel
23671 bl .__tls_get_addr
23673 addis 9,3,x2@dtprel@ha
23674 addi 9,9,x2@dtprel@l
23675 bl .__tls_get_addr
23677 ld 9,x3@got@dtprel(2)
23678 add 9,9,3
23679 bl .__tls_get_addr
23680 nop'
23681 tls_first_major=2
23682 tls_first_minor=14
23683 tls_as_opt="-a64 --fatal-warnings"
23685 powerpc*-*-*)
23686 conftest_s='
23687 .section ".tdata","awT",@progbits
23688 .align 2
23689 ld0: .space 4
23690 ld1: .space 4
23691 x1: .space 4
23692 x2: .space 4
23693 x3: .space 4
23694 .text
23695 addi 3,31,ld0@got@tlsgd
23696 bl __tls_get_addr
23697 addi 3,31,x1@got@tlsld
23698 bl __tls_get_addr
23699 addi 9,3,x1@dtprel
23700 addis 9,3,x2@dtprel@ha
23701 addi 9,9,x2@dtprel@l
23702 lwz 9,x3@got@tprel(31)
23703 add 9,9,x@tls
23704 addi 9,2,x1@tprel
23705 addis 9,2,x2@tprel@ha
23706 addi 9,9,x2@tprel@l'
23707 tls_first_major=2
23708 tls_first_minor=14
23709 tls_as_opt="-a32 --fatal-warnings"
23711 s390-*-*)
23712 conftest_s='
23713 .section ".tdata","awT",@progbits
23714 foo: .long 25
23715 .text
23716 .long foo@TLSGD
23717 .long foo@TLSLDM
23718 .long foo@DTPOFF
23719 .long foo@NTPOFF
23720 .long foo@GOTNTPOFF
23721 .long foo@INDNTPOFF
23722 l %r1,foo@GOTNTPOFF(%r12)
23723 l %r1,0(%r1):tls_load:foo
23724 bas %r14,0(%r1,%r13):tls_gdcall:foo
23725 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23726 tls_first_major=2
23727 tls_first_minor=14
23728 tls_as_opt="-m31 --fatal-warnings"
23730 s390x-*-*)
23731 conftest_s='
23732 .section ".tdata","awT",@progbits
23733 foo: .long 25
23734 .text
23735 .quad foo@TLSGD
23736 .quad foo@TLSLDM
23737 .quad foo@DTPOFF
23738 .quad foo@NTPOFF
23739 .quad foo@GOTNTPOFF
23740 lg %r1,foo@GOTNTPOFF(%r12)
23741 larl %r1,foo@INDNTPOFF
23742 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23743 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23744 tls_first_major=2
23745 tls_first_minor=14
23746 tls_as_opt="-m64 -Aesame --fatal-warnings"
23748 sh-*-* | sh[34]-*-*)
23749 conftest_s='
23750 .section ".tdata","awT",@progbits
23751 foo: .long 25
23752 .text
23753 .long foo@TLSGD
23754 .long foo@TLSLDM
23755 .long foo@DTPOFF
23756 .long foo@GOTTPOFF
23757 .long foo@TPOFF'
23758 tls_first_major=2
23759 tls_first_minor=13
23760 tls_as_opt=--fatal-warnings
23762 sparc*-*-*)
23763 case "$target" in
23764 sparc*-sun-solaris2.*)
23765 on_solaris=yes
23768 on_solaris=no
23770 esac
23771 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23772 conftest_s='
23773 .section ".tdata",#alloc,#write,#tls'
23774 tls_first_major=0
23775 tls_first_minor=0
23776 else
23777 conftest_s='
23778 .section ".tdata","awT",@progbits'
23779 tls_first_major=2
23780 tls_first_minor=14
23781 tls_as_opt="-32 --fatal-warnings"
23783 conftest_s="$conftest_s
23784 foo: .long 25
23785 .text
23786 sethi %tgd_hi22(foo), %o0
23787 add %o0, %tgd_lo10(foo), %o1
23788 add %l7, %o1, %o0, %tgd_add(foo)
23789 call __tls_get_addr, %tgd_call(foo)
23790 sethi %tldm_hi22(foo), %l1
23791 add %l1, %tldm_lo10(foo), %l2
23792 add %l7, %l2, %o0, %tldm_add(foo)
23793 call __tls_get_addr, %tldm_call(foo)
23794 sethi %tldo_hix22(foo), %l3
23795 xor %l3, %tldo_lox10(foo), %l4
23796 add %o0, %l4, %l5, %tldo_add(foo)
23797 sethi %tie_hi22(foo), %o3
23798 add %o3, %tie_lo10(foo), %o3
23799 ld [%l7 + %o3], %o2, %tie_ld(foo)
23800 add %g7, %o2, %o4, %tie_add(foo)
23801 sethi %tle_hix22(foo), %l1
23802 xor %l1, %tle_lox10(foo), %o5
23803 ld [%g7 + %o5], %o1"
23805 tilepro*-*-*)
23806 conftest_s='
23807 .section ".tdata","awT",@progbits
23808 foo: .long 25
23809 .text
23810 addli r0, zero, tls_gd(foo)
23811 auli r0, zero, tls_gd_ha16(foo)
23812 addli r0, r0, tls_gd_lo16(foo)
23813 jal __tls_get_addr
23814 addli r0, zero, tls_ie(foo)
23815 auli r0, r0, tls_ie_ha16(foo)
23816 addli r0, r0, tls_ie_lo16(foo)'
23817 tls_first_major=2
23818 tls_first_minor=22
23819 tls_as_opt="--fatal-warnings"
23821 tilegx*-*-*)
23822 conftest_s='
23823 .section ".tdata","awT",@progbits
23824 foo: .long 25
23825 .text
23826 shl16insli r0, zero, hw0_last_tls_gd(foo)
23827 shl16insli r0, zero, hw1_last_tls_gd(foo)
23828 shl16insli r0, r0, hw0_tls_gd(foo)
23829 jal __tls_get_addr
23830 shl16insli r0, zero, hw1_last_tls_ie(foo)
23831 shl16insli r0, r0, hw0_tls_ie(foo)'
23832 tls_first_major=2
23833 tls_first_minor=22
23834 tls_as_opt="--fatal-warnings"
23836 xtensa*-*-*)
23837 conftest_s='
23838 .section ".tdata","awT",@progbits
23839 foo: .long 25
23840 .text
23841 movi a8, foo@TLSFUNC
23842 movi a10, foo@TLSARG
23843 callx8.tls a8, foo@TLSCALL'
23844 tls_first_major=2
23845 tls_first_minor=19
23847 esac
23848 set_have_as_tls=no
23849 if test "x$enable_tls" = xno ; then
23850 : # TLS explicitly disabled.
23851 elif test "x$enable_tls" = xyes ; then
23852 set_have_as_tls=yes # TLS explicitly enabled.
23853 elif test -z "$tls_first_major"; then
23854 : # If we don't have a check, assume no support.
23855 else
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23857 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23858 if test "${gcc_cv_as_tls+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23860 else
23861 gcc_cv_as_tls=no
23862 if test $in_tree_gas = yes; then
23863 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23864 then gcc_cv_as_tls=yes
23866 elif test x$gcc_cv_as != x; then
23867 $as_echo "$conftest_s" > conftest.s
23868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23873 test $ac_status = 0; }; }
23874 then
23875 gcc_cv_as_tls=yes
23876 else
23877 echo "configure: failed program was" >&5
23878 cat conftest.s >&5
23880 rm -f conftest.o conftest.s
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23884 $as_echo "$gcc_cv_as_tls" >&6; }
23885 if test $gcc_cv_as_tls = yes; then
23886 set_have_as_tls=yes
23889 if test $set_have_as_tls = yes ; then
23891 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23895 # Target-specific assembler checks.
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23898 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23899 gcc_cv_ld_static_dynamic=no
23900 gcc_cv_ld_static_option='-Bstatic'
23901 gcc_cv_ld_dynamic_option='-Bdynamic'
23902 if test $in_tree_ld = yes ; then
23903 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
23904 gcc_cv_ld_static_dynamic=yes
23906 elif test x$gcc_cv_ld != x; then
23907 # Check if linker supports -Bstatic/-Bdynamic option
23908 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23909 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23910 gcc_cv_ld_static_dynamic=yes
23911 else
23912 case "$target" in
23913 # AIX ld uses -b flags
23914 *-*-aix4.[23]* | *-*-aix[5-9]*)
23915 gcc_cv_ld_static_dynamic=yes
23916 gcc_cv_ld_static_option="-bstatic"
23917 gcc_cv_ld_dynamic_option="-bdynamic"
23919 # HP-UX ld uses -a flags to select between shared and archive.
23920 *-*-hpux*)
23921 if test x"$gnu_ld" = xno; then
23922 gcc_cv_ld_static_dynamic=yes
23923 gcc_cv_ld_static_option="-aarchive_shared"
23924 gcc_cv_ld_dynamic_option="-adefault"
23927 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23928 *-*-solaris2*)
23929 gcc_cv_ld_static_dynamic=yes
23931 esac
23934 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23936 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23939 cat >>confdefs.h <<_ACEOF
23940 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23941 _ACEOF
23944 cat >>confdefs.h <<_ACEOF
23945 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23946 _ACEOF
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23950 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23952 if test x"$demangler_in_ld" = xyes; then
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23954 $as_echo_n "checking linker --demangle support... " >&6; }
23955 gcc_cv_ld_demangle=no
23956 if test $in_tree_ld = yes; then
23957 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 \
23958 gcc_cv_ld_demangle=yes
23960 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23961 # Check if the GNU linker supports --demangle option
23962 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23963 gcc_cv_ld_demangle=yes
23966 if test x"$gcc_cv_ld_demangle" = xyes; then
23968 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23972 $as_echo "$gcc_cv_ld_demangle" >&6; }
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23976 $as_echo_n "checking linker plugin support... " >&6; }
23977 gcc_cv_lto_plugin=0
23978 if test -f liblto_plugin.la; then
23979 save_ld_ver="$ld_ver"
23980 save_ld_vers_major="$ld_vers_major"
23981 save_ld_vers_minor="$ld_vers_minor"
23982 save_ld_is_gold="$ld_is_gold"
23984 ld_is_gold=no
23986 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23987 ld_ver="GNU ld"
23988 # FIXME: ld_is_gold?
23989 ld_vers_major="$gcc_cv_gld_major_version"
23990 ld_vers_minor="$gcc_cv_gld_minor_version"
23991 else
23992 # Determine plugin linker version.
23993 # FIXME: Partial duplicate from above, generalize.
23994 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23995 if echo "$ld_ver" | grep GNU > /dev/null; then
23996 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23997 ld_is_gold=yes
23998 ld_vers=`echo $ld_ver | sed -n \
23999 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24000 else
24001 ld_vers=`echo $ld_ver | sed -n \
24002 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24004 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24005 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24009 # Determine plugin support.
24010 if echo "$ld_ver" | grep GNU > /dev/null; then
24011 # Require GNU ld or gold 2.21+ for plugin support by default.
24012 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24013 gcc_cv_lto_plugin=2
24014 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24015 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24016 gcc_cv_lto_plugin=1
24020 ld_ver="$save_ld_ver"
24021 ld_vers_major="$save_ld_vers_major"
24022 ld_vers_minor="$save_ld_vers_minor"
24023 ld_is_gold="$save_ld_is_gold"
24026 cat >>confdefs.h <<_ACEOF
24027 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24028 _ACEOF
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24031 $as_echo "$gcc_cv_lto_plugin" >&6; }
24033 case "$target" in
24034 aarch64*-*-*)
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24036 $as_echo_n "checking assembler for -mabi option... " >&6; }
24037 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_aarch64_mabi=no
24041 if test x$gcc_cv_as != x; then
24042 $as_echo '.text' > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24049 then
24050 gcc_cv_as_aarch64_mabi=yes
24051 else
24052 echo "configure: failed program was" >&5
24053 cat conftest.s >&5
24055 rm -f conftest.o conftest.s
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24059 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24061 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24063 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24065 else
24066 if test x$with_abi = xilp32; then
24067 as_fn_error "Assembler does not support -mabi=ilp32.\
24068 Upgrade the Assembler." "$LINENO" 5
24070 if test x"$with_multilib_list" = xdefault; then
24071 TM_MULTILIB_CONFIG=lp64
24072 else
24073 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24074 for aarch64_multilib in ${aarch64_multilibs}; do
24075 case ${aarch64_multilib} in
24076 ilp32)
24077 as_fn_error "Assembler does not support -mabi=ilp32.\
24078 Upgrade the Assembler." "$LINENO" 5
24082 esac
24083 done
24086 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24087 # Check whether --enable-fix-cortex-a53-835769 was given.
24088 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24089 enableval=$enable_fix_cortex_a53_835769;
24090 case $enableval in
24091 yes)
24092 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24097 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24098 Valid choices are 'yes' and 'no'." "$LINENO" 5
24101 esac
24107 # All TARGET_ABI_OSF targets.
24108 alpha*-*-linux* | alpha*-*-*bsd*)
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24110 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24111 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_alpha_explicit_relocs=no
24115 if test $in_tree_gas = yes; then
24116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24117 then gcc_cv_as_alpha_explicit_relocs=yes
24119 elif test x$gcc_cv_as != x; then
24120 $as_echo ' .set nomacro
24121 .text
24122 extbl $3, $2, $3 !lituse_bytoff!1
24123 ldq $2, a($29) !literal!1
24124 ldq $4, b($29) !literal!2
24125 ldq_u $3, 0($2) !lituse_base!1
24126 ldq $27, f($29) !literal!5
24127 jsr $26, ($27), f !lituse_jsr!5
24128 ldah $29, 0($26) !gpdisp!3
24129 lda $0, c($29) !gprel
24130 ldah $1, d($29) !gprelhigh
24131 lda $1, d($1) !gprellow
24132 lda $29, 0($29) !gpdisp!3' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_alpha_explicit_relocs=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24149 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24150 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24152 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24156 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24157 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24159 else
24160 gcc_cv_as_alpha_jsrdirect_relocs=no
24161 if test $in_tree_gas = yes; then
24162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24163 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24165 elif test x$gcc_cv_as != x; then
24166 $as_echo ' .set nomacro
24167 .text
24168 ldq $27, a($29) !literal!1
24169 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24176 then
24177 gcc_cv_as_alpha_jsrdirect_relocs=yes
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24186 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24187 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24189 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24194 avr-*-*)
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24196 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24197 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24199 else
24200 gcc_cv_as_avr_mlink_relax=no
24201 if test x$gcc_cv_as != x; then
24202 $as_echo '.text' > conftest.s
24203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; }
24209 then
24210 gcc_cv_as_avr_mlink_relax=yes
24211 else
24212 echo "configure: failed program was" >&5
24213 cat conftest.s >&5
24215 rm -f conftest.o conftest.s
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24219 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24220 if test $gcc_cv_as_avr_mlink_relax = yes; then
24222 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24227 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24228 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24230 else
24231 gcc_cv_as_avr_mrmw=no
24232 if test x$gcc_cv_as != x; then
24233 $as_echo '.text' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_avr_mrmw=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24250 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24251 if test $gcc_cv_as_avr_mrmw = yes; then
24253 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24258 cris-*-*)
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24260 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24261 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24262 $as_echo_n "(cached) " >&6
24263 else
24264 gcc_cv_as_cris_no_mul_bug=no
24265 if test $in_tree_gas = yes; then
24266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24267 then gcc_cv_as_cris_no_mul_bug=yes
24269 elif test x$gcc_cv_as != x; then
24270 $as_echo '.text' > conftest.s
24271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24276 test $ac_status = 0; }; }
24277 then
24278 gcc_cv_as_cris_no_mul_bug=yes
24279 else
24280 echo "configure: failed program was" >&5
24281 cat conftest.s >&5
24283 rm -f conftest.o conftest.s
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24287 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24288 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24290 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24295 sparc*-*-*)
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24297 $as_echo_n "checking assembler for .register... " >&6; }
24298 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24299 $as_echo_n "(cached) " >&6
24300 else
24301 gcc_cv_as_sparc_register_op=no
24302 if test x$gcc_cv_as != x; then
24303 $as_echo '.register %g2, #scratch' > conftest.s
24304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_sparc_register_op=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_sparc_register_op" >&5
24320 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24321 if test $gcc_cv_as_sparc_register_op = yes; then
24323 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24328 $as_echo_n "checking assembler for #nobits... " >&6; }
24329 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 gcc_cv_as_sparc_nobits=no
24333 if test x$gcc_cv_as != x; then
24334 $as_echo '.section "nobits",#alloc,#write,#nobits
24335 .section "progbits",#alloc,#write,#progbits' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_sparc_nobits=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24352 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24355 cat >>confdefs.h <<_ACEOF
24356 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24357 _ACEOF
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24361 $as_echo_n "checking assembler for -relax option... " >&6; }
24362 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_relax=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.text' > conftest.s
24368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373 test $ac_status = 0; }; }
24374 then
24375 gcc_cv_as_sparc_relax=yes
24376 else
24377 echo "configure: failed program was" >&5
24378 cat conftest.s >&5
24380 rm -f conftest.o conftest.s
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24384 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24385 if test $gcc_cv_as_sparc_relax = yes; then
24387 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24392 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24393 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24394 $as_echo_n "(cached) " >&6
24395 else
24396 gcc_cv_as_sparc_gotdata_op=no
24397 if test x$gcc_cv_as != x; then
24398 $as_echo '.text
24399 .align 4
24400 foo:
24402 bar:
24403 sethi %gdop_hix22(foo), %g1
24404 xor %g1, %gdop_lox10(foo), %g1
24405 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24412 then
24413 if test x$gcc_cv_ld != x \
24414 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24415 if test x$gcc_cv_objdump != x; then
24416 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24417 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24418 gcc_cv_as_sparc_gotdata_op=no
24419 else
24420 gcc_cv_as_sparc_gotdata_op=yes
24424 rm -f conftest
24425 else
24426 echo "configure: failed program was" >&5
24427 cat conftest.s >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24433 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24434 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24436 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24441 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24442 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_sparc_ua_pcrel=no
24446 if test x$gcc_cv_as != x; then
24447 $as_echo '.text
24448 foo:
24450 .data
24451 .align 4
24452 .byte 0
24453 .uaword %r_disp32(foo)' > conftest.s
24454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24459 test $ac_status = 0; }; }
24460 then
24461 if test x$gcc_cv_ld != x \
24462 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24463 gcc_cv_as_sparc_ua_pcrel=yes
24465 rm -f conftest
24466 else
24467 echo "configure: failed program was" >&5
24468 cat conftest.s >&5
24470 rm -f conftest.o conftest.s
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24474 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24475 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24477 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24481 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24482 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 gcc_cv_as_sparc_ua_pcrel_hidden=no
24486 if test x$gcc_cv_as != x; then
24487 $as_echo '.data
24488 .align 4
24489 .byte 0x31
24490 .uaword %r_disp32(foo)
24491 .byte 0x32, 0x33, 0x34
24492 .global foo
24493 .hidden foo
24494 foo:
24495 .skip 4' > conftest.s
24496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; }
24502 then
24503 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24504 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24505 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24506 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24507 if $gcc_cv_objdump -R conftest 2> /dev/null \
24508 | grep 'DISP32' > /dev/null 2>&1; then
24510 else
24511 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24514 rm -f conftest
24515 else
24516 echo "configure: failed program was" >&5
24517 cat conftest.s >&5
24519 rm -f conftest.o conftest.s
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24523 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24524 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24526 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24530 fi # unaligned pcrel relocs
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24533 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24534 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24536 else
24537 gcc_cv_as_sparc_offsetable_lo10=no
24538 if test x$gcc_cv_as != x; then
24539 $as_echo '.text
24540 or %g1, %lo(ab) + 12, %g1
24541 or %g1, %lo(ab + 12), %g1' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 if test x$gcc_cv_objdump != x \
24550 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24551 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24552 gcc_cv_as_sparc_offsetable_lo10=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24562 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24563 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24565 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24570 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24571 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_sparc_fmaf=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo '.text
24577 .register %g2, #scratch
24578 .register %g3, #scratch
24579 .align 4
24580 fmaddd %f0, %f2, %f4, %f6
24581 addxccc %g1, %g2, %g3
24582 fsrl32 %f2, %f4, %f8
24583 fnaddd %f10, %f12, %f14' > conftest.s
24584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24589 test $ac_status = 0; }; }
24590 then
24591 gcc_cv_as_sparc_fmaf=yes
24592 else
24593 echo "configure: failed program was" >&5
24594 cat conftest.s >&5
24596 rm -f conftest.o conftest.s
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24600 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24601 if test $gcc_cv_as_sparc_fmaf = yes; then
24603 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24608 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24609 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24611 else
24612 gcc_cv_as_sparc_sparc4=no
24613 if test x$gcc_cv_as != x; then
24614 $as_echo '.text
24615 .register %g2, #scratch
24616 .register %g3, #scratch
24617 .align 4
24618 cxbe %g2, %g3, 1f
24619 1: cwbneg %g2, %g3, 1f
24620 1: sha1
24622 aes_kexpand0 %f4, %f6, %f8
24623 des_round %f38, %f40, %f42, %f44
24624 camellia_f %f54, %f56, %f58, %f60
24625 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24628 (eval $ac_try) 2>&5
24629 ac_status=$?
24630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631 test $ac_status = 0; }; }
24632 then
24633 gcc_cv_as_sparc_sparc4=yes
24634 else
24635 echo "configure: failed program was" >&5
24636 cat conftest.s >&5
24638 rm -f conftest.o conftest.s
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24642 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24643 if test $gcc_cv_as_sparc_sparc4 = yes; then
24645 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24650 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24651 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 gcc_cv_as_sparc_leon=no
24655 if test x$gcc_cv_as != x; then
24656 $as_echo '.text
24657 .register %g2, #scratch
24658 .register %g3, #scratch
24659 .align 4
24660 smac %g2, %g3, %g1
24661 umac %g2, %g3, %g1
24662 casa [%g2] 0xb, %g3, %g1' > conftest.s
24663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }
24669 then
24670 gcc_cv_as_sparc_leon=yes
24671 else
24672 echo "configure: failed program was" >&5
24673 cat conftest.s >&5
24675 rm -f conftest.o conftest.s
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24679 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24680 if test $gcc_cv_as_sparc_leon = yes; then
24682 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24687 i[34567]86-*-* | x86_64-*-*)
24688 case $target_os in
24689 cygwin*)
24690 # Full C++ conformance when using a shared libstdc++-v3 requires some
24691 # support from the Cygwin DLL, which in more recent versions exports
24692 # wrappers to aid in interposing and redirecting operators new, delete,
24693 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24694 # are configuring for a version of Cygwin that exports the wrappers.
24695 if test x$host = x$target && test x$host_cpu = xi686; then
24696 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24697 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24698 gcc_ac_cygwin_dll_wrappers=yes
24699 else
24700 gcc_ac_cygwin_dll_wrappers=no
24703 else
24704 # Can't check presence of libc functions during cross-compile, so
24705 # we just have to assume we're building for an up-to-date target.
24706 gcc_ac_cygwin_dll_wrappers=yes
24709 cat >>confdefs.h <<_ACEOF
24710 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24711 _ACEOF
24713 esac
24714 case $target_os in
24715 cygwin* | pe | mingw32* | interix*)
24716 # Recent binutils allows the three-operand form of ".comm" on PE. This
24717 # definition is used unconditionally to initialise the default state of
24718 # the target option variable that governs usage of the feature.
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24720 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24721 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 gcc_cv_as_comm_has_align=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24727 then gcc_cv_as_comm_has_align=yes
24729 elif test x$gcc_cv_as != x; then
24730 $as_echo '.comm foo,1,32' > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_comm_has_align=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24747 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24750 cat >>confdefs.h <<_ACEOF
24751 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24752 _ACEOF
24754 # Used for DWARF 2 in PE
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24756 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24757 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24758 $as_echo_n "(cached) " >&6
24759 else
24760 gcc_cv_as_ix86_pe_secrel32=no
24761 if test $in_tree_gas = yes; then
24762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24763 then gcc_cv_as_ix86_pe_secrel32=yes
24765 elif test x$gcc_cv_as != x; then
24766 $as_echo '.text
24767 foo: nop
24768 .data
24769 .secrel32 foo' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 if test x$gcc_cv_ld != x \
24778 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24779 gcc_cv_as_ix86_pe_secrel32=yes
24781 rm -f conftest
24782 else
24783 echo "configure: failed program was" >&5
24784 cat conftest.s >&5
24786 rm -f conftest.o conftest.s
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24790 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24791 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24793 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24796 # Test if the assembler supports the extended form of the .section
24797 # directive that specifies section alignment. LTO support uses this,
24798 # but normally only after installation, so we warn but don't fail the
24799 # configure if LTO is enabled but the assembler does not support it.
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24801 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24802 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 gcc_cv_as_section_has_align=no
24806 if test $in_tree_gas = yes; then
24807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24808 then gcc_cv_as_section_has_align=yes
24810 elif test x$gcc_cv_as != x; then
24811 $as_echo '.section lto_test,"dr0"' > conftest.s
24812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24818 then
24819 gcc_cv_as_section_has_align=yes
24820 else
24821 echo "configure: failed program was" >&5
24822 cat conftest.s >&5
24824 rm -f conftest.o conftest.s
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24828 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24830 if test x$gcc_cv_as_section_has_align != xyes; then
24831 case ",$enable_languages," in
24832 *,lto,*)
24833 { $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
24834 $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;}
24836 esac
24839 esac
24841 # Test if the assembler supports the section flag 'e' for specifying
24842 # an excluded section.
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24844 $as_echo_n "checking assembler for .section with e... " >&6; }
24845 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848 gcc_cv_as_section_has_e=no
24849 if test $in_tree_gas = yes; then
24850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24851 then gcc_cv_as_section_has_e=yes
24853 elif test x$gcc_cv_as != x; then
24854 $as_echo '.section foo1,"e"
24855 .byte 0,0,0,0' > conftest.s
24856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; }
24862 then
24863 gcc_cv_as_section_has_e=yes
24864 else
24865 echo "configure: failed program was" >&5
24866 cat conftest.s >&5
24868 rm -f conftest.o conftest.s
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24872 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24875 cat >>confdefs.h <<_ACEOF
24876 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24877 _ACEOF
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24881 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24882 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24883 $as_echo_n "(cached) " >&6
24884 else
24885 gcc_cv_as_ix86_filds=no
24886 if test x$gcc_cv_as != x; then
24887 $as_echo 'filds mem; fists mem' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 gcc_cv_as_ix86_filds=yes
24896 else
24897 echo "configure: failed program was" >&5
24898 cat conftest.s >&5
24900 rm -f conftest.o conftest.s
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24904 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24905 if test $gcc_cv_as_ix86_filds = yes; then
24907 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24912 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24913 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24915 else
24916 gcc_cv_as_ix86_fildq=no
24917 if test x$gcc_cv_as != x; then
24918 $as_echo 'fildq mem; fistpq mem' > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24925 then
24926 gcc_cv_as_ix86_fildq=yes
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24935 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24936 if test $gcc_cv_as_ix86_fildq = yes; then
24938 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24943 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24944 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24946 else
24947 gcc_cv_as_ix86_cmov_sun_syntax=no
24948 if test x$gcc_cv_as != x; then
24949 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_ix86_cmov_sun_syntax=yes
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24966 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24967 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24969 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24974 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24975 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_ffreep=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'ffreep %st(1)' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 gcc_cv_as_ix86_ffreep=yes
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24993 rm -f conftest.o conftest.s
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24997 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24998 if test $gcc_cv_as_ix86_ffreep = yes; then
25000 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25005 $as_echo_n "checking assembler for .quad directive... " >&6; }
25006 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_ix86_quad=no
25010 if test x$gcc_cv_as != x; then
25011 $as_echo '.quad 0' > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 gcc_cv_as_ix86_quad=yes
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25024 rm -f conftest.o conftest.s
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25028 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25029 if test $gcc_cv_as_ix86_quad = yes; then
25031 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25036 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25037 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_ix86_sahf=no
25041 if test x$gcc_cv_as != x; then
25042 $as_echo '.code64
25043 sahf' > 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_sahf=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_sahf" >&5
25060 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25061 if test $gcc_cv_as_ix86_sahf = yes; then
25063 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25068 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25069 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_ix86_interunit_movq=no
25073 if test x$gcc_cv_as != x; then
25074 $as_echo '.code64
25075 movq %mm0, %rax
25076 movq %rax, %xmm0' > conftest.s
25077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25080 ac_status=$?
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25083 then
25084 gcc_cv_as_ix86_interunit_movq=yes
25085 else
25086 echo "configure: failed program was" >&5
25087 cat conftest.s >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25093 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25096 cat >>confdefs.h <<_ACEOF
25097 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25098 _ACEOF
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25102 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25103 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_ix86_hle=no
25107 if test x$gcc_cv_as != x; then
25108 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > 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_hle=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_hle" >&5
25125 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25126 if test $gcc_cv_as_ix86_hle = yes; then
25128 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25133 $as_echo_n "checking assembler for swap suffix... " >&6; }
25134 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25136 else
25137 gcc_cv_as_ix86_swap=no
25138 if test x$gcc_cv_as != x; then
25139 $as_echo 'movl.s %esp, %ebp' > conftest.s
25140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25146 then
25147 gcc_cv_as_ix86_swap=yes
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25156 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25157 if test $gcc_cv_as_ix86_swap = yes; then
25159 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25164 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25165 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168 gcc_cv_as_ix86_diff_sect_delta=no
25169 if test x$gcc_cv_as != x; then
25170 $as_echo '.section .rodata
25171 .L1:
25172 .long .L2-.L1
25173 .long .L3-.L1
25174 .text
25175 .L3: nop
25176 .L2: nop' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_ix86_diff_sect_delta=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25193 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25194 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25196 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25200 # These two are used unconditionally by i386.[ch]; it is to be defined
25201 # to 1 if the feature is present, 0 otherwise.
25202 as_ix86_gotoff_in_data_opt=
25203 if test x$gas = xyes; then
25204 as_ix86_gotoff_in_data_opt="--32"
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25207 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25208 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_ix86_gotoff_in_data=no
25212 if test $in_tree_gas = yes; then
25213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25214 then gcc_cv_as_ix86_gotoff_in_data=yes
25216 elif test x$gcc_cv_as != x; then
25217 $as_echo ' .text
25218 .L0:
25220 .data
25221 .long .L0@GOTOFF' > conftest.s
25222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25228 then
25229 gcc_cv_as_ix86_gotoff_in_data=yes
25230 else
25231 echo "configure: failed program was" >&5
25232 cat conftest.s >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25238 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25243 _ACEOF
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25247 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25248 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 gcc_cv_as_ix86_rep_lock_prefix=no
25252 if test x$gcc_cv_as != x; then
25253 $as_echo 'rep movsl
25254 rep ret
25255 rep nop
25256 rep bsf %ecx, %eax
25257 rep bsr %ecx, %eax
25258 lock addl %edi, (%eax,%esi)
25259 lock orl $0, (%esp)' > conftest.s
25260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265 test $ac_status = 0; }; }
25266 then
25267 gcc_cv_as_ix86_rep_lock_prefix=yes
25268 else
25269 echo "configure: failed program was" >&5
25270 cat conftest.s >&5
25272 rm -f conftest.o conftest.s
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25276 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25277 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25279 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25284 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25285 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_ix86_ud2=no
25289 if test x$gcc_cv_as != x; then
25290 $as_echo 'ud2' > conftest.s
25291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25297 then
25298 gcc_cv_as_ix86_ud2=yes
25299 else
25300 echo "configure: failed program was" >&5
25301 cat conftest.s >&5
25303 rm -f conftest.o conftest.s
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25307 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25308 if test $gcc_cv_as_ix86_ud2 = yes; then
25310 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25315 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25316 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_ix86_tlsgdplt=no
25320 if test x$gcc_cv_as != x; then
25321 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 if test x$gcc_cv_ld != x \
25330 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25331 gcc_cv_as_ix86_tlsgdplt=yes
25333 rm -f conftest
25334 else
25335 echo "configure: failed program was" >&5
25336 cat conftest.s >&5
25338 rm -f conftest.o conftest.s
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25342 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25343 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25345 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25349 conftest_s='
25350 .section .tdata,"aw'$tls_section_flag'",@progbits
25351 tls_ld:
25352 .section .text,"ax",@progbits
25353 call tls_ld@tlsldmplt'
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25355 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25356 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_ix86_tlsldmplt=no
25360 if test x$gcc_cv_as != x; then
25361 $as_echo "$conftest_s" > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 if test x$gcc_cv_ld != x \
25370 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25371 gcc_cv_as_ix86_tlsldmplt=yes
25373 rm -f conftest
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25382 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25387 _ACEOF
25390 # Enforce 32-bit output with gas and gld.
25391 if test x$gas = xyes; then
25392 as_ix86_tls_ldm_opt="--32"
25394 if echo "$ld_ver" | grep GNU > /dev/null; then
25395 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25396 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25397 else
25398 ld_ix86_tls_ldm_opt="-melf_i386"
25401 conftest_s='
25402 .section .text,"ax",@progbits
25403 .globl _start
25404 .type _start, @function
25405 _start:
25406 leal value@tlsldm(%ebx), %eax
25407 call ___tls_get_addr@plt
25409 .section .tdata,"aw'$tls_section_flag'",@progbits
25410 .type value, @object
25411 value:'
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25413 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25414 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25415 $as_echo_n "(cached) " >&6
25416 else
25417 gcc_cv_as_ix86_tlsldm=no
25418 if test x$gcc_cv_as != x; then
25419 $as_echo "$conftest_s" > conftest.s
25420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25426 then
25427 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25428 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25429 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25430 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25431 gcc_cv_as_ix86_tlsldm=yes
25434 rm -f conftest
25435 else
25436 echo "configure: failed program was" >&5
25437 cat conftest.s >&5
25439 rm -f conftest.o conftest.s
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25443 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25446 cat >>confdefs.h <<_ACEOF
25447 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25448 _ACEOF
25453 ia64*-*-*)
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25455 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25456 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25458 else
25459 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25460 if test $in_tree_gas = yes; then
25461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25462 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25464 elif test x$gcc_cv_as != x; then
25465 $as_echo ' .text
25466 addl r15 = @ltoffx(x#), gp
25468 ld8.mov r16 = [r15], x#' > conftest.s
25469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25475 then
25476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25477 else
25478 echo "configure: failed program was" >&5
25479 cat conftest.s >&5
25481 rm -f conftest.o conftest.s
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25485 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25486 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25488 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25494 powerpc*-*-*)
25495 case $target in
25496 *-*-aix*) conftest_s=' .machine "pwr5"
25497 .csect .text[PR]
25498 mfcr 3,128';;
25499 *-*-darwin*)
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25501 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25502 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25504 else
25505 gcc_cv_as_machine_directive=no
25506 if test x$gcc_cv_as != x; then
25507 $as_echo ' .machine ppc7400' > conftest.s
25508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25514 then
25515 gcc_cv_as_machine_directive=yes
25516 else
25517 echo "configure: failed program was" >&5
25518 cat conftest.s >&5
25520 rm -f conftest.o conftest.s
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25524 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25526 if test x$gcc_cv_as_machine_directive != xyes; then
25527 echo "*** This target requires an assembler supporting \".machine\"" >&2
25528 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25529 test x$build = x$target && exit 1
25531 conftest_s=' .text
25532 mfcr r3,128';;
25533 *) conftest_s=' .machine power4
25534 .text
25535 mfcr 3,128';;
25536 esac
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25539 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25540 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25541 $as_echo_n "(cached) " >&6
25542 else
25543 gcc_cv_as_powerpc_mfcrf=no
25544 if test $in_tree_gas = yes; then
25545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25546 then gcc_cv_as_powerpc_mfcrf=yes
25548 elif test x$gcc_cv_as != x; then
25549 $as_echo "$conftest_s" > conftest.s
25550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25556 then
25557 gcc_cv_as_powerpc_mfcrf=yes
25558 else
25559 echo "configure: failed program was" >&5
25560 cat conftest.s >&5
25562 rm -f conftest.o conftest.s
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25566 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25567 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25569 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25573 case $target in
25574 *-*-aix*) conftest_s=' .machine "pwr5"
25575 .csect .text[PR]
25576 popcntb 3,3';;
25577 *) conftest_s=' .machine power5
25578 .text
25579 popcntb 3,3';;
25580 esac
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25583 $as_echo_n "checking assembler for popcntb support... " >&6; }
25584 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25586 else
25587 gcc_cv_as_powerpc_popcntb=no
25588 if test $in_tree_gas = yes; then
25589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25590 then gcc_cv_as_powerpc_popcntb=yes
25592 elif test x$gcc_cv_as != x; then
25593 $as_echo "$conftest_s" > conftest.s
25594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25599 test $ac_status = 0; }; }
25600 then
25601 gcc_cv_as_powerpc_popcntb=yes
25602 else
25603 echo "configure: failed program was" >&5
25604 cat conftest.s >&5
25606 rm -f conftest.o conftest.s
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25610 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25611 if test $gcc_cv_as_powerpc_popcntb = yes; then
25613 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25617 case $target in
25618 *-*-aix*) conftest_s=' .machine "pwr5x"
25619 .csect .text[PR]
25620 frin 1,1';;
25621 *) conftest_s=' .machine power5
25622 .text
25623 frin 1,1';;
25624 esac
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25627 $as_echo_n "checking assembler for fp round support... " >&6; }
25628 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 gcc_cv_as_powerpc_fprnd=no
25632 if test $in_tree_gas = yes; then
25633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25634 then gcc_cv_as_powerpc_fprnd=yes
25636 elif test x$gcc_cv_as != x; then
25637 $as_echo "$conftest_s" > conftest.s
25638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25643 test $ac_status = 0; }; }
25644 then
25645 gcc_cv_as_powerpc_fprnd=yes
25646 else
25647 echo "configure: failed program was" >&5
25648 cat conftest.s >&5
25650 rm -f conftest.o conftest.s
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25654 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25655 if test $gcc_cv_as_powerpc_fprnd = yes; then
25657 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25661 case $target in
25662 *-*-aix*) conftest_s=' .machine "pwr6"
25663 .csect .text[PR]
25664 mffgpr 1,3';;
25665 *) conftest_s=' .machine power6
25666 .text
25667 mffgpr 1,3';;
25668 esac
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25671 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25672 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25673 $as_echo_n "(cached) " >&6
25674 else
25675 gcc_cv_as_powerpc_mfpgpr=no
25676 if test $in_tree_gas = yes; then
25677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25678 then gcc_cv_as_powerpc_mfpgpr=yes
25680 elif test x$gcc_cv_as != x; then
25681 $as_echo "$conftest_s" > conftest.s
25682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25688 then
25689 gcc_cv_as_powerpc_mfpgpr=yes
25690 else
25691 echo "configure: failed program was" >&5
25692 cat conftest.s >&5
25694 rm -f conftest.o conftest.s
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25698 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25699 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25701 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25705 case $target in
25706 *-*-aix*) conftest_s=' .csect .text[PR]
25707 LCF..0:
25708 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25709 *-*-darwin*)
25710 conftest_s=' .text
25711 LCF0:
25712 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25713 *) conftest_s=' .text
25714 .LCF0:
25715 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25716 esac
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25719 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25720 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25722 else
25723 gcc_cv_as_powerpc_rel16=no
25724 if test $in_tree_gas = yes; then
25725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25726 then gcc_cv_as_powerpc_rel16=yes
25728 elif test x$gcc_cv_as != x; then
25729 $as_echo "$conftest_s" > conftest.s
25730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25736 then
25737 gcc_cv_as_powerpc_rel16=yes
25738 else
25739 echo "configure: failed program was" >&5
25740 cat conftest.s >&5
25742 rm -f conftest.o conftest.s
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25746 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25747 if test $gcc_cv_as_powerpc_rel16 = yes; then
25749 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25753 case $target in
25754 *-*-aix*) conftest_s=' .machine "pwr6"
25755 .csect .text[PR]
25756 cmpb 3,4,5';;
25757 *) conftest_s=' .machine power6
25758 .text
25759 cmpb 3,4,5';;
25760 esac
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25763 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25764 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25765 $as_echo_n "(cached) " >&6
25766 else
25767 gcc_cv_as_powerpc_cmpb=no
25768 if test $in_tree_gas = yes; then
25769 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25770 then gcc_cv_as_powerpc_cmpb=yes
25772 elif test x$gcc_cv_as != x; then
25773 $as_echo "$conftest_s" > conftest.s
25774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779 test $ac_status = 0; }; }
25780 then
25781 gcc_cv_as_powerpc_cmpb=yes
25782 else
25783 echo "configure: failed program was" >&5
25784 cat conftest.s >&5
25786 rm -f conftest.o conftest.s
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25790 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25791 if test $gcc_cv_as_powerpc_cmpb = yes; then
25793 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25797 case $target in
25798 *-*-aix*) conftest_s=' .machine "pwr6"
25799 .csect .text[PR]
25800 dadd 1,2,3';;
25801 *) conftest_s=' .machine power6
25802 .text
25803 dadd 1,2,3';;
25804 esac
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25807 $as_echo_n "checking assembler for decimal float support... " >&6; }
25808 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_powerpc_dfp=no
25812 if test $in_tree_gas = yes; then
25813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25814 then gcc_cv_as_powerpc_dfp=yes
25816 elif test x$gcc_cv_as != x; then
25817 $as_echo "$conftest_s" > conftest.s
25818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823 test $ac_status = 0; }; }
25824 then
25825 gcc_cv_as_powerpc_dfp=yes
25826 else
25827 echo "configure: failed program was" >&5
25828 cat conftest.s >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25834 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25835 if test $gcc_cv_as_powerpc_dfp = yes; then
25837 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25841 case $target in
25842 *-*-aix*) conftest_s=' .machine "pwr7"
25843 .csect .text[PR]
25844 lxvd2x 1,2,3';;
25845 *) conftest_s=' .machine power7
25846 .text
25847 lxvd2x 1,2,3';;
25848 esac
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25851 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25852 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_powerpc_vsx=no
25856 if test $in_tree_gas = yes; then
25857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25858 then gcc_cv_as_powerpc_vsx=yes
25860 elif test x$gcc_cv_as != x; then
25861 $as_echo "$conftest_s" > conftest.s
25862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864 (eval $ac_try) 2>&5
25865 ac_status=$?
25866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867 test $ac_status = 0; }; }
25868 then
25869 gcc_cv_as_powerpc_vsx=yes
25870 else
25871 echo "configure: failed program was" >&5
25872 cat conftest.s >&5
25874 rm -f conftest.o conftest.s
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25878 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25879 if test $gcc_cv_as_powerpc_vsx = yes; then
25881 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25885 case $target in
25886 *-*-aix*) conftest_s=' .machine "pwr7"
25887 .csect .text[PR]
25888 popcntd 3,3';;
25889 *) conftest_s=' .machine power7
25890 .text
25891 popcntd 3,3';;
25892 esac
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25895 $as_echo_n "checking assembler for popcntd support... " >&6; }
25896 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_powerpc_popcntd=no
25900 if test $in_tree_gas = yes; then
25901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25902 then gcc_cv_as_powerpc_popcntd=yes
25904 elif test x$gcc_cv_as != x; then
25905 $as_echo "$conftest_s" > conftest.s
25906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25912 then
25913 gcc_cv_as_powerpc_popcntd=yes
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25922 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25923 if test $gcc_cv_as_powerpc_popcntd = yes; then
25925 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25929 case $target in
25930 *-*-aix*) conftest_s=' .machine "pwr8"
25931 .csect .text[PR]';;
25932 *) conftest_s=' .machine power8
25933 .text';;
25934 esac
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25937 $as_echo_n "checking assembler for power8 support... " >&6; }
25938 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_powerpc_power8=no
25942 if test $in_tree_gas = yes; then
25943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25944 then gcc_cv_as_powerpc_power8=yes
25946 elif test x$gcc_cv_as != x; then
25947 $as_echo "$conftest_s" > conftest.s
25948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953 test $ac_status = 0; }; }
25954 then
25955 gcc_cv_as_powerpc_power8=yes
25956 else
25957 echo "configure: failed program was" >&5
25958 cat conftest.s >&5
25960 rm -f conftest.o conftest.s
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25964 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25965 if test $gcc_cv_as_powerpc_power8 = yes; then
25967 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25971 case $target in
25972 *-*-aix*) conftest_s=' .csect .text[PR]
25973 lwsync';;
25974 *) conftest_s=' .text
25975 lwsync';;
25976 esac
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25979 $as_echo_n "checking assembler for lwsync support... " >&6; }
25980 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_powerpc_lwsync=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25986 then gcc_cv_as_powerpc_lwsync=yes
25988 elif test x$gcc_cv_as != x; then
25989 $as_echo "$conftest_s" > conftest.s
25990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25996 then
25997 gcc_cv_as_powerpc_lwsync=yes
25998 else
25999 echo "configure: failed program was" >&5
26000 cat conftest.s >&5
26002 rm -f conftest.o conftest.s
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26006 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26007 if test $gcc_cv_as_powerpc_lwsync = yes; then
26009 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26013 case $target in
26014 *-*-aix*) conftest_s=' .machine "476"
26015 .csect .text[PR]
26016 dci 0';;
26017 *) conftest_s=' .machine "476"
26018 .text
26019 dci 0';;
26020 esac
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26023 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26024 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26026 else
26027 gcc_cv_as_powerpc_dci=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26030 then gcc_cv_as_powerpc_dci=yes
26032 elif test x$gcc_cv_as != x; then
26033 $as_echo "$conftest_s" > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_powerpc_dci=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26050 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26051 if test $gcc_cv_as_powerpc_dci = yes; then
26053 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26059 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 gcc_cv_as_powerpc_gnu_attribute=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26065 then gcc_cv_as_powerpc_gnu_attribute=yes
26067 elif test x$gcc_cv_as != x; then
26068 $as_echo '.gnu_attribute 4,1' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26075 then
26076 gcc_cv_as_powerpc_gnu_attribute=yes
26077 else
26078 echo "configure: failed program was" >&5
26079 cat conftest.s >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26085 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26086 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26088 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26093 $as_echo_n "checking assembler for tls marker support... " >&6; }
26094 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26096 else
26097 gcc_cv_as_powerpc_tls_markers=no
26098 if test $in_tree_gas = yes; then
26099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26100 then gcc_cv_as_powerpc_tls_markers=yes
26102 elif test x$gcc_cv_as != x; then
26103 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26109 test $ac_status = 0; }; }
26110 then
26111 gcc_cv_as_powerpc_tls_markers=yes
26112 else
26113 echo "configure: failed program was" >&5
26114 cat conftest.s >&5
26116 rm -f conftest.o conftest.s
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26120 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26121 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26123 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26127 case $target in
26128 *-*-aix*)
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26130 $as_echo_n "checking assembler for .ref support... " >&6; }
26131 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26134 gcc_cv_as_aix_ref=no
26135 if test $in_tree_gas = yes; then
26136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26137 then gcc_cv_as_aix_ref=yes
26139 elif test x$gcc_cv_as != x; then
26140 $as_echo ' .csect stuff[rw]
26141 stuff:
26142 .long 1
26143 .extern sym
26144 .ref sym
26145 ' > conftest.s
26146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26151 test $ac_status = 0; }; }
26152 then
26153 gcc_cv_as_aix_ref=yes
26154 else
26155 echo "configure: failed program was" >&5
26156 cat conftest.s >&5
26158 rm -f conftest.o conftest.s
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26162 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26163 if test $gcc_cv_as_aix_ref = yes; then
26165 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26169 esac
26172 mips*-*-*)
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26174 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26175 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_mips_explicit_relocs=no
26179 if test $in_tree_gas = yes; then
26180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26181 then gcc_cv_as_mips_explicit_relocs=yes
26183 elif test x$gcc_cv_as != x; then
26184 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; }
26191 then
26192 gcc_cv_as_mips_explicit_relocs=yes
26193 else
26194 echo "configure: failed program was" >&5
26195 cat conftest.s >&5
26197 rm -f conftest.o conftest.s
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26201 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26202 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26203 if test x$target_cpu_default = x
26204 then target_cpu_default=MASK_EXPLICIT_RELOCS
26205 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26209 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26210 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26212 else
26213 gcc_cv_as_mips_no_shared=no
26214 if test $in_tree_gas = yes; then
26215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26216 then gcc_cv_as_mips_no_shared=yes
26218 elif test x$gcc_cv_as != x; then
26219 $as_echo 'nop' > conftest.s
26220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; }
26226 then
26227 gcc_cv_as_mips_no_shared=yes
26228 else
26229 echo "configure: failed program was" >&5
26230 cat conftest.s >&5
26232 rm -f conftest.o conftest.s
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26236 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26237 if test $gcc_cv_as_mips_no_shared = yes; then
26239 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26244 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26245 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 gcc_cv_as_mips_gnu_attribute=no
26249 if test $in_tree_gas = yes; then
26250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26251 then gcc_cv_as_mips_gnu_attribute=yes
26253 elif test x$gcc_cv_as != x; then
26254 $as_echo '.gnu_attribute 4,1' > conftest.s
26255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26260 test $ac_status = 0; }; }
26261 then
26262 gcc_cv_as_mips_gnu_attribute=yes
26263 else
26264 echo "configure: failed program was" >&5
26265 cat conftest.s >&5
26267 rm -f conftest.o conftest.s
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26271 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26272 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26274 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26279 $as_echo_n "checking assembler for .module support... " >&6; }
26280 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26283 gcc_cv_as_mips_dot_module=no
26284 if test x$gcc_cv_as != x; then
26285 $as_echo '.module mips2
26286 .module fp=xx' > conftest.s
26287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26292 test $ac_status = 0; }; }
26293 then
26294 gcc_cv_as_mips_dot_module=yes
26295 else
26296 echo "configure: failed program was" >&5
26297 cat conftest.s >&5
26299 rm -f conftest.o conftest.s
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26303 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26304 if test $gcc_cv_as_mips_dot_module = yes; then
26306 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26309 if test x$gcc_cv_as_mips_dot_module = xno \
26310 && test x$with_fp_32 != x; then
26311 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26315 $as_echo_n "checking assembler for .micromips support... " >&6; }
26316 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 gcc_cv_as_micromips_support=no
26320 if test x$gcc_cv_as != x; then
26321 $as_echo '.set micromips' > conftest.s
26322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327 test $ac_status = 0; }; }
26328 then
26329 gcc_cv_as_micromips_support=yes
26330 else
26331 echo "configure: failed program was" >&5
26332 cat conftest.s >&5
26334 rm -f conftest.o conftest.s
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26338 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26339 if test $gcc_cv_as_micromips_support = yes; then
26341 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26346 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26347 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_mips_dtprelword=no
26351 if test $in_tree_gas = yes; then
26352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26353 then gcc_cv_as_mips_dtprelword=yes
26355 elif test x$gcc_cv_as != x; then
26356 $as_echo '.section .tdata,"awT",@progbits
26358 .word 2
26359 .text
26360 .dtprelword x+0x8000' > conftest.s
26361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26367 then
26368 gcc_cv_as_mips_dtprelword=yes
26369 else
26370 echo "configure: failed program was" >&5
26371 cat conftest.s >&5
26373 rm -f conftest.o conftest.s
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26377 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26378 if test $gcc_cv_as_mips_dtprelword = yes; then
26380 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26385 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26386 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 gcc_cv_as_mips_dspr1_mult=no
26390 if test x$gcc_cv_as != x; then
26391 $as_echo ' .set mips32r2
26392 .set nodspr2
26393 .set dsp
26394 madd $ac3,$4,$5
26395 maddu $ac3,$4,$5
26396 msub $ac3,$4,$5
26397 msubu $ac3,$4,$5
26398 mult $ac3,$4,$5
26399 multu $ac3,$4,$5' > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }
26406 then
26407 gcc_cv_as_mips_dspr1_mult=yes
26408 else
26409 echo "configure: failed program was" >&5
26410 cat conftest.s >&5
26412 rm -f conftest.o conftest.s
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26416 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26417 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26419 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26424 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26425 gcc_cv_as_ld_jalr_reloc=no
26426 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26427 if test $in_tree_ld = yes ; then
26428 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 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_as_ld_jalr_reloc=yes
26432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26433 echo ' .ent x' > conftest.s
26434 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26435 echo ' lw $25,%call16(y)($28)' >> conftest.s
26436 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26437 echo '1: jalr $25' >> conftest.s
26438 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26439 echo '1: jalr $25' >> conftest.s
26440 echo ' .end x' >> conftest.s
26441 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26442 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26443 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26444 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26445 gcc_cv_as_ld_jalr_reloc=yes
26448 rm -f conftest.*
26451 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26452 if test x$target_cpu_default = x; then
26453 target_cpu_default=MASK_RELAX_PIC_CALLS
26454 else
26455 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26459 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26462 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26463 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26464 $as_echo_n "(cached) " >&6
26465 else
26466 gcc_cv_ld_mips_personality_relaxation=no
26467 if test $in_tree_ld = yes ; then
26468 if test "$gcc_cv_gld_major_version" -eq 2 \
26469 -a "$gcc_cv_gld_minor_version" -ge 21 \
26470 -o "$gcc_cv_gld_major_version" -gt 2; then
26471 gcc_cv_ld_mips_personality_relaxation=yes
26473 elif test x$gcc_cv_as != x \
26474 -a x$gcc_cv_ld != x \
26475 -a x$gcc_cv_readelf != x ; then
26476 cat > conftest.s <<EOF
26477 .cfi_startproc
26478 .cfi_personality 0x80,indirect_ptr
26479 .ent test
26480 test:
26482 .end test
26483 .cfi_endproc
26485 .section .data,"aw",@progbits
26486 indirect_ptr:
26487 .dc.a personality
26489 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26490 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26491 if $gcc_cv_readelf -d conftest 2>&1 \
26492 | grep TEXTREL > /dev/null 2>&1; then
26494 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26495 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26497 else
26498 gcc_cv_ld_mips_personality_relaxation=yes
26502 rm -f conftest.s conftest.o conftest
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26505 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26506 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26508 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26513 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26514 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26517 gcc_cv_as_mips_nan=no
26518 if test x$gcc_cv_as != x; then
26519 $as_echo '' > conftest.s
26520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26522 (eval $ac_try) 2>&5
26523 ac_status=$?
26524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26525 test $ac_status = 0; }; }
26526 then
26527 gcc_cv_as_mips_nan=yes
26528 else
26529 echo "configure: failed program was" >&5
26530 cat conftest.s >&5
26532 rm -f conftest.o conftest.s
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26536 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26537 if test $gcc_cv_as_mips_nan = yes; then
26539 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26542 if test x$gcc_cv_as_mips_nan = xno \
26543 && test x$with_nan != x; then
26544 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26547 esac
26549 # Mips and HP-UX need the GNU assembler.
26550 # Linux on IA64 might be able to use the Intel assembler.
26552 case "$target" in
26553 mips*-*-* | *-*-hpux* )
26554 if test x$gas_flag = xyes \
26555 || test x"$host" != x"$build" \
26556 || test ! -x "$gcc_cv_as" \
26557 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26559 else
26560 echo "*** This configuration requires the GNU assembler" >&2
26561 exit 1
26564 esac
26566 # ??? Not all targets support dwarf2 debug_line, even within a version
26567 # of gas. Moreover, we need to emit a valid instruction to trigger any
26568 # info to the output file. So, as supported targets are added to gas 2.11,
26569 # add some instruction here to (also) show we expect this might work.
26570 # ??? Once 2.11 is released, probably need to add first known working
26571 # version to the per-target configury.
26572 case "$cpu_type" in
26573 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26574 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26575 | visium | xstormy16 | xtensa)
26576 insn="nop"
26578 ia64 | s390)
26579 insn="nop 0"
26581 mmix)
26582 insn="swym 0"
26584 esac
26585 if test x"$insn" != x; then
26586 conftest_s="\
26587 .file 1 \"conftest.s\"
26588 .loc 1 3 0
26589 $insn"
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26591 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26592 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26593 $as_echo_n "(cached) " >&6
26594 else
26595 gcc_cv_as_dwarf2_debug_line=no
26596 if test $in_tree_gas = yes; then
26597 if test $in_tree_gas_is_elf = yes \
26598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26599 then gcc_cv_as_dwarf2_debug_line=yes
26601 elif test x$gcc_cv_as != x; then
26602 $as_echo "$conftest_s" > conftest.s
26603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608 test $ac_status = 0; }; }
26609 then
26610 if test x$gcc_cv_objdump != x \
26611 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26612 | grep debug_line > /dev/null 2>&1; then
26613 gcc_cv_as_dwarf2_debug_line=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26623 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26626 # The .debug_line file table must be in the exact order that
26627 # we specified the files, since these indices are also used
26628 # by DW_AT_decl_file. Approximate this test by testing if
26629 # the assembler bitches if the same index is assigned twice.
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26631 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26632 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_dwarf2_file_buggy=no
26636 if test x$gcc_cv_as != x; then
26637 $as_echo ' .file 1 "foo.s"
26638 .file 1 "bar.s"' > conftest.s
26639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26645 then
26646 gcc_cv_as_dwarf2_file_buggy=yes
26647 else
26648 echo "configure: failed program was" >&5
26649 cat conftest.s >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26655 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26658 if test $gcc_cv_as_dwarf2_debug_line = yes \
26659 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26661 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26666 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26667 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26668 $as_echo_n "(cached) " >&6
26669 else
26670 gcc_cv_as_gdwarf2_flag=no
26671 if test $in_tree_gas = yes; then
26672 if test $in_tree_gas_is_elf = yes \
26673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26674 then gcc_cv_as_gdwarf2_flag=yes
26676 elif test x$gcc_cv_as != x; then
26677 $as_echo "$insn" > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_gdwarf2_flag=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26694 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26695 if test $gcc_cv_as_gdwarf2_flag = yes; then
26697 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26702 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26703 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26704 $as_echo_n "(cached) " >&6
26705 else
26706 gcc_cv_as_gstabs_flag=no
26707 if test $in_tree_gas = yes; then
26708 if test $in_tree_gas_is_elf = yes \
26709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26710 then gcc_cv_as_gstabs_flag=yes
26712 elif test x$gcc_cv_as != x; then
26713 $as_echo "$insn" > conftest.s
26714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26716 (eval $ac_try) 2>&5
26717 ac_status=$?
26718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26719 test $ac_status = 0; }; }
26720 then
26721 gcc_cv_as_gstabs_flag=yes
26722 else
26723 echo "configure: failed program was" >&5
26724 cat conftest.s >&5
26726 rm -f conftest.o conftest.s
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26730 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26731 if test $gcc_cv_as_gstabs_flag = yes; then
26733 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26738 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26739 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26740 $as_echo_n "(cached) " >&6
26741 else
26742 gcc_cv_as_debug_prefix_map_flag=no
26743 if test $in_tree_gas = yes; then
26744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26745 then gcc_cv_as_debug_prefix_map_flag=yes
26747 elif test x$gcc_cv_as != x; then
26748 $as_echo "$insn" > conftest.s
26749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26754 test $ac_status = 0; }; }
26755 then
26756 gcc_cv_as_debug_prefix_map_flag=yes
26757 else
26758 echo "configure: failed program was" >&5
26759 cat conftest.s >&5
26761 rm -f conftest.o conftest.s
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26765 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26766 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26768 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26774 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26775 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26777 else
26778 gcc_cv_as_compress_debug=no
26779 if test x$gcc_cv_as != x; then
26780 $as_echo '' > conftest.s
26781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26787 then
26788 # gas compiled without zlib cannot compress debug sections and warns
26789 # about it, but still exits successfully. So check for this, too.
26790 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26791 then
26792 gcc_cv_as_compress_debug=0
26793 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26794 then
26795 gcc_cv_as_compress_debug=1
26796 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26797 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26798 else
26799 gcc_cv_as_compress_debug=0
26800 # FIXME: Future gas versions will support ELF gABI style via
26801 # --compress-debug-sections[=type].
26803 else
26804 echo "configure: failed program was" >&5
26805 cat conftest.s >&5
26807 rm -f conftest.o conftest.s
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26811 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26814 cat >>confdefs.h <<_ACEOF
26815 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26816 _ACEOF
26819 cat >>confdefs.h <<_ACEOF
26820 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26821 _ACEOF
26824 cat >>confdefs.h <<_ACEOF
26825 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26826 _ACEOF
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26830 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26831 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_as_lcomm_with_alignment=no
26835 if test x$gcc_cv_as != x; then
26836 $as_echo '.lcomm bar,4,16' > conftest.s
26837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26839 (eval $ac_try) 2>&5
26840 ac_status=$?
26841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842 test $ac_status = 0; }; }
26843 then
26844 gcc_cv_as_lcomm_with_alignment=yes
26845 else
26846 echo "configure: failed program was" >&5
26847 cat conftest.s >&5
26849 rm -f conftest.o conftest.s
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26853 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26854 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26856 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26860 if test x$with_sysroot = x && test x$host = x$target \
26861 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26862 && test "$prefix" != "NONE"; then
26864 cat >>confdefs.h <<_ACEOF
26865 #define PREFIX_INCLUDE_DIR "$prefix/include"
26866 _ACEOF
26870 # Determine the version of glibc, if any, used on the target.
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26872 $as_echo_n "checking for target glibc version... " >&6; }
26874 # Check whether --with-glibc-version was given.
26875 if test "${with_glibc_version+set}" = set; then :
26876 withval=$with_glibc_version;
26877 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26878 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26879 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26880 else
26881 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26883 else
26885 glibc_version_major=0
26886 glibc_version_minor=0
26887 if test -f $target_header_dir/features.h \
26888 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26889 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26890 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26891 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26896 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26898 cat >>confdefs.h <<_ACEOF
26899 #define TARGET_GLIBC_MAJOR $glibc_version_major
26900 _ACEOF
26903 cat >>confdefs.h <<_ACEOF
26904 #define TARGET_GLIBC_MINOR $glibc_version_minor
26905 _ACEOF
26908 # Check whether --enable-gnu-unique-object was given.
26909 if test "${enable_gnu_unique_object+set}" = set; then :
26910 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26911 yes | no) ;;
26912 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26913 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26914 esac
26915 else
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26917 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26918 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26919 $as_echo_n "(cached) " >&6
26920 else
26921 gcc_cv_as_gnu_unique_object=no
26922 if test $in_tree_gas = yes; then
26923 if test $in_tree_gas_is_elf = yes \
26924 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26925 then gcc_cv_as_gnu_unique_object=yes
26927 elif test x$gcc_cv_as != x; then
26928 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26934 test $ac_status = 0; }; }
26935 then
26936 gcc_cv_as_gnu_unique_object=yes
26937 else
26938 echo "configure: failed program was" >&5
26939 cat conftest.s >&5
26941 rm -f conftest.o conftest.s
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26945 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26946 if test $gcc_cv_as_gnu_unique_object = yes; then
26947 # We need to unquote above to to use the definition from config.gcc.
26948 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26950 if test $glibc_version_major -gt 2 \
26951 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26952 enable_gnu_unique_object=yes
26958 if test x$enable_gnu_unique_object = xyes; then
26960 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26965 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26966 if test "${gcc_cv_as_line_zero+set}" = set; then :
26967 $as_echo_n "(cached) " >&6
26968 else
26969 gcc_cv_as_line_zero=no
26970 if test $in_tree_gas = yes; then
26971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26972 then gcc_cv_as_line_zero=yes
26974 elif test "x$gcc_cv_as" != x; then
26975 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26976 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; } &&
26982 test "x`cat conftest.out`" = x
26983 then
26984 gcc_cv_as_line_zero=yes
26985 else
26986 echo "configure: failed program was" >&5
26987 cat conftest.s >&5
26988 echo "configure: error output was" >&5
26989 cat conftest.out >&5
26991 rm -f conftest.o conftest.s conftest.out
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26995 $as_echo "$gcc_cv_as_line_zero" >&6; }
26996 if test "x$gcc_cv_as_line_zero" = xyes; then
26998 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27003 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27004 gcc_cv_ld_eh_frame_hdr=no
27005 if test $in_tree_ld = yes ; then
27006 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 \
27007 && test $in_tree_ld_is_elf = yes; then
27008 gcc_cv_ld_eh_frame_hdr=yes
27010 elif test x$gcc_cv_ld != x; then
27011 if echo "$ld_ver" | grep GNU > /dev/null; then
27012 # Check if linker supports --eh-frame-hdr option
27013 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27014 gcc_cv_ld_eh_frame_hdr=yes
27016 else
27017 case "$target" in
27018 *-*-solaris2*)
27019 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27020 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27021 gcc_cv_ld_eh_frame_hdr=yes
27024 esac
27028 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27030 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27034 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27037 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27038 gcc_cv_ld_eh_frame_ciev3=no
27039 if test $in_tree_ld = yes ; then
27040 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 \
27041 && test $in_tree_ld_is_elf = yes; then
27042 gcc_cv_ld_eh_frame_ciev3=yes
27044 elif test x$gcc_cv_ld != x; then
27045 if echo "$ld_ver" | grep GNU > /dev/null; then
27046 gcc_cv_ld_eh_frame_ciev3=yes
27047 if test 0"$ld_date" -lt 20040513; then
27048 if test -n "$ld_date"; then
27049 # If there was date string, but was earlier than 2004-05-13, fail
27050 gcc_cv_ld_eh_frame_ciev3=no
27051 elif test "$ld_vers_major" -lt 2; then
27052 gcc_cv_ld_eh_frame_ciev3=no
27053 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27054 gcc_cv_ld_eh_frame_ciev3=no
27057 else
27058 case "$target" in
27059 *-*-solaris2*)
27060 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27061 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27062 gcc_cv_ld_eh_frame_ciev3=yes
27065 esac
27069 cat >>confdefs.h <<_ACEOF
27070 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27071 _ACEOF
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27074 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27077 $as_echo_n "checking linker position independent executable support... " >&6; }
27078 gcc_cv_ld_pie=no
27079 if test $in_tree_ld = yes ; then
27080 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 \
27081 && test $in_tree_ld_is_elf = yes; then
27082 gcc_cv_ld_pie=yes
27084 elif test x$gcc_cv_ld != x; then
27085 # Check if linker supports -pie option
27086 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27087 gcc_cv_ld_pie=yes
27090 if test x"$gcc_cv_ld_pie" = xyes; then
27092 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27096 $as_echo "$gcc_cv_ld_pie" >&6; }
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27099 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27100 gcc_cv_ld_pie_copyreloc=no
27101 if test $gcc_cv_ld_pie = yes ; then
27102 if test $in_tree_ld = yes ; then
27103 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27104 gcc_cv_ld_pie_copyreloc=yes
27106 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27107 # Check if linker supports -pie option with copy reloc
27108 case "$target" in
27109 i?86-*-linux* | x86_64-*-linux*)
27110 cat > conftest1.s <<EOF
27111 .globl a_glob
27112 .data
27113 .type a_glob, @object
27114 .size a_glob, 4
27115 a_glob:
27116 .long 2
27118 cat > conftest2.s <<EOF
27119 .text
27120 .globl main
27121 .type main, @function
27122 main:
27123 movl %eax, a_glob(%rip)
27124 .size main, .-main
27125 .globl ptr
27126 .section .data.rel,"aw",@progbits
27127 .type ptr, @object
27128 ptr:
27129 .quad a_glob
27131 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27132 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27133 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27134 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27135 gcc_cv_ld_pie_copyreloc=yes
27137 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27139 esac
27143 cat >>confdefs.h <<_ACEOF
27144 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27145 _ACEOF
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27148 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27151 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27152 gcc_cv_ld_eh_gc_sections=no
27153 if test $in_tree_ld = yes ; then
27154 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 \
27155 && test $in_tree_ld_is_elf = yes; then
27156 gcc_cv_ld_eh_gc_sections=yes
27158 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27159 cat > conftest.s <<EOF
27160 .section .text
27161 .globl _start
27162 .type _start, @function
27163 _start:
27164 .long foo
27165 .size _start, .-_start
27166 .section .text.foo,"ax",@progbits
27167 .type foo, @function
27168 foo:
27169 .long 0
27170 .size foo, .-foo
27171 .section .gcc_except_table.foo,"a",@progbits
27172 .L0:
27173 .long 0
27174 .section .eh_frame,"a",@progbits
27175 .long .L0
27177 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27178 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27179 | grep "gc-sections option ignored" > /dev/null; then
27180 gcc_cv_ld_eh_gc_sections=no
27181 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27182 | grep gcc_except_table > /dev/null; then
27183 gcc_cv_ld_eh_gc_sections=yes
27184 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27185 if test x$gcc_cv_as_comdat_group != xyes; then
27186 gcc_cv_ld_eh_gc_sections=no
27187 cat > conftest.s <<EOF
27188 .section .text
27189 .globl _start
27190 .type _start, @function
27191 _start:
27192 .long foo
27193 .size _start, .-_start
27194 .section .gnu.linkonce.t.foo,"ax",@progbits
27195 .type foo, @function
27196 foo:
27197 .long 0
27198 .size foo, .-foo
27199 .section .gcc_except_table.foo,"a",@progbits
27200 .L0:
27201 .long 0
27202 .section .eh_frame,"a",@progbits
27203 .long .L0
27205 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27206 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27207 | grep "gc-sections option ignored" > /dev/null; then
27208 gcc_cv_ld_eh_gc_sections=no
27209 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27210 | grep gcc_except_table > /dev/null; then
27211 gcc_cv_ld_eh_gc_sections=yes
27217 rm -f conftest.s conftest.o conftest
27219 case "$target" in
27220 hppa*-*-linux*)
27221 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27222 gcc_cv_ld_eh_gc_sections=no
27224 esac
27225 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27227 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27231 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27234 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27235 gcc_cv_ld_eh_gc_sections_bug=no
27236 if test $in_tree_ld = yes ; then
27237 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 \
27238 && test $in_tree_ld_is_elf = yes; then
27239 gcc_cv_ld_eh_gc_sections_bug=yes
27241 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
27242 gcc_cv_ld_eh_gc_sections_bug=yes
27243 cat > conftest.s <<EOF
27244 .section .text
27245 .globl _start
27246 .type _start, @function
27247 _start:
27248 .long foo
27249 .size _start, .-_start
27250 .section .text.startup.foo,"ax",@progbits
27251 .type foo, @function
27252 foo:
27253 .long 0
27254 .size foo, .-foo
27255 .section .gcc_except_table.foo,"a",@progbits
27256 .L0:
27257 .long 0
27258 .section .eh_frame,"a",@progbits
27259 .long .L0
27261 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27262 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27263 | grep "gc-sections option ignored" > /dev/null; then
27265 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27266 | grep gcc_except_table > /dev/null; then
27267 gcc_cv_ld_eh_gc_sections_bug=no
27270 rm -f conftest.s conftest.o conftest
27272 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27274 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27278 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27281 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27282 # gold/gld support compressed debug sections since binutils 2.19/2.21
27283 if test $in_tree_ld = yes ; then
27284 gcc_cv_ld_compress_debug=0
27285 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27286 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27287 gcc_cv_ld_compress_debug=2
27288 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27289 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27290 && test $in_tree_ld_is_elf = yes; then
27291 gcc_cv_ld_compress_debug=1
27293 elif echo "$ld_ver" | grep GNU > /dev/null; then
27294 gcc_cv_ld_compress_debug=1
27295 if test 0"$ld_date" -lt 20050308; then
27296 if test -n "$ld_date"; then
27297 # If there was date string, but was earlier than 2005-03-08, fail
27298 gcc_cv_ld_compress_debug=0
27299 elif test "$ld_vers_major" -lt 2; then
27300 gcc_cv_ld_compress_debug=0
27301 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27302 gcc_cv_ld_compress_debug=0
27305 if test $ld_is_gold = yes; then
27306 gcc_cv_ld_compress_debug=2
27307 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27309 else
27310 case "${target}" in
27311 *-*-solaris2*)
27312 # Introduced in Solaris 11.2.
27313 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27314 gcc_cv_ld_compress_debug=3
27315 gcc_cv_ld_compress_debug_option="-z compress-sections"
27316 else
27317 gcc_cv_ld_compress_debug=0
27321 # Assume linkers other than GNU ld don't support compessed debug
27322 # sections.
27323 gcc_cv_ld_compress_debug=0
27325 esac
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27330 _ACEOF
27333 cat >>confdefs.h <<_ACEOF
27334 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27335 _ACEOF
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27338 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27340 # --------
27341 # UNSORTED
27342 # --------
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27345 $as_echo_n "checking linker --as-needed support... " >&6; }
27346 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27347 $as_echo_n "(cached) " >&6
27348 else
27349 gcc_cv_ld_as_needed=no
27350 gcc_cv_ld_as_needed_option='--as-needed'
27351 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27352 if test $in_tree_ld = yes ; then
27353 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 \
27354 && test $in_tree_ld_is_elf = yes; then
27355 gcc_cv_ld_as_needed=yes
27357 elif test x$gcc_cv_ld != x; then
27358 # Check if linker supports --as-needed and --no-as-needed options
27359 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27360 gcc_cv_ld_as_needed=yes
27361 else
27362 case "$target" in
27363 # Solaris 2 ld always supports -z ignore/-z record.
27364 *-*-solaris2*)
27365 gcc_cv_ld_as_needed=yes
27366 gcc_cv_ld_as_needed_option="-z ignore"
27367 gcc_cv_ld_no_as_needed_option="-z record"
27369 esac
27372 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27373 # dl_iterate_phdr, i.e. since Solaris 11.
27374 case "$target" in
27375 *-*-solaris2.1[1-9]*)
27376 case "$target" in
27377 i?86-*-* | x86_64-*-*)
27378 if echo "$ld_ver" | grep GNU > /dev/null; then
27379 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27380 gcc_cv_ld_as_needed=no
27383 esac
27385 *-*-solaris2*)
27386 gcc_cv_ld_as_needed=no
27388 esac
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27392 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27393 if test x"$gcc_cv_ld_as_needed" = xyes; then
27395 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27398 cat >>confdefs.h <<_ACEOF
27399 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27400 _ACEOF
27403 cat >>confdefs.h <<_ACEOF
27404 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27405 _ACEOF
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27410 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27411 saved_LDFLAGS="$LDFLAGS"
27412 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27413 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27415 /* end confdefs.h. */
27416 int main(void) {return 0;}
27417 _ACEOF
27418 if ac_fn_c_try_link "$LINENO"; then :
27419 gcc_cv_ld_clearcap=yes; break
27420 else
27421 gcc_cv_ld_clearcap=no
27423 rm -f core conftest.err conftest.$ac_objext \
27424 conftest$ac_exeext conftest.$ac_ext
27425 done
27426 LDFLAGS="$saved_LDFLAGS"
27427 if test "x$gcc_cv_ld_clearcap" = xyes; then
27429 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27431 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27435 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27437 case "$target:$tm_file" in
27438 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27439 case "$target" in
27440 *le-*-linux*)
27441 emul_name="-melf64lppc"
27443 *-*-linux*)
27444 emul_name="-melf64ppc"
27446 *-*-freebsd*)
27447 emul_name="-melf64ppc_fbsd"
27449 esac
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27451 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27452 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27453 $as_echo_n "(cached) " >&6
27454 else
27455 gcc_cv_ld_no_dot_syms=no
27456 if test x"$ld_is_gold" = xyes; then
27457 gcc_cv_ld_no_dot_syms=yes
27458 elif test $in_tree_ld = yes ; then
27459 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
27460 gcc_cv_ld_no_dot_syms=yes
27462 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27463 cat > conftest1.s <<EOF
27464 .text
27465 bl .foo
27467 cat > conftest2.s <<EOF
27468 .section ".opd","aw"
27469 .align 3
27470 .globl foo
27471 .type foo,@function
27472 foo:
27473 .quad .LEfoo,.TOC.@tocbase,0
27474 .text
27475 .LEfoo:
27477 .size foo,.-.LEfoo
27479 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27480 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27481 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27482 gcc_cv_ld_no_dot_syms=yes
27484 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27489 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27490 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27492 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27497 $as_echo_n "checking linker large toc support... " >&6; }
27498 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27499 $as_echo_n "(cached) " >&6
27500 else
27501 gcc_cv_ld_large_toc=no
27502 if test x"$ld_is_gold" = xyes; then
27503 gcc_cv_ld_large_toc=yes
27504 elif test $in_tree_ld = yes ; then
27505 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
27506 gcc_cv_ld_large_toc=yes
27508 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27509 cat > conftest.s <<EOF
27510 .section ".tbss","awT",@nobits
27511 .align 3
27512 ie0: .space 8
27513 .global _start
27514 .text
27515 _start:
27516 addis 9,13,ie0@got@tprel@ha
27517 ld 9,ie0@got@tprel@l(9)
27519 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27520 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27521 gcc_cv_ld_large_toc=yes
27523 rm -f conftest conftest.o conftest.s
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27528 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27529 if test x"$gcc_cv_ld_large_toc" = xyes; then
27531 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27536 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27537 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27538 $as_echo_n "(cached) " >&6
27539 else
27540 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27541 cat > conftest.s <<EOF
27542 .global _start
27543 .text
27544 _start:
27545 addis 9,2,x@got@ha
27546 .section .data.rel.ro,"aw",@progbits
27547 .p2align 16
27548 .space 32768
27549 x: .quad .TOC.
27551 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27552 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27553 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27555 rm -f conftest conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27560 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27561 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27563 cat >>confdefs.h <<_ACEOF
27564 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27565 _ACEOF
27569 esac
27571 case "$target" in
27572 *-*-aix*)
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27574 $as_echo_n "checking linker large toc support... " >&6; }
27575 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27576 $as_echo_n "(cached) " >&6
27577 else
27578 gcc_cv_ld_large_toc=no
27579 if test x$gcc_cv_as != x ; then
27580 cat > conftest.s <<EOF
27581 .toc
27582 LC..1:
27583 .tc a[TC],a[RW]
27584 .extern a[RW]
27585 .csect .text[PR]
27586 .largetoctest:
27587 addis 9,LC..1@u(2)
27588 ld 3,LC..1@l(9)
27590 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27591 gcc_cv_ld_large_toc=yes
27593 rm -f conftest conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27598 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27599 if test x"$gcc_cv_ld_large_toc" = xyes; then
27601 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27605 esac
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27608 $as_echo_n "checking linker --build-id support... " >&6; }
27609 if test "${gcc_cv_ld_buildid+set}" = set; then :
27610 $as_echo_n "(cached) " >&6
27611 else
27612 gcc_cv_ld_buildid=no
27613 if test $in_tree_ld = yes ; then
27614 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27615 "$gcc_cv_gld_minor_version" -ge 18 -o \
27616 "$gcc_cv_gld_major_version" -gt 2 \
27617 && test $in_tree_ld_is_elf = yes; then
27618 gcc_cv_ld_buildid=yes
27620 elif test x$gcc_cv_ld != x; then
27621 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27622 gcc_cv_ld_buildid=yes
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27627 $as_echo "$gcc_cv_ld_buildid" >&6; }
27628 if test x"$gcc_cv_ld_buildid" = xyes; then
27630 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27634 # Check whether --enable-linker-build-id was given.
27635 if test "${enable_linker_build_id+set}" = set; then :
27636 enableval=$enable_linker_build_id;
27637 else
27638 enable_linker_build_id=no
27642 if test x"$enable_linker_build_id" = xyes; then
27643 if test x"$gcc_cv_ld_buildid" = xyes; then
27645 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27647 else
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27649 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27653 # In binutils 2.21, GNU ld gained support for new emulations fully
27654 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27656 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27657 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27658 $as_echo_n "(cached) " >&6
27659 else
27660 gcc_cv_ld_sol2_emulation=no
27661 if test $in_tree_ld = yes ; then
27662 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27663 "$gcc_cv_gld_minor_version" -ge 21 -o \
27664 "$gcc_cv_gld_major_version" -gt 2 \
27665 && test $in_tree_ld_is_elf = yes; then
27666 gcc_cv_ld_sol2_emulation=yes
27668 elif test x$gcc_cv_ld != x; then
27669 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27670 grep _sol2 > /dev/null; then
27671 gcc_cv_ld_sol2_emulation=yes
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27676 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27677 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27679 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27684 $as_echo_n "checking linker --sysroot support... " >&6; }
27685 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27686 $as_echo_n "(cached) " >&6
27687 else
27688 gcc_cv_ld_sysroot=no
27689 if test $in_tree_ld = yes ; then
27690 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
27691 gcc_cv_ld_sysroot=yes
27693 elif test x$gcc_cv_ld != x; then
27694 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27695 gcc_cv_ld_sysroot=yes
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27700 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27701 if test x"$gcc_cv_ld_sysroot" = xyes; then
27703 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27707 # Test for stack protector support in target C library.
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27709 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27710 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27711 $as_echo_n "(cached) " >&6
27712 else
27713 gcc_cv_libc_provides_ssp=no
27714 case "$target" in
27715 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27716 # glibc 2.4 and later provides __stack_chk_fail and
27717 # either __stack_chk_guard, or TLS access to stack guard canary.
27719 if test $glibc_version_major -gt 2 \
27720 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27721 gcc_cv_libc_provides_ssp=yes
27722 else
27724 if test -f $target_header_dir/features.h \
27725 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27726 $target_header_dir/features.h > /dev/null; then
27727 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27728 $target_header_dir/features.h > /dev/null && \
27729 test -f $target_header_dir/bits/uClibc_config.h && \
27730 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27731 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27732 gcc_cv_libc_provides_ssp=yes
27734 # all versions of Bionic support stack protector
27735 elif test -f $target_header_dir/sys/cdefs.h \
27736 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27737 $target_header_dir/sys/cdefs.h > /dev/null; then
27738 gcc_cv_libc_provides_ssp=yes
27742 *-*-gnu*)
27743 # Avoid complicated tests (see
27744 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27745 # simply assert that glibc does provide this, which is true for all
27746 # realistically usable GNU/Hurd configurations.
27747 gcc_cv_libc_provides_ssp=yes;;
27748 *-*-darwin* | *-*-freebsd*)
27749 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27750 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27751 gcc_cv_libc_provides_ssp=yes
27752 else
27753 echo "no __stack_chk_fail on this target"
27757 *) gcc_cv_libc_provides_ssp=no ;;
27758 esac
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27761 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27763 if test x$gcc_cv_libc_provides_ssp = xyes; then
27765 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27769 # Test for <sys/sdt.h> on the target.
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27772 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27773 have_sys_sdt_h=no
27774 if test -f $target_header_dir/sys/sdt.h; then
27775 have_sys_sdt_h=yes
27777 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27781 $as_echo "$have_sys_sdt_h" >&6; }
27783 # Check if TFmode long double should be used by default or not.
27784 # Some glibc targets used DFmode long double, but with glibc 2.4
27785 # and later they can use TFmode.
27786 case "$target" in
27787 powerpc*-*-linux* | \
27788 sparc*-*-linux* | \
27789 s390*-*-linux* | \
27790 alpha*-*-linux*)
27792 # Check whether --with-long-double-128 was given.
27793 if test "${with_long_double_128+set}" = set; then :
27794 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27795 else
27797 if test $glibc_version_major -gt 2 \
27798 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27799 gcc_cv_target_ldbl128=yes
27800 else
27802 gcc_cv_target_ldbl128=no
27803 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27804 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27805 && gcc_cv_target_ldbl128=yes
27811 esac
27812 if test x$gcc_cv_target_ldbl128 = xyes; then
27814 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27819 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27820 gcc_cv_target_dl_iterate_phdr=unknown
27821 case "$target" in
27822 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27823 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27824 # libdl there, both complicating its use and breaking compatibility
27825 # between Solaris 10 updates.
27826 *-*-solaris2.1[1-9]*)
27827 # <link.h> needs both a dl_iterate_phdr declaration and support for
27828 # compilation with largefile support.
27829 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27830 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27831 gcc_cv_target_dl_iterate_phdr=yes
27832 else
27833 gcc_cv_target_dl_iterate_phdr=no
27836 *-*-dragonfly* | *-*-freebsd*)
27837 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27838 gcc_cv_target_dl_iterate_phdr=yes
27839 else
27840 gcc_cv_target_dl_iterate_phdr=no
27843 esac
27845 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27847 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27851 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27853 # We no longer support different GC mechanisms. Emit an error if
27854 # the user configures with --with-gc.
27856 # Check whether --with-gc was given.
27857 if test "${with_gc+set}" = set; then :
27858 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27862 # Libraries to use on the host. This will normally be set by the top
27863 # level Makefile. Here we simply capture the value for our Makefile.
27864 if test -z "${HOST_LIBS+set}"; then
27865 HOST_LIBS=
27869 # Use the system's zlib library.
27870 zlibdir=-L../zlib
27871 zlibinc="-I\$(srcdir)/../zlib"
27873 # Check whether --with-system-zlib was given.
27874 if test "${with_system_zlib+set}" = set; then :
27875 withval=$with_system_zlib; zlibdir=
27876 zlibinc=
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27885 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27886 # Check whether --enable-maintainer-mode was given.
27887 if test "${enable_maintainer_mode+set}" = set; then :
27888 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27889 else
27890 maintainer_mode=no
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27895 $as_echo "$maintainer_mode" >&6; }
27897 if test "$maintainer_mode" = "yes"; then
27898 MAINT=''
27899 else
27900 MAINT='#'
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27905 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27906 # Check whether --enable-link-mutex was given.
27907 if test "${enable_link_mutex+set}" = set; then :
27908 enableval=$enable_link_mutex; do_link_mutex=$enableval
27909 else
27910 do_link_mutex=no
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27914 $as_echo "$do_link_mutex" >&6; }
27916 if test "$do_link_mutex" = "yes"; then
27917 DO_LINK_MUTEX=true
27918 else
27919 DO_LINK_MUTEX=false
27923 # --------------
27924 # Language hooks
27925 # --------------
27927 # Make empty files to contain the specs and options for each language.
27928 # Then add #include lines to for a compiler that has specs and/or options.
27930 subdirs=
27931 lang_opt_files=
27932 lang_specs_files=
27933 lang_tree_files=
27934 # These (without "all_") are set in each config-lang.in.
27935 # `language' must be a single word so is spelled singularly.
27936 all_languages=
27937 all_compilers=
27938 all_outputs='Makefile'
27939 # List of language makefile fragments.
27940 all_lang_makefrags=
27941 # Additional files for gengtype
27942 all_gtfiles="$target_gtfiles"
27944 # These are the languages that are set in --enable-languages,
27945 # and are available in the GCC tree.
27946 all_selected_languages=
27948 # Add the language fragments.
27949 # Languages are added via two mechanisms. Some information must be
27950 # recorded in makefile variables, these are defined in config-lang.in.
27951 # We accumulate them and plug them into the main Makefile.
27952 # The other mechanism is a set of hooks for each of the main targets
27953 # like `clean', `install', etc.
27955 language_hooks="Make-hooks"
27957 for lang in ${srcdir}/*/config-lang.in
27959 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27961 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27962 if test "x$lang_alias" = x
27963 then
27964 echo "$lang doesn't set \$language." 1>&2
27965 exit 1
27967 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27968 subdirs="$subdirs $subdir"
27970 # $gcc_subdir is where the gcc integration files are to be found
27971 # for a language, both for internal compiler purposes (compiler
27972 # sources implementing front-end to GCC tree converters), and for
27973 # build infrastructure purposes (Make-lang.in, etc.)
27975 # This will be <subdir> (relative to $srcdir) if a line like
27976 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27977 # is found in <langdir>/config-lang.in, and will remain <langdir>
27978 # otherwise.
27980 # Except for the language alias (fetched above), the regular
27981 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27982 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27983 # only this and the language alias.
27985 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27986 if [ "$gcc_subdir" = "" ]; then
27987 gcc_subdir="$subdir"
27990 case ",$enable_languages," in
27991 *,$lang_alias,*)
27992 all_selected_languages="$all_selected_languages $lang_alias"
27993 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27994 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27997 esac
27999 language=
28000 boot_language=
28001 compilers=
28002 outputs=
28003 gtfiles=
28004 subdir_requires=
28005 . ${srcdir}/$gcc_subdir/config-lang.in
28006 if test "x$language" = x
28007 then
28008 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28009 exit 1
28012 ok=:
28013 case ",$enable_languages," in
28014 *,$lang_alias,*) ;;
28016 for i in $subdir_requires; do
28017 test -f "${srcdir}/$i/config-lang.in" && continue
28018 ok=false
28019 break
28020 done
28022 esac
28023 $ok || continue
28025 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28026 if test -f $srcdir/$gcc_subdir/lang.opt; then
28027 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28028 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28030 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28031 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28033 all_languages="$all_languages $language"
28034 all_compilers="$all_compilers $compilers"
28035 all_outputs="$all_outputs $outputs"
28036 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28037 case ",$enable_languages," in
28038 *,lto,*)
28040 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28042 enable_lto=yes
28045 *) ;;
28046 esac
28047 done
28049 check_languages=
28050 for language in $all_selected_languages
28052 check_languages="$check_languages check-$language"
28053 done
28055 # We link each language in with a set of hooks, reached indirectly via
28056 # lang.${target}. Only do so for selected languages.
28058 rm -f Make-hooks
28059 touch Make-hooks
28060 target_list="all.cross start.encap rest.encap tags \
28061 install-common install-man install-info install-pdf install-html dvi \
28062 pdf html uninstall info man srcextra srcman srcinfo \
28063 mostlyclean clean distclean maintainer-clean install-plugin"
28065 for t in $target_list
28068 for lang in $all_selected_languages
28070 x="$x $lang.$t"
28071 done
28072 echo "lang.$t: $x" >> Make-hooks
28073 done
28075 # --------
28076 # Option include files
28077 # --------
28079 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28080 option_includes="option-includes.mk"
28083 # --------
28084 # UNSORTED
28085 # --------
28087 # Create .gdbinit.
28089 echo "dir ." > .gdbinit
28090 echo "dir ${srcdir}" >> .gdbinit
28091 if test x$gdb_needs_out_file_path = xyes
28092 then
28093 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28095 if test "x$subdirs" != x; then
28096 for s in $subdirs
28098 echo "dir ${srcdir}/$s" >> .gdbinit
28099 done
28101 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28102 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28104 # Put a breakpoint on __asan_report_error to help with debugging buffer
28105 # overflow.
28106 case "$CFLAGS" in
28107 *-fsanitize=address*)
28108 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28110 esac
28112 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28116 # Find a directory in which to install a shared libgcc.
28118 # Check whether --enable-version-specific-runtime-libs was given.
28119 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28120 enableval=$enable_version_specific_runtime_libs;
28124 # Substitute configuration variables
28187 # Echo link setup.
28188 if test x${build} = x${host} ; then
28189 if test x${host} = x${target} ; then
28190 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28191 else
28192 echo "Links are now set up to build a cross-compiler" 1>&2
28193 echo " from ${host} to ${target}." 1>&2
28195 else
28196 if test x${host} = x${target} ; then
28197 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28198 echo " for ${target}." 1>&2
28199 else
28200 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28201 echo " from ${host} to ${target}." 1>&2
28210 if test "x${ISLLIBS}" != "x" ; then
28212 $as_echo "#define HAVE_isl 1" >>confdefs.h
28216 # Check whether isl_schedule_constraints_compute_schedule is available;
28217 # it's new in ISL-0.13.
28218 if test "x${ISLLIBS}" != "x" ; then
28219 saved_CFLAGS="$CFLAGS"
28220 CFLAGS="$CFLAGS $ISLINC"
28221 saved_LIBS="$LIBS"
28222 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28225 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28227 /* end confdefs.h. */
28228 #include <isl/schedule.h>
28230 main ()
28232 isl_schedule_constraints_compute_schedule (NULL);
28234 return 0;
28236 _ACEOF
28237 if ac_fn_c_try_link "$LINENO"; then :
28238 ac_has_isl_schedule_constraints_compute_schedule=yes
28239 else
28240 ac_has_isl_schedule_constraints_compute_schedule=no
28242 rm -f core conftest.err conftest.$ac_objext \
28243 conftest$ac_exeext conftest.$ac_ext
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28245 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28247 LIBS="$saved_LIBS"
28248 CFLAGS="$saved_CFLAGS"
28250 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28252 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28257 # Check for plugin support
28258 # Check whether --enable-plugin was given.
28259 if test "${enable_plugin+set}" = set; then :
28260 enableval=$enable_plugin; enable_plugin=$enableval
28261 else
28262 enable_plugin=yes; default_plugin=yes
28266 pluginlibs=
28268 case "${host}" in
28269 *-*-darwin*)
28270 if test x$build = x$host; then
28271 export_sym_check="nm${exeext} -g"
28272 elif test x$host = x$target; then
28273 export_sym_check="$gcc_cv_nm -g"
28274 else
28275 export_sym_check=
28279 if test x$build = x$host; then
28280 export_sym_check="objdump${exeext} -T"
28281 elif test x$host = x$target; then
28282 export_sym_check="$gcc_cv_objdump -T"
28283 else
28284 export_sym_check=
28287 esac
28289 if test x"$enable_plugin" = x"yes"; then
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28292 $as_echo_n "checking for exported symbols... " >&6; }
28293 if test "x$export_sym_check" != x; then
28294 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28295 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28296 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28297 : # No need to use a flag
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28299 $as_echo "yes" >&6; }
28300 else
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28302 $as_echo "yes" >&6; }
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28304 $as_echo_n "checking for -rdynamic... " >&6; }
28305 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28306 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28307 plugin_rdynamic=yes
28308 pluginlibs="-rdynamic"
28309 else
28310 plugin_rdynamic=no
28311 enable_plugin=no
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28314 $as_echo "$plugin_rdynamic" >&6; }
28316 else
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28318 $as_echo "unable to check" >&6; }
28321 # Check -ldl
28322 saved_LIBS="$LIBS"
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28324 $as_echo_n "checking for library containing dlopen... " >&6; }
28325 if test "${ac_cv_search_dlopen+set}" = set; then :
28326 $as_echo_n "(cached) " >&6
28327 else
28328 ac_func_search_save_LIBS=$LIBS
28329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28330 /* end confdefs.h. */
28332 /* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28335 #ifdef __cplusplus
28336 extern "C"
28337 #endif
28338 char dlopen ();
28340 main ()
28342 return dlopen ();
28344 return 0;
28346 _ACEOF
28347 for ac_lib in '' dl; do
28348 if test -z "$ac_lib"; then
28349 ac_res="none required"
28350 else
28351 ac_res=-l$ac_lib
28352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28354 if ac_fn_c_try_link "$LINENO"; then :
28355 ac_cv_search_dlopen=$ac_res
28357 rm -f core conftest.err conftest.$ac_objext \
28358 conftest$ac_exeext
28359 if test "${ac_cv_search_dlopen+set}" = set; then :
28360 break
28362 done
28363 if test "${ac_cv_search_dlopen+set}" = set; then :
28365 else
28366 ac_cv_search_dlopen=no
28368 rm conftest.$ac_ext
28369 LIBS=$ac_func_search_save_LIBS
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28372 $as_echo "$ac_cv_search_dlopen" >&6; }
28373 ac_res=$ac_cv_search_dlopen
28374 if test "$ac_res" != no; then :
28375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28379 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28380 pluginlibs="$pluginlibs -ldl"
28382 LIBS="$saved_LIBS"
28384 # Check that we can build shared objects with -fPIC -shared
28385 saved_LDFLAGS="$LDFLAGS"
28386 saved_CFLAGS="$CFLAGS"
28387 case "${host}" in
28388 *-*-darwin*)
28389 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28390 CFLAGS="$CFLAGS -fPIC"
28391 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28394 CFLAGS="$CFLAGS -fPIC"
28395 LDFLAGS="$LDFLAGS -fPIC -shared"
28397 esac
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28399 $as_echo_n "checking for -fPIC -shared... " >&6; }
28400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28401 /* end confdefs.h. */
28402 extern int X;
28404 main ()
28406 return X == 0;
28408 return 0;
28410 _ACEOF
28411 if ac_fn_c_try_link "$LINENO"; then :
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28413 $as_echo "yes" >&6; }; have_pic_shared=yes
28414 else
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28416 $as_echo "no" >&6; }; have_pic_shared=no
28418 rm -f core conftest.err conftest.$ac_objext \
28419 conftest$ac_exeext conftest.$ac_ext
28420 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28421 pluginlibs=
28422 enable_plugin=no
28424 LDFLAGS="$saved_LDFLAGS"
28425 CFLAGS="$saved_CFLAGS"
28427 # If plugin support had been requested but not available, fail.
28428 if test x"$enable_plugin" = x"no" ; then
28429 if test x"$default_plugin" != x"yes"; then
28430 as_fn_error "
28431 Building GCC with plugin support requires a host that supports
28432 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28439 if test x"$enable_plugin" = x"yes"; then
28441 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28446 # Enable --enable-host-shared
28447 # Check whether --enable-host-shared was given.
28448 if test "${enable_host_shared+set}" = set; then :
28449 enableval=$enable_host_shared; PICFLAG=-fPIC
28450 else
28451 PICFLAG=
28458 # Check whether --enable-libquadmath-support was given.
28459 if test "${enable_libquadmath_support+set}" = set; then :
28460 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28461 else
28462 ENABLE_LIBQUADMATH_SUPPORT=yes
28465 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28467 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28472 # Specify what hash style to use by default.
28474 # Check whether --with-linker-hash-style was given.
28475 if test "${with_linker_hash_style+set}" = set; then :
28476 withval=$with_linker_hash_style; case x"$withval" in
28477 xsysv)
28478 LINKER_HASH_STYLE=sysv
28480 xgnu)
28481 LINKER_HASH_STYLE=gnu
28483 xboth)
28484 LINKER_HASH_STYLE=both
28487 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28489 esac
28490 else
28491 LINKER_HASH_STYLE=''
28494 if test x"${LINKER_HASH_STYLE}" != x; then
28496 cat >>confdefs.h <<_ACEOF
28497 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28498 _ACEOF
28502 # Specify what should be the default of -fdiagnostics-color option.
28504 # Check whether --with-diagnostics-color was given.
28505 if test "${with_diagnostics_color+set}" = set; then :
28506 withval=$with_diagnostics_color; case x"$withval" in
28507 xnever)
28508 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28510 xauto)
28511 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28513 xauto-if-env)
28514 DIAGNOSTICS_COLOR_DEFAULT=-1
28516 xalways)
28517 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28520 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28522 esac
28523 else
28524 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28528 cat >>confdefs.h <<_ACEOF
28529 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28530 _ACEOF
28533 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28534 # of jit/jit-playback.c.
28535 cat > gcc-driver-name.h <<EOF
28536 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28539 # Configure the subdirectories
28540 # AC_CONFIG_SUBDIRS($subdirs)
28542 # Create the Makefile
28543 # and configure language subdirectories
28544 ac_config_files="$ac_config_files $all_outputs"
28547 ac_config_commands="$ac_config_commands default"
28549 cat >confcache <<\_ACEOF
28550 # This file is a shell script that caches the results of configure
28551 # tests run on this system so they can be shared between configure
28552 # scripts and configure runs, see configure's option --config-cache.
28553 # It is not useful on other systems. If it contains results you don't
28554 # want to keep, you may remove or edit it.
28556 # config.status only pays attention to the cache file if you give it
28557 # the --recheck option to rerun configure.
28559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28561 # following values.
28563 _ACEOF
28565 # The following way of writing the cache mishandles newlines in values,
28566 # but we know of no workaround that is simple, portable, and efficient.
28567 # So, we kill variables containing newlines.
28568 # Ultrix sh set writes to stderr and can't be redirected directly,
28569 # and sets the high bit in the cache file unless we assign to the vars.
28571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28572 eval ac_val=\$$ac_var
28573 case $ac_val in #(
28574 *${as_nl}*)
28575 case $ac_var in #(
28576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28578 esac
28579 case $ac_var in #(
28580 _ | IFS | as_nl) ;; #(
28581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28582 *) { eval $ac_var=; unset $ac_var;} ;;
28583 esac ;;
28584 esac
28585 done
28587 (set) 2>&1 |
28588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28589 *${as_nl}ac_space=\ *)
28590 # `set' does not quote correctly, so add quotes: double-quote
28591 # substitution turns \\\\ into \\, and sed turns \\ into \.
28592 sed -n \
28593 "s/'/'\\\\''/g;
28594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28595 ;; #(
28597 # `set' quotes correctly as required by POSIX, so do not add quotes.
28598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28600 esac |
28601 sort
28603 sed '
28604 /^ac_cv_env_/b end
28605 t clear
28606 :clear
28607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28608 t end
28609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28610 :end' >>confcache
28611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28612 if test -w "$cache_file"; then
28613 test "x$cache_file" != "x/dev/null" &&
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28615 $as_echo "$as_me: updating cache $cache_file" >&6;}
28616 cat confcache >$cache_file
28617 else
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28619 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28622 rm -f confcache
28624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28625 # Let make expand exec_prefix.
28626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28628 DEFS=-DHAVE_CONFIG_H
28630 ac_libobjs=
28631 ac_ltlibobjs=
28632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28633 # 1. Remove the extension, and $U if already installed.
28634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28637 # will be set to the directory where LIBOBJS objects are built.
28638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28640 done
28641 LIBOBJS=$ac_libobjs
28643 LTLIBOBJS=$ac_ltlibobjs
28648 : ${CONFIG_STATUS=./config.status}
28649 ac_write_fail=0
28650 ac_clean_files_save=$ac_clean_files
28651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28654 as_write_fail=0
28655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28656 #! $SHELL
28657 # Generated by $as_me.
28658 # Run this file to recreate the current configuration.
28659 # Compiler output produced by configure, useful for debugging
28660 # configure, is in config.log if it exists.
28662 debug=false
28663 ac_cs_recheck=false
28664 ac_cs_silent=false
28666 SHELL=\${CONFIG_SHELL-$SHELL}
28667 export SHELL
28668 _ASEOF
28669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28670 ## -------------------- ##
28671 ## M4sh Initialization. ##
28672 ## -------------------- ##
28674 # Be more Bourne compatible
28675 DUALCASE=1; export DUALCASE # for MKS sh
28676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28677 emulate sh
28678 NULLCMD=:
28679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28680 # is contrary to our usage. Disable this feature.
28681 alias -g '${1+"$@"}'='"$@"'
28682 setopt NO_GLOB_SUBST
28683 else
28684 case `(set -o) 2>/dev/null` in #(
28685 *posix*) :
28686 set -o posix ;; #(
28687 *) :
28689 esac
28693 as_nl='
28695 export as_nl
28696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28700 # Prefer a ksh shell builtin over an external printf program on Solaris,
28701 # but without wasting forks for bash or zsh.
28702 if test -z "$BASH_VERSION$ZSH_VERSION" \
28703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28704 as_echo='print -r --'
28705 as_echo_n='print -rn --'
28706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28707 as_echo='printf %s\n'
28708 as_echo_n='printf %s'
28709 else
28710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28712 as_echo_n='/usr/ucb/echo -n'
28713 else
28714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28715 as_echo_n_body='eval
28716 arg=$1;
28717 case $arg in #(
28718 *"$as_nl"*)
28719 expr "X$arg" : "X\\(.*\\)$as_nl";
28720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28721 esac;
28722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28724 export as_echo_n_body
28725 as_echo_n='sh -c $as_echo_n_body as_echo'
28727 export as_echo_body
28728 as_echo='sh -c $as_echo_body as_echo'
28731 # The user is always right.
28732 if test "${PATH_SEPARATOR+set}" != set; then
28733 PATH_SEPARATOR=:
28734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28736 PATH_SEPARATOR=';'
28741 # IFS
28742 # We need space, tab and new line, in precisely that order. Quoting is
28743 # there to prevent editors from complaining about space-tab.
28744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28745 # splitting by setting IFS to empty value.)
28746 IFS=" "" $as_nl"
28748 # Find who we are. Look in the path if we contain no directory separator.
28749 case $0 in #((
28750 *[\\/]* ) as_myself=$0 ;;
28751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28752 for as_dir in $PATH
28754 IFS=$as_save_IFS
28755 test -z "$as_dir" && as_dir=.
28756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28757 done
28758 IFS=$as_save_IFS
28761 esac
28762 # We did not find ourselves, most probably we were run as `sh COMMAND'
28763 # in which case we are not to be found in the path.
28764 if test "x$as_myself" = x; then
28765 as_myself=$0
28767 if test ! -f "$as_myself"; then
28768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28769 exit 1
28772 # Unset variables that we do not need and which cause bugs (e.g. in
28773 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28774 # suppresses any "Segmentation fault" message there. '((' could
28775 # trigger a bug in pdksh 5.2.14.
28776 for as_var in BASH_ENV ENV MAIL MAILPATH
28777 do eval test x\${$as_var+set} = xset \
28778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28779 done
28780 PS1='$ '
28781 PS2='> '
28782 PS4='+ '
28784 # NLS nuisances.
28785 LC_ALL=C
28786 export LC_ALL
28787 LANGUAGE=C
28788 export LANGUAGE
28790 # CDPATH.
28791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28794 # as_fn_error ERROR [LINENO LOG_FD]
28795 # ---------------------------------
28796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28798 # script with status $?, using 1 if that was 0.
28799 as_fn_error ()
28801 as_status=$?; test $as_status -eq 0 && as_status=1
28802 if test "$3"; then
28803 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28806 $as_echo "$as_me: error: $1" >&2
28807 as_fn_exit $as_status
28808 } # as_fn_error
28811 # as_fn_set_status STATUS
28812 # -----------------------
28813 # Set $? to STATUS, without forking.
28814 as_fn_set_status ()
28816 return $1
28817 } # as_fn_set_status
28819 # as_fn_exit STATUS
28820 # -----------------
28821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28822 as_fn_exit ()
28824 set +e
28825 as_fn_set_status $1
28826 exit $1
28827 } # as_fn_exit
28829 # as_fn_unset VAR
28830 # ---------------
28831 # Portably unset VAR.
28832 as_fn_unset ()
28834 { eval $1=; unset $1;}
28836 as_unset=as_fn_unset
28837 # as_fn_append VAR VALUE
28838 # ----------------------
28839 # Append the text in VALUE to the end of the definition contained in VAR. Take
28840 # advantage of any shell optimizations that allow amortized linear growth over
28841 # repeated appends, instead of the typical quadratic growth present in naive
28842 # implementations.
28843 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28844 eval 'as_fn_append ()
28846 eval $1+=\$2
28848 else
28849 as_fn_append ()
28851 eval $1=\$$1\$2
28853 fi # as_fn_append
28855 # as_fn_arith ARG...
28856 # ------------------
28857 # Perform arithmetic evaluation on the ARGs, and store the result in the
28858 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28859 # must be portable across $(()) and expr.
28860 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28861 eval 'as_fn_arith ()
28863 as_val=$(( $* ))
28865 else
28866 as_fn_arith ()
28868 as_val=`expr "$@" || test $? -eq 1`
28870 fi # as_fn_arith
28873 if expr a : '\(a\)' >/dev/null 2>&1 &&
28874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28875 as_expr=expr
28876 else
28877 as_expr=false
28880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28881 as_basename=basename
28882 else
28883 as_basename=false
28886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28887 as_dirname=dirname
28888 else
28889 as_dirname=false
28892 as_me=`$as_basename -- "$0" ||
28893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28894 X"$0" : 'X\(//\)$' \| \
28895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28896 $as_echo X/"$0" |
28897 sed '/^.*\/\([^/][^/]*\)\/*$/{
28898 s//\1/
28901 /^X\/\(\/\/\)$/{
28902 s//\1/
28905 /^X\/\(\/\).*/{
28906 s//\1/
28909 s/.*/./; q'`
28911 # Avoid depending upon Character Ranges.
28912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28915 as_cr_digits='0123456789'
28916 as_cr_alnum=$as_cr_Letters$as_cr_digits
28918 ECHO_C= ECHO_N= ECHO_T=
28919 case `echo -n x` in #(((((
28920 -n*)
28921 case `echo 'xy\c'` in
28922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28923 xy) ECHO_C='\c';;
28924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28925 ECHO_T=' ';;
28926 esac;;
28928 ECHO_N='-n';;
28929 esac
28931 rm -f conf$$ conf$$.exe conf$$.file
28932 if test -d conf$$.dir; then
28933 rm -f conf$$.dir/conf$$.file
28934 else
28935 rm -f conf$$.dir
28936 mkdir conf$$.dir 2>/dev/null
28938 if (echo >conf$$.file) 2>/dev/null; then
28939 if ln -s conf$$.file conf$$ 2>/dev/null; then
28940 as_ln_s='ln -s'
28941 # ... but there are two gotchas:
28942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28944 # In both cases, we have to default to `cp -p'.
28945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28946 as_ln_s='cp -p'
28947 elif ln conf$$.file conf$$ 2>/dev/null; then
28948 as_ln_s=ln
28949 else
28950 as_ln_s='cp -p'
28952 else
28953 as_ln_s='cp -p'
28955 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28956 rmdir conf$$.dir 2>/dev/null
28959 # as_fn_mkdir_p
28960 # -------------
28961 # Create "$as_dir" as a directory, including parents if necessary.
28962 as_fn_mkdir_p ()
28965 case $as_dir in #(
28966 -*) as_dir=./$as_dir;;
28967 esac
28968 test -d "$as_dir" || eval $as_mkdir_p || {
28969 as_dirs=
28970 while :; do
28971 case $as_dir in #(
28972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28973 *) as_qdir=$as_dir;;
28974 esac
28975 as_dirs="'$as_qdir' $as_dirs"
28976 as_dir=`$as_dirname -- "$as_dir" ||
28977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28978 X"$as_dir" : 'X\(//\)[^/]' \| \
28979 X"$as_dir" : 'X\(//\)$' \| \
28980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28981 $as_echo X"$as_dir" |
28982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28983 s//\1/
28986 /^X\(\/\/\)[^/].*/{
28987 s//\1/
28990 /^X\(\/\/\)$/{
28991 s//\1/
28994 /^X\(\/\).*/{
28995 s//\1/
28998 s/.*/./; q'`
28999 test -d "$as_dir" && break
29000 done
29001 test -z "$as_dirs" || eval "mkdir $as_dirs"
29002 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29005 } # as_fn_mkdir_p
29006 if mkdir -p . 2>/dev/null; then
29007 as_mkdir_p='mkdir -p "$as_dir"'
29008 else
29009 test -d ./-p && rmdir ./-p
29010 as_mkdir_p=false
29013 if test -x / >/dev/null 2>&1; then
29014 as_test_x='test -x'
29015 else
29016 if ls -dL / >/dev/null 2>&1; then
29017 as_ls_L_option=L
29018 else
29019 as_ls_L_option=
29021 as_test_x='
29022 eval sh -c '\''
29023 if test -d "$1"; then
29024 test -d "$1/.";
29025 else
29026 case $1 in #(
29027 -*)set "./$1";;
29028 esac;
29029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29030 ???[sx]*):;;*)false;;esac;fi
29031 '\'' sh
29034 as_executable_p=$as_test_x
29036 # Sed expression to map a string onto a valid CPP name.
29037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29039 # Sed expression to map a string onto a valid variable name.
29040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29043 exec 6>&1
29044 ## ----------------------------------- ##
29045 ## Main body of $CONFIG_STATUS script. ##
29046 ## ----------------------------------- ##
29047 _ASEOF
29048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29051 # Save the log message, to keep $0 and so on meaningful, and to
29052 # report actual input values of CONFIG_FILES etc. instead of their
29053 # values after options handling.
29054 ac_log="
29055 This file was extended by $as_me, which was
29056 generated by GNU Autoconf 2.64. Invocation command line was
29058 CONFIG_FILES = $CONFIG_FILES
29059 CONFIG_HEADERS = $CONFIG_HEADERS
29060 CONFIG_LINKS = $CONFIG_LINKS
29061 CONFIG_COMMANDS = $CONFIG_COMMANDS
29062 $ $0 $@
29064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29067 _ACEOF
29069 case $ac_config_files in *"
29070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29071 esac
29073 case $ac_config_headers in *"
29074 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29075 esac
29078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29079 # Files that config.status was made for.
29080 config_files="$ac_config_files"
29081 config_headers="$ac_config_headers"
29082 config_links="$ac_config_links"
29083 config_commands="$ac_config_commands"
29085 _ACEOF
29087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29088 ac_cs_usage="\
29089 \`$as_me' instantiates files and other configuration actions
29090 from templates according to the current configuration. Unless the files
29091 and actions are specified as TAGs, all are instantiated by default.
29093 Usage: $0 [OPTION]... [TAG]...
29095 -h, --help print this help, then exit
29096 -V, --version print version number and configuration settings, then exit
29097 -q, --quiet, --silent
29098 do not print progress messages
29099 -d, --debug don't remove temporary files
29100 --recheck update $as_me by reconfiguring in the same conditions
29101 --file=FILE[:TEMPLATE]
29102 instantiate the configuration file FILE
29103 --header=FILE[:TEMPLATE]
29104 instantiate the configuration header FILE
29106 Configuration files:
29107 $config_files
29109 Configuration headers:
29110 $config_headers
29112 Configuration links:
29113 $config_links
29115 Configuration commands:
29116 $config_commands
29118 Report bugs to the package provider."
29120 _ACEOF
29121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29122 ac_cs_version="\\
29123 config.status
29124 configured by $0, generated by GNU Autoconf 2.64,
29125 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29127 Copyright (C) 2009 Free Software Foundation, Inc.
29128 This config.status script is free software; the Free Software Foundation
29129 gives unlimited permission to copy, distribute and modify it."
29131 ac_pwd='$ac_pwd'
29132 srcdir='$srcdir'
29133 AWK='$AWK'
29134 test -n "\$AWK" || AWK=awk
29135 _ACEOF
29137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29138 # The default lists apply if the user does not specify any file.
29139 ac_need_defaults=:
29140 while test $# != 0
29142 case $1 in
29143 --*=*)
29144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29146 ac_shift=:
29149 ac_option=$1
29150 ac_optarg=$2
29151 ac_shift=shift
29153 esac
29155 case $ac_option in
29156 # Handling of the options.
29157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29158 ac_cs_recheck=: ;;
29159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29160 $as_echo "$ac_cs_version"; exit ;;
29161 --debug | --debu | --deb | --de | --d | -d )
29162 debug=: ;;
29163 --file | --fil | --fi | --f )
29164 $ac_shift
29165 case $ac_optarg in
29166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29167 esac
29168 as_fn_append CONFIG_FILES " '$ac_optarg'"
29169 ac_need_defaults=false;;
29170 --header | --heade | --head | --hea )
29171 $ac_shift
29172 case $ac_optarg in
29173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29174 esac
29175 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29176 ac_need_defaults=false;;
29177 --he | --h)
29178 # Conflict between --help and --header
29179 as_fn_error "ambiguous option: \`$1'
29180 Try \`$0 --help' for more information.";;
29181 --help | --hel | -h )
29182 $as_echo "$ac_cs_usage"; exit ;;
29183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29184 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29185 ac_cs_silent=: ;;
29187 # This is an error.
29188 -*) as_fn_error "unrecognized option: \`$1'
29189 Try \`$0 --help' for more information." ;;
29191 *) as_fn_append ac_config_targets " $1"
29192 ac_need_defaults=false ;;
29194 esac
29195 shift
29196 done
29198 ac_configure_extra_args=
29200 if $ac_cs_silent; then
29201 exec 6>/dev/null
29202 ac_configure_extra_args="$ac_configure_extra_args --silent"
29205 _ACEOF
29206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29207 if \$ac_cs_recheck; then
29208 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29209 shift
29210 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29211 CONFIG_SHELL='$SHELL'
29212 export CONFIG_SHELL
29213 exec "\$@"
29216 _ACEOF
29217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29218 exec 5>>config.log
29220 echo
29221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29222 ## Running $as_me. ##
29223 _ASBOX
29224 $as_echo "$ac_log"
29225 } >&5
29227 _ACEOF
29228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29230 # INIT-COMMANDS
29232 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29233 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29234 subdirs='$subdirs'
29236 _ACEOF
29238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29240 # Handling of arguments.
29241 for ac_config_target in $ac_config_targets
29243 case $ac_config_target in
29244 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29245 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29246 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29247 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29248 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29249 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29250 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29251 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29252 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29254 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29255 esac
29256 done
29259 # If the user did not use the arguments to specify the items to instantiate,
29260 # then the envvar interface is used. Set only those that are not.
29261 # We use the long form for the default assignment because of an extremely
29262 # bizarre bug on SunOS 4.1.3.
29263 if $ac_need_defaults; then
29264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29266 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29270 # Have a temporary directory for convenience. Make it in the build tree
29271 # simply because there is no reason against having it here, and in addition,
29272 # creating and moving files from /tmp can sometimes cause problems.
29273 # Hook for its removal unless debugging.
29274 # Note that there is a small window in which the directory will not be cleaned:
29275 # after its creation but before its name has been assigned to `$tmp'.
29276 $debug ||
29278 tmp=
29279 trap 'exit_status=$?
29280 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29282 trap 'as_fn_exit 1' 1 2 13 15
29284 # Create a (secure) tmp directory for tmp files.
29287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29288 test -n "$tmp" && test -d "$tmp"
29289 } ||
29291 tmp=./conf$$-$RANDOM
29292 (umask 077 && mkdir "$tmp")
29293 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29295 # Set up the scripts for CONFIG_FILES section.
29296 # No need to generate them if there are no CONFIG_FILES.
29297 # This happens for instance with `./config.status config.h'.
29298 if test -n "$CONFIG_FILES"; then
29300 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29301 ac_cs_awk_getline=:
29302 ac_cs_awk_pipe_init=
29303 ac_cs_awk_read_file='
29304 while ((getline aline < (F[key])) > 0)
29305 print(aline)
29306 close(F[key])'
29307 ac_cs_awk_pipe_fini=
29308 else
29309 ac_cs_awk_getline=false
29310 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29311 ac_cs_awk_read_file='
29312 print "|#_!!_#|"
29313 print "cat " F[key] " &&"
29314 '$ac_cs_awk_pipe_init
29315 # The final `:' finishes the AND list.
29316 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29318 ac_cr=`echo X | tr X '\015'`
29319 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29320 # But we know of no other shell where ac_cr would be empty at this
29321 # point, so we can use a bashism as a fallback.
29322 if test "x$ac_cr" = x; then
29323 eval ac_cr=\$\'\\r\'
29325 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29326 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29327 ac_cs_awk_cr='\r'
29328 else
29329 ac_cs_awk_cr=$ac_cr
29332 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29333 _ACEOF
29335 # Create commands to substitute file output variables.
29337 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29338 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29339 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29340 echo "_ACAWK" &&
29341 echo "_ACEOF"
29342 } >conf$$files.sh &&
29343 . ./conf$$files.sh ||
29344 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29345 rm -f conf$$files.sh
29348 echo "cat >conf$$subs.awk <<_ACEOF" &&
29349 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29350 echo "_ACEOF"
29351 } >conf$$subs.sh ||
29352 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29353 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29354 ac_delim='%!_!# '
29355 for ac_last_try in false false false false false :; do
29356 . ./conf$$subs.sh ||
29357 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29359 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29360 if test $ac_delim_n = $ac_delim_num; then
29361 break
29362 elif $ac_last_try; then
29363 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29364 else
29365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29367 done
29368 rm -f conf$$subs.sh
29370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29371 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29372 _ACEOF
29373 sed -n '
29375 s/^/S["/; s/!.*/"]=/
29378 s/^[^!]*!//
29379 :repl
29380 t repl
29381 s/'"$ac_delim"'$//
29382 t delim
29385 s/\(.\{148\}\).*/\1/
29386 t more1
29387 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29390 b repl
29391 :more1
29392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29395 s/.\{148\}//
29396 t nl
29397 :delim
29399 s/\(.\{148\}\).*/\1/
29400 t more2
29401 s/["\\]/\\&/g; s/^/"/; s/$/"/
29404 :more2
29405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29408 s/.\{148\}//
29409 t delim
29410 ' <conf$$subs.awk | sed '
29411 /^[^""]/{
29413 s/\n//
29415 ' >>$CONFIG_STATUS || ac_write_fail=1
29416 rm -f conf$$subs.awk
29417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29418 _ACAWK
29419 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29420 for (key in S) S_is_set[key] = 1
29421 FS = "\a"
29422 \$ac_cs_awk_pipe_init
29425 line = $ 0
29426 nfields = split(line, field, "@")
29427 substed = 0
29428 len = length(field[1])
29429 for (i = 2; i < nfields; i++) {
29430 key = field[i]
29431 keylen = length(key)
29432 if (S_is_set[key]) {
29433 value = S[key]
29434 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29435 len += length(value) + length(field[++i])
29436 substed = 1
29437 } else
29438 len += 1 + keylen
29440 if (nfields == 3 && !substed) {
29441 key = field[2]
29442 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29443 \$ac_cs_awk_read_file
29444 next
29447 print line
29449 \$ac_cs_awk_pipe_fini
29450 _ACAWK
29451 _ACEOF
29452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29453 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29455 else
29457 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29458 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29459 _ACEOF
29461 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29462 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29463 # trailing colons and then remove the whole line if VPATH becomes empty
29464 # (actually we leave an empty line to preserve line numbers).
29465 if test "x$srcdir" = x.; then
29466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29467 s/:*\$(srcdir):*/:/
29468 s/:*\${srcdir}:*/:/
29469 s/:*@srcdir@:*/:/
29470 s/^\([^=]*=[ ]*\):*/\1/
29471 s/:*$//
29472 s/^[^=]*=[ ]*$//
29476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29477 fi # test -n "$CONFIG_FILES"
29479 # Set up the scripts for CONFIG_HEADERS section.
29480 # No need to generate them if there are no CONFIG_HEADERS.
29481 # This happens for instance with `./config.status Makefile'.
29482 if test -n "$CONFIG_HEADERS"; then
29483 cat >"$tmp/defines.awk" <<\_ACAWK ||
29484 BEGIN {
29485 _ACEOF
29487 # Transform confdefs.h into an awk script `defines.awk', embedded as
29488 # here-document in config.status, that substitutes the proper values into
29489 # config.h.in to produce config.h.
29491 # Create a delimiter string that does not exist in confdefs.h, to ease
29492 # handling of long lines.
29493 ac_delim='%!_!# '
29494 for ac_last_try in false false :; do
29495 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29496 if test -z "$ac_t"; then
29497 break
29498 elif $ac_last_try; then
29499 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29500 else
29501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29503 done
29505 # For the awk script, D is an array of macro values keyed by name,
29506 # likewise P contains macro parameters if any. Preserve backslash
29507 # newline sequences.
29509 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29510 sed -n '
29511 s/.\{148\}/&'"$ac_delim"'/g
29512 t rset
29513 :rset
29514 s/^[ ]*#[ ]*define[ ][ ]*/ /
29515 t def
29517 :def
29518 s/\\$//
29519 t bsnl
29520 s/["\\]/\\&/g
29521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29522 D["\1"]=" \3"/p
29523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29525 :bsnl
29526 s/["\\]/\\&/g
29527 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29528 D["\1"]=" \3\\\\\\n"\\/p
29529 t cont
29530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29531 t cont
29533 :cont
29535 s/.\{148\}/&'"$ac_delim"'/g
29536 t clear
29537 :clear
29538 s/\\$//
29539 t bsnlc
29540 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29542 :bsnlc
29543 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29544 b cont
29545 ' <confdefs.h | sed '
29546 s/'"$ac_delim"'/"\\\
29547 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29550 for (key in D) D_is_set[key] = 1
29551 FS = "\a"
29553 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29554 line = \$ 0
29555 split(line, arg, " ")
29556 if (arg[1] == "#") {
29557 defundef = arg[2]
29558 mac1 = arg[3]
29559 } else {
29560 defundef = substr(arg[1], 2)
29561 mac1 = arg[2]
29563 split(mac1, mac2, "(") #)
29564 macro = mac2[1]
29565 prefix = substr(line, 1, index(line, defundef) - 1)
29566 if (D_is_set[macro]) {
29567 # Preserve the white space surrounding the "#".
29568 print prefix "define", macro P[macro] D[macro]
29569 next
29570 } else {
29571 # Replace #undef with comments. This is necessary, for example,
29572 # in the case of _POSIX_SOURCE, which is predefined and required
29573 # on some systems where configure will not decide to define it.
29574 if (defundef == "undef") {
29575 print "/*", prefix defundef, macro, "*/"
29576 next
29580 { print }
29581 _ACAWK
29582 _ACEOF
29583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29584 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29585 fi # test -n "$CONFIG_HEADERS"
29588 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29589 shift
29590 for ac_tag
29592 case $ac_tag in
29593 :[FHLC]) ac_mode=$ac_tag; continue;;
29594 esac
29595 case $ac_mode$ac_tag in
29596 :[FHL]*:*);;
29597 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29598 :[FH]-) ac_tag=-:-;;
29599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29600 esac
29601 ac_save_IFS=$IFS
29602 IFS=:
29603 set x $ac_tag
29604 IFS=$ac_save_IFS
29605 shift
29606 ac_file=$1
29607 shift
29609 case $ac_mode in
29610 :L) ac_source=$1;;
29611 :[FH])
29612 ac_file_inputs=
29613 for ac_f
29615 case $ac_f in
29616 -) ac_f="$tmp/stdin";;
29617 *) # Look for the file first in the build tree, then in the source tree
29618 # (if the path is not absolute). The absolute path cannot be DOS-style,
29619 # because $ac_f cannot contain `:'.
29620 test -f "$ac_f" ||
29621 case $ac_f in
29622 [\\/$]*) false;;
29623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29624 esac ||
29625 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29626 esac
29627 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29628 as_fn_append ac_file_inputs " '$ac_f'"
29629 done
29631 # Let's still pretend it is `configure' which instantiates (i.e., don't
29632 # use $as_me), people would be surprised to read:
29633 # /* config.h. Generated by config.status. */
29634 configure_input='Generated from '`
29635 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29636 `' by configure.'
29637 if test x"$ac_file" != x-; then
29638 configure_input="$ac_file. $configure_input"
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29640 $as_echo "$as_me: creating $ac_file" >&6;}
29642 # Neutralize special characters interpreted by sed in replacement strings.
29643 case $configure_input in #(
29644 *\&* | *\|* | *\\* )
29645 ac_sed_conf_input=`$as_echo "$configure_input" |
29646 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29647 *) ac_sed_conf_input=$configure_input;;
29648 esac
29650 case $ac_tag in
29651 *:-:* | *:-) cat >"$tmp/stdin" \
29652 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29653 esac
29655 esac
29657 ac_dir=`$as_dirname -- "$ac_file" ||
29658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29659 X"$ac_file" : 'X\(//\)[^/]' \| \
29660 X"$ac_file" : 'X\(//\)$' \| \
29661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29662 $as_echo X"$ac_file" |
29663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29664 s//\1/
29667 /^X\(\/\/\)[^/].*/{
29668 s//\1/
29671 /^X\(\/\/\)$/{
29672 s//\1/
29675 /^X\(\/\).*/{
29676 s//\1/
29679 s/.*/./; q'`
29680 as_dir="$ac_dir"; as_fn_mkdir_p
29681 ac_builddir=.
29683 case "$ac_dir" in
29684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29687 # A ".." for each directory in $ac_dir_suffix.
29688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29689 case $ac_top_builddir_sub in
29690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29692 esac ;;
29693 esac
29694 ac_abs_top_builddir=$ac_pwd
29695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29696 # for backward compatibility:
29697 ac_top_builddir=$ac_top_build_prefix
29699 case $srcdir in
29700 .) # We are building in place.
29701 ac_srcdir=.
29702 ac_top_srcdir=$ac_top_builddir_sub
29703 ac_abs_top_srcdir=$ac_pwd ;;
29704 [\\/]* | ?:[\\/]* ) # Absolute name.
29705 ac_srcdir=$srcdir$ac_dir_suffix;
29706 ac_top_srcdir=$srcdir
29707 ac_abs_top_srcdir=$srcdir ;;
29708 *) # Relative name.
29709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29710 ac_top_srcdir=$ac_top_build_prefix$srcdir
29711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29712 esac
29713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29716 case $ac_mode in
29719 # CONFIG_FILE
29722 _ACEOF
29724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29725 # If the template does not know about datarootdir, expand it.
29726 # FIXME: This hack should be removed a few years after 2.60.
29727 ac_datarootdir_hack=; ac_datarootdir_seen=
29728 ac_sed_dataroot='
29729 /datarootdir/ {
29733 /@datadir@/p
29734 /@docdir@/p
29735 /@infodir@/p
29736 /@localedir@/p
29737 /@mandir@/p'
29738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29739 *datarootdir*) ac_datarootdir_seen=yes;;
29740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29743 _ACEOF
29744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29745 ac_datarootdir_hack='
29746 s&@datadir@&$datadir&g
29747 s&@docdir@&$docdir&g
29748 s&@infodir@&$infodir&g
29749 s&@localedir@&$localedir&g
29750 s&@mandir@&$mandir&g
29751 s&\\\${datarootdir}&$datarootdir&g' ;;
29752 esac
29753 _ACEOF
29755 # Neutralize VPATH when `$srcdir' = `.'.
29756 # Shell code in configure.ac might set extrasub.
29757 # FIXME: do we really want to maintain this feature?
29758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29759 ac_sed_extra="$ac_vpsub
29760 $extrasub
29761 _ACEOF
29762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29765 s|@configure_input@|$ac_sed_conf_input|;t t
29766 s&@top_builddir@&$ac_top_builddir_sub&;t t
29767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29768 s&@srcdir@&$ac_srcdir&;t t
29769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29770 s&@top_srcdir@&$ac_top_srcdir&;t t
29771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29772 s&@builddir@&$ac_builddir&;t t
29773 s&@abs_builddir@&$ac_abs_builddir&;t t
29774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29775 $ac_datarootdir_hack
29777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29778 if $ac_cs_awk_getline; then
29779 $AWK -f "$tmp/subs.awk"
29780 else
29781 $AWK -f "$tmp/subs.awk" | $SHELL
29782 fi >$tmp/out \
29783 || as_fn_error "could not create $ac_file" "$LINENO" 5
29785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29789 which seems to be undefined. Please make sure it is defined." >&5
29790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29791 which seems to be undefined. Please make sure it is defined." >&2;}
29793 rm -f "$tmp/stdin"
29794 case $ac_file in
29795 -) cat "$tmp/out" && rm -f "$tmp/out";;
29796 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29797 esac \
29798 || as_fn_error "could not create $ac_file" "$LINENO" 5
29802 # CONFIG_HEADER
29804 if test x"$ac_file" != x-; then
29806 $as_echo "/* $configure_input */" \
29807 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29808 } >"$tmp/config.h" \
29809 || as_fn_error "could not create $ac_file" "$LINENO" 5
29810 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29812 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29813 else
29814 rm -f "$ac_file"
29815 mv "$tmp/config.h" "$ac_file" \
29816 || as_fn_error "could not create $ac_file" "$LINENO" 5
29818 else
29819 $as_echo "/* $configure_input */" \
29820 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29821 || as_fn_error "could not create -" "$LINENO" 5
29826 # CONFIG_LINK
29829 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29831 else
29832 # Prefer the file from the source tree if names are identical.
29833 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29834 ac_source=$srcdir/$ac_source
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29838 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29840 if test ! -r "$ac_source"; then
29841 as_fn_error "$ac_source: file not found" "$LINENO" 5
29843 rm -f "$ac_file"
29845 # Try a relative symlink, then a hard link, then a copy.
29846 case $srcdir in
29847 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29848 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29849 esac
29850 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29851 ln "$ac_source" "$ac_file" 2>/dev/null ||
29852 cp -p "$ac_source" "$ac_file" ||
29853 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29856 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29857 $as_echo "$as_me: executing $ac_file commands" >&6;}
29859 esac
29862 case $ac_file$ac_mode in
29863 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29864 "gccdepdir":C)
29865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29866 for lang in $subdirs c-family common
29868 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29869 done ;;
29870 "as":F) chmod +x as ;;
29871 "collect-ld":F) chmod +x collect-ld ;;
29872 "nm":F) chmod +x nm ;;
29873 "default":C)
29874 case ${CONFIG_HEADERS} in
29875 *auto-host.h:config.in*)
29876 echo > cstamp-h ;;
29877 esac
29878 # Make sure all the subdirs exist.
29879 for d in $subdirs doc build common c-family
29881 test -d $d || mkdir $d
29882 done
29885 esac
29886 done # for ac_tag
29889 as_fn_exit 0
29890 _ACEOF
29891 ac_clean_files=$ac_clean_files_save
29893 test $ac_write_fail = 0 ||
29894 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29897 # configure is writing to config.log, and then calls config.status.
29898 # config.status does its own redirection, appending to config.log.
29899 # Unfortunately, on DOS this fails, as config.log is still kept open
29900 # by configure, so config.status won't be able to write to it; its
29901 # output is simply discarded. So we exec the FD to /dev/null,
29902 # effectively closing config.log, so it can be properly (re)opened and
29903 # appended to by config.status. When coming back to configure, we
29904 # need to make the FD available again.
29905 if test "$no_create" != yes; then
29906 ac_cs_success=:
29907 ac_config_status_args=
29908 test "$silent" = yes &&
29909 ac_config_status_args="$ac_config_status_args --quiet"
29910 exec 5>/dev/null
29911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29912 exec 5>>config.log
29913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29914 # would make configure fail if this is the last instruction.
29915 $ac_cs_success || as_fn_exit $?
29917 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29919 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}