* gcc.dg/store-motion-fgcse-sm.c (dg-final): Cleanup
[official-gcc.git] / gcc / configure
blob66c6a18dd4e420ac148e00d6ffed2a7df63e1757
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 # PIC is the default on this platform
4790 # Common symbols not allowed in MH_DYLIB files
4791 PICFLAG_FOR_TARGET=-fno-common
4793 alpha*-dec-osf5*)
4794 # PIC is the default.
4796 hppa*64*-*-hpux*)
4797 # PIC is the default for 64-bit PA HP-UX.
4799 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4801 i[34567]86-*-mingw* | x86_64-*-mingw*)
4803 i[34567]86-*-interix[3-9]*)
4804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4805 # Instead, we relocate shared libraries at runtime.
4807 i[34567]86-*-nto-qnx*)
4808 # QNX uses GNU C++, but need to define -shared option too, otherwise
4809 # it will coredump.
4810 PICFLAG_FOR_TARGET='-fPIC -shared'
4812 i[34567]86-pc-msdosdjgpp*)
4813 # DJGPP does not support shared libraries at all.
4815 ia64*-*-hpux*)
4816 # On IA64 HP-UX, PIC is the default but the pic flag
4817 # sets the default TLS model and affects inlining.
4818 PICFLAG_FOR_TARGET=-fPIC
4820 mips-sgi-irix6*)
4821 # PIC is the default.
4823 rs6000-ibm-aix* | powerpc-ibm-aix*)
4824 # All AIX code is PIC.
4827 # Some targets support both -fPIC and -fpic, but prefer the latter.
4828 # FIXME: Why?
4829 i[34567]86-*-* | x86_64-*-*)
4830 PICFLAG_FOR_TARGET=-fpic
4832 # FIXME: Override -fPIC default in libgcc only?
4833 sh-*-linux* | sh[2346lbe]*-*-linux*)
4834 PICFLAG_FOR_TARGET=-fpic
4836 # FIXME: Simplify to sh*-*-netbsd*?
4837 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4838 sh64-*-netbsd* | sh64l*-*-netbsd*)
4839 PICFLAG_FOR_TARGET=-fpic
4841 # Default to -fPIC unless specified otherwise.
4843 PICFLAG_FOR_TARGET=-fPIC
4845 esac
4847 # If the user explicitly uses -fpic/-fPIC, keep that.
4848 case "${CFLAGS_FOR_TARGET}" in
4849 *-fpic*)
4850 PICFLAG_FOR_TARGET=-fpic
4852 *-fPIC*)
4853 PICFLAG_FOR_TARGET=-fPIC
4855 esac
4859 # -------------------------
4860 # Check C compiler features
4861 # -------------------------
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4873 CPP=
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 # Double quotes because CPP needs to be expanded
4880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4882 ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #ifdef __STDC__
4894 # include <limits.h>
4895 #else
4896 # include <assert.h>
4897 #endif
4898 Syntax error
4899 _ACEOF
4900 if ac_fn_c_try_cpp "$LINENO"; then :
4902 else
4903 # Broken: fails on valid input.
4904 continue
4906 rm -f conftest.err conftest.$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4913 _ACEOF
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 # Passes both tests.
4919 ac_preproc_ok=:
4920 break
4922 rm -f conftest.err conftest.$ac_ext
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then :
4928 break
4931 done
4932 ac_cv_prog_CPP=$CPP
4935 CPP=$ac_cv_prog_CPP
4936 else
4937 ac_cv_prog_CPP=$CPP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4941 ac_preproc_ok=false
4942 for ac_c_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957 Syntax error
4958 _ACEOF
4959 if ac_fn_c_try_cpp "$LINENO"; then :
4961 else
4962 # Broken: fails on valid input.
4963 continue
4965 rm -f conftest.err conftest.$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: success on invalid input.
4975 continue
4976 else
4977 # Passes both tests.
4978 ac_preproc_ok=:
4979 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then :
4988 else
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4995 ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5004 if test "${ac_cv_path_GREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -z "$GREP"; then
5008 ac_path_GREP_found=false
5009 # Loop through the user's path and test for each of PROGNAME-LIST
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_prog in grep ggrep; do
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5019 # Check for GNU ac_path_GREP and select it if it is found.
5020 # Check for GNU $ac_path_GREP
5021 case `"$ac_path_GREP" --version 2>&1` in
5022 *GNU*)
5023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5025 ac_count=0
5026 $as_echo_n 0123456789 >"conftest.in"
5027 while :
5029 cat "conftest.in" "conftest.in" >"conftest.tmp"
5030 mv "conftest.tmp" "conftest.in"
5031 cp "conftest.in" "conftest.nl"
5032 $as_echo 'GREP' >> "conftest.nl"
5033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5035 as_fn_arith $ac_count + 1 && ac_count=$as_val
5036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5037 # Best one so far, save it but keep looking for a better one
5038 ac_cv_path_GREP="$ac_path_GREP"
5039 ac_path_GREP_max=$ac_count
5041 # 10*(2^10) chars as input seems more than enough
5042 test $ac_count -gt 10 && break
5043 done
5044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5045 esac
5047 $ac_path_GREP_found && break 3
5048 done
5049 done
5050 done
5051 IFS=$as_save_IFS
5052 if test -z "$ac_cv_path_GREP"; then
5053 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055 else
5056 ac_cv_path_GREP=$GREP
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5061 $as_echo "$ac_cv_path_GREP" >&6; }
5062 GREP="$ac_cv_path_GREP"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5066 $as_echo_n "checking for egrep... " >&6; }
5067 if test "${ac_cv_path_EGREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5071 then ac_cv_path_EGREP="$GREP -E"
5072 else
5073 if test -z "$EGREP"; then
5074 ac_path_EGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in egrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5085 # Check for GNU ac_path_EGREP and select it if it is found.
5086 # Check for GNU $ac_path_EGREP
5087 case `"$ac_path_EGREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'EGREP' >> "conftest.nl"
5099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_EGREP="$ac_path_EGREP"
5105 ac_path_EGREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5113 $ac_path_EGREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_EGREP"; then
5119 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121 else
5122 ac_cv_path_EGREP=$EGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5128 $as_echo "$ac_cv_path_EGREP" >&6; }
5129 EGREP="$ac_cv_path_EGREP"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5133 $as_echo_n "checking for ANSI C header files... " >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <stdlib.h>
5140 #include <stdarg.h>
5141 #include <string.h>
5142 #include <float.h>
5145 main ()
5149 return 0;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 ac_cv_header_stdc=yes
5154 else
5155 ac_cv_header_stdc=no
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <string.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/dev/null 2>&1; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f conftest*
5176 if test $ac_cv_header_stdc = yes; then
5177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5182 _ACEOF
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "free" >/dev/null 2>&1; then :
5186 else
5187 ac_cv_header_stdc=no
5189 rm -f conftest*
5193 if test $ac_cv_header_stdc = yes; then
5194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5195 if test "$cross_compiling" = yes; then :
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ctype.h>
5201 #include <stdlib.h>
5202 #if ((' ' & 0x0FF) == 0x020)
5203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5205 #else
5206 # define ISLOWER(c) \
5207 (('a' <= (c) && (c) <= 'i') \
5208 || ('j' <= (c) && (c) <= 'r') \
5209 || ('s' <= (c) && (c) <= 'z'))
5210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5211 #endif
5213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5215 main ()
5217 int i;
5218 for (i = 0; i < 256; i++)
5219 if (XOR (islower (i), ISLOWER (i))
5220 || toupper (i) != TOUPPER (i))
5221 return 2;
5222 return 0;
5224 _ACEOF
5225 if ac_fn_c_try_run "$LINENO"; then :
5227 else
5228 ac_cv_header_stdc=no
5230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5231 conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5237 $as_echo "$ac_cv_header_stdc" >&6; }
5238 if test $ac_cv_header_stdc = yes; then
5240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5246 inttypes.h stdint.h unistd.h
5247 do :
5248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5251 eval as_val=\$$as_ac_Header
5252 if test "x$as_val" = x""yes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5259 done
5263 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5265 MINIX=yes
5266 else
5267 MINIX=
5271 if test "$MINIX" = yes; then
5273 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5276 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5279 $as_echo "#define _MINIX 1" >>confdefs.h
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5285 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5286 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 # define __EXTENSIONS__ 1
5293 $ac_includes_default
5295 main ()
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_safe_to_define___extensions__=yes
5304 else
5305 ac_cv_safe_to_define___extensions__=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5310 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5311 test $ac_cv_safe_to_define___extensions__ = yes &&
5312 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5314 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5320 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5330 # On Suns, sometimes $CPP names a directory.
5331 if test -n "$CPP" && test -d "$CPP"; then
5332 CPP=
5334 if test -z "$CPP"; then
5335 if test "${ac_cv_prog_CPP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 # Double quotes because CPP needs to be expanded
5339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5341 ac_preproc_ok=false
5342 for ac_c_preproc_warn_flag in '' yes
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #ifdef __STDC__
5353 # include <limits.h>
5354 #else
5355 # include <assert.h>
5356 #endif
5357 Syntax error
5358 _ACEOF
5359 if ac_fn_c_try_cpp "$LINENO"; then :
5361 else
5362 # Broken: fails on valid input.
5363 continue
5365 rm -f conftest.err conftest.$ac_ext
5367 # OK, works on sane cases. Now check whether nonexistent headers
5368 # can be detected and how.
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <ac_nonexistent.h>
5372 _ACEOF
5373 if ac_fn_c_try_cpp "$LINENO"; then :
5374 # Broken: success on invalid input.
5375 continue
5376 else
5377 # Passes both tests.
5378 ac_preproc_ok=:
5379 break
5381 rm -f conftest.err conftest.$ac_ext
5383 done
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.$ac_ext
5386 if $ac_preproc_ok; then :
5387 break
5390 done
5391 ac_cv_prog_CPP=$CPP
5394 CPP=$ac_cv_prog_CPP
5395 else
5396 ac_cv_prog_CPP=$CPP
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5399 $as_echo "$CPP" >&6; }
5400 ac_preproc_ok=false
5401 for ac_c_preproc_warn_flag in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #ifdef __STDC__
5412 # include <limits.h>
5413 #else
5414 # include <assert.h>
5415 #endif
5416 Syntax error
5417 _ACEOF
5418 if ac_fn_c_try_cpp "$LINENO"; then :
5420 else
5421 # Broken: fails on valid input.
5422 continue
5424 rm -f conftest.err conftest.$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5431 _ACEOF
5432 if ac_fn_c_try_cpp "$LINENO"; then :
5433 # Broken: success on invalid input.
5434 continue
5435 else
5436 # Passes both tests.
5437 ac_preproc_ok=:
5438 break
5440 rm -f conftest.err conftest.$ac_ext
5442 done
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.err conftest.$ac_ext
5445 if $ac_preproc_ok; then :
5447 else
5448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5451 See \`config.log' for more details." "$LINENO" 5; }
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5461 $as_echo_n "checking for inline... " >&6; }
5462 if test "${ac_cv_c_inline+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 ac_cv_c_inline=no
5466 for ac_kw in inline __inline__ __inline; do
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #ifndef __cplusplus
5470 typedef int foo_t;
5471 static $ac_kw foo_t static_foo () {return 0; }
5472 $ac_kw foo_t foo () {return 0; }
5473 #endif
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_c_inline=$ac_kw
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 test "$ac_cv_c_inline" != no && break
5481 done
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5485 $as_echo "$ac_cv_c_inline" >&6; }
5487 case $ac_cv_c_inline in
5488 inline | yes) ;;
5490 case $ac_cv_c_inline in
5491 no) ac_val=;;
5492 *) ac_val=$ac_cv_c_inline;;
5493 esac
5494 cat >>confdefs.h <<_ACEOF
5495 #ifndef __cplusplus
5496 #define inline $ac_val
5497 #endif
5498 _ACEOF
5500 esac
5503 # Check whether --enable-largefile was given.
5504 if test "${enable_largefile+set}" = set; then :
5505 enableval=$enable_largefile;
5508 if test "$enable_largefile" != no; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5511 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5512 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 ac_cv_sys_largefile_CC=no
5516 if test "$GCC" != yes; then
5517 ac_save_CC=$CC
5518 while :; do
5519 # IRIX 6.2 and later do not support large files by default,
5520 # so use the C compiler's -n32 option if that helps.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5531 ? 1 : -1];
5533 main ()
5537 return 0;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 break
5543 rm -f core conftest.err conftest.$ac_objext
5544 CC="$CC -n32"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_sys_largefile_CC=' -n32'; break
5548 rm -f core conftest.err conftest.$ac_objext
5549 break
5550 done
5551 CC=$ac_save_CC
5552 rm -f conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5556 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5557 if test "$ac_cv_sys_largefile_CC" != no; then
5558 CC=$CC$ac_cv_sys_largefile_CC
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5562 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5563 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 while :; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5577 ? 1 : -1];
5579 main ()
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_sys_file_offset_bits=no; break
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #define _FILE_OFFSET_BITS 64
5593 #include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596 since some C++ compilers masquerading as C compilers
5597 incorrectly reject 9223372036854775807. */
5598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600 && LARGE_OFF_T % 2147483647 == 1)
5601 ? 1 : -1];
5603 main ()
5607 return 0;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_sys_file_offset_bits=64; break
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sys_file_offset_bits=unknown
5615 break
5616 done
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5619 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5621 no | unknown) ;;
5623 cat >>confdefs.h <<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5625 _ACEOF
5627 esac
5628 rm -rf conftest*
5629 if test $ac_cv_sys_file_offset_bits = unknown; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5631 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 while :; do
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5648 main ()
5652 return 0;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_large_files=no; break
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #define _LARGE_FILES 1
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_large_files=1; break
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 ac_cv_sys_large_files=unknown
5684 break
5685 done
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5688 $as_echo "$ac_cv_sys_large_files" >&6; }
5689 case $ac_cv_sys_large_files in #(
5690 no | unknown) ;;
5692 cat >>confdefs.h <<_ACEOF
5693 #define _LARGE_FILES $ac_cv_sys_large_files
5694 _ACEOF
5696 esac
5697 rm -rf conftest*
5702 # sizeof(char) is 1 by definition.
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5708 $as_echo_n "checking size of void *... " >&6; }
5709 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5714 else
5715 if test "$ac_cv_type_void_p" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status 77
5719 as_fn_error "cannot compute sizeof (void *)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5721 else
5722 ac_cv_sizeof_void_p=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5732 cat >>confdefs.h <<_ACEOF
5733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5734 _ACEOF
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5742 $as_echo_n "checking size of short... " >&6; }
5743 if test "${ac_cv_sizeof_short+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5748 else
5749 if test "$ac_cv_type_short" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status 77
5753 as_fn_error "cannot compute sizeof (short)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5755 else
5756 ac_cv_sizeof_short=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5762 $as_echo "$ac_cv_sizeof_short" >&6; }
5766 cat >>confdefs.h <<_ACEOF
5767 #define SIZEOF_SHORT $ac_cv_sizeof_short
5768 _ACEOF
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5776 $as_echo_n "checking size of int... " >&6; }
5777 if test "${ac_cv_sizeof_int+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5782 else
5783 if test "$ac_cv_type_int" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status 77
5787 as_fn_error "cannot compute sizeof (int)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5789 else
5790 ac_cv_sizeof_int=0
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5796 $as_echo "$ac_cv_sizeof_int" >&6; }
5800 cat >>confdefs.h <<_ACEOF
5801 #define SIZEOF_INT $ac_cv_sizeof_int
5802 _ACEOF
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5810 $as_echo_n "checking size of long... " >&6; }
5811 if test "${ac_cv_sizeof_long+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5816 else
5817 if test "$ac_cv_type_long" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status 77
5821 as_fn_error "cannot compute sizeof (long)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5823 else
5824 ac_cv_sizeof_long=0
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5830 $as_echo "$ac_cv_sizeof_long" >&6; }
5834 cat >>confdefs.h <<_ACEOF
5835 #define SIZEOF_LONG $ac_cv_sizeof_long
5836 _ACEOF
5839 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5840 if test "x$ac_cv_type_long_long" = x""yes; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LONG_LONG 1
5844 _ACEOF
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5851 $as_echo_n "checking size of long long... " >&6; }
5852 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5857 else
5858 if test "$ac_cv_type_long_long" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status 77
5862 as_fn_error "cannot compute sizeof (long long)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5864 else
5865 ac_cv_sizeof_long_long=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5875 cat >>confdefs.h <<_ACEOF
5876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5877 _ACEOF
5882 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5883 case $ac_cv_c_int8_t in #(
5884 no|yes) ;; #(
5887 cat >>confdefs.h <<_ACEOF
5888 #define int8_t $ac_cv_c_int8_t
5889 _ACEOF
5891 esac
5893 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5894 case $ac_cv_c_int16_t in #(
5895 no|yes) ;; #(
5898 cat >>confdefs.h <<_ACEOF
5899 #define int16_t $ac_cv_c_int16_t
5900 _ACEOF
5902 esac
5904 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5905 case $ac_cv_c_int32_t in #(
5906 no|yes) ;; #(
5909 cat >>confdefs.h <<_ACEOF
5910 #define int32_t $ac_cv_c_int32_t
5911 _ACEOF
5913 esac
5915 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5916 case $ac_cv_c_int64_t in #(
5917 no|yes) ;; #(
5920 cat >>confdefs.h <<_ACEOF
5921 #define int64_t $ac_cv_c_int64_t
5922 _ACEOF
5924 esac
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5928 $as_echo_n "checking for long long int... " >&6; }
5929 if test "${ac_cv_type_long_long_int+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* For now, do not test the preprocessor; as of 2007 there are too many
5936 implementations with broken preprocessors. Perhaps this can
5937 be revisited in 2012. In the meantime, code should not expect
5938 #if to work with literals wider than 32 bits. */
5939 /* Test literals. */
5940 long long int ll = 9223372036854775807ll;
5941 long long int nll = -9223372036854775807LL;
5942 unsigned long long int ull = 18446744073709551615ULL;
5943 /* Test constant expressions. */
5944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5945 ? 1 : -1)];
5946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5947 ? 1 : -1)];
5948 int i = 63;
5950 main ()
5952 /* Test availability of runtime routines for shift and division. */
5953 long long int llmax = 9223372036854775807ll;
5954 unsigned long long int ullmax = 18446744073709551615ull;
5955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5956 | (llmax / ll) | (llmax % ll)
5957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5958 | (ullmax / ull) | (ullmax % ull));
5960 return 0;
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 if test "$cross_compiling" = yes; then :
5966 ac_cv_type_long_long_int=yes
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <limits.h>
5971 #ifndef LLONG_MAX
5972 # define HALF \
5973 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5974 # define LLONG_MAX (HALF - 1 + HALF)
5975 #endif
5977 main ()
5979 long long int n = 1;
5980 int i;
5981 for (i = 0; ; i++)
5983 long long int m = n << i;
5984 if (m >> i != n)
5985 return 1;
5986 if (LLONG_MAX / 2 < m)
5987 break;
5989 return 0;
5991 return 0;
5993 _ACEOF
5994 if ac_fn_c_try_run "$LINENO"; then :
5995 ac_cv_type_long_long_int=yes
5996 else
5997 ac_cv_type_long_long_int=no
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000 conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 else
6004 ac_cv_type_long_long_int=no
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6010 $as_echo "$ac_cv_type_long_long_int" >&6; }
6011 if test $ac_cv_type_long_long_int = yes; then
6013 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6019 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6020 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6024 else
6025 test $ac_cv_type_long_long_int = yes \
6026 && ac_type='long long int' \
6027 || ac_type='long int'
6029 cat >>confdefs.h <<_ACEOF
6030 #define intmax_t $ac_type
6031 _ACEOF
6037 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6038 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6040 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6042 else
6043 for ac_type in 'int' 'long int' 'long long int'; do
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6051 test_array [0] = 0
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define intptr_t $ac_type
6061 _ACEOF
6063 ac_type=
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 test -z "$ac_type" && break
6067 done
6071 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6072 case $ac_cv_c_uint8_t in #(
6073 no|yes) ;; #(
6076 $as_echo "#define _UINT8_T 1" >>confdefs.h
6079 cat >>confdefs.h <<_ACEOF
6080 #define uint8_t $ac_cv_c_uint8_t
6081 _ACEOF
6083 esac
6085 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6086 case $ac_cv_c_uint16_t in #(
6087 no|yes) ;; #(
6091 cat >>confdefs.h <<_ACEOF
6092 #define uint16_t $ac_cv_c_uint16_t
6093 _ACEOF
6095 esac
6097 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6098 case $ac_cv_c_uint32_t in #(
6099 no|yes) ;; #(
6102 $as_echo "#define _UINT32_T 1" >>confdefs.h
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint32_t $ac_cv_c_uint32_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6112 case $ac_cv_c_uint64_t in #(
6113 no|yes) ;; #(
6116 $as_echo "#define _UINT64_T 1" >>confdefs.h
6119 cat >>confdefs.h <<_ACEOF
6120 #define uint64_t $ac_cv_c_uint64_t
6121 _ACEOF
6123 esac
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6127 $as_echo_n "checking for unsigned long long int... " >&6; }
6128 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* For now, do not test the preprocessor; as of 2007 there are too many
6135 implementations with broken preprocessors. Perhaps this can
6136 be revisited in 2012. In the meantime, code should not expect
6137 #if to work with literals wider than 32 bits. */
6138 /* Test literals. */
6139 long long int ll = 9223372036854775807ll;
6140 long long int nll = -9223372036854775807LL;
6141 unsigned long long int ull = 18446744073709551615ULL;
6142 /* Test constant expressions. */
6143 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6144 ? 1 : -1)];
6145 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6146 ? 1 : -1)];
6147 int i = 63;
6149 main ()
6151 /* Test availability of runtime routines for shift and division. */
6152 long long int llmax = 9223372036854775807ll;
6153 unsigned long long int ullmax = 18446744073709551615ull;
6154 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6155 | (llmax / ll) | (llmax % ll)
6156 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6157 | (ullmax / ull) | (ullmax % ull));
6159 return 0;
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 ac_cv_type_unsigned_long_long_int=yes
6165 else
6166 ac_cv_type_unsigned_long_long_int=no
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6172 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6173 if test $ac_cv_type_unsigned_long_long_int = yes; then
6175 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6181 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6184 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6186 else
6187 test $ac_cv_type_unsigned_long_long_int = yes \
6188 && ac_type='unsigned long long int' \
6189 || ac_type='unsigned long int'
6191 cat >>confdefs.h <<_ACEOF
6192 #define uintmax_t $ac_type
6193 _ACEOF
6199 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6200 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6204 else
6205 for ac_type in 'unsigned int' 'unsigned long int' \
6206 'unsigned long long int'; do
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6211 main ()
6213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6214 test_array [0] = 0
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6222 cat >>confdefs.h <<_ACEOF
6223 #define uintptr_t $ac_type
6224 _ACEOF
6226 ac_type=
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 test -z "$ac_type" && break
6230 done
6246 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6247 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6250 # check what underlying integer type int64_t uses
6251 ac_ext=cpp
6252 ac_cpp='$CXXCPP $CPPFLAGS'
6253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6259 $as_echo_n "checking for int64_t underlying type... " >&6; }
6260 if test "${ac_cv_int64_t_type+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #ifdef HAVE_STDINT_H
6268 #include <stdint.h>
6269 #endif
6270 template <typename T> struct X { };
6271 template <>
6272 struct X<long> { typedef long t; };
6275 main ()
6277 X<int64_t>::t x;
6279 return 0;
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6283 ac_cv_int64_t_type=long
6284 else
6285 ac_cv_int64_t_type="long long"
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6290 $as_echo "$ac_cv_int64_t_type" >&6; }
6291 if test "$ac_cv_int64_t_type" = "long"; then
6293 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 #ifdef HAVE_STDINT_H
6300 #include <stdint.h>
6301 #endif
6302 template <typename T> struct X { };
6303 template <>
6304 struct X<long long> { typedef long long t; };
6307 main ()
6309 X<int64_t>::t x;
6311 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_compile "$LINENO"; then :
6316 else
6317 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331 # ---------------------
6332 # Warnings and checking
6333 # ---------------------
6335 # Check $CC warning features (if it's GCC).
6336 # We want to use -pedantic, but we don't want warnings about
6337 # * 'long long'
6338 # * variadic macros
6339 # * overlong strings
6340 # * C++11 narrowing conversions in { }
6341 # So, we only use -pedantic if we can disable those warnings.
6343 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6344 # Check whether --enable-build-format-warnings was given.
6345 if test "${enable_build_format_warnings+set}" = set; then :
6346 enableval=$enable_build_format_warnings;
6347 else
6348 enable_build_format_warnings=yes
6351 if test $enable_build_format_warnings = no; then :
6352 wf_opt=-Wno-format
6353 else
6354 wf_opt=
6356 loose_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6359 # Do the check with the no- prefix removed since gcc silently
6360 # accepts any -Wno-* option on purpose
6361 case $real_option in
6362 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6363 *) option=$real_option ;;
6364 esac
6365 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6368 $as_echo_n "checking whether $CC supports $option... " >&6; }
6369 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 CFLAGS="$option"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6377 main ()
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 eval "$as_acx_Woption=yes"
6386 else
6387 eval "$as_acx_Woption=no"
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 eval ac_res=\$$as_acx_Woption
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6394 $as_echo "$ac_res" >&6; }
6395 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6396 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6398 done
6399 CFLAGS="$save_CFLAGS"
6401 c_loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option=$real_option ;;
6409 esac
6410 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 CFLAGS="$option"
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6422 main ()
6426 return 0;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6431 else
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 eval ac_res=\$$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6443 done
6444 CFLAGS="$save_CFLAGS"
6446 strict_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for real_option in -Wmissing-format-attribute; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option=$real_option ;;
6454 esac
6455 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 CFLAGS="$option"
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6467 main ()
6471 return 0;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6476 else
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 eval ac_res=\$$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6488 done
6489 CFLAGS="$save_CFLAGS"
6491 save_CFLAGS="$CFLAGS"
6492 for real_option in -Woverloaded-virtual; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option=$real_option ;;
6498 esac
6499 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 CFLAGS="$option"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6511 main ()
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6520 else
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 eval ac_res=\$$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 done
6533 CFLAGS="$save_CFLAGS"
6535 c_strict_warn=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option=$real_option ;;
6543 esac
6544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 CFLAGS="$option"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6556 main ()
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6565 else
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 eval ac_res=\$$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 done
6578 CFLAGS="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 save_CFLAGS="$CFLAGS"
6589 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6594 main ()
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 else
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CFLAGS="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval=$enable_werror_always;
6620 else
6621 enable_werror_always=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6633 warn_cflags=
6634 warn_cxxflags=
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6643 noexception_flags=
6644 save_CFLAGS="$CFLAGS"
6645 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 done
6686 CFLAGS="$save_CFLAGS"
6689 # Enable expensive internal checks
6690 is_release=
6691 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6692 is_release=yes
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval=$enable_checking; ac_checking_flags="${enableval}"
6698 else
6700 # Determine the default checks.
6701 if test x$is_release = x ; then
6702 ac_checking_flags=yes
6703 else
6704 ac_checking_flags=release
6708 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6709 for check in release $ac_checking_flags
6711 case $check in
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking=1 ;
6715 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6716 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6717 ac_tree_checking=1 ; ac_valgrind_checking= ;
6718 ac_types_checking=1 ;;
6719 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking= ;
6721 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6722 ac_rtlflag_checking= ; ac_runtime_checking= ;
6723 ac_tree_checking= ; ac_valgrind_checking= ;
6724 ac_types_checking= ;;
6725 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6726 ac_fold_checking=1 ; ac_gc_checking=1 ;
6727 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 # these enable particular checks
6738 assert) ac_assert_checking=1 ;;
6739 df) ac_df_checking=1 ;;
6740 fold) ac_fold_checking=1 ;;
6741 gc) ac_gc_checking=1 ;;
6742 gcac) ac_gc_always_collect=1 ;;
6743 gimple) ac_gimple_checking=1 ;;
6744 misc) ac_checking=1 ;;
6745 rtl) ac_rtl_checking=1 ;;
6746 rtlflag) ac_rtlflag_checking=1 ;;
6747 runtime) ac_runtime_checking=1 ;;
6748 tree) ac_tree_checking=1 ;;
6749 types) ac_types_checking=1 ;;
6750 valgrind) ac_valgrind_checking=1 ;;
6751 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6752 esac
6753 done
6754 IFS="$ac_save_IFS"
6756 nocommon_flag=""
6757 if test x$ac_checking != x ; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag=-fno-common
6764 if test x$ac_df_checking != x ; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x$ac_assert_checking != x ; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x$ac_gimple_checking != x ; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x$ac_runtime_checking != x ; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x$ac_tree_checking != x ; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER=tree-browser.o
6790 TREECHECKING=yes
6792 if test x$ac_types_checking != x ; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x$ac_rtl_checking != x ; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x$ac_rtlflag_checking != x ; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x$ac_gc_checking != x ; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x$ac_gc_always_collect != x ; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x$ac_fold_checking != x ; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines=
6825 valgrind_command=
6827 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6829 have_valgrind_h=yes
6830 else
6831 have_valgrind_h=no
6836 # It is certainly possible that there's valgrind but no valgrind.h.
6837 # GCC relies on making annotations so we must have both.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <valgrind/memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6845 #endif
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848 gcc_cv_header_valgrind_memcheck_h=yes
6849 else
6850 gcc_cv_header_valgrind_memcheck_h=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6862 #endif
6863 _ACEOF
6864 if ac_fn_c_try_cpp "$LINENO"; then :
6865 gcc_cv_header_memcheck_h=yes
6866 else
6867 gcc_cv_header_memcheck_h=no
6869 rm -f conftest.err conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6874 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883 if test x$ac_valgrind_checking != x ; then
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6890 chmod +x conf$$.sh
6891 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6892 PATH_SEPARATOR=';'
6893 else
6894 PATH_SEPARATOR=:
6896 rm -f conf$$.sh
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.file <<_ASEOF
6902 #! /bin/sh
6903 exit 0
6904 _ASEOF
6905 chmod +x conf$$.file
6906 if test -x conf$$.file >/dev/null 2>&1; then
6907 ac_executable_p="test -x"
6908 else
6909 ac_executable_p="test -f"
6911 rm -f conf$$.file
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 case "$valgrind_path" in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6926 for ac_dir in $PATH; do
6927 IFS="$ac_save_IFS"
6928 test -z "$ac_dir" && ac_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6932 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6933 break 2
6936 done
6937 done
6938 IFS="$ac_save_IFS"
6940 esac
6942 valgrind_path="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 || (test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6955 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval=$enable_coverage; case "${enableval}" in
6970 yes|noopt)
6971 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6973 opt)
6974 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6978 coverage_flags=""
6981 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6983 esac
6984 else
6985 coverage_flags=""
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval=$enable_gather_detailed_mem_stats;
6993 else
6994 enable_gather_detailed_mem_stats=no
6997 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h <<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7001 _ACEOF
7004 # Check whether --enable-valgrind-annotations was given.
7005 if test "${enable_valgrind_annotations+set}" = set; then :
7006 enableval=$enable_valgrind_annotations;
7007 else
7008 enable_valgrind_annotations=no
7011 if test x$enable_valgrind_annotations != xno \
7012 || test x$ac_valgrind_checking != x; then
7013 if (test $have_valgrind_h = no \
7014 && test $gcc_cv_header_memcheck_h = no \
7015 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7016 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7019 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7027 # With stabs
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval=$with_stabs; stabs="$with_stabs"
7032 else
7033 stabs=no
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval=$enable_multilib;
7041 else
7042 enable_multilib=yes
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto) enable_multiarch=$enableval;;
7052 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7053 esac
7054 else
7055 enable_multiarch=auto
7058 if test x${enable_multiarch} = xauto; then
7059 if test x${with_native_system_header_dir} != x; then
7060 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7061 enable_multiarch=no
7063 if test x$host != x$target && test "x$with_sysroot" = x; then
7064 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7065 enable_multiarch=no
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7092 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7094 esac
7096 else
7098 case $target in
7099 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7100 i?86*-*-gnu* | \
7101 i?86*-*-mingw* | x86_64*-*-mingw* | \
7102 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7103 enable_decimal_float=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float=no
7110 esac
7115 # x86's use BID format instead of DPD
7116 case x$enable_decimal_float in
7117 xyes)
7118 case $target in
7119 i?86*-*-* | x86_64*-*-*)
7120 enable_decimal_float=bid
7123 enable_decimal_float=dpd
7125 esac
7126 default_decimal_float=$enable_decimal_float
7128 xno)
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float=dpd
7133 esac
7138 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7142 _ACEOF
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float=$default_decimal_float
7148 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h <<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7152 _ACEOF
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval=$enable_fixed_point;
7159 else
7161 case $target in
7162 arm*)
7163 enable_fixed_point=yes
7166 mips*-*-*)
7167 enable_fixed_point=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point=no
7174 esac
7180 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h <<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7184 _ACEOF
7187 # Enable threads
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval=$enable_threads;
7193 else
7194 enable_threads=''
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval=$enable_tls;
7201 case $enable_tls in
7202 yes | no) ;;
7203 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7205 esac
7207 else
7208 enable_tls=''
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7215 objc_boehm_gc=''
7216 else
7217 objc_boehm_gc=1
7219 else
7220 objc_boehm_gc=''
7225 # Check whether --with-dwarf2 was given.
7226 if test "${with_dwarf2+set}" = set; then :
7227 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7228 else
7229 dwarf2=no
7233 # Check whether --enable-shared was given.
7234 if test "${enable_shared+set}" = set; then :
7235 enableval=$enable_shared;
7236 case $enable_shared in
7237 yes | no) ;;
7239 enable_shared=no
7240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7241 for pkg in $enableval; do
7242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7243 enable_shared=yes
7245 done
7246 IFS="$ac_save_ifs"
7248 esac
7250 else
7251 enable_shared=yes
7257 # Check whether --with-native-system-header-dir was given.
7258 if test "${with_native_system_header_dir+set}" = set; then :
7259 withval=$with_native_system_header_dir;
7260 case ${with_native_system_header_dir} in
7261 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7262 /* | [A-Za-z]:[\\/]*) ;;
7263 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7264 esac
7265 configured_native_system_header_dir="${withval}"
7267 else
7268 configured_native_system_header_dir=
7273 # Check whether --with-build-sysroot was given.
7274 if test "${with_build_sysroot+set}" = set; then :
7275 withval=$with_build_sysroot; if test x"$withval" != x ; then
7276 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7278 else
7279 SYSROOT_CFLAGS_FOR_TARGET=
7284 if test "x$prefix" = xNONE; then
7285 test_prefix=/usr/local
7286 else
7287 test_prefix=$prefix
7289 if test "x$exec_prefix" = xNONE; then
7290 test_exec_prefix=$test_prefix
7291 else
7292 test_exec_prefix=$exec_prefix
7296 # Check whether --with-sysroot was given.
7297 if test "${with_sysroot+set}" = set; then :
7298 withval=$with_sysroot;
7299 case ${with_sysroot} in
7300 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7301 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7302 esac
7304 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7305 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7307 case ${TARGET_SYSTEM_ROOT} in
7308 "${test_prefix}"|"${test_prefix}/"*|\
7309 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7310 '${prefix}'|'${prefix}/'*|\
7311 '${exec_prefix}'|'${exec_prefix}/'*)
7312 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7313 TARGET_SYSTEM_ROOT_DEFINE="$t"
7315 esac
7317 else
7319 TARGET_SYSTEM_ROOT=
7320 TARGET_SYSTEM_ROOT_DEFINE=
7321 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7330 # Check whether --with-specs was given.
7331 if test "${with_specs+set}" = set; then :
7332 withval=$with_specs; CONFIGURE_SPECS=$withval
7333 else
7334 CONFIGURE_SPECS=
7342 # Check whether --with-pkgversion was given.
7343 if test "${with_pkgversion+set}" = set; then :
7344 withval=$with_pkgversion; case "$withval" in
7345 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7346 no) PKGVERSION= ;;
7347 *) PKGVERSION="($withval) " ;;
7348 esac
7349 else
7350 PKGVERSION="(GCC) "
7358 # Check whether --with-bugurl was given.
7359 if test "${with_bugurl+set}" = set; then :
7360 withval=$with_bugurl; case "$withval" in
7361 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7362 no) BUGURL=
7364 *) BUGURL="$withval"
7366 esac
7367 else
7368 BUGURL="http://gcc.gnu.org/bugs.html"
7372 case ${BUGURL} in
7374 REPORT_BUGS_TO=
7375 REPORT_BUGS_TEXI=
7378 REPORT_BUGS_TO="<$BUGURL>"
7379 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7381 esac;
7386 # Sanity check enable_languages in case someone does not run the toplevel
7387 # configure # script.
7388 # Check whether --enable-languages was given.
7389 if test "${enable_languages+set}" = set; then :
7390 enableval=$enable_languages; case ,${enable_languages}, in
7391 ,,|,yes,)
7392 # go safe -- we cannot be much sure without the toplevel
7393 # configure's
7394 # analysis of which target libs are present and usable
7395 enable_languages=c
7397 *,all,*)
7398 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7400 *,c,*)
7403 enable_languages=c,${enable_languages}
7405 esac
7406 else
7407 enable_languages=c
7411 if test x"$enable_as_accelerator_for" != x; then
7413 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7415 enable_as_accelerator=yes
7416 case "${target}" in
7417 *-intelmicemul-*)
7418 # In this case we expect offload compiler to be built as native, so we
7419 # need to rename the driver to avoid clashes with host's drivers.
7420 program_transform_name="s&^&${target}-&" ;;
7421 esac
7422 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7423 program_transform_name=`echo $program_transform_name | sed $sedscript`
7424 accel_dir_suffix=/accel/${target_noncanonical}
7425 real_target_noncanonical=${enable_as_accelerator_for}
7431 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7432 tgt=`echo $tgt | sed 's/=.*//'`
7433 if test x"$offload_targets" = x; then
7434 offload_targets=$tgt
7435 else
7436 offload_targets="$offload_targets:$tgt"
7438 done
7440 cat >>confdefs.h <<_ACEOF
7441 #define OFFLOAD_TARGETS "$offload_targets"
7442 _ACEOF
7444 if test x"$offload_targets" != x; then
7446 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7451 # Check whether --with-multilib-list was given.
7452 if test "${with_multilib_list+set}" = set; then :
7453 withval=$with_multilib_list; :
7454 else
7455 with_multilib_list=default
7459 # -------------------------
7460 # Checks for other programs
7461 # -------------------------
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7465 set x ${MAKE-make}
7466 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7467 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 cat >conftest.make <<\_ACEOF
7471 SHELL = /bin/sh
7472 all:
7473 @echo '@@@%%%=$(MAKE)=@@@%%%'
7474 _ACEOF
7475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7477 *@@@%%%=?*=@@@%%%*)
7478 eval ac_cv_prog_make_${ac_make}_set=yes;;
7480 eval ac_cv_prog_make_${ac_make}_set=no;;
7481 esac
7482 rm -f conftest.make
7484 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7486 $as_echo "yes" >&6; }
7487 SET_MAKE=
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 SET_MAKE="MAKE=${MAKE-make}"
7495 # Find some useful tools
7496 for ac_prog in gawk mawk nawk awk
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_prog_AWK+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$AWK"; then
7506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_AWK="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7525 AWK=$ac_cv_prog_AWK
7526 if test -n "$AWK"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7528 $as_echo "$AWK" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 test -n "$AWK" && break
7536 done
7538 # We need awk to create options.c and options.h.
7539 # Bail out if it's missing.
7540 case ${AWK} in
7541 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7542 esac
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7545 $as_echo_n "checking whether ln -s works... " >&6; }
7546 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 rm -f conftestdata_t
7550 echo >conftestdata_f
7551 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7552 then
7553 gcc_cv_prog_LN_S="ln -s"
7554 else
7555 if ln conftestdata_f conftestdata_t 2>/dev/null
7556 then
7557 gcc_cv_prog_LN_S=ln
7558 else
7559 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7560 then
7561 gcc_cv_prog_LN_S="cp -p"
7562 else
7563 gcc_cv_prog_LN_S=cp
7567 rm -f conftestdata_f conftestdata_t
7570 LN_S="$gcc_cv_prog_LN_S"
7571 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7574 else
7575 if test "$gcc_cv_prog_LN_S" = "ln"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7577 $as_echo "no, using ln" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7580 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7585 $as_echo_n "checking whether ln works... " >&6; }
7586 if test "${acx_cv_prog_LN+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 rm -f conftestdata_t
7590 echo >conftestdata_f
7591 if ln conftestdata_f conftestdata_t 2>/dev/null
7592 then
7593 acx_cv_prog_LN=ln
7594 else
7595 acx_cv_prog_LN=no
7597 rm -f conftestdata_f conftestdata_t
7600 if test $acx_cv_prog_LN = no; then
7601 LN="$LN_S"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7603 $as_echo "no, using $LN" >&6; }
7604 else
7605 LN="$acx_cv_prog_LN"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7607 $as_echo "yes" >&6; }
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 if test -n "$RANLIB"; then
7619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7632 done
7633 done
7634 IFS=$as_save_IFS
7638 RANLIB=$ac_cv_prog_RANLIB
7639 if test -n "$RANLIB"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7641 $as_echo "$RANLIB" >&6; }
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_prog_RANLIB"; then
7650 ac_ct_RANLIB=$RANLIB
7651 # Extract the first word of "ranlib", so it can be a program name with args.
7652 set dummy ranlib; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$ac_ct_RANLIB"; then
7659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_ac_ct_RANLIB="ranlib"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7679 if test -n "$ac_ct_RANLIB"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7681 $as_echo "$ac_ct_RANLIB" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7687 if test "x$ac_ct_RANLIB" = x; then
7688 RANLIB=":"
7689 else
7690 case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696 RANLIB=$ac_ct_RANLIB
7698 else
7699 RANLIB="$ac_cv_prog_RANLIB"
7702 ranlib_flags=""
7705 # Find a good install program. We prefer a C program (faster),
7706 # so one script is as good as another. But avoid the broken or
7707 # incompatible versions:
7708 # SysV /etc/install, /usr/sbin/install
7709 # SunOS /usr/etc/install
7710 # IRIX /sbin/install
7711 # AIX /bin/install
7712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7714 # ./install, which can be erroneously created by make from ./install.sh.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7716 $as_echo_n "checking for a BSD compatible install... " >&6; }
7717 if test -z "$INSTALL"; then
7718 if test "${ac_cv_path_install+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7722 for ac_dir in $PATH; do
7723 # Account for people who put trailing slashes in PATH elements.
7724 case "$ac_dir/" in
7725 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7727 # OSF1 and SCO ODT 3.0 have their own names for install.
7728 for ac_prog in ginstall scoinst install; do
7729 if test -f $ac_dir/$ac_prog; then
7730 if test $ac_prog = install &&
7731 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7732 # AIX install. It has an incompatible calling convention.
7733 # OSF/1 installbsd also uses dspmsg, but is usable.
7735 else
7736 ac_cv_path_install="$ac_dir/$ac_prog -c"
7737 break 2
7740 done
7742 esac
7743 done
7744 IFS="$ac_save_IFS"
7747 if test "${ac_cv_path_install+set}" = set; then
7748 INSTALL="$ac_cv_path_install"
7749 else
7750 # As a last resort, use the slow shell script. We don't cache a
7751 # path for INSTALL within a source directory, because that will
7752 # break other packages using the cache if that directory is
7753 # removed, or if the path is relative.
7754 INSTALL="$ac_install_sh"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7758 $as_echo "$INSTALL" >&6; }
7760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7761 # It thinks the first close brace ends the variable substitution.
7762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7767 # See if cmp has --ignore-initial.
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7769 $as_echo_n "checking for cmp's capabilities... " >&6; }
7770 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 echo abfoo >t1
7774 echo cdfoo >t2
7775 gcc_cv_prog_cmp_skip=slowcompare
7776 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7777 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7779 else
7780 gcc_cv_prog_cmp_skip=gnucompare
7783 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7784 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7785 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7787 else
7788 gcc_cv_prog_cmp_skip=fastcompare
7792 rm t1 t2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7796 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7797 make_compare_target=$gcc_cv_prog_cmp_skip
7801 # See if we have the mktemp command.
7802 # Extract the first word of "mktemp", so it can be a program name with args.
7803 set dummy mktemp; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$have_mktemp_command"; then
7810 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_have_mktemp_command="yes"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7827 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7830 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7831 if test -n "$have_mktemp_command"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7833 $as_echo "$have_mktemp_command" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7841 # See if makeinfo has been installed and is modern enough
7842 # that we can use it.
7844 # Extract the first word of "makeinfo", so it can be a program name with args.
7845 set dummy makeinfo; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$MAKEINFO"; then
7852 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_MAKEINFO="makeinfo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7871 MAKEINFO=$ac_cv_prog_MAKEINFO
7872 if test -n "$MAKEINFO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7874 $as_echo "$MAKEINFO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 if test -n "$MAKEINFO"; then
7882 # Found it, now check the version.
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7884 $as_echo_n "checking for modern makeinfo... " >&6; }
7885 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7889 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7891 case $ac_prog_version in
7892 '') gcc_cv_prog_makeinfo_modern=no;;
7893 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7894 *) gcc_cv_prog_makeinfo_modern=no;;
7895 esac
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7899 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7900 else
7901 gcc_cv_prog_makeinfo_modern=no
7903 if test $gcc_cv_prog_makeinfo_modern = no; then
7904 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7907 if test $gcc_cv_prog_makeinfo_modern = no; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7909 *** Makeinfo is missing or too old.
7910 *** Info documentation will not be built." >&5
7911 $as_echo "$as_me: WARNING:
7912 *** Makeinfo is missing or too old.
7913 *** Info documentation will not be built." >&2;}
7914 BUILD_INFO=
7915 else
7916 BUILD_INFO=info
7920 # Is pod2man recent enough to regenerate manpages?
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7922 $as_echo_n "checking for recent Pod::Man... " >&6; }
7923 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7926 GENERATED_MANPAGES=generated-manpages
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 GENERATED_MANPAGES=
7934 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7936 # How about lex?
7937 for ac_prog in flex
7939 # Extract the first word of "$ac_prog", so it can be a program name with args.
7940 set dummy $ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_FLEX+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$FLEX"; then
7947 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_FLEX="$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 FLEX=$ac_cv_prog_FLEX
7967 if test -n "$FLEX"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7969 $as_echo "$FLEX" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976 test -n "$FLEX" && break
7977 done
7978 test -n "$FLEX" || FLEX="$MISSING flex"
7981 # Bison?
7982 for ac_prog in bison
7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
7985 set dummy $ac_prog; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_BISON+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 if test -n "$BISON"; then
7992 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_BISON="$ac_prog"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8005 done
8006 done
8007 IFS=$as_save_IFS
8011 BISON=$ac_cv_prog_BISON
8012 if test -n "$BISON"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8014 $as_echo "$BISON" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8021 test -n "$BISON" && break
8022 done
8023 test -n "$BISON" || BISON="$MISSING bison"
8026 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8027 # check for build == host before using them.
8029 # NM
8030 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8031 && test -d ../binutils ; then
8032 NM='${objdir}/../binutils/nm-new'
8033 else
8034 # Extract the first word of "nm", so it can be a program name with args.
8035 set dummy nm; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_NM+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$NM"; then
8042 ac_cv_prog_NM="$NM" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_prog_NM="nm"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8055 done
8056 done
8057 IFS=$as_save_IFS
8059 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8062 NM=$ac_cv_prog_NM
8063 if test -n "$NM"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8065 $as_echo "$NM" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8074 # AR
8075 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8076 && test -d ../binutils ; then
8077 AR='${objdir}/../binutils/ar'
8078 else
8079 # Extract the first word of "ar", so it can be a program name with args.
8080 set dummy ar; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_AR="ar"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8104 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8107 AR=$ac_cv_prog_AR
8108 if test -n "$AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8119 # The jit documentation looks better if built with sphinx, but can be
8120 # built with texinfo if sphinx is not available.
8121 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8122 # Extract the first word of "sphinx-build", so it can be a program name with args.
8123 set dummy sphinx-build; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$doc_build_sys"; then
8130 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_doc_build_sys="sphinx"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8143 done
8144 done
8145 IFS=$as_save_IFS
8147 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8150 doc_build_sys=$ac_cv_prog_doc_build_sys
8151 if test -n "$doc_build_sys"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8153 $as_echo "$doc_build_sys" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 # --------------------
8162 # Checks for C headers
8163 # --------------------
8165 # Need to reject headers which give warnings, so that the -Werror bootstrap
8166 # works later. *sigh* This needs to come before all header checks.
8168 ac_c_preproc_warn_flag=yes
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8171 $as_echo_n "checking for ANSI C header files... " >&6; }
8172 if test "${ac_cv_header_stdc+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <stdlib.h>
8178 #include <stdarg.h>
8179 #include <string.h>
8180 #include <float.h>
8183 main ()
8187 return 0;
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 ac_cv_header_stdc=yes
8192 else
8193 ac_cv_header_stdc=no
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 if test $ac_cv_header_stdc = yes; then
8198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <string.h>
8203 _ACEOF
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "memchr" >/dev/null 2>&1; then :
8207 else
8208 ac_cv_header_stdc=no
8210 rm -f conftest*
8214 if test $ac_cv_header_stdc = yes; then
8215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <stdlib.h>
8220 _ACEOF
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "free" >/dev/null 2>&1; then :
8224 else
8225 ac_cv_header_stdc=no
8227 rm -f conftest*
8231 if test $ac_cv_header_stdc = yes; then
8232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233 if test "$cross_compiling" = yes; then :
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <ctype.h>
8239 #include <stdlib.h>
8240 #if ((' ' & 0x0FF) == 0x020)
8241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8243 #else
8244 # define ISLOWER(c) \
8245 (('a' <= (c) && (c) <= 'i') \
8246 || ('j' <= (c) && (c) <= 'r') \
8247 || ('s' <= (c) && (c) <= 'z'))
8248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8249 #endif
8251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8253 main ()
8255 int i;
8256 for (i = 0; i < 256; i++)
8257 if (XOR (islower (i), ISLOWER (i))
8258 || toupper (i) != TOUPPER (i))
8259 return 2;
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_run "$LINENO"; then :
8265 else
8266 ac_cv_header_stdc=no
8268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8269 conftest.$ac_objext conftest.beam conftest.$ac_ext
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8275 $as_echo "$ac_cv_header_stdc" >&6; }
8276 if test $ac_cv_header_stdc = yes; then
8278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8284 if test "${ac_cv_header_time+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #include <sys/types.h>
8290 #include <sys/time.h>
8291 #include <time.h>
8294 main ()
8296 if ((struct tm *) 0)
8297 return 0;
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 ac_cv_header_time=yes
8304 else
8305 ac_cv_header_time=no
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8310 $as_echo "$ac_cv_header_time" >&6; }
8311 if test $ac_cv_header_time = yes; then
8313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8318 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8319 if test "${gcc_cv_header_string+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <string.h>
8325 #include <strings.h>
8327 main ()
8331 return 0;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 gcc_cv_header_string=yes
8336 else
8337 gcc_cv_header_string=no
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8342 $as_echo "$gcc_cv_header_string" >&6; }
8343 if test $gcc_cv_header_string = yes; then
8345 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8350 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8351 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <sys/types.h>
8357 #include <sys/wait.h>
8358 #ifndef WEXITSTATUS
8359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8360 #endif
8361 #ifndef WIFEXITED
8362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8363 #endif
8366 main ()
8368 int s;
8369 wait (&s);
8370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8372 return 0;
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 ac_cv_header_sys_wait_h=yes
8377 else
8378 ac_cv_header_sys_wait_h=no
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8383 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8384 if test $ac_cv_header_sys_wait_h = yes; then
8386 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8391 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8392 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <termios.h>
8399 #ifdef TIOCGWINSZ
8401 #endif
8403 _ACEOF
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "yes" >/dev/null 2>&1; then :
8406 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8407 else
8408 ac_cv_sys_tiocgwinsz_in_termios_h=no
8410 rm -f conftest*
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8414 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8416 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8418 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8419 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 #include <sys/types.h>
8425 #include <sys/ioctl.h>
8426 #ifdef TIOCGWINSZ
8428 #endif
8430 _ACEOF
8431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432 $EGREP "yes" >/dev/null 2>&1; then :
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8434 else
8435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8437 rm -f conftest*
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8441 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8443 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8445 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8450 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8451 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8452 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8453 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8454 do :
8455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8457 eval as_val=\$$as_ac_Header
8458 if test "x$as_val" = x""yes; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 _ACEOF
8464 done
8467 # Check for thread headers.
8468 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8469 if test "x$ac_cv_header_thread_h" = x""yes; then :
8470 have_thread_h=yes
8471 else
8472 have_thread_h=
8475 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8476 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8477 have_pthread_h=yes
8478 else
8479 have_pthread_h=
8483 # These tests can't be done till we know if we have limits.h.
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8485 $as_echo_n "checking for CHAR_BIT... " >&6; }
8486 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #ifdef HAVE_LIMITS_H
8492 #include <limits.h>
8493 #endif
8494 #ifdef CHAR_BIT
8495 found
8496 #endif
8497 _ACEOF
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "found" >/dev/null 2>&1; then :
8500 gcc_cv_decl_char_bit=yes
8501 else
8502 gcc_cv_decl_char_bit=no
8504 rm -f conftest*
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8509 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8510 if test $gcc_cv_decl_char_bit = no; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8512 $as_echo_n "checking number of bits in a byte... " >&6; }
8513 if test "${gcc_cv_c_nbby+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8517 gcc_cv_c_nbby=
8518 while test $i -lt 65; do
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8523 main ()
8525 switch(0) {
8526 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8527 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8530 return 0;
8532 _ACEOF
8533 if ac_fn_c_try_compile "$LINENO"; then :
8534 gcc_cv_c_nbby=$i; break
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 i=`expr $i + 1`
8538 done
8539 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8543 $as_echo "$gcc_cv_c_nbby" >&6; }
8544 if test $gcc_cv_c_nbby = failed; then
8545 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8546 else
8548 cat >>confdefs.h <<_ACEOF
8549 #define CHAR_BIT $gcc_cv_c_nbby
8550 _ACEOF
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8555 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8556 if test "${ac_cv_c_bigendian+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 ac_cv_c_bigendian=unknown
8560 # See if we're dealing with a universal compiler.
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 #ifndef __APPLE_CC__
8564 not a universal capable compiler
8565 #endif
8566 typedef int dummy;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8571 # Check for potential -arch flags. It is not universal unless
8572 # there are at least two -arch flags with different values.
8573 ac_arch=
8574 ac_prev=
8575 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8576 if test -n "$ac_prev"; then
8577 case $ac_word in
8578 i?86 | x86_64 | ppc | ppc64)
8579 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8580 ac_arch=$ac_word
8581 else
8582 ac_cv_c_bigendian=universal
8583 break
8586 esac
8587 ac_prev=
8588 elif test "x$ac_word" = "x-arch"; then
8589 ac_prev=arch
8591 done
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 if test $ac_cv_c_bigendian = unknown; then
8595 # See if sys/param.h defines the BYTE_ORDER macro.
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <sys/types.h>
8599 #include <sys/param.h>
8602 main ()
8604 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8605 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8606 && LITTLE_ENDIAN)
8607 bogus endian macros
8608 #endif
8611 return 0;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 # It does; now see whether it defined to BIG_ENDIAN or not.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/param.h>
8622 main ()
8624 #if BYTE_ORDER != BIG_ENDIAN
8625 not big endian
8626 #endif
8629 return 0;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 ac_cv_c_bigendian=yes
8634 else
8635 ac_cv_c_bigendian=no
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 if test $ac_cv_c_bigendian = unknown; then
8642 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <limits.h>
8648 main ()
8650 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8651 bogus endian macros
8652 #endif
8655 return 0;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"; then :
8659 # It does; now see whether it defined to _BIG_ENDIAN or not.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <limits.h>
8665 main ()
8667 #ifndef _BIG_ENDIAN
8668 not big endian
8669 #endif
8672 return 0;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 ac_cv_c_bigendian=yes
8677 else
8678 ac_cv_c_bigendian=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 if test $ac_cv_c_bigendian = unknown; then
8685 # Compile a test program.
8686 if test "$cross_compiling" = yes; then :
8687 # Try to guess by grepping values from an object file.
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 short int ascii_mm[] =
8691 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8692 short int ascii_ii[] =
8693 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8694 int use_ascii (int i) {
8695 return ascii_mm[i] + ascii_ii[i];
8697 short int ebcdic_ii[] =
8698 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8699 short int ebcdic_mm[] =
8700 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8701 int use_ebcdic (int i) {
8702 return ebcdic_mm[i] + ebcdic_ii[i];
8704 extern int foo;
8707 main ()
8709 return use_ascii (foo) == use_ebcdic (foo);
8711 return 0;
8713 _ACEOF
8714 if ac_fn_c_try_compile "$LINENO"; then :
8715 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8716 ac_cv_c_bigendian=yes
8718 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8719 if test "$ac_cv_c_bigendian" = unknown; then
8720 ac_cv_c_bigendian=no
8721 else
8722 # finding both strings is unlikely to happen, but who knows?
8723 ac_cv_c_bigendian=unknown
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 $ac_includes_default
8733 main ()
8736 /* Are we little or big endian? From Harbison&Steele. */
8737 union
8739 long int l;
8740 char c[sizeof (long int)];
8741 } u;
8742 u.l = 1;
8743 return u.c[sizeof (long int) - 1] == 1;
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_run "$LINENO"; then :
8750 ac_cv_c_bigendian=no
8751 else
8752 ac_cv_c_bigendian=yes
8754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8755 conftest.$ac_objext conftest.beam conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8761 $as_echo "$ac_cv_c_bigendian" >&6; }
8762 case $ac_cv_c_bigendian in #(
8763 yes)
8764 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8765 ;; #(
8767 ;; #(
8768 universal)
8770 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8772 ;; #(
8774 as_fn_error "unknown endianness
8775 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8776 esac
8779 # ----------------------
8780 # Checks for C++ headers
8781 # ----------------------
8783 ac_ext=cpp
8784 ac_cpp='$CXXCPP $CPPFLAGS'
8785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8789 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8790 if test -z "$CXXCPP"; then
8791 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 # Double quotes because CXXCPP needs to be expanded
8795 for CXXCPP in "$CXX -E" "/lib/cpp"
8797 ac_preproc_ok=false
8798 for ac_cxx_preproc_warn_flag in '' yes
8800 # Use a header file that comes with gcc, so configuring glibc
8801 # with a fresh cross-compiler works.
8802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 # <limits.h> exists even on freestanding compilers.
8804 # On the NeXT, cc -E runs the code through the compiler's parser,
8805 # not just through cpp. "Syntax error" is here to catch this case.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813 Syntax error
8814 _ACEOF
8815 if ac_fn_cxx_try_cpp "$LINENO"; then :
8817 else
8818 # Broken: fails on valid input.
8819 continue
8821 rm -f conftest.err conftest.$ac_ext
8823 # OK, works on sane cases. Now check whether nonexistent headers
8824 # can be detected and how.
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <ac_nonexistent.h>
8828 _ACEOF
8829 if ac_fn_cxx_try_cpp "$LINENO"; then :
8830 # Broken: success on invalid input.
8831 continue
8832 else
8833 # Passes both tests.
8834 ac_preproc_ok=:
8835 break
8837 rm -f conftest.err conftest.$ac_ext
8839 done
8840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8841 rm -f conftest.err conftest.$ac_ext
8842 if $ac_preproc_ok; then :
8843 break
8846 done
8847 ac_cv_prog_CXXCPP=$CXXCPP
8850 CXXCPP=$ac_cv_prog_CXXCPP
8851 else
8852 ac_cv_prog_CXXCPP=$CXXCPP
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8855 $as_echo "$CXXCPP" >&6; }
8856 ac_preproc_ok=false
8857 for ac_cxx_preproc_warn_flag in '' yes
8859 # Use a header file that comes with gcc, so configuring glibc
8860 # with a fresh cross-compiler works.
8861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8862 # <limits.h> exists even on freestanding compilers.
8863 # On the NeXT, cc -E runs the code through the compiler's parser,
8864 # not just through cpp. "Syntax error" is here to catch this case.
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 #ifdef __STDC__
8868 # include <limits.h>
8869 #else
8870 # include <assert.h>
8871 #endif
8872 Syntax error
8873 _ACEOF
8874 if ac_fn_cxx_try_cpp "$LINENO"; then :
8876 else
8877 # Broken: fails on valid input.
8878 continue
8880 rm -f conftest.err conftest.$ac_ext
8882 # OK, works on sane cases. Now check whether nonexistent headers
8883 # can be detected and how.
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <ac_nonexistent.h>
8887 _ACEOF
8888 if ac_fn_cxx_try_cpp "$LINENO"; then :
8889 # Broken: success on invalid input.
8890 continue
8891 else
8892 # Passes both tests.
8893 ac_preproc_ok=:
8894 break
8896 rm -f conftest.err conftest.$ac_ext
8898 done
8899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8900 rm -f conftest.err conftest.$ac_ext
8901 if $ac_preproc_ok; then :
8903 else
8904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&5
8908 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8909 See \`config.log' for more details." >&2;}; }
8912 ac_ext=c
8913 ac_cpp='$CPP $CPPFLAGS'
8914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 ac_ext=cpp
8920 ac_cpp='$CXXCPP $CPPFLAGS'
8921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8927 for ac_header in unordered_map
8928 do :
8929 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8930 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8931 cat >>confdefs.h <<_ACEOF
8932 #define HAVE_UNORDERED_MAP 1
8933 _ACEOF
8936 done
8938 for ac_header in tr1/unordered_map
8939 do :
8940 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8941 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_TR1_UNORDERED_MAP 1
8944 _ACEOF
8947 done
8949 for ac_header in ext/hash_map
8950 do :
8951 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8952 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_EXT_HASH_MAP 1
8955 _ACEOF
8958 done
8961 ac_ext=c
8962 ac_cpp='$CPP $CPPFLAGS'
8963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8968 # --------
8969 # Dependency checking.
8970 # --------
8972 ac_ext=cpp
8973 ac_cpp='$CXXCPP $CPPFLAGS'
8974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8978 rm -rf .tst 2>/dev/null
8979 mkdir .tst 2>/dev/null
8980 if test -d .tst; then
8981 am__leading_dot=.
8982 else
8983 am__leading_dot=_
8985 rmdir .tst 2>/dev/null
8987 DEPDIR="${am__leading_dot}deps"
8989 ac_config_commands="$ac_config_commands depdir"
8992 ac_config_commands="$ac_config_commands gccdepdir"
8995 depcc="$CXX" am_compiler_list=
8997 am_depcomp=$ac_aux_dir/depcomp
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8999 $as_echo_n "checking dependency style of $depcc... " >&6; }
9000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -f "$am_depcomp"; then
9004 # We make a subdir and do the tests there. Otherwise we can end up
9005 # making bogus files that we don't know about and never remove. For
9006 # instance it was reported that on HP-UX the gcc test will end up
9007 # making a dummy file named `D' -- because `-MD' means `put the output
9008 # in D'.
9009 mkdir conftest.dir
9010 # Copy depcomp to subdir because otherwise we won't find it if we're
9011 # using a relative directory.
9012 cp "$am_depcomp" conftest.dir
9013 cd conftest.dir
9014 # We will build objects and dependencies in a subdirectory because
9015 # it helps to detect inapplicable dependency modes. For instance
9016 # both Tru64's cc and ICC support -MD to output dependencies as a
9017 # side effect of compilation, but ICC will put the dependencies in
9018 # the current directory while Tru64 will put them in the object
9019 # directory.
9020 mkdir sub
9022 am_cv_CXX_dependencies_compiler_type=none
9023 if test "$am_compiler_list" = ""; then
9024 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9026 for depmode in $am_compiler_list; do
9027 if test $depmode = none; then break; fi
9029 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9030 # Setup a source with many dependencies, because some compilers
9031 # like to wrap large dependency lists on column 80 (with \), and
9032 # we should not choose a depcomp mode which is confused by this.
9034 # We need to recreate these files for each test, as the compiler may
9035 # overwrite some of them when testing with obscure command lines.
9036 # This happens at least with the AIX C compiler.
9037 : > sub/conftest.c
9038 for i in 1 2 3 4 5 6; do
9039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9041 # Solaris 8's {/usr,}/bin/sh.
9042 touch sub/conftst$i.h
9043 done
9044 echo "include sub/conftest.Po" > confmf
9046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9047 # mode. It turns out that the SunPro C++ compiler does not properly
9048 # handle `-M -o', and we need to detect this.
9049 depcmd="depmode=$depmode \
9050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9053 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9054 if env $depcmd > conftest.err 2>&1 &&
9055 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9056 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9057 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9058 # icc doesn't choke on unknown options, it will just issue warnings
9059 # or remarks (even with -Werror). So we grep stderr for any message
9060 # that says an option was ignored or not supported.
9061 # When given -MP, icc 7.0 and 7.1 complain thusly:
9062 # icc: Command line warning: ignoring option '-M'; no argument required
9063 # The diagnosis changed in icc 8.0:
9064 # icc: Command line remark: option '-MP' not supported
9065 if (grep 'ignoring option' conftest.err ||
9066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9067 am_cv_CXX_dependencies_compiler_type=$depmode
9068 $as_echo "$as_me:$LINENO: success" >&5
9069 break
9072 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9073 sed -e 's/^/| /' < conftest.err >&5
9074 done
9076 cd ..
9077 rm -rf conftest.dir
9078 else
9079 am_cv_CXX_dependencies_compiler_type=none
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9084 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9085 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9086 then as_fn_error "no usable dependency style found" "$LINENO" 5
9087 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9091 ac_ext=c
9092 ac_cpp='$CPP $CPPFLAGS'
9093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098 # --------
9099 # UNSORTED
9100 # --------
9103 # These libraries may be used by collect2.
9104 # We may need a special search path to get them linked.
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9106 $as_echo_n "checking for collect2 libraries... " >&6; }
9107 if test "${gcc_cv_collect2_libs+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 save_LIBS="$LIBS"
9111 for libs in '' -lld -lmld \
9112 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9113 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9115 LIBS="$libs"
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9122 #ifdef __cplusplus
9123 extern "C"
9124 #endif
9125 char ldopen ();
9127 main ()
9129 return ldopen ();
9131 return 0;
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 gcc_cv_collect2_libs="$libs"; break
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9140 LIBS="$save_LIBS"
9141 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9144 $as_echo "$gcc_cv_collect2_libs" >&6; }
9145 case $gcc_cv_collect2_libs in
9146 "none required") ;;
9147 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9148 esac
9151 # When building Ada code on Alpha, we need exc_resume which is usually in
9152 # -lexc. So test for it.
9153 save_LIBS="$LIBS"
9154 LIBS=
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9156 $as_echo_n "checking for library containing exc_resume... " >&6; }
9157 if test "${ac_cv_search_exc_resume+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 ac_func_search_save_LIBS=$LIBS
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9164 /* Override any GCC internal prototype to avoid an error.
9165 Use char because int might match the return type of a GCC
9166 builtin and then its argument prototype would still apply. */
9167 #ifdef __cplusplus
9168 extern "C"
9169 #endif
9170 char exc_resume ();
9172 main ()
9174 return exc_resume ();
9176 return 0;
9178 _ACEOF
9179 for ac_lib in '' exc; do
9180 if test -z "$ac_lib"; then
9181 ac_res="none required"
9182 else
9183 ac_res=-l$ac_lib
9184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 ac_cv_search_exc_resume=$ac_res
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext
9191 if test "${ac_cv_search_exc_resume+set}" = set; then :
9192 break
9194 done
9195 if test "${ac_cv_search_exc_resume+set}" = set; then :
9197 else
9198 ac_cv_search_exc_resume=no
9200 rm conftest.$ac_ext
9201 LIBS=$ac_func_search_save_LIBS
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9204 $as_echo "$ac_cv_search_exc_resume" >&6; }
9205 ac_res=$ac_cv_search_exc_resume
9206 if test "$ac_res" != no; then :
9207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9211 GNAT_LIBEXC="$LIBS"
9212 LIBS="$save_LIBS"
9215 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9216 save_LIBS="$LIBS"
9217 LIBS=
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9219 $as_echo_n "checking for library containing kstat_open... " >&6; }
9220 if test "${ac_cv_search_kstat_open+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 ac_func_search_save_LIBS=$LIBS
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char kstat_open ();
9235 main ()
9237 return kstat_open ();
9239 return 0;
9241 _ACEOF
9242 for ac_lib in '' kstat; do
9243 if test -z "$ac_lib"; then
9244 ac_res="none required"
9245 else
9246 ac_res=-l$ac_lib
9247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 ac_cv_search_kstat_open=$ac_res
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext
9254 if test "${ac_cv_search_kstat_open+set}" = set; then :
9255 break
9257 done
9258 if test "${ac_cv_search_kstat_open+set}" = set; then :
9260 else
9261 ac_cv_search_kstat_open=no
9263 rm conftest.$ac_ext
9264 LIBS=$ac_func_search_save_LIBS
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9267 $as_echo "$ac_cv_search_kstat_open" >&6; }
9268 ac_res=$ac_cv_search_kstat_open
9269 if test "$ac_res" != no; then :
9270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9274 EXTRA_GCC_LIBS="$LIBS"
9275 LIBS="$save_LIBS"
9278 # Some systems put ldexp and frexp in libm instead of libc; assume
9279 # they're both in the same place. jcf-dump needs them.
9280 save_LIBS="$LIBS"
9281 LIBS=
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9283 $as_echo_n "checking for library containing ldexp... " >&6; }
9284 if test "${ac_cv_search_ldexp+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 ac_func_search_save_LIBS=$LIBS
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char ldexp ();
9299 main ()
9301 return ldexp ();
9303 return 0;
9305 _ACEOF
9306 for ac_lib in '' m; do
9307 if test -z "$ac_lib"; then
9308 ac_res="none required"
9309 else
9310 ac_res=-l$ac_lib
9311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_search_ldexp=$ac_res
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext
9318 if test "${ac_cv_search_ldexp+set}" = set; then :
9319 break
9321 done
9322 if test "${ac_cv_search_ldexp+set}" = set; then :
9324 else
9325 ac_cv_search_ldexp=no
9327 rm conftest.$ac_ext
9328 LIBS=$ac_func_search_save_LIBS
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9331 $as_echo "$ac_cv_search_ldexp" >&6; }
9332 ac_res=$ac_cv_search_ldexp
9333 if test "$ac_res" != no; then :
9334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9338 LDEXP_LIB="$LIBS"
9339 LIBS="$save_LIBS"
9342 # Use <inttypes.h> only if it exists,
9343 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9344 # PRId64
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9346 $as_echo_n "checking for inttypes.h... " >&6; }
9347 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 #define __STDC_FORMAT_MACROS
9353 #include <sys/types.h>
9354 #include <inttypes.h>
9356 main ()
9358 intmax_t i = -1;
9359 #ifndef PRId64
9360 choke me
9361 #endif
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"; then :
9367 gcc_cv_header_inttypes_h=yes
9368 else
9369 gcc_cv_header_inttypes_h=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9375 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9376 if test $gcc_cv_header_inttypes_h = yes; then
9378 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9384 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9385 popen sysconf strsignal getrusage nl_langinfo \
9386 gettimeofday mbstowcs wcswidth mmap setlocale \
9387 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
9388 do :
9389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9391 eval as_val=\$$as_ac_var
9392 if test "x$as_val" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9395 _ACEOF
9398 done
9401 if test x$ac_cv_func_mbstowcs = xyes; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9403 $as_echo_n "checking whether mbstowcs works... " >&6; }
9404 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test "$cross_compiling" = yes; then :
9408 gcc_cv_func_mbstowcs_works=yes
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <stdlib.h>
9413 int main()
9415 mbstowcs(0, "", 0);
9416 return 0;
9418 _ACEOF
9419 if ac_fn_c_try_run "$LINENO"; then :
9420 gcc_cv_func_mbstowcs_works=yes
9421 else
9422 gcc_cv_func_mbstowcs_works=no
9424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9430 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9431 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9433 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9438 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9439 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9441 else
9443 cat >>confdefs.h <<_ACEOF
9444 #define ssize_t int
9445 _ACEOF
9449 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9450 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9452 else
9454 cat >>confdefs.h <<_ACEOF
9455 #define caddr_t char *
9456 _ACEOF
9462 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9463 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9464 gcc_header_sys_mman_h=yes
9465 else
9466 gcc_header_sys_mman_h=no
9469 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9470 if test "x$ac_cv_func_mmap" = x""yes; then :
9471 gcc_func_mmap=yes
9472 else
9473 gcc_func_mmap=no
9476 if test "$gcc_header_sys_mman_h" != yes \
9477 || test "$gcc_func_mmap" != yes; then
9478 gcc_cv_func_mmap_file=no
9479 gcc_cv_func_mmap_dev_zero=no
9480 gcc_cv_func_mmap_anon=no
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9483 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9484 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 # Add a system to this blacklist if
9488 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9489 # memory area containing the same data that you'd get if you applied
9490 # read() to the same fd. The only system known to have a problem here
9491 # is VMS, where text files have record structure.
9492 case "$host_os" in
9493 *vms* | ultrix*)
9494 gcc_cv_func_mmap_file=no ;;
9496 gcc_cv_func_mmap_file=yes;;
9497 esac
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9500 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9502 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9503 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 # Add a system to this blacklist if it has mmap() but /dev/zero
9507 # does not exist, or if mmapping /dev/zero does not give anonymous
9508 # zeroed pages with both the following properties:
9509 # 1. If you map N consecutive pages in with one call, and then
9510 # unmap any subset of those pages, the pages that were not
9511 # explicitly unmapped remain accessible.
9512 # 2. If you map two adjacent blocks of memory and then unmap them
9513 # both at once, they must both go away.
9514 # Systems known to be in this category are Windows (all variants),
9515 # VMS, and Darwin.
9516 case "$host_os" in
9517 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9518 gcc_cv_func_mmap_dev_zero=no ;;
9520 gcc_cv_func_mmap_dev_zero=yes;;
9521 esac
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9524 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9526 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9528 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9529 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <sys/types.h>
9535 #include <sys/mman.h>
9536 #include <unistd.h>
9538 #ifndef MAP_ANONYMOUS
9539 #define MAP_ANONYMOUS MAP_ANON
9540 #endif
9543 main ()
9545 int n = MAP_ANONYMOUS;
9547 return 0;
9549 _ACEOF
9550 if ac_fn_c_try_compile "$LINENO"; then :
9551 gcc_cv_decl_map_anon=yes
9552 else
9553 gcc_cv_decl_map_anon=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9558 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9560 if test $gcc_cv_decl_map_anon = no; then
9561 gcc_cv_func_mmap_anon=no
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9564 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9565 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9569 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9570 # doesn't give anonymous zeroed pages with the same properties listed
9571 # above for use of /dev/zero.
9572 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9573 case "$host_os" in
9574 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9575 gcc_cv_func_mmap_anon=no ;;
9577 gcc_cv_func_mmap_anon=yes;;
9578 esac
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9581 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9585 if test $gcc_cv_func_mmap_file = yes; then
9587 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9590 if test $gcc_cv_func_mmap_dev_zero = yes; then
9592 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9595 if test $gcc_cv_func_mmap_anon = yes; then
9597 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9602 case "${host}" in
9603 *-*-*vms*)
9604 # Under VMS, vfork works very differently than on Unix. The standard test
9605 # won't work, and it isn't easily adaptable. It makes more sense to
9606 # just force it.
9607 ac_cv_func_vfork_works=yes
9609 esac
9610 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9611 if test "x$ac_cv_type_pid_t" = x""yes; then :
9613 else
9615 cat >>confdefs.h <<_ACEOF
9616 #define pid_t int
9617 _ACEOF
9621 for ac_header in vfork.h
9622 do :
9623 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9624 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9625 cat >>confdefs.h <<_ACEOF
9626 #define HAVE_VFORK_H 1
9627 _ACEOF
9630 done
9632 for ac_func in fork vfork
9633 do :
9634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9636 eval as_val=\$$as_ac_var
9637 if test "x$as_val" = x""yes; then :
9638 cat >>confdefs.h <<_ACEOF
9639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9640 _ACEOF
9643 done
9645 if test "x$ac_cv_func_fork" = xyes; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9647 $as_echo_n "checking for working fork... " >&6; }
9648 if test "${ac_cv_func_fork_works+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test "$cross_compiling" = yes; then :
9652 ac_cv_func_fork_works=cross
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 $ac_includes_default
9658 main ()
9661 /* By Ruediger Kuhlmann. */
9662 return fork () < 0;
9665 return 0;
9667 _ACEOF
9668 if ac_fn_c_try_run "$LINENO"; then :
9669 ac_cv_func_fork_works=yes
9670 else
9671 ac_cv_func_fork_works=no
9673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9674 conftest.$ac_objext conftest.beam conftest.$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9679 $as_echo "$ac_cv_func_fork_works" >&6; }
9681 else
9682 ac_cv_func_fork_works=$ac_cv_func_fork
9684 if test "x$ac_cv_func_fork_works" = xcross; then
9685 case $host in
9686 *-*-amigaos* | *-*-msdosdjgpp*)
9687 # Override, as these systems have only a dummy fork() stub
9688 ac_cv_func_fork_works=no
9691 ac_cv_func_fork_works=yes
9693 esac
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9695 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9697 ac_cv_func_vfork_works=$ac_cv_func_vfork
9698 if test "x$ac_cv_func_vfork" = xyes; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9700 $as_echo_n "checking for working vfork... " >&6; }
9701 if test "${ac_cv_func_vfork_works+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 if test "$cross_compiling" = yes; then :
9705 ac_cv_func_vfork_works=cross
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 /* Thanks to Paul Eggert for this test. */
9710 $ac_includes_default
9711 #include <sys/wait.h>
9712 #ifdef HAVE_VFORK_H
9713 # include <vfork.h>
9714 #endif
9715 /* On some sparc systems, changes by the child to local and incoming
9716 argument registers are propagated back to the parent. The compiler
9717 is told about this with #include <vfork.h>, but some compilers
9718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9719 static variable whose address is put into a register that is
9720 clobbered by the vfork. */
9721 static void
9722 #ifdef __cplusplus
9723 sparc_address_test (int arg)
9724 # else
9725 sparc_address_test (arg) int arg;
9726 #endif
9728 static pid_t child;
9729 if (!child) {
9730 child = vfork ();
9731 if (child < 0) {
9732 perror ("vfork");
9733 _exit(2);
9735 if (!child) {
9736 arg = getpid();
9737 write(-1, "", 0);
9738 _exit (arg);
9744 main ()
9746 pid_t parent = getpid ();
9747 pid_t child;
9749 sparc_address_test (0);
9751 child = vfork ();
9753 if (child == 0) {
9754 /* Here is another test for sparc vfork register problems. This
9755 test uses lots of local variables, at least as many local
9756 variables as main has allocated so far including compiler
9757 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9758 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9759 reuse the register of parent for one of the local variables,
9760 since it will think that parent can't possibly be used any more
9761 in this routine. Assigning to the local variable will thus
9762 munge parent in the parent process. */
9763 pid_t
9764 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9765 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9766 /* Convince the compiler that p..p7 are live; otherwise, it might
9767 use the same hardware register for all 8 local variables. */
9768 if (p != p1 || p != p2 || p != p3 || p != p4
9769 || p != p5 || p != p6 || p != p7)
9770 _exit(1);
9772 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9773 from child file descriptors. If the child closes a descriptor
9774 before it execs or exits, this munges the parent's descriptor
9775 as well. Test for this by closing stdout in the child. */
9776 _exit(close(fileno(stdout)) != 0);
9777 } else {
9778 int status;
9779 struct stat st;
9781 while (wait(&status) != child)
9783 return (
9784 /* Was there some problem with vforking? */
9785 child < 0
9787 /* Did the child fail? (This shouldn't happen.) */
9788 || status
9790 /* Did the vfork/compiler bug occur? */
9791 || parent != getpid()
9793 /* Did the file descriptor bug occur? */
9794 || fstat(fileno(stdout), &st) != 0
9798 _ACEOF
9799 if ac_fn_c_try_run "$LINENO"; then :
9800 ac_cv_func_vfork_works=yes
9801 else
9802 ac_cv_func_vfork_works=no
9804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9805 conftest.$ac_objext conftest.beam conftest.$ac_ext
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9810 $as_echo "$ac_cv_func_vfork_works" >&6; }
9813 if test "x$ac_cv_func_fork_works" = xcross; then
9814 ac_cv_func_vfork_works=$ac_cv_func_vfork
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9819 if test "x$ac_cv_func_vfork_works" = xyes; then
9821 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9823 else
9825 $as_echo "#define vfork fork" >>confdefs.h
9828 if test "x$ac_cv_func_fork_works" = xyes; then
9830 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9835 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9836 # iconv() prototype.
9837 ac_ext=cpp
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9844 if test "X$prefix" = "XNONE"; then
9845 acl_final_prefix="$ac_default_prefix"
9846 else
9847 acl_final_prefix="$prefix"
9849 if test "X$exec_prefix" = "XNONE"; then
9850 acl_final_exec_prefix='${prefix}'
9851 else
9852 acl_final_exec_prefix="$exec_prefix"
9854 acl_save_prefix="$prefix"
9855 prefix="$acl_final_prefix"
9856 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9857 prefix="$acl_save_prefix"
9860 # Check whether --with-gnu-ld was given.
9861 if test "${with_gnu_ld+set}" = set; then :
9862 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9863 else
9864 with_gnu_ld=no
9867 # Prepare PATH_SEPARATOR.
9868 # The user is always right.
9869 if test "${PATH_SEPARATOR+set}" != set; then
9870 echo "#! /bin/sh" >conf$$.sh
9871 echo "exit 0" >>conf$$.sh
9872 chmod +x conf$$.sh
9873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9874 PATH_SEPARATOR=';'
9875 else
9876 PATH_SEPARATOR=:
9878 rm -f conf$$.sh
9880 ac_prog=ld
9881 if test "$GCC" = yes; then
9882 # Check if gcc -print-prog-name=ld gives a path.
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9884 $as_echo_n "checking for ld used by GCC... " >&6; }
9885 case $host in
9886 *-*-mingw*)
9887 # gcc leaves a trailing carriage return which upsets mingw
9888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9891 esac
9892 case $ac_prog in
9893 # Accept absolute paths.
9894 [\\/]* | [A-Za-z]:[\\/]*)
9895 re_direlt='/[^/][^/]*/\.\./'
9896 # Canonicalize the path of ld
9897 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9899 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9900 done
9901 test -z "$LD" && LD="$ac_prog"
9904 # If it fails, then pretend we aren't using GCC.
9905 ac_prog=ld
9908 # If it is relative, then search for the first ld in PATH.
9909 with_gnu_ld=unknown
9911 esac
9912 elif test "$with_gnu_ld" = yes; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9914 $as_echo_n "checking for GNU ld... " >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9917 $as_echo_n "checking for non-GNU ld... " >&6; }
9919 if test "${acl_cv_path_LD+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test -z "$LD"; then
9923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9924 for ac_dir in $PATH; do
9925 test -z "$ac_dir" && ac_dir=.
9926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927 acl_cv_path_LD="$ac_dir/$ac_prog"
9928 # Check to see if the program is GNU ld. I'd rather use --version,
9929 # but apparently some GNU ld's only accept -v.
9930 # Break only if it was the GNU/non-GNU ld that we prefer.
9931 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9932 test "$with_gnu_ld" != no && break
9933 else
9934 test "$with_gnu_ld" != yes && break
9937 done
9938 IFS="$ac_save_ifs"
9939 else
9940 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9944 LD="$acl_cv_path_LD"
9945 if test -n "$LD"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9947 $as_echo "$LD" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9952 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9955 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9959 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9960 acl_cv_prog_gnu_ld=yes
9961 else
9962 acl_cv_prog_gnu_ld=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9966 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9967 with_gnu_ld=$acl_cv_prog_gnu_ld
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9972 $as_echo_n "checking for shared library run path origin... " >&6; }
9973 if test "${acl_cv_rpath+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9977 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9978 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9979 . ./conftest.sh
9980 rm -f ./conftest.sh
9981 acl_cv_rpath=done
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9985 $as_echo "$acl_cv_rpath" >&6; }
9986 wl="$acl_cv_wl"
9987 libext="$acl_cv_libext"
9988 shlibext="$acl_cv_shlibext"
9989 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9990 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9991 hardcode_direct="$acl_cv_hardcode_direct"
9992 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9993 # Check whether --enable-rpath was given.
9994 if test "${enable_rpath+set}" = set; then :
9995 enableval=$enable_rpath; :
9996 else
9997 enable_rpath=yes
10007 use_additional=yes
10009 acl_save_prefix="$prefix"
10010 prefix="$acl_final_prefix"
10011 acl_save_exec_prefix="$exec_prefix"
10012 exec_prefix="$acl_final_exec_prefix"
10014 eval additional_includedir=\"$includedir\"
10015 eval additional_libdir=\"$libdir\"
10017 exec_prefix="$acl_save_exec_prefix"
10018 prefix="$acl_save_prefix"
10021 # Check whether --with-libiconv-prefix was given.
10022 if test "${with_libiconv_prefix+set}" = set; then :
10023 withval=$with_libiconv_prefix;
10024 if test "X$withval" = "Xno"; then
10025 use_additional=no
10026 else
10027 if test "X$withval" = "X"; then
10029 acl_save_prefix="$prefix"
10030 prefix="$acl_final_prefix"
10031 acl_save_exec_prefix="$exec_prefix"
10032 exec_prefix="$acl_final_exec_prefix"
10034 eval additional_includedir=\"$includedir\"
10035 eval additional_libdir=\"$libdir\"
10037 exec_prefix="$acl_save_exec_prefix"
10038 prefix="$acl_save_prefix"
10040 else
10041 additional_includedir="$withval/include"
10042 additional_libdir="$withval/lib"
10048 LIBICONV=
10049 LTLIBICONV=
10050 INCICONV=
10051 rpathdirs=
10052 ltrpathdirs=
10053 names_already_handled=
10054 names_next_round='iconv '
10055 while test -n "$names_next_round"; do
10056 names_this_round="$names_next_round"
10057 names_next_round=
10058 for name in $names_this_round; do
10059 already_handled=
10060 for n in $names_already_handled; do
10061 if test "$n" = "$name"; then
10062 already_handled=yes
10063 break
10065 done
10066 if test -z "$already_handled"; then
10067 names_already_handled="$names_already_handled $name"
10068 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10069 eval value=\"\$HAVE_LIB$uppername\"
10070 if test -n "$value"; then
10071 if test "$value" = yes; then
10072 eval value=\"\$LIB$uppername\"
10073 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10074 eval value=\"\$LTLIB$uppername\"
10075 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10076 else
10079 else
10080 found_dir=
10081 found_la=
10082 found_so=
10083 found_a=
10084 if test $use_additional = yes; then
10085 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10086 found_dir="$additional_libdir"
10087 found_so="$additional_libdir/lib$name.$shlibext"
10088 if test -f "$additional_libdir/lib$name.la"; then
10089 found_la="$additional_libdir/lib$name.la"
10091 else
10092 if test -f "$additional_libdir/lib$name.$libext"; then
10093 found_dir="$additional_libdir"
10094 found_a="$additional_libdir/lib$name.$libext"
10095 if test -f "$additional_libdir/lib$name.la"; then
10096 found_la="$additional_libdir/lib$name.la"
10101 if test "X$found_dir" = "X"; then
10102 for x in $LDFLAGS $LTLIBICONV; do
10104 acl_save_prefix="$prefix"
10105 prefix="$acl_final_prefix"
10106 acl_save_exec_prefix="$exec_prefix"
10107 exec_prefix="$acl_final_exec_prefix"
10108 eval x=\"$x\"
10109 exec_prefix="$acl_save_exec_prefix"
10110 prefix="$acl_save_prefix"
10112 case "$x" in
10113 -L*)
10114 dir=`echo "X$x" | sed -e 's/^X-L//'`
10115 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10116 found_dir="$dir"
10117 found_so="$dir/lib$name.$shlibext"
10118 if test -f "$dir/lib$name.la"; then
10119 found_la="$dir/lib$name.la"
10121 else
10122 if test -f "$dir/lib$name.$libext"; then
10123 found_dir="$dir"
10124 found_a="$dir/lib$name.$libext"
10125 if test -f "$dir/lib$name.la"; then
10126 found_la="$dir/lib$name.la"
10131 esac
10132 if test "X$found_dir" != "X"; then
10133 break
10135 done
10137 if test "X$found_dir" != "X"; then
10138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10139 if test "X$found_so" != "X"; then
10140 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10142 else
10143 haveit=
10144 for x in $ltrpathdirs; do
10145 if test "X$x" = "X$found_dir"; then
10146 haveit=yes
10147 break
10149 done
10150 if test -z "$haveit"; then
10151 ltrpathdirs="$ltrpathdirs $found_dir"
10153 if test "$hardcode_direct" = yes; then
10154 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10155 else
10156 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10158 haveit=
10159 for x in $rpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10161 haveit=yes
10162 break
10164 done
10165 if test -z "$haveit"; then
10166 rpathdirs="$rpathdirs $found_dir"
10168 else
10169 haveit=
10170 for x in $LDFLAGS $LIBICONV; do
10172 acl_save_prefix="$prefix"
10173 prefix="$acl_final_prefix"
10174 acl_save_exec_prefix="$exec_prefix"
10175 exec_prefix="$acl_final_exec_prefix"
10176 eval x=\"$x\"
10177 exec_prefix="$acl_save_exec_prefix"
10178 prefix="$acl_save_prefix"
10180 if test "X$x" = "X-L$found_dir"; then
10181 haveit=yes
10182 break
10184 done
10185 if test -z "$haveit"; then
10186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10188 if test "$hardcode_minus_L" != no; then
10189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10190 else
10191 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10196 else
10197 if test "X$found_a" != "X"; then
10198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10199 else
10200 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10203 additional_includedir=
10204 case "$found_dir" in
10205 */lib | */lib/)
10206 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10207 additional_includedir="$basedir/include"
10209 esac
10210 if test "X$additional_includedir" != "X"; then
10211 if test "X$additional_includedir" != "X/usr/include"; then
10212 haveit=
10213 if test "X$additional_includedir" = "X/usr/local/include"; then
10214 if test -n "$GCC"; then
10215 case $host_os in
10216 linux*) haveit=yes;;
10217 esac
10220 if test -z "$haveit"; then
10221 for x in $CPPFLAGS $INCICONV; do
10223 acl_save_prefix="$prefix"
10224 prefix="$acl_final_prefix"
10225 acl_save_exec_prefix="$exec_prefix"
10226 exec_prefix="$acl_final_exec_prefix"
10227 eval x=\"$x\"
10228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10231 if test "X$x" = "X-I$additional_includedir"; then
10232 haveit=yes
10233 break
10235 done
10236 if test -z "$haveit"; then
10237 if test -d "$additional_includedir"; then
10238 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10244 if test -n "$found_la"; then
10245 save_libdir="$libdir"
10246 case "$found_la" in
10247 */* | *\\*) . "$found_la" ;;
10248 *) . "./$found_la" ;;
10249 esac
10250 libdir="$save_libdir"
10251 for dep in $dependency_libs; do
10252 case "$dep" in
10253 -L*)
10254 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10255 if test "X$additional_libdir" != "X/usr/lib"; then
10256 haveit=
10257 if test "X$additional_libdir" = "X/usr/local/lib"; then
10258 if test -n "$GCC"; then
10259 case $host_os in
10260 linux*) haveit=yes;;
10261 esac
10264 if test -z "$haveit"; then
10265 haveit=
10266 for x in $LDFLAGS $LIBICONV; do
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272 eval x=\"$x\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10276 if test "X$x" = "X-L$additional_libdir"; then
10277 haveit=yes
10278 break
10280 done
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10286 haveit=
10287 for x in $LDFLAGS $LTLIBICONV; do
10289 acl_save_prefix="$prefix"
10290 prefix="$acl_final_prefix"
10291 acl_save_exec_prefix="$exec_prefix"
10292 exec_prefix="$acl_final_exec_prefix"
10293 eval x=\"$x\"
10294 exec_prefix="$acl_save_exec_prefix"
10295 prefix="$acl_save_prefix"
10297 if test "X$x" = "X-L$additional_libdir"; then
10298 haveit=yes
10299 break
10301 done
10302 if test -z "$haveit"; then
10303 if test -d "$additional_libdir"; then
10304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10310 -R*)
10311 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10312 if test "$enable_rpath" != no; then
10313 haveit=
10314 for x in $rpathdirs; do
10315 if test "X$x" = "X$dir"; then
10316 haveit=yes
10317 break
10319 done
10320 if test -z "$haveit"; then
10321 rpathdirs="$rpathdirs $dir"
10323 haveit=
10324 for x in $ltrpathdirs; do
10325 if test "X$x" = "X$dir"; then
10326 haveit=yes
10327 break
10329 done
10330 if test -z "$haveit"; then
10331 ltrpathdirs="$ltrpathdirs $dir"
10335 -l*)
10336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10338 *.la)
10339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10342 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10345 esac
10346 done
10348 else
10349 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10354 done
10355 done
10356 if test "X$rpathdirs" != "X"; then
10357 if test -n "$hardcode_libdir_separator"; then
10358 alldirs=
10359 for found_dir in $rpathdirs; do
10360 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10361 done
10362 acl_save_libdir="$libdir"
10363 libdir="$alldirs"
10364 eval flag=\"$hardcode_libdir_flag_spec\"
10365 libdir="$acl_save_libdir"
10366 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10367 else
10368 for found_dir in $rpathdirs; do
10369 acl_save_libdir="$libdir"
10370 libdir="$found_dir"
10371 eval flag=\"$hardcode_libdir_flag_spec\"
10372 libdir="$acl_save_libdir"
10373 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10374 done
10377 if test "X$ltrpathdirs" != "X"; then
10378 for found_dir in $ltrpathdirs; do
10379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10380 done
10389 am_save_CPPFLAGS="$CPPFLAGS"
10391 for element in $INCICONV; do
10392 haveit=
10393 for x in $CPPFLAGS; do
10395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10399 eval x=\"$x\"
10400 exec_prefix="$acl_save_exec_prefix"
10401 prefix="$acl_save_prefix"
10403 if test "X$x" = "X$element"; then
10404 haveit=yes
10405 break
10407 done
10408 if test -z "$haveit"; then
10409 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10411 done
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10415 $as_echo_n "checking for iconv... " >&6; }
10416 if test "${am_cv_func_iconv+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10420 am_cv_func_iconv="no, consider installing GNU libiconv"
10421 am_cv_lib_iconv=no
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #include <stdlib.h>
10425 #include <iconv.h>
10427 main ()
10429 iconv_t cd = iconv_open("","");
10430 iconv(cd,NULL,NULL,NULL,NULL);
10431 iconv_close(cd);
10433 return 0;
10435 _ACEOF
10436 if ac_fn_cxx_try_link "$LINENO"; then :
10437 am_cv_func_iconv=yes
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 if test "$am_cv_func_iconv" != yes; then
10442 am_save_LIBS="$LIBS"
10443 LIBS="$LIBS $LIBICONV"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 #include <stdlib.h>
10447 #include <iconv.h>
10449 main ()
10451 iconv_t cd = iconv_open("","");
10452 iconv(cd,NULL,NULL,NULL,NULL);
10453 iconv_close(cd);
10455 return 0;
10457 _ACEOF
10458 if ac_fn_cxx_try_link "$LINENO"; then :
10459 am_cv_lib_iconv=yes
10460 am_cv_func_iconv=yes
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS="$am_save_LIBS"
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10469 $as_echo "$am_cv_func_iconv" >&6; }
10470 if test "$am_cv_func_iconv" = yes; then
10472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10475 if test "$am_cv_lib_iconv" = yes; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10477 $as_echo_n "checking how to link with libiconv... " >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10479 $as_echo "$LIBICONV" >&6; }
10480 else
10481 CPPFLAGS="$am_save_CPPFLAGS"
10482 LIBICONV=
10483 LTLIBICONV=
10488 if test "$am_cv_func_iconv" = yes; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10490 $as_echo_n "checking for iconv declaration... " >&6; }
10491 if test "${am_cv_proto_iconv+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 #include <stdlib.h>
10499 #include <iconv.h>
10500 extern
10501 #ifdef __cplusplus
10503 #endif
10504 #if defined(__STDC__) || defined(__cplusplus)
10505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10506 #else
10507 size_t iconv();
10508 #endif
10511 main ()
10515 return 0;
10517 _ACEOF
10518 if ac_fn_cxx_try_compile "$LINENO"; then :
10519 am_cv_proto_iconv_arg1=""
10520 else
10521 am_cv_proto_iconv_arg1="const"
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 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);"
10527 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10529 }$am_cv_proto_iconv" >&5
10530 $as_echo "${ac_t:-
10531 }$am_cv_proto_iconv" >&6; }
10533 cat >>confdefs.h <<_ACEOF
10534 #define ICONV_CONST $am_cv_proto_iconv_arg1
10535 _ACEOF
10539 ac_ext=c
10540 ac_cpp='$CPP $CPPFLAGS'
10541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546 # Until we have in-tree GNU iconv:
10547 LIBICONV_DEP=
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10552 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10553 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 #include <locale.h>
10560 main ()
10562 return LC_MESSAGES
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 am_cv_val_LC_MESSAGES=yes
10569 else
10570 am_cv_val_LC_MESSAGES=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10576 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10577 if test $am_cv_val_LC_MESSAGES = yes; then
10579 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10586 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10587 if test "${am_cv_langinfo_codeset+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 #include <langinfo.h>
10594 main ()
10596 char* cs = nl_langinfo(CODESET);
10598 return 0;
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 am_cv_langinfo_codeset=yes
10603 else
10604 am_cv_langinfo_codeset=no
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10611 $as_echo "$am_cv_langinfo_codeset" >&6; }
10612 if test $am_cv_langinfo_codeset = yes; then
10614 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10619 # We will need to find libiberty.h and ansidecl.h
10620 saved_CFLAGS="$CFLAGS"
10621 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10622 saved_CXXFLAGS="$CXXFLAGS"
10623 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10624 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10625 stpcpy strnlen strsignal strstr strverscmp \
10626 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10627 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
10629 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10631 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10632 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 #undef $ac_tr_decl
10638 #define $ac_tr_decl 1
10640 #include "ansidecl.h"
10641 #include "system.h"
10644 main ()
10646 #ifndef $ac_func
10647 char *(*pfn) = (char *(*)) $ac_func ;
10648 #endif
10650 return 0;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"; then :
10654 eval "gcc_cv_have_decl_$ac_func=yes"
10655 else
10656 eval "gcc_cv_have_decl_$ac_func=no"
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10664 #define $ac_tr_decl 1
10665 _ACEOF
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10670 #define $ac_tr_decl 0
10671 _ACEOF
10675 done
10678 for ac_func in getrlimit setrlimit getrusage
10680 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10682 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10683 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 #undef $ac_tr_decl
10689 #define $ac_tr_decl 1
10691 #include "ansidecl.h"
10692 #include "system.h"
10693 #ifdef HAVE_SYS_RESOURCE_H
10694 #include <sys/resource.h>
10695 #endif
10699 main ()
10701 #ifndef $ac_func
10702 char *(*pfn) = (char *(*)) $ac_func ;
10703 #endif
10705 return 0;
10707 _ACEOF
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709 eval "gcc_cv_have_decl_$ac_func=yes"
10710 else
10711 eval "gcc_cv_have_decl_$ac_func=no"
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10719 #define $ac_tr_decl 1
10720 _ACEOF
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10725 #define $ac_tr_decl 0
10726 _ACEOF
10730 done
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 #include "ansidecl.h"
10737 #include "system.h"
10738 #ifdef HAVE_SYS_RESOURCE_H
10739 #include <sys/resource.h>
10740 #endif
10743 main ()
10745 rlim_t l = 0;
10747 return 0;
10749 _ACEOF
10750 if ac_fn_c_try_compile "$LINENO"; then :
10752 else
10754 $as_echo "#define rlim_t long" >>confdefs.h
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10760 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10761 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10762 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10763 for ac_func in ldgetname
10765 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10767 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10768 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #undef $ac_tr_decl
10774 #define $ac_tr_decl 1
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_LDFCN_H
10779 #undef FREAD
10780 #undef FWRITE
10781 #include <ldfcn.h>
10782 #endif
10786 main ()
10788 #ifndef $ac_func
10789 char *(*pfn) = (char *(*)) $ac_func ;
10790 #endif
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"; then :
10796 eval "gcc_cv_have_decl_$ac_func=yes"
10797 else
10798 eval "gcc_cv_have_decl_$ac_func=no"
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10806 #define $ac_tr_decl 1
10807 _ACEOF
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10812 #define $ac_tr_decl 0
10813 _ACEOF
10817 done
10820 for ac_func in times
10822 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10824 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10825 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830 #undef $ac_tr_decl
10831 #define $ac_tr_decl 1
10833 #include "ansidecl.h"
10834 #include "system.h"
10835 #ifdef HAVE_SYS_TIMES_H
10836 #include <sys/times.h>
10837 #endif
10841 main ()
10843 #ifndef $ac_func
10844 char *(*pfn) = (char *(*)) $ac_func ;
10845 #endif
10847 return 0;
10849 _ACEOF
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851 eval "gcc_cv_have_decl_$ac_func=yes"
10852 else
10853 eval "gcc_cv_have_decl_$ac_func=no"
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10861 #define $ac_tr_decl 1
10862 _ACEOF
10864 else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10867 #define $ac_tr_decl 0
10868 _ACEOF
10872 done
10875 for ac_func in sigaltstack
10877 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10879 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10880 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885 #undef $ac_tr_decl
10886 #define $ac_tr_decl 1
10888 #include "ansidecl.h"
10889 #include "system.h"
10890 #include <signal.h>
10894 main ()
10896 #ifndef $ac_func
10897 char *(*pfn) = (char *(*)) $ac_func ;
10898 #endif
10900 return 0;
10902 _ACEOF
10903 if ac_fn_c_try_compile "$LINENO"; then :
10904 eval "gcc_cv_have_decl_$ac_func=yes"
10905 else
10906 eval "gcc_cv_have_decl_$ac_func=no"
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10914 #define $ac_tr_decl 1
10915 _ACEOF
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10920 #define $ac_tr_decl 0
10921 _ACEOF
10925 done
10928 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10929 # prototype.
10930 ac_ext=cpp
10931 ac_cpp='$CXXCPP $CPPFLAGS'
10932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10936 for ac_func in madvise
10938 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10940 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10941 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #undef $ac_tr_decl
10947 #define $ac_tr_decl 1
10949 #include "ansidecl.h"
10950 #include "system.h"
10954 main ()
10956 #ifndef $ac_func
10957 char *(*pfn) = (char *(*)) $ac_func ;
10958 #endif
10960 return 0;
10962 _ACEOF
10963 if ac_fn_cxx_try_compile "$LINENO"; then :
10964 eval "gcc_cv_have_decl_$ac_func=yes"
10965 else
10966 eval "gcc_cv_have_decl_$ac_func=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10974 #define $ac_tr_decl 1
10975 _ACEOF
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10980 #define $ac_tr_decl 0
10981 _ACEOF
10985 done
10987 ac_ext=c
10988 ac_cpp='$CPP $CPPFLAGS'
10989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994 # More time-related stuff.
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10996 $as_echo_n "checking for struct tms... " >&6; }
10997 if test "${ac_cv_struct_tms+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11004 #include "ansidecl.h"
11005 #include "system.h"
11006 #ifdef HAVE_SYS_TIMES_H
11007 #include <sys/times.h>
11008 #endif
11011 main ()
11013 struct tms tms;
11015 return 0;
11017 _ACEOF
11018 if ac_fn_c_try_compile "$LINENO"; then :
11019 ac_cv_struct_tms=yes
11020 else
11021 ac_cv_struct_tms=no
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11026 $as_echo "$ac_cv_struct_tms" >&6; }
11027 if test $ac_cv_struct_tms = yes; then
11029 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11033 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11034 # revisit after autoconf 2.50.
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11036 $as_echo_n "checking for clock_t... " >&6; }
11037 if test "${gcc_cv_type_clock_t+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 #include "ansidecl.h"
11045 #include "system.h"
11048 main ()
11050 clock_t x;
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_compile "$LINENO"; then :
11056 gcc_cv_type_clock_t=yes
11057 else
11058 gcc_cv_type_clock_t=no
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11063 $as_echo "$gcc_cv_type_clock_t" >&6; }
11064 if test $gcc_cv_type_clock_t = yes; then
11066 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11070 # Check if F_SETLKW is supported by fcntl.
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11072 $as_echo_n "checking for F_SETLKW... " >&6; }
11073 if test "${ac_cv_f_setlkw+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 #include <fcntl.h>
11082 main ()
11085 struct flock fl;
11086 fl.l_whence = 0;
11087 fl.l_start = 0;
11088 fl.l_len = 0;
11089 fl.l_pid = 0;
11090 return fcntl (1, F_SETLKW, &fl);
11092 return 0;
11094 _ACEOF
11095 if ac_fn_c_try_compile "$LINENO"; then :
11096 ac_cv_f_setlkw=yes
11097 else
11098 ac_cv_f_setlkw=no
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11103 $as_echo "$ac_cv_f_setlkw" >&6; }
11104 if test $ac_cv_f_setlkw = yes; then
11106 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11110 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11111 CFLAGS="$saved_CFLAGS"
11112 CXXFLAGS="$saved_CXXFLAGS"
11114 # mkdir takes a single argument on some systems.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11116 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11117 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 #include <sys/types.h>
11124 #ifdef HAVE_SYS_STAT_H
11125 # include <sys/stat.h>
11126 #endif
11127 #ifdef HAVE_UNISTD_H
11128 # include <unistd.h>
11129 #endif
11130 #ifdef HAVE_DIRECT_H
11131 # include <direct.h>
11132 #endif
11134 main ()
11136 mkdir ("foo", 0);
11138 return 0;
11140 _ACEOF
11141 if ac_fn_c_try_compile "$LINENO"; then :
11142 gcc_cv_mkdir_takes_one_arg=no
11143 else
11144 gcc_cv_mkdir_takes_one_arg=yes
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11149 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11150 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11152 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11157 # File extensions
11158 manext='.1'
11159 objext='.o'
11163 # With Setjmp/Longjmp based exception handling.
11164 # Check whether --enable-sjlj-exceptions was given.
11165 if test "${enable_sjlj_exceptions+set}" = set; then :
11166 enableval=$enable_sjlj_exceptions; case $target in
11167 *-*-hpux10*)
11168 if test $enableval != yes; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11170 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11171 enableval=yes
11174 esac
11175 force_sjlj_exceptions=yes
11176 else
11177 case $target in
11178 *-*-hpux10*)
11179 force_sjlj_exceptions=yes
11180 enableval=yes
11182 lm32*-*-*)
11183 force_sjlj_exceptions=yes
11184 enableval=yes
11187 force_sjlj_exceptions=no
11189 esac
11192 if test $force_sjlj_exceptions = yes; then
11193 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11195 cat >>confdefs.h <<_ACEOF
11196 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11197 _ACEOF
11201 # --------------------------------------------------------
11202 # Build, host, and target specific configuration fragments
11203 # --------------------------------------------------------
11205 # Collect build-machine-specific information.
11206 . ${srcdir}/config.build
11208 # Collect host-machine-specific information.
11209 . ${srcdir}/config.host
11211 target_gtfiles=
11213 # Collect target-machine-specific information.
11214 . ${srcdir}/config.gcc
11216 extra_objs="${host_extra_objs} ${extra_objs}"
11217 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11219 # Default the target-machine variables that were not explicitly set.
11220 if test x"$tm_file" = x
11221 then tm_file=$cpu_type/$cpu_type.h; fi
11223 if test x"$extra_headers" = x
11224 then extra_headers=; fi
11226 if test x$md_file = x
11227 then md_file=$cpu_type/$cpu_type.md; fi
11229 if test x$out_file = x
11230 then out_file=$cpu_type/$cpu_type.c; fi
11232 if test x"$tmake_file" = x
11233 then tmake_file=$cpu_type/t-$cpu_type
11236 # Support --enable-initfini-array.
11237 if test x$enable_initfini_array != xno; then
11238 tm_file="${tm_file} initfini-array.h"
11241 if test x"$dwarf2" = xyes
11242 then tm_file="$tm_file tm-dwarf2.h"
11245 # Say what files are being used for the output code and MD file.
11246 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11247 echo "Using \`$srcdir/config/$md_file' as machine description file."
11249 # If any of the xm_file variables contain nonexistent files, warn
11250 # about them and drop them.
11253 for x in $build_xm_file; do
11254 if test -f $srcdir/config/$x
11255 then bx="$bx $x"
11256 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11257 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11259 done
11260 build_xm_file="$bx"
11263 for x in $host_xm_file; do
11264 if test -f $srcdir/config/$x
11265 then hx="$hx $x"
11266 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11267 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11269 done
11270 host_xm_file="$hx"
11273 for x in $xm_file; do
11274 if test -f $srcdir/config/$x
11275 then tx="$tx $x"
11276 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11277 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11279 done
11280 xm_file="$tx"
11282 count=a
11283 for f in $tm_file; do
11284 count=${count}x
11285 done
11286 if test $count = ax; then
11287 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11288 else
11289 echo "Using the following target machine macro files:"
11290 for f in $tm_file; do
11291 echo " $srcdir/config/$f"
11292 done
11295 if test x$use_long_long_for_widest_fast_int = xyes; then
11297 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11301 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_GNU_LD $gnu_ld_bool
11305 _ACEOF
11308 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GNU_AS $gnu_as_bool
11312 _ACEOF
11315 count=a
11316 for f in $host_xm_file; do
11317 count=${count}x
11318 done
11319 if test $count = a; then
11321 elif test $count = ax; then
11322 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11323 else
11324 echo "Using the following host machine macro files:"
11325 for f in $host_xm_file; do
11326 echo " $srcdir/config/$f"
11327 done
11329 echo "Using ${out_host_hook_obj} for host machine hooks."
11331 if test "$host_xm_file" != "$build_xm_file"; then
11332 count=a
11333 for f in $build_xm_file; do
11334 count=${count}x
11335 done
11336 if test $count = a; then
11338 elif test $count = ax; then
11339 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11340 else
11341 echo "Using the following build machine macro files:"
11342 for f in $build_xm_file; do
11343 echo " $srcdir/config/$f"
11344 done
11348 if test -n "$configured_native_system_header_dir"; then
11349 native_system_header_dir=$configured_native_system_header_dir
11351 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11354 case ${host} in
11355 powerpc*-*-darwin*)
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11357 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11358 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 #include <sys/cdefs.h>
11365 #include <sys/signal.h>
11366 #include <ucontext.h>
11367 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11369 _ACEOF
11370 if ac_fn_c_try_compile "$LINENO"; then :
11371 gcc_cv_mcontext_underscores=no
11372 else
11373 gcc_cv_mcontext_underscores=yes
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11378 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11379 if test $gcc_cv_mcontext_underscores = yes; then
11381 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11385 esac
11387 # ---------
11388 # Threading
11389 # ---------
11391 # Check if a valid thread package
11392 case ${enable_threads} in
11393 "" | no)
11394 # No threads
11395 target_thread_file='single'
11397 yes)
11398 # default
11399 target_thread_file='single'
11401 aix | dce | lynx | mipssde | posix | rtems | \
11402 single | tpf | vxworks | win32)
11403 target_thread_file=${enable_threads}
11406 echo "${enable_threads} is an unknown thread package" 1>&2
11407 exit 1
11409 esac
11411 if test x${thread_file} = x; then
11412 # No thread file set by target-specific clauses in config.gcc,
11413 # so use file chosen by default logic above
11414 thread_file=${target_thread_file}
11417 # --------
11418 # UNSORTED
11419 # --------
11421 use_cxa_atexit=no
11422 if test x$enable___cxa_atexit = xyes || \
11423 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11424 if test x$host = x$target; then
11425 case $host in
11426 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11427 # keyed to flag_use_cxa_atexit
11428 *-*-mingw32*)
11429 use_cxa_atexit=yes
11431 powerpc-ibm-aix*)
11432 use_cxa_atexit=yes
11435 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11436 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11437 use_cxa_atexit=yes
11438 else
11439 echo "__cxa_atexit can't be enabled on this target"
11443 esac
11444 else
11445 # We can't check for __cxa_atexit when building a cross, so assume
11446 # it is available
11447 use_cxa_atexit=yes
11449 if test x$use_cxa_atexit = xyes; then
11451 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11456 # Look for a file containing extra machine modes.
11457 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11458 extra_modes_file='$(srcdir)'/config/${extra_modes}
11461 cat >>confdefs.h <<_ACEOF
11462 #define EXTRA_MODES_FILE "config/$extra_modes"
11463 _ACEOF
11467 # Convert extra_options into a form suitable for Makefile use.
11468 extra_opt_files=
11469 all_opt_files=
11470 for f in $extra_options; do
11471 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11472 all_opt_files="$all_opt_files $srcdir/config/$f"
11473 done
11476 # auto-host.h is the file containing items generated by autoconf and is
11477 # the first file included by config.h.
11478 # If host=build, it is correct to have bconfig include auto-host.h
11479 # as well. If host!=build, we are in error and need to do more
11480 # work to find out the build config parameters.
11481 if test x$host = x$build
11482 then
11483 build_auto=auto-host.h
11484 else
11485 # We create a subdir, then run autoconf in the subdir.
11486 # To prevent recursion we set host and build for the new
11487 # invocation of configure to the build for this invocation
11488 # of configure.
11489 tempdir=build.$$
11490 rm -rf $tempdir
11491 mkdir $tempdir
11492 cd $tempdir
11493 case ${srcdir} in
11494 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11495 *) realsrcdir=../${srcdir};;
11496 esac
11497 # Clearing GMPINC is necessary to prevent host headers being
11498 # used by the build compiler. Defining GENERATOR_FILE stops
11499 # system.h from including gmp.h.
11500 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11501 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11502 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11503 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11504 ${realsrcdir}/configure \
11505 --enable-languages=${enable_languages-all} \
11506 --target=$target_alias --host=$build_alias --build=$build_alias
11508 # We just finished tests for the build machine, so rename
11509 # the file auto-build.h in the gcc directory.
11510 mv auto-host.h ../auto-build.h
11511 cd ..
11512 rm -rf $tempdir
11513 build_auto=auto-build.h
11517 tm_file="${tm_file} defaults.h"
11518 tm_p_file="${tm_p_file} tm-preds.h"
11519 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11520 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11521 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11522 # put this back in temporarily.
11523 xm_file="auto-host.h ansidecl.h ${xm_file}"
11525 # --------
11526 # UNSORTED
11527 # --------
11529 # Compile in configure arguments.
11530 if test -f configargs.h ; then
11531 # Being re-configured.
11532 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11533 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11534 else
11535 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11538 # Double all backslashes and backslash all quotes to turn
11539 # gcc_config_arguments into a C string.
11540 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11541 $gcc_config_arguments
11543 gcc_config_arguments_str=`cat conftest.out`
11544 rm -f conftest.out
11546 cat > configargs.h <<EOF
11547 /* Generated automatically. */
11548 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11549 static const char thread_model[] = "$thread_file";
11551 static const struct {
11552 const char *name, *value;
11553 } configure_default_options[] = $configure_default_options;
11556 gcc_BASEVER=`cat $srcdir/BASE-VER`
11557 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11558 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11559 if test -f $srcdir/REVISION ; then
11560 gcc_REVISION=`cat $srcdir/REVISION`
11561 else
11562 gcc_REVISION=""
11564 cat > plugin-version.h <<EOF
11565 #include "configargs.h"
11567 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11568 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11569 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11570 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11572 static char basever[] = "$gcc_BASEVER";
11573 static char datestamp[] = "$gcc_DATESTAMP";
11574 static char devphase[] = "$gcc_DEVPHASE";
11575 static char revision[] = "$gcc_REVISION";
11577 /* FIXME plugins: We should make the version information more precise.
11578 One way to do is to add a checksum. */
11580 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11581 devphase, revision,
11582 configuration_arguments};
11585 # Internationalization
11586 # If we haven't got the data from the intl directory,
11587 # assume NLS is disabled.
11588 USE_NLS=no
11589 LIBINTL=
11590 LIBINTL_DEP=
11591 INCINTL=
11592 XGETTEXT=
11593 GMSGFMT=
11594 POSUB=
11596 if test -f ../intl/config.intl; then
11597 . ../intl/config.intl
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11600 $as_echo_n "checking whether NLS is requested... " >&6; }
11601 if test x"$USE_NLS" != xyes; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606 $as_echo "yes" >&6; }
11608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11612 $as_echo_n "checking for catalogs to be installed... " >&6; }
11613 # Look for .po and .gmo files in the source directory.
11614 CATALOGS=
11615 XLINGUAS=
11616 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11617 # If there aren't any .gmo files the shell will give us the
11618 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11619 # weeded out.
11620 case "$cat" in *\**)
11621 continue;;
11622 esac
11623 # The quadruple backslash is collapsed to a double backslash
11624 # by the backticks, then collapsed again by the double quotes,
11625 # leaving us with one backslash in the sed expression (right
11626 # before the dot that mustn't act as a wildcard).
11627 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11628 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11629 # The user is allowed to set LINGUAS to a list of languages to
11630 # install catalogs for. If it's empty that means "all of them."
11631 if test "x$LINGUAS" = x; then
11632 CATALOGS="$CATALOGS $cat"
11633 XLINGUAS="$XLINGUAS $lang"
11634 else
11635 case "$LINGUAS" in *$lang*)
11636 CATALOGS="$CATALOGS $cat"
11637 XLINGUAS="$XLINGUAS $lang"
11639 esac
11641 done
11642 LINGUAS="$XLINGUAS"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11644 $as_echo "$LINGUAS" >&6; }
11647 DATADIRNAME=share
11649 INSTOBJEXT=.mo
11651 GENCAT=gencat
11653 CATOBJEXT=.gmo
11657 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11658 # -liconv on the link line twice.
11659 case "$LIBINTL" in *$LIBICONV*)
11660 LIBICONV= ;;
11661 esac
11663 # Check whether --enable-secureplt was given.
11664 if test "${enable_secureplt+set}" = set; then :
11665 enableval=$enable_secureplt;
11669 # Check whether --enable-leading-mingw64-underscores was given.
11670 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11671 enableval=$enable_leading_mingw64_underscores;
11674 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11676 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11680 # Check whether --enable-cld was given.
11681 if test "${enable_cld+set}" = set; then :
11682 enableval=$enable_cld;
11683 else
11684 enable_cld=no
11688 # Check whether --enable-frame-pointer was given.
11689 if test "${enable_frame_pointer+set}" = set; then :
11690 enableval=$enable_frame_pointer;
11691 else
11693 case $target_os in
11694 linux* | darwin[8912]*)
11695 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11696 # DWARF2.
11697 enable_frame_pointer=no
11700 enable_frame_pointer=yes
11702 esac
11707 # Windows32 Registry support for specifying GCC installation paths.
11708 # Check whether --enable-win32-registry was given.
11709 if test "${enable_win32_registry+set}" = set; then :
11710 enableval=$enable_win32_registry;
11714 case $host_os in
11715 win32 | pe | cygwin* | mingw32* | uwin*)
11716 if test "x$enable_win32_registry" != xno; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11718 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11719 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 ac_func_search_save_LIBS=$LIBS
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char RegOpenKeyExA ();
11734 main ()
11736 return RegOpenKeyExA ();
11738 return 0;
11740 _ACEOF
11741 for ac_lib in '' advapi32; do
11742 if test -z "$ac_lib"; then
11743 ac_res="none required"
11744 else
11745 ac_res=-l$ac_lib
11746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11748 if ac_fn_c_try_link "$LINENO"; then :
11749 ac_cv_search_RegOpenKeyExA=$ac_res
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11754 break
11756 done
11757 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11759 else
11760 ac_cv_search_RegOpenKeyExA=no
11762 rm conftest.$ac_ext
11763 LIBS=$ac_func_search_save_LIBS
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11766 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11767 ac_res=$ac_cv_search_RegOpenKeyExA
11768 if test "$ac_res" != no; then :
11769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11771 else
11772 enable_win32_registry=no
11777 if test "x$enable_win32_registry" != xno; then
11779 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11782 if test "x$enable_win32_registry" != xyes \
11783 && test "x$enable_win32_registry" != x; then
11785 cat >>confdefs.h <<_ACEOF
11786 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11787 _ACEOF
11792 esac
11794 # Get an absolute path to the GCC top-level source directory
11795 holddir=`${PWDCMD-pwd}`
11796 cd $srcdir
11797 topdir=`${PWDCMD-pwd}`
11798 cd $holddir
11800 # Conditionalize the makefile for this host machine.
11801 xmake_file=
11802 for f in ${host_xmake_file}
11804 if test -f ${srcdir}/config/$f
11805 then
11806 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11808 done
11810 # Conditionalize the makefile for this target machine.
11811 tmake_file_=
11812 for f in ${tmake_file}
11814 if test -f ${srcdir}/config/$f
11815 then
11816 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11818 done
11819 tmake_file="${tmake_file_}"
11821 out_object_file=`basename $out_file .c`.o
11822 common_out_object_file=`basename $common_out_file .c`.o
11824 tm_file_list="options.h"
11825 tm_include_list="options.h insn-constants.h"
11826 for f in $tm_file; do
11827 case $f in
11828 ./* )
11829 f=`echo $f | sed 's/^..//'`
11830 tm_file_list="${tm_file_list} $f"
11831 tm_include_list="${tm_include_list} $f"
11833 defaults.h )
11834 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11835 tm_include_list="${tm_include_list} $f"
11838 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11839 tm_include_list="${tm_include_list} config/$f"
11841 esac
11842 done
11844 tm_p_file_list=
11845 tm_p_include_list=
11846 for f in $tm_p_file; do
11847 case $f in
11848 tm-preds.h )
11849 tm_p_file_list="${tm_p_file_list} $f"
11850 tm_p_include_list="${tm_p_include_list} $f"
11853 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11854 tm_p_include_list="${tm_p_include_list} config/$f"
11855 esac
11856 done
11858 xm_file_list=
11859 xm_include_list=
11860 for f in $xm_file; do
11861 case $f in
11862 ansidecl.h )
11863 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11864 xm_include_list="${xm_include_list} $f"
11866 auto-host.h )
11867 xm_file_list="${xm_file_list} $f"
11868 xm_include_list="${xm_include_list} $f"
11871 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11872 xm_include_list="${xm_include_list} config/$f"
11874 esac
11875 done
11877 host_xm_file_list=
11878 host_xm_include_list=
11879 for f in $host_xm_file; do
11880 case $f in
11881 ansidecl.h )
11882 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11883 host_xm_include_list="${host_xm_include_list} $f"
11885 auto-host.h )
11886 host_xm_file_list="${host_xm_file_list} $f"
11887 host_xm_include_list="${host_xm_include_list} $f"
11890 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11891 host_xm_include_list="${host_xm_include_list} config/$f"
11893 esac
11894 done
11896 build_xm_file_list=
11897 for f in $build_xm_file; do
11898 case $f in
11899 ansidecl.h )
11900 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11901 build_xm_include_list="${build_xm_include_list} $f"
11903 auto-build.h | auto-host.h )
11904 build_xm_file_list="${build_xm_file_list} $f"
11905 build_xm_include_list="${build_xm_include_list} $f"
11908 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11909 build_xm_include_list="${build_xm_include_list} config/$f"
11911 esac
11912 done
11914 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11915 # cross-compiler which does not use the native headers and libraries.
11916 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11917 CROSS=
11918 ALL=all.internal
11919 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11921 if test "x$with_build_sysroot" != x; then
11922 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11923 else
11924 # This value is used, even on a native system, because
11925 # CROSS_SYSTEM_HEADER_DIR is just
11926 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11927 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11930 if test x$host != x$target
11931 then
11932 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11933 ALL=all.cross
11934 SYSTEM_HEADER_DIR=$build_system_header_dir
11935 case "$host","$target" in
11936 # Darwin crosses can use the host system's libraries and headers,
11937 # because of the fat library support. Of course, it must be the
11938 # same version of Darwin on both sides. Allow the user to
11939 # just say --target=foo-darwin without a version number to mean
11940 # "the version on this system".
11941 *-*-darwin*,*-*-darwin*)
11942 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11943 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11944 if test $hostos = $targetos -o $targetos = darwin ; then
11945 CROSS=
11946 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11947 with_headers=yes
11951 i?86-*-*,x86_64-*-* \
11952 | powerpc*-*-*,powerpc64*-*-*)
11953 CROSS="$CROSS -DNATIVE_CROSS" ;;
11954 esac
11956 case $target in
11957 *-*-mingw*)
11958 if test "x$with_headers" = x; then
11959 with_headers=yes
11964 esac
11965 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11966 SYSTEM_HEADER_DIR=$build_system_header_dir
11969 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11970 if test "x$with_headers" != x; then
11971 target_header_dir=$with_headers
11972 elif test "x$with_sysroot" = x; then
11973 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11974 elif test "x$with_build_sysroot" != "x"; then
11975 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11976 elif test "x$with_sysroot" = xyes; then
11977 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11978 else
11979 target_header_dir="${with_sysroot}${native_system_header_dir}"
11981 else
11982 target_header_dir=${native_system_header_dir}
11985 # If this is a cross-compiler that does not
11986 # have its own set of headers then define
11987 # inhibit_libc
11989 # If this is using newlib, without having the headers available now,
11990 # then define inhibit_libc in LIBGCC2_CFLAGS.
11991 # This prevents libgcc2 from containing any code which requires libc
11992 # support.
11993 : ${inhibit_libc=false}
11994 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11995 test x$with_newlib = xyes ; } &&
11996 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11997 inhibit_libc=true
12001 # When building gcc with a cross-compiler, we need to adjust things so
12002 # that the generator programs are still built with the native compiler.
12003 # Also, we cannot run fixincludes.
12005 # These are the normal (build=host) settings:
12006 CC_FOR_BUILD='$(CC)'
12007 CXX_FOR_BUILD='$(CXX)'
12008 BUILD_CFLAGS='$(ALL_CFLAGS)'
12009 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12010 BUILD_LDFLAGS='$(LDFLAGS)'
12011 STMP_FIXINC=stmp-fixinc
12013 # And these apply if build != host, or we are generating coverage data
12014 if test x$build != x$host || test "x$coverage_flags" != x
12015 then
12016 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12017 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12018 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12021 # Expand extra_headers to include complete path.
12022 # This substitutes for lots of t-* files.
12023 extra_headers_list=
12024 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12025 for file in ${extra_headers} ; do
12026 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12027 done
12029 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12030 if test x"$use_gcc_tgmath" = xyes
12031 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12034 # Define collect2 in Makefile.
12035 case $host_can_use_collect2 in
12036 no) collect2= ;;
12037 *) collect2='collect2$(exeext)' ;;
12038 esac
12041 # Add a definition of USE_COLLECT2 if system wants one.
12042 case $use_collect2 in
12043 no) use_collect2= ;;
12044 "") ;;
12046 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12047 xm_defines="${xm_defines} USE_COLLECT2"
12048 case $host_can_use_collect2 in
12050 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12052 esac
12054 esac
12057 cat >>confdefs.h <<_ACEOF
12058 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12059 _ACEOF
12062 # ---------------------------
12063 # Assembler & linker features
12064 # ---------------------------
12066 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12067 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12068 # However when ld-new is first executed from the build tree, libtool will
12069 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12070 # to the build tree. While doing this we need to use the previous-stage
12071 # linker, or we have an infinite loop. The presence of a shell script as
12072 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12073 # the gcc/collect-ld script. So we need to know how libtool works, or
12074 # exec-tool will fail.
12077 case `pwd` in
12078 *\ * | *\ *)
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12080 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12081 esac
12085 macro_version='2.2.7a'
12086 macro_revision='1.3134'
12100 ltmain="$ac_aux_dir/ltmain.sh"
12102 # Backslashify metacharacters that are still active within
12103 # double-quoted strings.
12104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12106 # Same as above, but do not quote variable references.
12107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12109 # Sed substitution to delay expansion of an escaped shell variable in a
12110 # double_quote_subst'ed string.
12111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12113 # Sed substitution to delay expansion of an escaped single quote.
12114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12116 # Sed substitution to avoid accidental globbing in evaled expressions
12117 no_glob_subst='s/\*/\\\*/g'
12119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12124 $as_echo_n "checking how to print strings... " >&6; }
12125 # Test print first, because it will be a builtin if present.
12126 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12128 ECHO='print -r --'
12129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12130 ECHO='printf %s\n'
12131 else
12132 # Use this function as a fallback that always works.
12133 func_fallback_echo ()
12135 eval 'cat <<_LTECHO_EOF
12137 _LTECHO_EOF'
12139 ECHO='func_fallback_echo'
12142 # func_echo_all arg...
12143 # Invoke $ECHO with all args, space-separated.
12144 func_echo_all ()
12146 $ECHO ""
12149 case "$ECHO" in
12150 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12151 $as_echo "printf" >&6; } ;;
12152 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12153 $as_echo "print -r" >&6; } ;;
12154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12155 $as_echo "cat" >&6; } ;;
12156 esac
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12172 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12173 if test "${ac_cv_path_SED+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12177 for ac_i in 1 2 3 4 5 6 7; do
12178 ac_script="$ac_script$as_nl$ac_script"
12179 done
12180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12181 { ac_script=; unset ac_script;}
12182 if test -z "$SED"; then
12183 ac_path_SED_found=false
12184 # Loop through the user's path and test for each of PROGNAME-LIST
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_prog in sed gsed; do
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12194 # Check for GNU ac_path_SED and select it if it is found.
12195 # Check for GNU $ac_path_SED
12196 case `"$ac_path_SED" --version 2>&1` in
12197 *GNU*)
12198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12200 ac_count=0
12201 $as_echo_n 0123456789 >"conftest.in"
12202 while :
12204 cat "conftest.in" "conftest.in" >"conftest.tmp"
12205 mv "conftest.tmp" "conftest.in"
12206 cp "conftest.in" "conftest.nl"
12207 $as_echo '' >> "conftest.nl"
12208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12210 as_fn_arith $ac_count + 1 && ac_count=$as_val
12211 if test $ac_count -gt ${ac_path_SED_max-0}; then
12212 # Best one so far, save it but keep looking for a better one
12213 ac_cv_path_SED="$ac_path_SED"
12214 ac_path_SED_max=$ac_count
12216 # 10*(2^10) chars as input seems more than enough
12217 test $ac_count -gt 10 && break
12218 done
12219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12220 esac
12222 $ac_path_SED_found && break 3
12223 done
12224 done
12225 done
12226 IFS=$as_save_IFS
12227 if test -z "$ac_cv_path_SED"; then
12228 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12230 else
12231 ac_cv_path_SED=$SED
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12236 $as_echo "$ac_cv_path_SED" >&6; }
12237 SED="$ac_cv_path_SED"
12238 rm -f conftest.sed
12240 test -z "$SED" && SED=sed
12241 Xsed="$SED -e 1s/^X//"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12254 $as_echo_n "checking for fgrep... " >&6; }
12255 if test "${ac_cv_path_FGREP+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12259 then ac_cv_path_FGREP="$GREP -F"
12260 else
12261 if test -z "$FGREP"; then
12262 ac_path_FGREP_found=false
12263 # Loop through the user's path and test for each of PROGNAME-LIST
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_prog in fgrep; do
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12273 # Check for GNU ac_path_FGREP and select it if it is found.
12274 # Check for GNU $ac_path_FGREP
12275 case `"$ac_path_FGREP" --version 2>&1` in
12276 *GNU*)
12277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12279 ac_count=0
12280 $as_echo_n 0123456789 >"conftest.in"
12281 while :
12283 cat "conftest.in" "conftest.in" >"conftest.tmp"
12284 mv "conftest.tmp" "conftest.in"
12285 cp "conftest.in" "conftest.nl"
12286 $as_echo 'FGREP' >> "conftest.nl"
12287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12289 as_fn_arith $ac_count + 1 && ac_count=$as_val
12290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12291 # Best one so far, save it but keep looking for a better one
12292 ac_cv_path_FGREP="$ac_path_FGREP"
12293 ac_path_FGREP_max=$ac_count
12295 # 10*(2^10) chars as input seems more than enough
12296 test $ac_count -gt 10 && break
12297 done
12298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12299 esac
12301 $ac_path_FGREP_found && break 3
12302 done
12303 done
12304 done
12305 IFS=$as_save_IFS
12306 if test -z "$ac_cv_path_FGREP"; then
12307 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12309 else
12310 ac_cv_path_FGREP=$FGREP
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12316 $as_echo "$ac_cv_path_FGREP" >&6; }
12317 FGREP="$ac_cv_path_FGREP"
12320 test -z "$GREP" && GREP=grep
12340 # Check whether --with-gnu-ld was given.
12341 if test "${with_gnu_ld+set}" = set; then :
12342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12343 else
12344 with_gnu_ld=no
12347 ac_prog=ld
12348 if test "$GCC" = yes; then
12349 # Check if gcc -print-prog-name=ld gives a path.
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12351 $as_echo_n "checking for ld used by $CC... " >&6; }
12352 case $host in
12353 *-*-mingw*)
12354 # gcc leaves a trailing carriage return which upsets mingw
12355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12358 esac
12359 case $ac_prog in
12360 # Accept absolute paths.
12361 [\\/]* | ?:[\\/]*)
12362 re_direlt='/[^/][^/]*/\.\./'
12363 # Canonicalize the pathname of ld
12364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12367 done
12368 test -z "$LD" && LD="$ac_prog"
12371 # If it fails, then pretend we aren't using GCC.
12372 ac_prog=ld
12375 # If it is relative, then search for the first ld in PATH.
12376 with_gnu_ld=unknown
12378 esac
12379 elif test "$with_gnu_ld" = yes; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12381 $as_echo_n "checking for GNU ld... " >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12384 $as_echo_n "checking for non-GNU ld... " >&6; }
12386 if test "${lt_cv_path_LD+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test -z "$LD"; then
12390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12391 for ac_dir in $PATH; do
12392 IFS="$lt_save_ifs"
12393 test -z "$ac_dir" && ac_dir=.
12394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12395 lt_cv_path_LD="$ac_dir/$ac_prog"
12396 # Check to see if the program is GNU ld. I'd rather use --version,
12397 # but apparently some variants of GNU ld only accept -v.
12398 # Break only if it was the GNU/non-GNU ld that we prefer.
12399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12400 *GNU* | *'with BFD'*)
12401 test "$with_gnu_ld" != no && break
12404 test "$with_gnu_ld" != yes && break
12406 esac
12408 done
12409 IFS="$lt_save_ifs"
12410 else
12411 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12415 LD="$lt_cv_path_LD"
12416 if test -n "$LD"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12418 $as_echo "$LD" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12423 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12425 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12426 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12430 case `$LD -v 2>&1 </dev/null` in
12431 *GNU* | *'with BFD'*)
12432 lt_cv_prog_gnu_ld=yes
12435 lt_cv_prog_gnu_ld=no
12437 esac
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12440 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12441 with_gnu_ld=$lt_cv_prog_gnu_ld
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12452 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12453 if test "${lt_cv_path_NM+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 if test -n "$NM"; then
12457 # Let the user override the test.
12458 lt_cv_path_NM="$NM"
12459 else
12460 lt_nm_to_check="${ac_tool_prefix}nm"
12461 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12462 lt_nm_to_check="$lt_nm_to_check nm"
12464 for lt_tmp_nm in $lt_nm_to_check; do
12465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12466 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12467 IFS="$lt_save_ifs"
12468 test -z "$ac_dir" && ac_dir=.
12469 tmp_nm="$ac_dir/$lt_tmp_nm"
12470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12471 # Check to see if the nm accepts a BSD-compat flag.
12472 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12473 # nm: unknown option "B" ignored
12474 # Tru64's nm complains that /dev/null is an invalid object file
12475 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12476 */dev/null* | *'Invalid file or object type'*)
12477 lt_cv_path_NM="$tmp_nm -B"
12478 break
12481 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12482 */dev/null*)
12483 lt_cv_path_NM="$tmp_nm -p"
12484 break
12487 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12488 continue # so that we can try to find one that supports BSD flags
12490 esac
12492 esac
12494 done
12495 IFS="$lt_save_ifs"
12496 done
12497 : ${lt_cv_path_NM=no}
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12501 $as_echo "$lt_cv_path_NM" >&6; }
12502 if test "$lt_cv_path_NM" != "no"; then
12503 NM="$lt_cv_path_NM"
12504 else
12505 # Didn't find any BSD compatible name lister, look for dumpbin.
12506 if test -n "$DUMPBIN"; then :
12507 # Let the user override the test.
12508 else
12509 if test -n "$ac_tool_prefix"; then
12510 for ac_prog in dumpbin "link -dump"
12512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$DUMPBIN"; then
12520 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12539 DUMPBIN=$ac_cv_prog_DUMPBIN
12540 if test -n "$DUMPBIN"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12542 $as_echo "$DUMPBIN" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12549 test -n "$DUMPBIN" && break
12550 done
12552 if test -z "$DUMPBIN"; then
12553 ac_ct_DUMPBIN=$DUMPBIN
12554 for ac_prog in dumpbin "link -dump"
12556 # Extract the first word of "$ac_prog", so it can be a program name with args.
12557 set dummy $ac_prog; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 if test -n "$ac_ct_DUMPBIN"; then
12564 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12565 else
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12583 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12584 if test -n "$ac_ct_DUMPBIN"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12586 $as_echo "$ac_ct_DUMPBIN" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12593 test -n "$ac_ct_DUMPBIN" && break
12594 done
12596 if test "x$ac_ct_DUMPBIN" = x; then
12597 DUMPBIN=":"
12598 else
12599 case $cross_compiling:$ac_tool_warned in
12600 yes:)
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12603 ac_tool_warned=yes ;;
12604 esac
12605 DUMPBIN=$ac_ct_DUMPBIN
12609 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12610 *COFF*)
12611 DUMPBIN="$DUMPBIN -symbols"
12614 DUMPBIN=:
12616 esac
12619 if test "$DUMPBIN" != ":"; then
12620 NM="$DUMPBIN"
12623 test -z "$NM" && NM=nm
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12631 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12632 if test "${lt_cv_nm_interface+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 lt_cv_nm_interface="BSD nm"
12636 echo "int some_variable = 0;" > conftest.$ac_ext
12637 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12638 (eval "$ac_compile" 2>conftest.err)
12639 cat conftest.err >&5
12640 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12641 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12642 cat conftest.err >&5
12643 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12644 cat conftest.out >&5
12645 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12646 lt_cv_nm_interface="MS dumpbin"
12648 rm -f conftest*
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12651 $as_echo "$lt_cv_nm_interface" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12654 $as_echo_n "checking whether ln -s works... " >&6; }
12655 LN_S=$as_ln_s
12656 if test "$LN_S" = "ln -s"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658 $as_echo "yes" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12661 $as_echo "no, using $LN_S" >&6; }
12664 # find the maximum length of command line arguments
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12666 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12667 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12671 teststring="ABCD"
12673 case $build_os in
12674 msdosdjgpp*)
12675 # On DJGPP, this test can blow up pretty badly due to problems in libc
12676 # (any single argument exceeding 2000 bytes causes a buffer overrun
12677 # during glob expansion). Even if it were fixed, the result of this
12678 # check would be larger than it should be.
12679 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12682 gnu*)
12683 # Under GNU Hurd, this test is not required because there is
12684 # no limit to the length of command line arguments.
12685 # Libtool will interpret -1 as no limit whatsoever
12686 lt_cv_sys_max_cmd_len=-1;
12689 cygwin* | mingw* | cegcc*)
12690 # On Win9x/ME, this test blows up -- it succeeds, but takes
12691 # about 5 minutes as the teststring grows exponentially.
12692 # Worse, since 9x/ME are not pre-emptively multitasking,
12693 # you end up with a "frozen" computer, even though with patience
12694 # the test eventually succeeds (with a max line length of 256k).
12695 # Instead, let's just punt: use the minimum linelength reported by
12696 # all of the supported platforms: 8192 (on NT/2K/XP).
12697 lt_cv_sys_max_cmd_len=8192;
12700 mint*)
12701 # On MiNT this can take a long time and run out of memory.
12702 lt_cv_sys_max_cmd_len=8192;
12705 amigaos*)
12706 # On AmigaOS with pdksh, this test takes hours, literally.
12707 # So we just punt and use a minimum line length of 8192.
12708 lt_cv_sys_max_cmd_len=8192;
12711 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12712 # This has been around since 386BSD, at least. Likely further.
12713 if test -x /sbin/sysctl; then
12714 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12715 elif test -x /usr/sbin/sysctl; then
12716 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12717 else
12718 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12720 # And add a safety zone
12721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12725 interix*)
12726 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12727 lt_cv_sys_max_cmd_len=196608
12730 osf*)
12731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12733 # nice to cause kernel panics so lets avoid the loop below.
12734 # First set a reasonable default.
12735 lt_cv_sys_max_cmd_len=16384
12737 if test -x /sbin/sysconfig; then
12738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12739 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12740 esac
12743 sco3.2v5*)
12744 lt_cv_sys_max_cmd_len=102400
12746 sysv5* | sco5v6* | sysv4.2uw2*)
12747 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12748 if test -n "$kargmax"; then
12749 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12750 else
12751 lt_cv_sys_max_cmd_len=32768
12755 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12756 if test -n "$lt_cv_sys_max_cmd_len"; then
12757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12759 else
12760 # Make teststring a little bigger before we do anything with it.
12761 # a 1K string should be a reasonable start.
12762 for i in 1 2 3 4 5 6 7 8 ; do
12763 teststring=$teststring$teststring
12764 done
12765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12766 # If test is not a shell built-in, we'll probably end up computing a
12767 # maximum length that is only half of the actual maximum length, but
12768 # we can't tell.
12769 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12770 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12771 test $i != 17 # 1/2 MB should be enough
12773 i=`expr $i + 1`
12774 teststring=$teststring$teststring
12775 done
12776 # Only check the string length outside the loop.
12777 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12778 teststring=
12779 # Add a significant safety factor because C++ compilers can tack on
12780 # massive amounts of additional arguments before passing them to the
12781 # linker. It appears as though 1/2 is a usable value.
12782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12785 esac
12789 if test -n $lt_cv_sys_max_cmd_len ; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12794 $as_echo "none" >&6; }
12796 max_cmd_len=$lt_cv_sys_max_cmd_len
12803 : ${CP="cp -f"}
12804 : ${MV="mv -f"}
12805 : ${RM="rm -f"}
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12808 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12809 # Try some XSI features
12810 xsi_shell=no
12811 ( _lt_dummy="a/b/c"
12812 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12813 = c,a/b,, \
12814 && eval 'test $(( 1 + 1 )) -eq 2 \
12815 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12816 && xsi_shell=yes
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12818 $as_echo "$xsi_shell" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12822 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12823 lt_shell_append=no
12824 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12825 >/dev/null 2>&1 \
12826 && lt_shell_append=yes
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12828 $as_echo "$lt_shell_append" >&6; }
12831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12832 lt_unset=unset
12833 else
12834 lt_unset=false
12841 # test EBCDIC or ASCII
12842 case `echo X|tr X '\101'` in
12843 A) # ASCII based system
12844 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12845 lt_SP2NL='tr \040 \012'
12846 lt_NL2SP='tr \015\012 \040\040'
12848 *) # EBCDIC based system
12849 lt_SP2NL='tr \100 \n'
12850 lt_NL2SP='tr \r\n \100\100'
12852 esac
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12864 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 lt_cv_ld_reload_flag='-r'
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12871 reload_flag=$lt_cv_ld_reload_flag
12872 case $reload_flag in
12873 "" | " "*) ;;
12874 *) reload_flag=" $reload_flag" ;;
12875 esac
12876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12877 case $host_os in
12878 darwin*)
12879 if test "$GCC" = yes; then
12880 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12881 else
12882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12885 esac
12895 if test -n "$ac_tool_prefix"; then
12896 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$OBJDUMP"; then
12904 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12913 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12923 OBJDUMP=$ac_cv_prog_OBJDUMP
12924 if test -n "$OBJDUMP"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12926 $as_echo "$OBJDUMP" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12934 if test -z "$ac_cv_prog_OBJDUMP"; then
12935 ac_ct_OBJDUMP=$OBJDUMP
12936 # Extract the first word of "objdump", so it can be a program name with args.
12937 set dummy objdump; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 if test -n "$ac_ct_OBJDUMP"; then
12944 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12964 if test -n "$ac_ct_OBJDUMP"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12966 $as_echo "$ac_ct_OBJDUMP" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12972 if test "x$ac_ct_OBJDUMP" = x; then
12973 OBJDUMP="false"
12974 else
12975 case $cross_compiling:$ac_tool_warned in
12976 yes:)
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12979 ac_tool_warned=yes ;;
12980 esac
12981 OBJDUMP=$ac_ct_OBJDUMP
12983 else
12984 OBJDUMP="$ac_cv_prog_OBJDUMP"
12987 test -z "$OBJDUMP" && OBJDUMP=objdump
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12998 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12999 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 lt_cv_file_magic_cmd='$MAGIC_CMD'
13003 lt_cv_file_magic_test_file=
13004 lt_cv_deplibs_check_method='unknown'
13005 # Need to set the preceding variable on all platforms that support
13006 # interlibrary dependencies.
13007 # 'none' -- dependencies not supported.
13008 # `unknown' -- same as none, but documents that we really don't know.
13009 # 'pass_all' -- all dependencies passed with no checks.
13010 # 'test_compile' -- check by making test program.
13011 # 'file_magic [[regex]]' -- check by looking for files in library path
13012 # which responds to the $file_magic_cmd with a given extended regex.
13013 # If you have `file' or equivalent on your system and you're not sure
13014 # whether `pass_all' will *always* work, you probably want this one.
13016 case $host_os in
13017 aix[4-9]*)
13018 lt_cv_deplibs_check_method=pass_all
13021 beos*)
13022 lt_cv_deplibs_check_method=pass_all
13025 bsdi[45]*)
13026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13027 lt_cv_file_magic_cmd='/usr/bin/file -L'
13028 lt_cv_file_magic_test_file=/shlib/libc.so
13031 cygwin*)
13032 # func_win32_libid is a shell function defined in ltmain.sh
13033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13034 lt_cv_file_magic_cmd='func_win32_libid'
13037 mingw* | pw32*)
13038 # Base MSYS/MinGW do not provide the 'file' command needed by
13039 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13040 # unless we find 'file', for example because we are cross-compiling.
13041 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13042 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13043 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13044 lt_cv_file_magic_cmd='func_win32_libid'
13045 else
13046 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13047 lt_cv_file_magic_cmd='$OBJDUMP -f'
13051 cegcc*)
13052 # use the weaker test based on 'objdump'. See mingw*.
13053 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13054 lt_cv_file_magic_cmd='$OBJDUMP -f'
13057 darwin* | rhapsody*)
13058 lt_cv_deplibs_check_method=pass_all
13061 freebsd* | dragonfly*)
13062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13063 case $host_cpu in
13064 i*86 )
13065 # Not sure whether the presence of OpenBSD here was a mistake.
13066 # Let's accept both of them until this is cleared up.
13067 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13068 lt_cv_file_magic_cmd=/usr/bin/file
13069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13071 esac
13072 else
13073 lt_cv_deplibs_check_method=pass_all
13077 gnu*)
13078 lt_cv_deplibs_check_method=pass_all
13081 haiku*)
13082 lt_cv_deplibs_check_method=pass_all
13085 hpux10.20* | hpux11*)
13086 lt_cv_file_magic_cmd=/usr/bin/file
13087 case $host_cpu in
13088 ia64*)
13089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13092 hppa*64*)
13093 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]'
13094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13100 esac
13103 interix[3-9]*)
13104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13108 irix5* | irix6* | nonstopux*)
13109 case $LD in
13110 *-32|*"-32 ") libmagic=32-bit;;
13111 *-n32|*"-n32 ") libmagic=N32;;
13112 *-64|*"-64 ") libmagic=64-bit;;
13113 *) libmagic=never-match;;
13114 esac
13115 lt_cv_deplibs_check_method=pass_all
13118 # This must be Linux ELF.
13119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13120 lt_cv_deplibs_check_method=pass_all
13123 netbsd*)
13124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13126 else
13127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13131 newos6*)
13132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13133 lt_cv_file_magic_cmd=/usr/bin/file
13134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13137 *nto* | *qnx*)
13138 lt_cv_deplibs_check_method=pass_all
13141 openbsd*)
13142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13144 else
13145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13149 osf3* | osf4* | osf5*)
13150 lt_cv_deplibs_check_method=pass_all
13153 rdos*)
13154 lt_cv_deplibs_check_method=pass_all
13157 solaris*)
13158 lt_cv_deplibs_check_method=pass_all
13161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162 lt_cv_deplibs_check_method=pass_all
13165 sysv4 | sysv4.3*)
13166 case $host_vendor in
13167 motorola)
13168 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]'
13169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13171 ncr)
13172 lt_cv_deplibs_check_method=pass_all
13174 sequent)
13175 lt_cv_file_magic_cmd='/bin/file'
13176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13178 sni)
13179 lt_cv_file_magic_cmd='/bin/file'
13180 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13181 lt_cv_file_magic_test_file=/lib/libc.so
13183 siemens)
13184 lt_cv_deplibs_check_method=pass_all
13187 lt_cv_deplibs_check_method=pass_all
13189 esac
13192 tpf*)
13193 lt_cv_deplibs_check_method=pass_all
13195 esac
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13199 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13200 file_magic_cmd=$lt_cv_file_magic_cmd
13201 deplibs_check_method=$lt_cv_deplibs_check_method
13202 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13215 if test -n "$ac_tool_prefix"; then
13216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13217 set dummy ${ac_tool_prefix}ar; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if test "${ac_cv_prog_AR+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 if test -n "$AR"; then
13224 ac_cv_prog_AR="$AR" # Let the user override the test.
13225 else
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_prog_AR="${ac_tool_prefix}ar"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13237 done
13238 done
13239 IFS=$as_save_IFS
13243 AR=$ac_cv_prog_AR
13244 if test -n "$AR"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13246 $as_echo "$AR" >&6; }
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13254 if test -z "$ac_cv_prog_AR"; then
13255 ac_ct_AR=$AR
13256 # Extract the first word of "ar", so it can be a program name with args.
13257 set dummy ar; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 if test -n "$ac_ct_AR"; then
13264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_ac_ct_AR="ar"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13277 done
13278 done
13279 IFS=$as_save_IFS
13283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13284 if test -n "$ac_ct_AR"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13286 $as_echo "$ac_ct_AR" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13292 if test "x$ac_ct_AR" = x; then
13293 AR="false"
13294 else
13295 case $cross_compiling:$ac_tool_warned in
13296 yes:)
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13299 ac_tool_warned=yes ;;
13300 esac
13301 AR=$ac_ct_AR
13303 else
13304 AR="$ac_cv_prog_AR"
13307 test -z "$AR" && AR=ar
13308 test -z "$AR_FLAGS" && AR_FLAGS=cru
13320 if test -n "$ac_tool_prefix"; then
13321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13322 set dummy ${ac_tool_prefix}strip; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if test "${ac_cv_prog_STRIP+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$STRIP"; then
13329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13342 done
13343 done
13344 IFS=$as_save_IFS
13348 STRIP=$ac_cv_prog_STRIP
13349 if test -n "$STRIP"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13351 $as_echo "$STRIP" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13359 if test -z "$ac_cv_prog_STRIP"; then
13360 ac_ct_STRIP=$STRIP
13361 # Extract the first word of "strip", so it can be a program name with args.
13362 set dummy strip; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$ac_ct_STRIP"; then
13369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_ac_ct_STRIP="strip"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13382 done
13383 done
13384 IFS=$as_save_IFS
13388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13389 if test -n "$ac_ct_STRIP"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13391 $as_echo "$ac_ct_STRIP" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13397 if test "x$ac_ct_STRIP" = x; then
13398 STRIP=":"
13399 else
13400 case $cross_compiling:$ac_tool_warned in
13401 yes:)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404 ac_tool_warned=yes ;;
13405 esac
13406 STRIP=$ac_ct_STRIP
13408 else
13409 STRIP="$ac_cv_prog_STRIP"
13412 test -z "$STRIP" && STRIP=:
13419 if test -n "$ac_tool_prefix"; then
13420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 if test -n "$RANLIB"; then
13428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13429 else
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13441 done
13442 done
13443 IFS=$as_save_IFS
13447 RANLIB=$ac_cv_prog_RANLIB
13448 if test -n "$RANLIB"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13450 $as_echo "$RANLIB" >&6; }
13451 else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13458 if test -z "$ac_cv_prog_RANLIB"; then
13459 ac_ct_RANLIB=$RANLIB
13460 # Extract the first word of "ranlib", so it can be a program name with args.
13461 set dummy ranlib; ac_word=$2
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463 $as_echo_n "checking for $ac_word... " >&6; }
13464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 if test -n "$ac_ct_RANLIB"; then
13468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13477 ac_cv_prog_ac_ct_RANLIB="ranlib"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13481 done
13482 done
13483 IFS=$as_save_IFS
13487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13488 if test -n "$ac_ct_RANLIB"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13490 $as_echo "$ac_ct_RANLIB" >&6; }
13491 else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13496 if test "x$ac_ct_RANLIB" = x; then
13497 RANLIB=":"
13498 else
13499 case $cross_compiling:$ac_tool_warned in
13500 yes:)
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13503 ac_tool_warned=yes ;;
13504 esac
13505 RANLIB=$ac_ct_RANLIB
13507 else
13508 RANLIB="$ac_cv_prog_RANLIB"
13511 test -z "$RANLIB" && RANLIB=:
13518 # Determine commands to create old-style static archives.
13519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13520 old_postinstall_cmds='chmod 644 $oldlib'
13521 old_postuninstall_cmds=
13523 if test -n "$RANLIB"; then
13524 case $host_os in
13525 openbsd*)
13526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13531 esac
13532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13535 case $host_os in
13536 darwin*)
13537 lock_old_archive_extraction=yes ;;
13539 lock_old_archive_extraction=no ;;
13540 esac
13580 # If no C compiler was specified, use CC.
13581 LTCC=${LTCC-"$CC"}
13583 # If no C compiler flags were specified, use CFLAGS.
13584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13586 # Allow CC to be a program name with arguments.
13587 compiler=$CC
13590 # Check for command to grab the raw symbol name followed by C symbol from nm.
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13592 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13593 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13597 # These are sane defaults that work on at least a few old systems.
13598 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13600 # Character class describing NM global symbol codes.
13601 symcode='[BCDEGRST]'
13603 # Regexp to match symbols that can be accessed directly from C.
13604 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13606 # Define system-specific variables.
13607 case $host_os in
13608 aix*)
13609 symcode='[BCDT]'
13611 cygwin* | mingw* | pw32* | cegcc*)
13612 symcode='[ABCDGISTW]'
13614 hpux*)
13615 if test "$host_cpu" = ia64; then
13616 symcode='[ABCDEGRST]'
13619 irix* | nonstopux*)
13620 symcode='[BCDEGRST]'
13622 osf*)
13623 symcode='[BCDEGQRST]'
13625 solaris*)
13626 symcode='[BDRT]'
13628 sco3.2v5*)
13629 symcode='[DT]'
13631 sysv4.2uw2*)
13632 symcode='[DT]'
13634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13635 symcode='[ABDT]'
13637 sysv4)
13638 symcode='[DFNSTU]'
13640 esac
13642 # If we're using GNU nm, then use its standard symbol codes.
13643 case `$NM -V 2>&1` in
13644 *GNU* | *'with BFD'*)
13645 symcode='[ABCDGIRSTW]' ;;
13646 esac
13648 # Transform an extracted symbol line into a proper C declaration.
13649 # Some systems (esp. on ia64) link data and code symbols differently,
13650 # so use this general approach.
13651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13653 # Transform an extracted symbol line into symbol name and symbol address
13654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13655 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'"
13657 # Handle CRLF in mingw tool chain
13658 opt_cr=
13659 case $build_os in
13660 mingw*)
13661 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13663 esac
13665 # Try without a prefix underscore, then with it.
13666 for ac_symprfx in "" "_"; do
13668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13669 symxfrm="\\1 $ac_symprfx\\2 \\2"
13671 # Write the raw and C identifiers.
13672 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13673 # Fake it for dumpbin and say T for any non-static function
13674 # and D for any global variable.
13675 # Also find C++ and __fastcall symbols from MSVC++,
13676 # which start with @ or ?.
13677 lt_cv_sys_global_symbol_pipe="$AWK '"\
13678 " {last_section=section; section=\$ 3};"\
13679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13680 " \$ 0!~/External *\|/{next};"\
13681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13682 " {if(hide[section]) next};"\
13683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13687 " ' prfx=^$ac_symprfx"
13688 else
13689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13692 # Check to see that the pipe works correctly.
13693 pipe_works=no
13695 rm -f conftest*
13696 cat > conftest.$ac_ext <<_LT_EOF
13697 #ifdef __cplusplus
13698 extern "C" {
13699 #endif
13700 char nm_test_var;
13701 void nm_test_func(void);
13702 void nm_test_func(void){}
13703 #ifdef __cplusplus
13705 #endif
13706 int main(){nm_test_var='a';nm_test_func();return(0);}
13707 _LT_EOF
13709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13710 (eval $ac_compile) 2>&5
13711 ac_status=$?
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13713 test $ac_status = 0; }; then
13714 # Now try to grab the symbols.
13715 nlist=conftest.nm
13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13717 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; } && test -s "$nlist"; then
13721 # Try sorting and uniquifying the output.
13722 if sort "$nlist" | uniq > "$nlist"T; then
13723 mv -f "$nlist"T "$nlist"
13724 else
13725 rm -f "$nlist"T
13728 # Make sure that we snagged all the symbols we need.
13729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13731 cat <<_LT_EOF > conftest.$ac_ext
13732 #ifdef __cplusplus
13733 extern "C" {
13734 #endif
13736 _LT_EOF
13737 # Now generate the symbol file.
13738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13740 cat <<_LT_EOF >> conftest.$ac_ext
13742 /* The mapping between symbol names and symbols. */
13743 const struct {
13744 const char *name;
13745 void *address;
13747 lt__PROGRAM__LTX_preloaded_symbols[] =
13749 { "@PROGRAM@", (void *) 0 },
13750 _LT_EOF
13751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13752 cat <<\_LT_EOF >> conftest.$ac_ext
13753 {0, (void *) 0}
13756 /* This works around a problem in FreeBSD linker */
13757 #ifdef FREEBSD_WORKAROUND
13758 static const void *lt_preloaded_setup() {
13759 return lt__PROGRAM__LTX_preloaded_symbols;
13761 #endif
13763 #ifdef __cplusplus
13765 #endif
13766 _LT_EOF
13767 # Now try linking the two files.
13768 mv conftest.$ac_objext conftstm.$ac_objext
13769 lt_save_LIBS="$LIBS"
13770 lt_save_CFLAGS="$CFLAGS"
13771 LIBS="conftstm.$ac_objext"
13772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13774 (eval $ac_link) 2>&5
13775 ac_status=$?
13776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13778 pipe_works=yes
13780 LIBS="$lt_save_LIBS"
13781 CFLAGS="$lt_save_CFLAGS"
13782 else
13783 echo "cannot find nm_test_func in $nlist" >&5
13785 else
13786 echo "cannot find nm_test_var in $nlist" >&5
13788 else
13789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13791 else
13792 echo "$progname: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13795 rm -rf conftest* conftst*
13797 # Do not use the global_symbol_pipe unless it works.
13798 if test "$pipe_works" = yes; then
13799 break
13800 else
13801 lt_cv_sys_global_symbol_pipe=
13803 done
13807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13808 lt_cv_sys_global_symbol_to_cdecl=
13810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13812 $as_echo "failed" >&6; }
13813 else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13815 $as_echo "ok" >&6; }
13839 # Check whether --enable-libtool-lock was given.
13840 if test "${enable_libtool_lock+set}" = set; then :
13841 enableval=$enable_libtool_lock;
13844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13846 # Some flags need to be propagated to the compiler or linker for good
13847 # libtool support.
13848 case $host in
13849 ia64-*-hpux*)
13850 # Find out which ABI we are using.
13851 echo 'int i;' > conftest.$ac_ext
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13854 ac_status=$?
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 case `/usr/bin/file conftest.$ac_objext` in
13858 *ELF-32*)
13859 HPUX_IA64_MODE="32"
13861 *ELF-64*)
13862 HPUX_IA64_MODE="64"
13864 esac
13866 rm -rf conftest*
13868 *-*-irix6*)
13869 # Find out which ABI we are using.
13870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13872 (eval $ac_compile) 2>&5
13873 ac_status=$?
13874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13875 test $ac_status = 0; }; then
13876 if test "$lt_cv_prog_gnu_ld" = yes; then
13877 case `/usr/bin/file conftest.$ac_objext` in
13878 *32-bit*)
13879 LD="${LD-ld} -melf32bsmip"
13881 *N32*)
13882 LD="${LD-ld} -melf32bmipn32"
13884 *64-bit*)
13885 LD="${LD-ld} -melf64bmip"
13887 esac
13888 else
13889 case `/usr/bin/file conftest.$ac_objext` in
13890 *32-bit*)
13891 LD="${LD-ld} -32"
13893 *N32*)
13894 LD="${LD-ld} -n32"
13896 *64-bit*)
13897 LD="${LD-ld} -64"
13899 esac
13902 rm -rf conftest*
13905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13907 # Find out which ABI we are using.
13908 echo 'int i;' > conftest.$ac_ext
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 case `/usr/bin/file conftest.o` in
13915 *32-bit*)
13916 case $host in
13917 x86_64-*kfreebsd*-gnu)
13918 LD="${LD-ld} -m elf_i386_fbsd"
13920 x86_64-*linux*)
13921 case `/usr/bin/file conftest.o` in
13922 *x86-64*)
13923 LD="${LD-ld} -m elf32_x86_64"
13926 LD="${LD-ld} -m elf_i386"
13928 esac
13930 powerpc64le-*linux*)
13931 LD="${LD-ld} -m elf32lppclinux"
13933 powerpc64-*linux*)
13934 LD="${LD-ld} -m elf32ppclinux"
13936 s390x-*linux*)
13937 LD="${LD-ld} -m elf_s390"
13939 sparc64-*linux*)
13940 LD="${LD-ld} -m elf32_sparc"
13942 esac
13944 *64-bit*)
13945 case $host in
13946 x86_64-*kfreebsd*-gnu)
13947 LD="${LD-ld} -m elf_x86_64_fbsd"
13949 x86_64-*linux*)
13950 LD="${LD-ld} -m elf_x86_64"
13952 powerpcle-*linux*)
13953 LD="${LD-ld} -m elf64lppc"
13955 powerpc-*linux*)
13956 LD="${LD-ld} -m elf64ppc"
13958 s390*-*linux*|s390*-*tpf*)
13959 LD="${LD-ld} -m elf64_s390"
13961 sparc*-*linux*)
13962 LD="${LD-ld} -m elf64_sparc"
13964 esac
13966 esac
13968 rm -rf conftest*
13971 *-*-sco3.2v5*)
13972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13973 SAVE_CFLAGS="$CFLAGS"
13974 CFLAGS="$CFLAGS -belf"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13976 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13977 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 ac_ext=c
13981 ac_cpp='$CPP $CPPFLAGS'
13982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13990 main ()
13994 return 0;
13996 _ACEOF
13997 if ac_fn_c_try_link "$LINENO"; then :
13998 lt_cv_cc_needs_belf=yes
13999 else
14000 lt_cv_cc_needs_belf=no
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004 ac_ext=c
14005 ac_cpp='$CPP $CPPFLAGS'
14006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14012 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14013 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14014 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14015 CFLAGS="$SAVE_CFLAGS"
14018 sparc*-*solaris*)
14019 # Find out which ABI we are using.
14020 echo 'int i;' > conftest.$ac_ext
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14022 (eval $ac_compile) 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; }; then
14026 case `/usr/bin/file conftest.o` in
14027 *64-bit*)
14028 case $lt_cv_prog_gnu_ld in
14029 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14032 LD="${LD-ld} -64"
14035 esac
14037 esac
14039 rm -rf conftest*
14041 esac
14043 need_locks="$enable_libtool_lock"
14046 case $host_os in
14047 rhapsody* | darwin*)
14048 if test -n "$ac_tool_prefix"; then
14049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14050 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 if test -n "$DSYMUTIL"; then
14057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14076 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14077 if test -n "$DSYMUTIL"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14079 $as_echo "$DSYMUTIL" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14087 if test -z "$ac_cv_prog_DSYMUTIL"; then
14088 ac_ct_DSYMUTIL=$DSYMUTIL
14089 # Extract the first word of "dsymutil", so it can be a program name with args.
14090 set dummy dsymutil; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14092 $as_echo_n "checking for $ac_word... " >&6; }
14093 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 if test -n "$ac_ct_DSYMUTIL"; then
14097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14098 else
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14110 done
14111 done
14112 IFS=$as_save_IFS
14116 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14117 if test -n "$ac_ct_DSYMUTIL"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14119 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14120 else
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122 $as_echo "no" >&6; }
14125 if test "x$ac_ct_DSYMUTIL" = x; then
14126 DSYMUTIL=":"
14127 else
14128 case $cross_compiling:$ac_tool_warned in
14129 yes:)
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14132 ac_tool_warned=yes ;;
14133 esac
14134 DSYMUTIL=$ac_ct_DSYMUTIL
14136 else
14137 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14140 if test -n "$ac_tool_prefix"; then
14141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14142 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 if test -n "$NMEDIT"; then
14149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14162 done
14163 done
14164 IFS=$as_save_IFS
14168 NMEDIT=$ac_cv_prog_NMEDIT
14169 if test -n "$NMEDIT"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14171 $as_echo "$NMEDIT" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14179 if test -z "$ac_cv_prog_NMEDIT"; then
14180 ac_ct_NMEDIT=$NMEDIT
14181 # Extract the first word of "nmedit", so it can be a program name with args.
14182 set dummy nmedit; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184 $as_echo_n "checking for $ac_word... " >&6; }
14185 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 if test -n "$ac_ct_NMEDIT"; then
14189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14190 else
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14198 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14202 done
14203 done
14204 IFS=$as_save_IFS
14208 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14209 if test -n "$ac_ct_NMEDIT"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14211 $as_echo "$ac_ct_NMEDIT" >&6; }
14212 else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14217 if test "x$ac_ct_NMEDIT" = x; then
14218 NMEDIT=":"
14219 else
14220 case $cross_compiling:$ac_tool_warned in
14221 yes:)
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14224 ac_tool_warned=yes ;;
14225 esac
14226 NMEDIT=$ac_ct_NMEDIT
14228 else
14229 NMEDIT="$ac_cv_prog_NMEDIT"
14232 if test -n "$ac_tool_prefix"; then
14233 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14234 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if test "${ac_cv_prog_LIPO+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 if test -n "$LIPO"; then
14241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14242 else
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14246 IFS=$as_save_IFS
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252 break 2
14254 done
14255 done
14256 IFS=$as_save_IFS
14260 LIPO=$ac_cv_prog_LIPO
14261 if test -n "$LIPO"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14263 $as_echo "$LIPO" >&6; }
14264 else
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14271 if test -z "$ac_cv_prog_LIPO"; then
14272 ac_ct_LIPO=$LIPO
14273 # Extract the first word of "lipo", so it can be a program name with args.
14274 set dummy lipo; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 if test -n "$ac_ct_LIPO"; then
14281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14282 else
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14290 ac_cv_prog_ac_ct_LIPO="lipo"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14294 done
14295 done
14296 IFS=$as_save_IFS
14300 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14301 if test -n "$ac_ct_LIPO"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14303 $as_echo "$ac_ct_LIPO" >&6; }
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14309 if test "x$ac_ct_LIPO" = x; then
14310 LIPO=":"
14311 else
14312 case $cross_compiling:$ac_tool_warned in
14313 yes:)
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14316 ac_tool_warned=yes ;;
14317 esac
14318 LIPO=$ac_ct_LIPO
14320 else
14321 LIPO="$ac_cv_prog_LIPO"
14324 if test -n "$ac_tool_prefix"; then
14325 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14326 set dummy ${ac_tool_prefix}otool; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 if test -n "$OTOOL"; then
14333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14346 done
14347 done
14348 IFS=$as_save_IFS
14352 OTOOL=$ac_cv_prog_OTOOL
14353 if test -n "$OTOOL"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14355 $as_echo "$OTOOL" >&6; }
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14363 if test -z "$ac_cv_prog_OTOOL"; then
14364 ac_ct_OTOOL=$OTOOL
14365 # Extract the first word of "otool", so it can be a program name with args.
14366 set dummy otool; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 if test -n "$ac_ct_OTOOL"; then
14373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_ac_ct_OTOOL="otool"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14386 done
14387 done
14388 IFS=$as_save_IFS
14392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14393 if test -n "$ac_ct_OTOOL"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14395 $as_echo "$ac_ct_OTOOL" >&6; }
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14401 if test "x$ac_ct_OTOOL" = x; then
14402 OTOOL=":"
14403 else
14404 case $cross_compiling:$ac_tool_warned in
14405 yes:)
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14408 ac_tool_warned=yes ;;
14409 esac
14410 OTOOL=$ac_ct_OTOOL
14412 else
14413 OTOOL="$ac_cv_prog_OTOOL"
14416 if test -n "$ac_tool_prefix"; then
14417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 $as_echo_n "checking for $ac_word... " >&6; }
14421 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if test -n "$OTOOL64"; then
14425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14426 else
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14430 IFS=$as_save_IFS
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 break 2
14438 done
14439 done
14440 IFS=$as_save_IFS
14444 OTOOL64=$ac_cv_prog_OTOOL64
14445 if test -n "$OTOOL64"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14447 $as_echo "$OTOOL64" >&6; }
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14455 if test -z "$ac_cv_prog_OTOOL64"; then
14456 ac_ct_OTOOL64=$OTOOL64
14457 # Extract the first word of "otool64", so it can be a program name with args.
14458 set dummy otool64; ac_word=$2
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14460 $as_echo_n "checking for $ac_word... " >&6; }
14461 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 if test -n "$ac_ct_OTOOL64"; then
14465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14466 else
14467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14470 IFS=$as_save_IFS
14471 test -z "$as_dir" && as_dir=.
14472 for ac_exec_ext in '' $ac_executable_extensions; do
14473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14474 ac_cv_prog_ac_ct_OTOOL64="otool64"
14475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14476 break 2
14478 done
14479 done
14480 IFS=$as_save_IFS
14484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14485 if test -n "$ac_ct_OTOOL64"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14487 $as_echo "$ac_ct_OTOOL64" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14493 if test "x$ac_ct_OTOOL64" = x; then
14494 OTOOL64=":"
14495 else
14496 case $cross_compiling:$ac_tool_warned in
14497 yes:)
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14500 ac_tool_warned=yes ;;
14501 esac
14502 OTOOL64=$ac_ct_OTOOL64
14504 else
14505 OTOOL64="$ac_cv_prog_OTOOL64"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14535 $as_echo_n "checking for -single_module linker flag... " >&6; }
14536 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 lt_cv_apple_cc_single_mod=no
14540 if test -z "${LT_MULTI_MODULE}"; then
14541 # By default we will add the -single_module flag. You can override
14542 # by either setting the environment variable LT_MULTI_MODULE
14543 # non-empty at configure time, or by adding -multi_module to the
14544 # link flags.
14545 rm -rf libconftest.dylib*
14546 echo "int foo(void){return 1;}" > conftest.c
14547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14548 -dynamiclib -Wl,-single_module conftest.c" >&5
14549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14551 _lt_result=$?
14552 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14553 lt_cv_apple_cc_single_mod=yes
14554 else
14555 cat conftest.err >&5
14557 rm -rf libconftest.dylib*
14558 rm -f conftest.*
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14564 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14565 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 lt_cv_ld_exported_symbols_list=no
14569 save_LDFLAGS=$LDFLAGS
14570 echo "_main" > conftest.sym
14571 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14576 main ()
14580 return 0;
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"; then :
14584 lt_cv_ld_exported_symbols_list=yes
14585 else
14586 lt_cv_ld_exported_symbols_list=no
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14590 LDFLAGS="$save_LDFLAGS"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14594 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14596 $as_echo_n "checking for -force_load linker flag... " >&6; }
14597 if test "${lt_cv_ld_force_load+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 lt_cv_ld_force_load=no
14601 cat > conftest.c << _LT_EOF
14602 int forced_loaded() { return 2;}
14603 _LT_EOF
14604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14606 echo "$AR cru libconftest.a conftest.o" >&5
14607 $AR cru libconftest.a conftest.o 2>&5
14608 cat > conftest.c << _LT_EOF
14609 int main() { return 0;}
14610 _LT_EOF
14611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14613 _lt_result=$?
14614 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14615 lt_cv_ld_force_load=yes
14616 else
14617 cat conftest.err >&5
14619 rm -f conftest.err libconftest.a conftest conftest.c
14620 rm -rf conftest.dSYM
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14624 $as_echo "$lt_cv_ld_force_load" >&6; }
14625 case $host_os in
14626 rhapsody* | darwin1.[012])
14627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14628 darwin1.*)
14629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14630 darwin*) # darwin 5.x on
14631 # if running on 10.5 or later, the deployment target defaults
14632 # to the OS version, if on x86, and 10.4, the deployment
14633 # target defaults to 10.4. Don't you love it?
14634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14637 10.[012][,.]*)
14638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14639 10.*)
14640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14641 esac
14643 esac
14644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14645 _lt_dar_single_mod='$single_module'
14647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14649 else
14650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14652 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14653 _lt_dsymutil='~$DSYMUTIL $lib || :'
14654 else
14655 _lt_dsymutil=
14658 esac
14660 for ac_header in dlfcn.h
14661 do :
14662 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14663 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DLFCN_H 1
14666 _ACEOF
14669 done
14675 # Set options
14679 enable_dlopen=no
14682 enable_win32_dll=no
14685 # Check whether --enable-shared was given.
14686 if test "${enable_shared+set}" = set; then :
14687 enableval=$enable_shared; p=${PACKAGE-default}
14688 case $enableval in
14689 yes) enable_shared=yes ;;
14690 no) enable_shared=no ;;
14692 enable_shared=no
14693 # Look at the argument we got. We use all the common list separators.
14694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14695 for pkg in $enableval; do
14696 IFS="$lt_save_ifs"
14697 if test "X$pkg" = "X$p"; then
14698 enable_shared=yes
14700 done
14701 IFS="$lt_save_ifs"
14703 esac
14704 else
14705 enable_shared=yes
14716 # Check whether --enable-static was given.
14717 if test "${enable_static+set}" = set; then :
14718 enableval=$enable_static; p=${PACKAGE-default}
14719 case $enableval in
14720 yes) enable_static=yes ;;
14721 no) enable_static=no ;;
14723 enable_static=no
14724 # Look at the argument we got. We use all the common list separators.
14725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14726 for pkg in $enableval; do
14727 IFS="$lt_save_ifs"
14728 if test "X$pkg" = "X$p"; then
14729 enable_static=yes
14731 done
14732 IFS="$lt_save_ifs"
14734 esac
14735 else
14736 enable_static=yes
14748 # Check whether --with-pic was given.
14749 if test "${with_pic+set}" = set; then :
14750 withval=$with_pic; pic_mode="$withval"
14751 else
14752 pic_mode=default
14756 test -z "$pic_mode" && pic_mode=default
14764 # Check whether --enable-fast-install was given.
14765 if test "${enable_fast_install+set}" = set; then :
14766 enableval=$enable_fast_install; p=${PACKAGE-default}
14767 case $enableval in
14768 yes) enable_fast_install=yes ;;
14769 no) enable_fast_install=no ;;
14771 enable_fast_install=no
14772 # Look at the argument we got. We use all the common list separators.
14773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14774 for pkg in $enableval; do
14775 IFS="$lt_save_ifs"
14776 if test "X$pkg" = "X$p"; then
14777 enable_fast_install=yes
14779 done
14780 IFS="$lt_save_ifs"
14782 esac
14783 else
14784 enable_fast_install=yes
14797 # This can be used to rebuild libtool when needed
14798 LIBTOOL_DEPS="$ltmain"
14800 # Always use our own libtool.
14801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14828 test -z "$LN_S" && LN_S="ln -s"
14843 if test -n "${ZSH_VERSION+set}" ; then
14844 setopt NO_GLOB_SUBST
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14848 $as_echo_n "checking for objdir... " >&6; }
14849 if test "${lt_cv_objdir+set}" = set; then :
14850 $as_echo_n "(cached) " >&6
14851 else
14852 rm -f .libs 2>/dev/null
14853 mkdir .libs 2>/dev/null
14854 if test -d .libs; then
14855 lt_cv_objdir=.libs
14856 else
14857 # MS-DOS does not allow filenames that begin with a dot.
14858 lt_cv_objdir=_libs
14860 rmdir .libs 2>/dev/null
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14863 $as_echo "$lt_cv_objdir" >&6; }
14864 objdir=$lt_cv_objdir
14870 cat >>confdefs.h <<_ACEOF
14871 #define LT_OBJDIR "$lt_cv_objdir/"
14872 _ACEOF
14877 case $host_os in
14878 aix3*)
14879 # AIX sometimes has problems with the GCC collect2 program. For some
14880 # reason, if we set the COLLECT_NAMES environment variable, the problems
14881 # vanish in a puff of smoke.
14882 if test "X${COLLECT_NAMES+set}" != Xset; then
14883 COLLECT_NAMES=
14884 export COLLECT_NAMES
14887 esac
14889 # Global variables:
14890 ofile=libtool
14891 can_build_shared=yes
14893 # All known linkers require a `.a' archive for static linking (except MSVC,
14894 # which needs '.lib').
14895 libext=a
14897 with_gnu_ld="$lt_cv_prog_gnu_ld"
14899 old_CC="$CC"
14900 old_CFLAGS="$CFLAGS"
14902 # Set sane defaults for various variables
14903 test -z "$CC" && CC=cc
14904 test -z "$LTCC" && LTCC=$CC
14905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14906 test -z "$LD" && LD=ld
14907 test -z "$ac_objext" && ac_objext=o
14909 for cc_temp in $compiler""; do
14910 case $cc_temp in
14911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14913 \-*) ;;
14914 *) break;;
14915 esac
14916 done
14917 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14920 # Only perform the check for file, if the check method requires it
14921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14922 case $deplibs_check_method in
14923 file_magic*)
14924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14926 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14927 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 case $MAGIC_CMD in
14931 [\\/*] | ?:[\\/]*)
14932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14935 lt_save_MAGIC_CMD="$MAGIC_CMD"
14936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14938 for ac_dir in $ac_dummy; do
14939 IFS="$lt_save_ifs"
14940 test -z "$ac_dir" && ac_dir=.
14941 if test -f $ac_dir/${ac_tool_prefix}file; then
14942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14943 if test -n "$file_magic_test_file"; then
14944 case $deplibs_check_method in
14945 "file_magic "*)
14946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14949 $EGREP "$file_magic_regex" > /dev/null; then
14951 else
14952 cat <<_LT_EOF 1>&2
14954 *** Warning: the command libtool uses to detect shared libraries,
14955 *** $file_magic_cmd, produces output that libtool cannot recognize.
14956 *** The result is that libtool may fail to recognize shared libraries
14957 *** as such. This will affect the creation of libtool libraries that
14958 *** depend on shared libraries, but programs linked with such libtool
14959 *** libraries will work regardless of this problem. Nevertheless, you
14960 *** may want to report the problem to your system manager and/or to
14961 *** bug-libtool@gnu.org
14963 _LT_EOF
14964 fi ;;
14965 esac
14967 break
14969 done
14970 IFS="$lt_save_ifs"
14971 MAGIC_CMD="$lt_save_MAGIC_CMD"
14973 esac
14976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14977 if test -n "$MAGIC_CMD"; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14979 $as_echo "$MAGIC_CMD" >&6; }
14980 else
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14989 if test -z "$lt_cv_path_MAGIC_CMD"; then
14990 if test -n "$ac_tool_prefix"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14992 $as_echo_n "checking for file... " >&6; }
14993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14994 $as_echo_n "(cached) " >&6
14995 else
14996 case $MAGIC_CMD in
14997 [\\/*] | ?:[\\/]*)
14998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15001 lt_save_MAGIC_CMD="$MAGIC_CMD"
15002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15004 for ac_dir in $ac_dummy; do
15005 IFS="$lt_save_ifs"
15006 test -z "$ac_dir" && ac_dir=.
15007 if test -f $ac_dir/file; then
15008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15009 if test -n "$file_magic_test_file"; then
15010 case $deplibs_check_method in
15011 "file_magic "*)
15012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15015 $EGREP "$file_magic_regex" > /dev/null; then
15017 else
15018 cat <<_LT_EOF 1>&2
15020 *** Warning: the command libtool uses to detect shared libraries,
15021 *** $file_magic_cmd, produces output that libtool cannot recognize.
15022 *** The result is that libtool may fail to recognize shared libraries
15023 *** as such. This will affect the creation of libtool libraries that
15024 *** depend on shared libraries, but programs linked with such libtool
15025 *** libraries will work regardless of this problem. Nevertheless, you
15026 *** may want to report the problem to your system manager and/or to
15027 *** bug-libtool@gnu.org
15029 _LT_EOF
15030 fi ;;
15031 esac
15033 break
15035 done
15036 IFS="$lt_save_ifs"
15037 MAGIC_CMD="$lt_save_MAGIC_CMD"
15039 esac
15042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15043 if test -n "$MAGIC_CMD"; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15045 $as_echo "$MAGIC_CMD" >&6; }
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048 $as_echo "no" >&6; }
15052 else
15053 MAGIC_CMD=:
15059 esac
15061 # Use C for the default configuration in the libtool script
15063 lt_save_CC="$CC"
15064 ac_ext=c
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15071 # Source file extension for C test sources.
15072 ac_ext=c
15074 # Object file extension for compiled C test sources.
15075 objext=o
15076 objext=$objext
15078 # Code to be used in simple compile tests
15079 lt_simple_compile_test_code="int some_variable = 0;"
15081 # Code to be used in simple link tests
15082 lt_simple_link_test_code='int main(){return(0);}'
15090 # If no C compiler was specified, use CC.
15091 LTCC=${LTCC-"$CC"}
15093 # If no C compiler flags were specified, use CFLAGS.
15094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15096 # Allow CC to be a program name with arguments.
15097 compiler=$CC
15099 # Save the default compiler, since it gets overwritten when the other
15100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15101 compiler_DEFAULT=$CC
15103 # save warnings/boilerplate of simple test code
15104 ac_outfile=conftest.$ac_objext
15105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15107 _lt_compiler_boilerplate=`cat conftest.err`
15108 $RM conftest*
15110 ac_outfile=conftest.$ac_objext
15111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15113 _lt_linker_boilerplate=`cat conftest.err`
15114 $RM -r conftest*
15117 ## CAVEAT EMPTOR:
15118 ## There is no encapsulation within the following macros, do not change
15119 ## the running order or otherwise move them around unless you know exactly
15120 ## what you are doing...
15121 if test -n "$compiler"; then
15123 lt_prog_compiler_no_builtin_flag=
15125 if test "$GCC" = yes; then
15126 case $cc_basename in
15127 nvcc*)
15128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15131 esac
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15134 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15135 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 lt_cv_prog_compiler_rtti_exceptions=no
15139 ac_outfile=conftest.$ac_objext
15140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15141 lt_compiler_flag="-fno-rtti -fno-exceptions"
15142 # Insert the option either (1) after the last *FLAGS variable, or
15143 # (2) before a word containing "conftest.", or (3) at the end.
15144 # Note that $ac_compile itself does not contain backslashes and begins
15145 # with a dollar sign (not a hyphen), so the echo should work correctly.
15146 # The option is referenced via a variable to avoid confusing sed.
15147 lt_compile=`echo "$ac_compile" | $SED \
15148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15150 -e 's:$: $lt_compiler_flag:'`
15151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15152 (eval "$lt_compile" 2>conftest.err)
15153 ac_status=$?
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 if (exit $ac_status) && test -s "$ac_outfile"; then
15157 # The compiler can only warn and ignore the option if not recognized
15158 # So say no if there are warnings other than the usual output.
15159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15162 lt_cv_prog_compiler_rtti_exceptions=yes
15165 $RM conftest*
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15173 else
15184 lt_prog_compiler_wl=
15185 lt_prog_compiler_pic=
15186 lt_prog_compiler_static=
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15191 if test "$GCC" = yes; then
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_static='-static'
15195 case $host_os in
15196 aix*)
15197 # All AIX code is PIC.
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 now supports IA64 processor
15200 lt_prog_compiler_static='-Bstatic'
15202 lt_prog_compiler_pic='-fPIC'
15205 amigaos*)
15206 case $host_cpu in
15207 powerpc)
15208 # see comment about AmigaOS4 .so support
15209 lt_prog_compiler_pic='-fPIC'
15211 m68k)
15212 # FIXME: we need at least 68020 code to build shared libraries, but
15213 # adding the `-m68020' flag to GCC prevents building anything better,
15214 # like `-m68040'.
15215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15217 esac
15220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15221 # PIC is the default for these OSes.
15224 mingw* | cygwin* | pw32* | os2* | cegcc*)
15225 # This hack is so that the source file can tell whether it is being
15226 # built for inclusion in a dll (and should export symbols for example).
15227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15228 # (--disable-auto-import) libraries
15229 lt_prog_compiler_pic='-DDLL_EXPORT'
15232 darwin* | rhapsody*)
15233 # PIC is the default on this platform
15234 # Common symbols not allowed in MH_DYLIB files
15235 lt_prog_compiler_pic='-fno-common'
15238 haiku*)
15239 # PIC is the default for Haiku.
15240 # The "-static" flag exists, but is broken.
15241 lt_prog_compiler_static=
15244 hpux*)
15245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15247 # sets the default TLS model and affects inlining.
15248 case $host_cpu in
15249 hppa*64*)
15250 # +Z the default
15253 lt_prog_compiler_pic='-fPIC'
15255 esac
15258 interix[3-9]*)
15259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15260 # Instead, we relocate shared libraries at runtime.
15263 msdosdjgpp*)
15264 # Just because we use GCC doesn't mean we suddenly get shared libraries
15265 # on systems that don't support them.
15266 lt_prog_compiler_can_build_shared=no
15267 enable_shared=no
15270 *nto* | *qnx*)
15271 # QNX uses GNU C++, but need to define -shared option too, otherwise
15272 # it will coredump.
15273 lt_prog_compiler_pic='-fPIC -shared'
15276 sysv4*MP*)
15277 if test -d /usr/nec; then
15278 lt_prog_compiler_pic=-Kconform_pic
15283 lt_prog_compiler_pic='-fPIC'
15285 esac
15287 case $cc_basename in
15288 nvcc*) # Cuda Compiler Driver 2.2
15289 lt_prog_compiler_wl='-Xlinker '
15290 lt_prog_compiler_pic='-Xcompiler -fPIC'
15292 esac
15293 else
15294 # PORTME Check for flag to pass linker flags through the system compiler.
15295 case $host_os in
15296 aix*)
15297 lt_prog_compiler_wl='-Wl,'
15298 if test "$host_cpu" = ia64; then
15299 # AIX 5 now supports IA64 processor
15300 lt_prog_compiler_static='-Bstatic'
15301 else
15302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15306 mingw* | cygwin* | pw32* | os2* | cegcc*)
15307 # This hack is so that the source file can tell whether it is being
15308 # built for inclusion in a dll (and should export symbols for example).
15309 lt_prog_compiler_pic='-DDLL_EXPORT'
15312 hpux9* | hpux10* | hpux11*)
15313 lt_prog_compiler_wl='-Wl,'
15314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15315 # not for PA HP-UX.
15316 case $host_cpu in
15317 hppa*64*|ia64*)
15318 # +Z the default
15321 lt_prog_compiler_pic='+Z'
15323 esac
15324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15325 lt_prog_compiler_static='${wl}-a ${wl}archive'
15328 irix5* | irix6* | nonstopux*)
15329 lt_prog_compiler_wl='-Wl,'
15330 # PIC (with -KPIC) is the default.
15331 lt_prog_compiler_static='-non_shared'
15334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15335 case $cc_basename in
15336 # old Intel for x86_64 which still supported -KPIC.
15337 ecc*)
15338 lt_prog_compiler_wl='-Wl,'
15339 lt_prog_compiler_pic='-KPIC'
15340 lt_prog_compiler_static='-static'
15342 # icc used to be incompatible with GCC.
15343 # ICC 10 doesn't accept -KPIC any more.
15344 icc* | ifort*)
15345 lt_prog_compiler_wl='-Wl,'
15346 lt_prog_compiler_pic='-fPIC'
15347 lt_prog_compiler_static='-static'
15349 # Lahey Fortran 8.1.
15350 lf95*)
15351 lt_prog_compiler_wl='-Wl,'
15352 lt_prog_compiler_pic='--shared'
15353 lt_prog_compiler_static='--static'
15355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15356 # Portland Group compilers (*not* the Pentium gcc compiler,
15357 # which looks to be a dead project)
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='-fpic'
15360 lt_prog_compiler_static='-Bstatic'
15362 ccc*)
15363 lt_prog_compiler_wl='-Wl,'
15364 # All Alpha code is PIC.
15365 lt_prog_compiler_static='-non_shared'
15367 xl* | bgxl* | bgf* | mpixl*)
15368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15369 lt_prog_compiler_wl='-Wl,'
15370 lt_prog_compiler_pic='-qpic'
15371 lt_prog_compiler_static='-qstaticlink'
15374 case `$CC -V 2>&1 | sed 5q` in
15375 *Sun\ F* | *Sun*Fortran*)
15376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15377 lt_prog_compiler_pic='-KPIC'
15378 lt_prog_compiler_static='-Bstatic'
15379 lt_prog_compiler_wl=''
15381 *Sun\ C*)
15382 # Sun C 5.9
15383 lt_prog_compiler_pic='-KPIC'
15384 lt_prog_compiler_static='-Bstatic'
15385 lt_prog_compiler_wl='-Wl,'
15387 esac
15389 esac
15392 newsos6)
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15397 *nto* | *qnx*)
15398 # QNX uses GNU C++, but need to define -shared option too, otherwise
15399 # it will coredump.
15400 lt_prog_compiler_pic='-fPIC -shared'
15403 osf3* | osf4* | osf5*)
15404 lt_prog_compiler_wl='-Wl,'
15405 # All OSF/1 code is PIC.
15406 lt_prog_compiler_static='-non_shared'
15409 rdos*)
15410 lt_prog_compiler_static='-non_shared'
15413 solaris*)
15414 lt_prog_compiler_pic='-KPIC'
15415 lt_prog_compiler_static='-Bstatic'
15416 case $cc_basename in
15417 f77* | f90* | f95*)
15418 lt_prog_compiler_wl='-Qoption ld ';;
15420 lt_prog_compiler_wl='-Wl,';;
15421 esac
15424 sunos4*)
15425 lt_prog_compiler_wl='-Qoption ld '
15426 lt_prog_compiler_pic='-PIC'
15427 lt_prog_compiler_static='-Bstatic'
15430 sysv4 | sysv4.2uw2* | sysv4.3*)
15431 lt_prog_compiler_wl='-Wl,'
15432 lt_prog_compiler_pic='-KPIC'
15433 lt_prog_compiler_static='-Bstatic'
15436 sysv4*MP*)
15437 if test -d /usr/nec ;then
15438 lt_prog_compiler_pic='-Kconform_pic'
15439 lt_prog_compiler_static='-Bstatic'
15443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_pic='-KPIC'
15446 lt_prog_compiler_static='-Bstatic'
15449 unicos*)
15450 lt_prog_compiler_wl='-Wl,'
15451 lt_prog_compiler_can_build_shared=no
15454 uts4*)
15455 lt_prog_compiler_pic='-pic'
15456 lt_prog_compiler_static='-Bstatic'
15460 lt_prog_compiler_can_build_shared=no
15462 esac
15465 case $host_os in
15466 # For platforms which do not support PIC, -DPIC is meaningless:
15467 *djgpp*)
15468 lt_prog_compiler_pic=
15471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15473 esac
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15475 $as_echo "$lt_prog_compiler_pic" >&6; }
15483 # Check to make sure the PIC flag actually works.
15485 if test -n "$lt_prog_compiler_pic"; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15487 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15488 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 lt_cv_prog_compiler_pic_works=no
15492 ac_outfile=conftest.$ac_objext
15493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15495 # Insert the option either (1) after the last *FLAGS variable, or
15496 # (2) before a word containing "conftest.", or (3) at the end.
15497 # Note that $ac_compile itself does not contain backslashes and begins
15498 # with a dollar sign (not a hyphen), so the echo should work correctly.
15499 # The option is referenced via a variable to avoid confusing sed.
15500 lt_compile=`echo "$ac_compile" | $SED \
15501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15503 -e 's:$: $lt_compiler_flag:'`
15504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15505 (eval "$lt_compile" 2>conftest.err)
15506 ac_status=$?
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 if (exit $ac_status) && test -s "$ac_outfile"; then
15510 # The compiler can only warn and ignore the option if not recognized
15511 # So say no if there are warnings other than the usual output.
15512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15515 lt_cv_prog_compiler_pic_works=yes
15518 $RM conftest*
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15522 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15524 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15525 case $lt_prog_compiler_pic in
15526 "" | " "*) ;;
15527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15528 esac
15529 else
15530 lt_prog_compiler_pic=
15531 lt_prog_compiler_can_build_shared=no
15542 # Check to make sure the static flag actually works.
15544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15546 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15547 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15548 $as_echo_n "(cached) " >&6
15549 else
15550 lt_cv_prog_compiler_static_works=no
15551 save_LDFLAGS="$LDFLAGS"
15552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555 # The linker can only warn and ignore the option if not recognized
15556 # So say no if there are warnings
15557 if test -s conftest.err; then
15558 # Append any errors to the config.log.
15559 cat conftest.err 1>&5
15560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562 if diff conftest.exp conftest.er2 >/dev/null; then
15563 lt_cv_prog_compiler_static_works=yes
15565 else
15566 lt_cv_prog_compiler_static_works=yes
15569 $RM -r conftest*
15570 LDFLAGS="$save_LDFLAGS"
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15574 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15576 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15578 else
15579 lt_prog_compiler_static=
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15591 $as_echo_n "(cached) " >&6
15592 else
15593 lt_cv_prog_compiler_c_o=no
15594 $RM -r conftest 2>/dev/null
15595 mkdir conftest
15596 cd conftest
15597 mkdir out
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15600 lt_compiler_flag="-o out/conftest2.$ac_objext"
15601 # Insert the option either (1) after the last *FLAGS variable, or
15602 # (2) before a word containing "conftest.", or (3) at the end.
15603 # Note that $ac_compile itself does not contain backslashes and begins
15604 # with a dollar sign (not a hyphen), so the echo should work correctly.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>out/conftest.err)
15611 ac_status=$?
15612 cat out/conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15615 then
15616 # The compiler can only warn and ignore the option if not recognized
15617 # So say no if there are warnings
15618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15621 lt_cv_prog_compiler_c_o=yes
15624 chmod u+w . 2>&5
15625 $RM conftest*
15626 # SGI C++ compiler will create directory out/ii_files/ for
15627 # template instantiation
15628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15629 $RM out/* && rmdir out
15630 cd ..
15631 $RM -r conftest
15632 $RM conftest*
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15644 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15645 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 lt_cv_prog_compiler_c_o=no
15649 $RM -r conftest 2>/dev/null
15650 mkdir conftest
15651 cd conftest
15652 mkdir out
15653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15655 lt_compiler_flag="-o out/conftest2.$ac_objext"
15656 # Insert the option either (1) after the last *FLAGS variable, or
15657 # (2) before a word containing "conftest.", or (3) at the end.
15658 # Note that $ac_compile itself does not contain backslashes and begins
15659 # with a dollar sign (not a hyphen), so the echo should work correctly.
15660 lt_compile=`echo "$ac_compile" | $SED \
15661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15663 -e 's:$: $lt_compiler_flag:'`
15664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15665 (eval "$lt_compile" 2>out/conftest.err)
15666 ac_status=$?
15667 cat out/conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15670 then
15671 # The compiler can only warn and ignore the option if not recognized
15672 # So say no if there are warnings
15673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15676 lt_cv_prog_compiler_c_o=yes
15679 chmod u+w . 2>&5
15680 $RM conftest*
15681 # SGI C++ compiler will create directory out/ii_files/ for
15682 # template instantiation
15683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15684 $RM out/* && rmdir out
15685 cd ..
15686 $RM -r conftest
15687 $RM conftest*
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15691 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15696 hard_links="nottested"
15697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15698 # do not overwrite the value of need_locks provided by the user
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15700 $as_echo_n "checking if we can lock with hard links... " >&6; }
15701 hard_links=yes
15702 $RM conftest*
15703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15704 touch conftest.a
15705 ln conftest.a conftest.b 2>&5 || hard_links=no
15706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15708 $as_echo "$hard_links" >&6; }
15709 if test "$hard_links" = no; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15711 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15712 need_locks=warn
15714 else
15715 need_locks=no
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15724 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15726 runpath_var=
15727 allow_undefined_flag=
15728 always_export_symbols=no
15729 archive_cmds=
15730 archive_expsym_cmds=
15731 compiler_needs_object=no
15732 enable_shared_with_static_runtimes=no
15733 export_dynamic_flag_spec=
15734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15735 hardcode_automatic=no
15736 hardcode_direct=no
15737 hardcode_direct_absolute=no
15738 hardcode_libdir_flag_spec=
15739 hardcode_libdir_flag_spec_ld=
15740 hardcode_libdir_separator=
15741 hardcode_minus_L=no
15742 hardcode_shlibpath_var=unsupported
15743 inherit_rpath=no
15744 link_all_deplibs=unknown
15745 module_cmds=
15746 module_expsym_cmds=
15747 old_archive_from_new_cmds=
15748 old_archive_from_expsyms_cmds=
15749 thread_safe_flag_spec=
15750 whole_archive_flag_spec=
15751 # include_expsyms should be a list of space-separated symbols to be *always*
15752 # included in the symbol list
15753 include_expsyms=
15754 # exclude_expsyms can be an extended regexp of symbols to exclude
15755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15757 # as well as any symbol that contains `d'.
15758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15760 # platforms (ab)use it in PIC code, but their linkers get confused if
15761 # the symbol is explicitly referenced. Since portable code cannot
15762 # rely on this symbol name, it's probably fine to never include it in
15763 # preloaded symbol tables.
15764 # Exclude shared library initialization/finalization symbols.
15765 extract_expsyms_cmds=
15767 case $host_os in
15768 cygwin* | mingw* | pw32* | cegcc*)
15769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15770 # When not using gcc, we currently assume that we are using
15771 # Microsoft Visual C++.
15772 if test "$GCC" != yes; then
15773 with_gnu_ld=no
15776 interix*)
15777 # we just hope/assume this is gcc and not c89 (= MSVC++)
15778 with_gnu_ld=yes
15780 openbsd*)
15781 with_gnu_ld=no
15783 esac
15785 ld_shlibs=yes
15787 # On some targets, GNU ld is compatible enough with the native linker
15788 # that we're better off using the native interface for both.
15789 lt_use_gnu_ld_interface=no
15790 if test "$with_gnu_ld" = yes; then
15791 case $host_os in
15792 aix*)
15793 # The AIX port of GNU ld has always aspired to compatibility
15794 # with the native linker. However, as the warning in the GNU ld
15795 # block says, versions before 2.19.5* couldn't really create working
15796 # shared libraries, regardless of the interface used.
15797 case `$LD -v 2>&1` in
15798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15802 lt_use_gnu_ld_interface=yes
15804 esac
15807 lt_use_gnu_ld_interface=yes
15809 esac
15812 if test "$lt_use_gnu_ld_interface" = yes; then
15813 # If archive_cmds runs LD, not CC, wlarc should be empty
15814 wlarc='${wl}'
15816 # Set some defaults for GNU ld with shared library support. These
15817 # are reset later if shared libraries are not supported. Putting them
15818 # here allows them to be overridden if necessary.
15819 runpath_var=LD_RUN_PATH
15820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15821 export_dynamic_flag_spec='${wl}--export-dynamic'
15822 # ancient GNU ld didn't support --whole-archive et. al.
15823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15825 else
15826 whole_archive_flag_spec=
15828 supports_anon_versioning=no
15829 case `$LD -v 2>&1` in
15830 *GNU\ gold*) supports_anon_versioning=yes ;;
15831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15834 *\ 2.11.*) ;; # other 2.11 versions
15835 *) supports_anon_versioning=yes ;;
15836 esac
15838 # See if GNU ld supports shared libraries.
15839 case $host_os in
15840 aix[3-9]*)
15841 # On AIX/PPC, the GNU linker is very broken
15842 if test "$host_cpu" != ia64; then
15843 ld_shlibs=no
15844 cat <<_LT_EOF 1>&2
15846 *** Warning: the GNU linker, at least up to release 2.19, is reported
15847 *** to be unable to reliably create shared libraries on AIX.
15848 *** Therefore, libtool is disabling shared libraries support. If you
15849 *** really care for shared libraries, you may want to install binutils
15850 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15851 *** You will then need to restart the configuration process.
15853 _LT_EOF
15857 amigaos*)
15858 case $host_cpu in
15859 powerpc)
15860 # see comment about AmigaOS4 .so support
15861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15862 archive_expsym_cmds=''
15864 m68k)
15865 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)'
15866 hardcode_libdir_flag_spec='-L$libdir'
15867 hardcode_minus_L=yes
15869 esac
15872 beos*)
15873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15874 allow_undefined_flag=unsupported
15875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15876 # support --undefined. This deserves some investigation. FIXME
15877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 else
15879 ld_shlibs=no
15883 cygwin* | mingw* | pw32* | cegcc*)
15884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15885 # as there is no search path for DLLs.
15886 hardcode_libdir_flag_spec='-L$libdir'
15887 export_dynamic_flag_spec='${wl}--export-all-symbols'
15888 allow_undefined_flag=unsupported
15889 always_export_symbols=no
15890 enable_shared_with_static_runtimes=yes
15891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15895 # If the export-symbols file already is a .def file (1st line
15896 # is EXPORTS), use it as is; otherwise, prepend...
15897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15898 cp $export_symbols $output_objdir/$soname.def;
15899 else
15900 echo EXPORTS > $output_objdir/$soname.def;
15901 cat $export_symbols >> $output_objdir/$soname.def;
15903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15904 else
15905 ld_shlibs=no
15909 haiku*)
15910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15911 link_all_deplibs=yes
15914 interix[3-9]*)
15915 hardcode_direct=no
15916 hardcode_shlibpath_var=no
15917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15918 export_dynamic_flag_spec='${wl}-E'
15919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15920 # Instead, shared libraries are loaded at an image base (0x10000000 by
15921 # default) and relocated if they conflict, which is a slow very memory
15922 # consuming and fragmenting process. To avoid this, we pick a random,
15923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15926 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'
15929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15930 tmp_diet=no
15931 if test "$host_os" = linux-dietlibc; then
15932 case $cc_basename in
15933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15934 esac
15936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15937 && test "$tmp_diet" = no
15938 then
15939 tmp_addflag=' $pic_flag'
15940 tmp_sharedflag='-shared'
15941 case $cc_basename,$host_cpu in
15942 pgcc*) # Portland Group C compiler
15943 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15944 tmp_addflag=' $pic_flag'
15946 pgf77* | pgf90* | pgf95* | pgfortran*)
15947 # Portland Group f77 and f90 compilers
15948 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'
15949 tmp_addflag=' $pic_flag -Mnomain' ;;
15950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15951 tmp_addflag=' -i_dynamic' ;;
15952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15953 tmp_addflag=' -i_dynamic -nofor_main' ;;
15954 ifc* | ifort*) # Intel Fortran compiler
15955 tmp_addflag=' -nofor_main' ;;
15956 lf95*) # Lahey Fortran 8.1
15957 whole_archive_flag_spec=
15958 tmp_sharedflag='--shared' ;;
15959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15960 tmp_sharedflag='-qmkshrobj'
15961 tmp_addflag= ;;
15962 nvcc*) # Cuda Compiler Driver 2.2
15963 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'
15964 compiler_needs_object=yes
15966 esac
15967 case `$CC -V 2>&1 | sed 5q` in
15968 *Sun\ C*) # Sun C 5.9
15969 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'
15970 compiler_needs_object=yes
15971 tmp_sharedflag='-G' ;;
15972 *Sun\ F*) # Sun Fortran 8.3
15973 tmp_sharedflag='-G' ;;
15974 esac
15975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977 if test "x$supports_anon_versioning" = xyes; then
15978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 echo "local: *; };" >> $output_objdir/$libname.ver~
15981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15984 case $cc_basename in
15985 xlf* | bgf* | bgxlf* | mpixlf*)
15986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15988 hardcode_libdir_flag_spec=
15989 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15990 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15991 if test "x$supports_anon_versioning" = xyes; then
15992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15994 echo "local: *; };" >> $output_objdir/$libname.ver~
15995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15998 esac
15999 else
16000 ld_shlibs=no
16004 netbsd*)
16005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16007 wlarc=
16008 else
16009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 solaris*)
16015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16016 ld_shlibs=no
16017 cat <<_LT_EOF 1>&2
16019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16020 *** create shared libraries on Solaris systems. Therefore, libtool
16021 *** is disabling shared libraries support. We urge you to upgrade GNU
16022 *** binutils to release 2.9.1 or newer. Another option is to modify
16023 *** your PATH or compiler configuration so that the native linker is
16024 *** used, and then restart.
16026 _LT_EOF
16027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16030 else
16031 ld_shlibs=no
16035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16036 case `$LD -v 2>&1` in
16037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16038 ld_shlibs=no
16039 cat <<_LT_EOF 1>&2
16041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16042 *** reliably create shared libraries on SCO systems. Therefore, libtool
16043 *** is disabling shared libraries support. We urge you to upgrade GNU
16044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16045 *** your PATH or compiler configuration so that the native linker is
16046 *** used, and then restart.
16048 _LT_EOF
16051 # For security reasons, it is highly recommended that you always
16052 # use absolute paths for naming shared libraries, and exclude the
16053 # DT_RUNPATH tag from executables and libraries. But doing so
16054 # requires that you compile everything twice, which is a pain.
16055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16059 else
16060 ld_shlibs=no
16063 esac
16066 sunos4*)
16067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068 wlarc=
16069 hardcode_direct=yes
16070 hardcode_shlibpath_var=no
16074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16077 else
16078 ld_shlibs=no
16081 esac
16083 if test "$ld_shlibs" = no; then
16084 runpath_var=
16085 hardcode_libdir_flag_spec=
16086 export_dynamic_flag_spec=
16087 whole_archive_flag_spec=
16089 else
16090 # PORTME fill in a description of your system's linker (not GNU ld)
16091 case $host_os in
16092 aix3*)
16093 allow_undefined_flag=unsupported
16094 always_export_symbols=yes
16095 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'
16096 # Note: this linker hardcodes the directories in LIBPATH if there
16097 # are no directories specified by -L.
16098 hardcode_minus_L=yes
16099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16100 # Neither direct hardcoding nor static linking is supported with a
16101 # broken collect2.
16102 hardcode_direct=unsupported
16106 aix[4-9]*)
16107 if test "$host_cpu" = ia64; then
16108 # On IA64, the linker does run time linking by default, so we don't
16109 # have to do anything special.
16110 aix_use_runtimelinking=no
16111 exp_sym_flag='-Bexport'
16112 no_entry_flag=""
16113 else
16114 # If we're using GNU nm, then we don't want the "-C" option.
16115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16116 # Also, AIX nm treats weak defined symbols like other global
16117 # defined symbols, whereas GNU nm marks them as "W".
16118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16119 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'
16120 else
16121 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'
16123 aix_use_runtimelinking=no
16125 # Test if we are trying to use run time linking or normal
16126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16127 # need to do runtime linking.
16128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16129 for ld_flag in $LDFLAGS; do
16130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16131 aix_use_runtimelinking=yes
16132 break
16134 done
16136 esac
16138 exp_sym_flag='-bexport'
16139 no_entry_flag='-bnoentry'
16142 # When large executables or shared objects are built, AIX ld can
16143 # have problems creating the table of contents. If linking a library
16144 # or program results in "error TOC overflow" add -mminimal-toc to
16145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16148 archive_cmds=''
16149 hardcode_direct=yes
16150 hardcode_direct_absolute=yes
16151 hardcode_libdir_separator=':'
16152 link_all_deplibs=yes
16153 file_list_spec='${wl}-f,'
16155 if test "$GCC" = yes; then
16156 case $host_os in aix4.[012]|aix4.[012].*)
16157 # We only want to do this on AIX 4.2 and lower, the check
16158 # below for broken collect2 doesn't work under 4.3+
16159 collect2name=`${CC} -print-prog-name=collect2`
16160 if test -f "$collect2name" &&
16161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16162 then
16163 # We have reworked collect2
16165 else
16166 # We have old collect2
16167 hardcode_direct=unsupported
16168 # It fails to find uninstalled libraries when the uninstalled
16169 # path is not listed in the libpath. Setting hardcode_minus_L
16170 # to unsupported forces relinking
16171 hardcode_minus_L=yes
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_libdir_separator=
16176 esac
16177 shared_flag='-shared'
16178 if test "$aix_use_runtimelinking" = yes; then
16179 shared_flag="$shared_flag "'${wl}-G'
16181 else
16182 # not using gcc
16183 if test "$host_cpu" = ia64; then
16184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16185 # chokes on -Wl,-G. The following line is correct:
16186 shared_flag='-G'
16187 else
16188 if test "$aix_use_runtimelinking" = yes; then
16189 shared_flag='${wl}-G'
16190 else
16191 shared_flag='${wl}-bM:SRE'
16196 export_dynamic_flag_spec='${wl}-bexpall'
16197 # It seems that -bexpall does not export symbols beginning with
16198 # underscore (_), so it is better to generate a list of symbols to export.
16199 always_export_symbols=yes
16200 if test "$aix_use_runtimelinking" = yes; then
16201 # Warning - without using the other runtime loading flags (-brtl),
16202 # -berok will link without error, but may produce a broken library.
16203 allow_undefined_flag='-berok'
16204 # Determine the default libpath from the value encoded in an
16205 # empty executable.
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16210 main ()
16214 return 0;
16216 _ACEOF
16217 if ac_fn_c_try_link "$LINENO"; then :
16219 lt_aix_libpath_sed='
16220 /Import File Strings/,/^$/ {
16221 /^0/ {
16222 s/^0 *\(.*\)$/\1/
16226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16227 # Check for a 64-bit object if we didn't find anything.
16228 if test -z "$aix_libpath"; then
16229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16232 rm -f core conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
16234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16237 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"
16238 else
16239 if test "$host_cpu" = ia64; then
16240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16241 allow_undefined_flag="-z nodefs"
16242 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"
16243 else
16244 # Determine the default libpath from the value encoded in an
16245 # empty executable.
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16250 main ()
16254 return 0;
16256 _ACEOF
16257 if ac_fn_c_try_link "$LINENO"; then :
16259 lt_aix_libpath_sed='
16260 /Import File Strings/,/^$/ {
16261 /^0/ {
16262 s/^0 *\(.*\)$/\1/
16266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16267 # Check for a 64-bit object if we didn't find anything.
16268 if test -z "$aix_libpath"; then
16269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16272 rm -f core conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16277 # Warning - without using the other run time loading flags,
16278 # -berok will link without error, but may produce a broken library.
16279 no_undefined_flag=' ${wl}-bernotok'
16280 allow_undefined_flag=' ${wl}-berok'
16281 if test "$with_gnu_ld" = yes; then
16282 # We only use this code for GNU lds that support --whole-archive.
16283 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16284 else
16285 # Exported symbols can be pulled into shared objects from archives
16286 whole_archive_flag_spec='$convenience'
16288 archive_cmds_need_lc=yes
16289 # This is similar to how AIX traditionally builds its shared libraries.
16290 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'
16295 amigaos*)
16296 case $host_cpu in
16297 powerpc)
16298 # see comment about AmigaOS4 .so support
16299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16300 archive_expsym_cmds=''
16302 m68k)
16303 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)'
16304 hardcode_libdir_flag_spec='-L$libdir'
16305 hardcode_minus_L=yes
16307 esac
16310 bsdi[45]*)
16311 export_dynamic_flag_spec=-rdynamic
16314 cygwin* | mingw* | pw32* | cegcc*)
16315 # When not using gcc, we currently assume that we are using
16316 # Microsoft Visual C++.
16317 # hardcode_libdir_flag_spec is actually meaningless, as there is
16318 # no search path for DLLs.
16319 hardcode_libdir_flag_spec=' '
16320 allow_undefined_flag=unsupported
16321 # Tell ltmain to make .lib files, not .a files.
16322 libext=lib
16323 # Tell ltmain to make .dll files, not .so files.
16324 shrext_cmds=".dll"
16325 # FIXME: Setting linknames here is a bad hack.
16326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16327 # The linker will automatically build a .lib file if we build a DLL.
16328 old_archive_from_new_cmds='true'
16329 # FIXME: Should let the user specify the lib program.
16330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16331 fix_srcfile_path='`cygpath -w "$srcfile"`'
16332 enable_shared_with_static_runtimes=yes
16335 darwin* | rhapsody*)
16338 archive_cmds_need_lc=no
16339 hardcode_direct=no
16340 hardcode_automatic=yes
16341 hardcode_shlibpath_var=unsupported
16342 if test "$lt_cv_ld_force_load" = "yes"; then
16343 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\"`'
16344 else
16345 whole_archive_flag_spec=''
16347 link_all_deplibs=yes
16348 allow_undefined_flag="$_lt_dar_allow_undefined"
16349 case $cc_basename in
16350 ifort*) _lt_dar_can_shared=yes ;;
16351 *) _lt_dar_can_shared=$GCC ;;
16352 esac
16353 if test "$_lt_dar_can_shared" = "yes"; then
16354 output_verbose_link_cmd=func_echo_all
16355 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16356 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16357 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}"
16358 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}"
16360 else
16361 ld_shlibs=no
16366 dgux*)
16367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_libdir_flag_spec='-L$libdir'
16369 hardcode_shlibpath_var=no
16372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16373 # support. Future versions do this automatically, but an explicit c++rt0.o
16374 # does not break anything, and helps significantly (at the cost of a little
16375 # extra space).
16376 freebsd2.2*)
16377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16378 hardcode_libdir_flag_spec='-R$libdir'
16379 hardcode_direct=yes
16380 hardcode_shlibpath_var=no
16383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16384 freebsd2.*)
16385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_direct=yes
16387 hardcode_minus_L=yes
16388 hardcode_shlibpath_var=no
16391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16392 freebsd* | dragonfly*)
16393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16394 hardcode_libdir_flag_spec='-R$libdir'
16395 hardcode_direct=yes
16396 hardcode_shlibpath_var=no
16399 hpux9*)
16400 if test "$GCC" = yes; then
16401 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'
16402 else
16403 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'
16405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16406 hardcode_libdir_separator=:
16407 hardcode_direct=yes
16409 # hardcode_minus_L: Not really in the search PATH,
16410 # but as the default location of the library.
16411 hardcode_minus_L=yes
16412 export_dynamic_flag_spec='${wl}-E'
16415 hpux10*)
16416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16418 else
16419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16421 if test "$with_gnu_ld" = no; then
16422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16423 hardcode_libdir_flag_spec_ld='+b $libdir'
16424 hardcode_libdir_separator=:
16425 hardcode_direct=yes
16426 hardcode_direct_absolute=yes
16427 export_dynamic_flag_spec='${wl}-E'
16428 # hardcode_minus_L: Not really in the search PATH,
16429 # but as the default location of the library.
16430 hardcode_minus_L=yes
16434 hpux11*)
16435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16436 case $host_cpu in
16437 hppa*64*)
16438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 ia64*)
16441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16446 esac
16447 else
16448 case $host_cpu in
16449 hppa*64*)
16450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 ia64*)
16453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16457 # Older versions of the 11.00 compiler do not understand -b yet
16458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16460 $as_echo_n "checking if $CC understands -b... " >&6; }
16461 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 lt_cv_prog_compiler__b=no
16465 save_LDFLAGS="$LDFLAGS"
16466 LDFLAGS="$LDFLAGS -b"
16467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16469 # The linker can only warn and ignore the option if not recognized
16470 # So say no if there are warnings
16471 if test -s conftest.err; then
16472 # Append any errors to the config.log.
16473 cat conftest.err 1>&5
16474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16476 if diff conftest.exp conftest.er2 >/dev/null; then
16477 lt_cv_prog_compiler__b=yes
16479 else
16480 lt_cv_prog_compiler__b=yes
16483 $RM -r conftest*
16484 LDFLAGS="$save_LDFLAGS"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16488 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16490 if test x"$lt_cv_prog_compiler__b" = xyes; then
16491 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16492 else
16493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16497 esac
16499 if test "$with_gnu_ld" = no; then
16500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16501 hardcode_libdir_separator=:
16503 case $host_cpu in
16504 hppa*64*|ia64*)
16505 hardcode_direct=no
16506 hardcode_shlibpath_var=no
16509 hardcode_direct=yes
16510 hardcode_direct_absolute=yes
16511 export_dynamic_flag_spec='${wl}-E'
16513 # hardcode_minus_L: Not really in the search PATH,
16514 # but as the default location of the library.
16515 hardcode_minus_L=yes
16517 esac
16521 irix5* | irix6* | nonstopux*)
16522 if test "$GCC" = yes; then
16523 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'
16524 # Try to use the -exported_symbol ld option, if it does not
16525 # work, assume that -exports_file does not work either and
16526 # implicitly export all symbols.
16527 save_LDFLAGS="$LDFLAGS"
16528 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16531 int foo(void) {}
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16534 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'
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16539 LDFLAGS="$save_LDFLAGS"
16540 else
16541 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'
16542 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'
16544 archive_cmds_need_lc='no'
16545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16546 hardcode_libdir_separator=:
16547 inherit_rpath=yes
16548 link_all_deplibs=yes
16551 netbsd*)
16552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16554 else
16555 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16557 hardcode_libdir_flag_spec='-R$libdir'
16558 hardcode_direct=yes
16559 hardcode_shlibpath_var=no
16562 newsos6)
16563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_direct=yes
16565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16566 hardcode_libdir_separator=:
16567 hardcode_shlibpath_var=no
16570 *nto* | *qnx*)
16573 openbsd*)
16574 if test -f /usr/libexec/ld.so; then
16575 hardcode_direct=yes
16576 hardcode_shlibpath_var=no
16577 hardcode_direct_absolute=yes
16578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16582 export_dynamic_flag_spec='${wl}-E'
16583 else
16584 case $host_os in
16585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_libdir_flag_spec='-R$libdir'
16590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16593 esac
16595 else
16596 ld_shlibs=no
16600 os2*)
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_minus_L=yes
16603 allow_undefined_flag=unsupported
16604 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'
16605 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16608 osf3*)
16609 if test "$GCC" = yes; then
16610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16611 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'
16612 else
16613 allow_undefined_flag=' -expect_unresolved \*'
16614 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'
16616 archive_cmds_need_lc='no'
16617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16618 hardcode_libdir_separator=:
16621 osf4* | osf5*) # as osf3* with the addition of -msym flag
16622 if test "$GCC" = yes; then
16623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16624 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'
16625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16626 else
16627 allow_undefined_flag=' -expect_unresolved \*'
16628 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'
16629 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~
16630 $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'
16632 # Both c and cxx compiler support -rpath directly
16633 hardcode_libdir_flag_spec='-rpath $libdir'
16635 archive_cmds_need_lc='no'
16636 hardcode_libdir_separator=:
16639 solaris*)
16640 no_undefined_flag=' -z defs'
16641 if test "$GCC" = yes; then
16642 wlarc='${wl}'
16643 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16646 else
16647 case `$CC -V 2>&1` in
16648 *"Compilers 5.0"*)
16649 wlarc=''
16650 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16655 wlarc='${wl}'
16656 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16660 esac
16662 hardcode_libdir_flag_spec='-R$libdir'
16663 hardcode_shlibpath_var=no
16664 case $host_os in
16665 solaris2.[0-5] | solaris2.[0-5].*) ;;
16667 # The compiler driver will combine and reorder linker options,
16668 # but understands `-z linker_flag'. GCC discards it without `$wl',
16669 # but is careful enough not to reorder.
16670 # Supported since Solaris 2.6 (maybe 2.5.1?)
16671 if test "$GCC" = yes; then
16672 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16673 else
16674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16677 esac
16678 link_all_deplibs=yes
16681 sunos4*)
16682 if test "x$host_vendor" = xsequent; then
16683 # Use $CC to link under sequent, because it throws in some extra .o
16684 # files that make .init and .fini sections work.
16685 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16686 else
16687 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_libdir_flag_spec='-L$libdir'
16690 hardcode_direct=yes
16691 hardcode_minus_L=yes
16692 hardcode_shlibpath_var=no
16695 sysv4)
16696 case $host_vendor in
16697 sni)
16698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct=yes # is this really true???
16701 siemens)
16702 ## LD is ld it makes a PLAMLIB
16703 ## CC just makes a GrossModule.
16704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16705 reload_cmds='$CC -r -o $output$reload_objs'
16706 hardcode_direct=no
16708 motorola)
16709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16712 esac
16713 runpath_var='LD_RUN_PATH'
16714 hardcode_shlibpath_var=no
16717 sysv4.3*)
16718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_shlibpath_var=no
16720 export_dynamic_flag_spec='-Bexport'
16723 sysv4*MP*)
16724 if test -d /usr/nec; then
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var=no
16727 runpath_var=LD_RUN_PATH
16728 hardcode_runpath_var=yes
16729 ld_shlibs=yes
16733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16734 no_undefined_flag='${wl}-z,text'
16735 archive_cmds_need_lc=no
16736 hardcode_shlibpath_var=no
16737 runpath_var='LD_RUN_PATH'
16739 if test "$GCC" = yes; then
16740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 else
16743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 sysv5* | sco3.2v5* | sco5v6*)
16749 # Note: We can NOT use -z defs as we might desire, because we do not
16750 # link with -lc, and that would cause any symbols used from libc to
16751 # always be unresolved, which means just about no library would
16752 # ever link correctly. If we're not using GNU ld we use -z text
16753 # though, which does catch some bad symbols but isn't as heavy-handed
16754 # as -z defs.
16755 no_undefined_flag='${wl}-z,text'
16756 allow_undefined_flag='${wl}-z,nodefs'
16757 archive_cmds_need_lc=no
16758 hardcode_shlibpath_var=no
16759 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16760 hardcode_libdir_separator=':'
16761 link_all_deplibs=yes
16762 export_dynamic_flag_spec='${wl}-Bexport'
16763 runpath_var='LD_RUN_PATH'
16765 if test "$GCC" = yes; then
16766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 else
16769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 uts4*)
16775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776 hardcode_libdir_flag_spec='-L$libdir'
16777 hardcode_shlibpath_var=no
16781 ld_shlibs=no
16783 esac
16785 if test x$host_vendor = xsni; then
16786 case $host in
16787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16788 export_dynamic_flag_spec='${wl}-Blargedynsym'
16790 esac
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16795 $as_echo "$ld_shlibs" >&6; }
16796 test "$ld_shlibs" = no && can_build_shared=no
16798 with_gnu_ld=$with_gnu_ld
16815 # Do we need to explicitly link libc?
16817 case "x$archive_cmds_need_lc" in
16818 x|xyes)
16819 # Assume -lc should be added
16820 archive_cmds_need_lc=yes
16822 if test "$enable_shared" = yes && test "$GCC" = yes; then
16823 case $archive_cmds in
16824 *'~'*)
16825 # FIXME: we may have to deal with multi-command sequences.
16827 '$CC '*)
16828 # Test whether the compiler implicitly links with -lc since on some
16829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16830 # to ld, don't add -lc before -lgcc.
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16833 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 $RM conftest*
16837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16840 (eval $ac_compile) 2>&5
16841 ac_status=$?
16842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16843 test $ac_status = 0; } 2>conftest.err; then
16844 soname=conftest
16845 lib=conftest
16846 libobjs=conftest.$ac_objext
16847 deplibs=
16848 wl=$lt_prog_compiler_wl
16849 pic_flag=$lt_prog_compiler_pic
16850 compiler_flags=-v
16851 linker_flags=-v
16852 verstring=
16853 output_objdir=.
16854 libname=conftest
16855 lt_save_allow_undefined_flag=$allow_undefined_flag
16856 allow_undefined_flag=
16857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16859 ac_status=$?
16860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16861 test $ac_status = 0; }
16862 then
16863 lt_cv_archive_cmds_need_lc=no
16864 else
16865 lt_cv_archive_cmds_need_lc=yes
16867 allow_undefined_flag=$lt_save_allow_undefined_flag
16868 else
16869 cat conftest.err 1>&5
16871 $RM conftest*
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16875 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16878 esac
16881 esac
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17040 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17042 if test "$GCC" = yes; then
17043 case $host_os in
17044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17045 *) lt_awk_arg="/^libraries:/" ;;
17046 esac
17047 case $host_os in
17048 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17049 *) lt_sed_strip_eq="s,=/,/,g" ;;
17050 esac
17051 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17052 case $lt_search_path_spec in
17053 *\;*)
17054 # if the path contains ";" then we assume it to be the separator
17055 # otherwise default to the standard path separator (i.e. ":") - it is
17056 # assumed that no part of a normal pathname contains ";" but that should
17057 # okay in the real world where ";" in dirpaths is itself problematic.
17058 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17063 esac
17064 # Ok, now we have the path, separated by spaces, we can step through it
17065 # and add multilib dir if necessary.
17066 lt_tmp_lt_search_path_spec=
17067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17068 for lt_sys_path in $lt_search_path_spec; do
17069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17071 else
17072 test -d "$lt_sys_path" && \
17073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17075 done
17076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17077 BEGIN {RS=" "; FS="/|\n";} {
17078 lt_foo="";
17079 lt_count=0;
17080 for (lt_i = NF; lt_i > 0; lt_i--) {
17081 if ($lt_i != "" && $lt_i != ".") {
17082 if ($lt_i == "..") {
17083 lt_count++;
17084 } else {
17085 if (lt_count == 0) {
17086 lt_foo="/" $lt_i lt_foo;
17087 } else {
17088 lt_count--;
17093 if (lt_foo != "") { lt_freq[lt_foo]++; }
17094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17096 # AWK program above erroneously prepends '/' to C:/dos/paths
17097 # for these hosts.
17098 case $host_os in
17099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17101 esac
17102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17103 else
17104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17106 library_names_spec=
17107 libname_spec='lib$name'
17108 soname_spec=
17109 shrext_cmds=".so"
17110 postinstall_cmds=
17111 postuninstall_cmds=
17112 finish_cmds=
17113 finish_eval=
17114 shlibpath_var=
17115 shlibpath_overrides_runpath=unknown
17116 version_type=none
17117 dynamic_linker="$host_os ld.so"
17118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17119 need_lib_prefix=unknown
17120 hardcode_into_libs=no
17122 # when you set need_version to no, make sure it does not cause -set_version
17123 # flags to be left without arguments
17124 need_version=unknown
17126 case $host_os in
17127 aix3*)
17128 version_type=linux
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17130 shlibpath_var=LIBPATH
17132 # AIX 3 has no versioning support, so we append a major version to the name.
17133 soname_spec='${libname}${release}${shared_ext}$major'
17136 aix[4-9]*)
17137 version_type=linux
17138 need_lib_prefix=no
17139 need_version=no
17140 hardcode_into_libs=yes
17141 if test "$host_cpu" = ia64; then
17142 # AIX 5 supports IA64
17143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 else
17146 # With GCC up to 2.95.x, collect2 would create an import file
17147 # for dependence libraries. The import file would start with
17148 # the line `#! .'. This would cause the generated library to
17149 # depend on `.', always an invalid library. This was fixed in
17150 # development snapshots of GCC prior to 3.0.
17151 case $host_os in
17152 aix4 | aix4.[01] | aix4.[01].*)
17153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17154 echo ' yes '
17155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17157 else
17158 can_build_shared=no
17161 esac
17162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17163 # soname into executable. Probably we can add versioning support to
17164 # collect2, so additional links can be useful in future.
17165 if test "$aix_use_runtimelinking" = yes; then
17166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17167 # instead of lib<name>.a to let people know that these are not
17168 # typical AIX shared libraries.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 else
17171 # We preserve .a as extension for shared libraries through AIX4.2
17172 # and later when we are not doing run time linking.
17173 library_names_spec='${libname}${release}.a $libname.a'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17176 shlibpath_var=LIBPATH
17180 amigaos*)
17181 case $host_cpu in
17182 powerpc)
17183 # Since July 2007 AmigaOS4 officially supports .so libraries.
17184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 m68k)
17188 library_names_spec='$libname.ixlibrary $libname.a'
17189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17190 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'
17192 esac
17195 beos*)
17196 library_names_spec='${libname}${shared_ext}'
17197 dynamic_linker="$host_os ld.so"
17198 shlibpath_var=LIBRARY_PATH
17201 bsdi[45]*)
17202 version_type=linux
17203 need_version=no
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17210 # the default ld.so.conf also contains /usr/contrib/lib and
17211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17212 # libtool to hard-code these into programs
17215 cygwin* | mingw* | pw32* | cegcc*)
17216 version_type=windows
17217 shrext_cmds=".dll"
17218 need_version=no
17219 need_lib_prefix=no
17221 case $GCC,$host_os in
17222 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17223 library_names_spec='$libname.dll.a'
17224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17225 postinstall_cmds='base_file=`basename \${file}`~
17226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17227 dldir=$destdir/`dirname \$dlpath`~
17228 test -d \$dldir || mkdir -p \$dldir~
17229 $install_prog $dir/$dlname \$dldir/$dlname~
17230 chmod a+x \$dldir/$dlname~
17231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17235 dlpath=$dir/\$dldll~
17236 $RM \$dlpath'
17237 shlibpath_overrides_runpath=yes
17239 case $host_os in
17240 cygwin*)
17241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17246 mingw* | cegcc*)
17247 # MinGW DLLs use traditional 'lib' prefix
17248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17250 pw32*)
17251 # pw32 DLLs use 'pw' prefix rather than 'lib'
17252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17254 esac
17258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17260 esac
17261 dynamic_linker='Win32 ld.exe'
17262 # FIXME: first we should search . and the directory the executable is in
17263 shlibpath_var=PATH
17266 darwin* | rhapsody*)
17267 dynamic_linker="$host_os dyld"
17268 version_type=darwin
17269 need_lib_prefix=no
17270 need_version=no
17271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17272 soname_spec='${libname}${release}${major}$shared_ext'
17273 shlibpath_overrides_runpath=yes
17274 shlibpath_var=DYLD_LIBRARY_PATH
17275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17281 dgux*)
17282 version_type=linux
17283 need_lib_prefix=no
17284 need_version=no
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 shlibpath_var=LD_LIBRARY_PATH
17290 freebsd* | dragonfly*)
17291 # DragonFly does not have aout. When/if they implement a new
17292 # versioning mechanism, adjust this.
17293 if test -x /usr/bin/objformat; then
17294 objformat=`/usr/bin/objformat`
17295 else
17296 case $host_os in
17297 freebsd[23].*) objformat=aout ;;
17298 *) objformat=elf ;;
17299 esac
17301 version_type=freebsd-$objformat
17302 case $version_type in
17303 freebsd-elf*)
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17305 need_version=no
17306 need_lib_prefix=no
17308 freebsd-*)
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17310 need_version=yes
17312 esac
17313 shlibpath_var=LD_LIBRARY_PATH
17314 case $host_os in
17315 freebsd2.*)
17316 shlibpath_overrides_runpath=yes
17318 freebsd3.[01]* | freebsdelf3.[01]*)
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17324 shlibpath_overrides_runpath=no
17325 hardcode_into_libs=yes
17327 *) # from 4.6 on, and DragonFly
17328 shlibpath_overrides_runpath=yes
17329 hardcode_into_libs=yes
17331 esac
17334 gnu*)
17335 version_type=linux
17336 need_lib_prefix=no
17337 need_version=no
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 hardcode_into_libs=yes
17344 haiku*)
17345 version_type=linux
17346 need_lib_prefix=no
17347 need_version=no
17348 dynamic_linker="$host_os runtime_loader"
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LIBRARY_PATH
17352 shlibpath_overrides_runpath=yes
17353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17354 hardcode_into_libs=yes
17357 hpux9* | hpux10* | hpux11*)
17358 # Give a soname corresponding to the major version so that dld.sl refuses to
17359 # link against other versions.
17360 version_type=sunos
17361 need_lib_prefix=no
17362 need_version=no
17363 case $host_cpu in
17364 ia64*)
17365 shrext_cmds='.so'
17366 hardcode_into_libs=yes
17367 dynamic_linker="$host_os dld.so"
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 if test "X$HPUX_IA64_MODE" = X32; then
17373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17374 else
17375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17379 hppa*64*)
17380 shrext_cmds='.sl'
17381 hardcode_into_libs=yes
17382 dynamic_linker="$host_os dld.sl"
17383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17391 shrext_cmds='.sl'
17392 dynamic_linker="$host_os dld.sl"
17393 shlibpath_var=SHLIB_PATH
17394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17398 esac
17399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17400 postinstall_cmds='chmod 555 $lib'
17401 # or fails outright, so override atomically:
17402 install_override_mode=555
17405 interix[3-9]*)
17406 version_type=linux
17407 need_lib_prefix=no
17408 need_version=no
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=no
17414 hardcode_into_libs=yes
17417 irix5* | irix6* | nonstopux*)
17418 case $host_os in
17419 nonstopux*) version_type=nonstopux ;;
17421 if test "$lt_cv_prog_gnu_ld" = yes; then
17422 version_type=linux
17423 else
17424 version_type=irix
17425 fi ;;
17426 esac
17427 need_lib_prefix=no
17428 need_version=no
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17431 case $host_os in
17432 irix5* | nonstopux*)
17433 libsuff= shlibsuff=
17436 case $LD in # libtool.m4 will add one of these switches to LD
17437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17438 libsuff= shlibsuff= libmagic=32-bit;;
17439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17440 libsuff=32 shlibsuff=N32 libmagic=N32;;
17441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17443 *) libsuff= shlibsuff= libmagic=never-match;;
17444 esac
17446 esac
17447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17448 shlibpath_overrides_runpath=no
17449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17451 hardcode_into_libs=yes
17454 # No shared lib support for Linux oldld, aout, or coff.
17455 linux*oldld* | linux*aout* | linux*coff*)
17456 dynamic_linker=no
17459 # This must be Linux ELF.
17460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17461 version_type=linux
17462 need_lib_prefix=no
17463 need_version=no
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=no
17470 # Some binutils ld are patched to set DT_RUNPATH
17471 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17472 $as_echo_n "(cached) " >&6
17473 else
17474 lt_cv_shlibpath_overrides_runpath=no
17475 save_LDFLAGS=$LDFLAGS
17476 save_libdir=$libdir
17477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17483 main ()
17487 return 0;
17489 _ACEOF
17490 if ac_fn_c_try_link "$LINENO"; then :
17491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17492 lt_cv_shlibpath_overrides_runpath=yes
17495 rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17497 LDFLAGS=$save_LDFLAGS
17498 libdir=$save_libdir
17502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17504 # This implies no fast_install, which is unacceptable.
17505 # Some rework will be needed to allow for fast_install
17506 # before this can be enabled.
17507 hardcode_into_libs=yes
17509 # Append ld.so.conf contents to the search path
17510 if test -f /etc/ld.so.conf; then
17511 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' ' '`
17512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17515 # We used to test for /lib/ld.so.1 and disable shared libraries on
17516 # powerpc, because MkLinux only supported shared libraries with the
17517 # GNU dynamic linker. Since this was broken with cross compilers,
17518 # most powerpc-linux boxes support dynamic linking these days and
17519 # people can always --disable-shared, the test was removed, and we
17520 # assume the GNU/Linux dynamic linker is in use.
17521 dynamic_linker='GNU/Linux ld.so'
17524 netbsd*)
17525 version_type=sunos
17526 need_lib_prefix=no
17527 need_version=no
17528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17531 dynamic_linker='NetBSD (a.out) ld.so'
17532 else
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 dynamic_linker='NetBSD ld.elf_so'
17537 shlibpath_var=LD_LIBRARY_PATH
17538 shlibpath_overrides_runpath=yes
17539 hardcode_into_libs=yes
17542 newsos6)
17543 version_type=linux
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 shlibpath_var=LD_LIBRARY_PATH
17546 shlibpath_overrides_runpath=yes
17549 *nto* | *qnx*)
17550 version_type=qnx
17551 need_lib_prefix=no
17552 need_version=no
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath=no
17557 hardcode_into_libs=yes
17558 dynamic_linker='ldqnx.so'
17561 openbsd*)
17562 version_type=sunos
17563 sys_lib_dlsearch_path_spec="/usr/lib"
17564 need_lib_prefix=no
17565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17566 case $host_os in
17567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17568 *) need_version=no ;;
17569 esac
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17574 case $host_os in
17575 openbsd2.[89] | openbsd2.[89].*)
17576 shlibpath_overrides_runpath=no
17579 shlibpath_overrides_runpath=yes
17581 esac
17582 else
17583 shlibpath_overrides_runpath=yes
17587 os2*)
17588 libname_spec='$name'
17589 shrext_cmds=".dll"
17590 need_lib_prefix=no
17591 library_names_spec='$libname${shared_ext} $libname.a'
17592 dynamic_linker='OS/2 ld.exe'
17593 shlibpath_var=LIBPATH
17596 osf3* | osf4* | osf5*)
17597 version_type=osf
17598 need_lib_prefix=no
17599 need_version=no
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602 shlibpath_var=LD_LIBRARY_PATH
17603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17607 rdos*)
17608 dynamic_linker=no
17611 solaris*)
17612 version_type=linux
17613 need_lib_prefix=no
17614 need_version=no
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 shlibpath_overrides_runpath=yes
17619 hardcode_into_libs=yes
17620 # ldd complains unless libraries are executable
17621 postinstall_cmds='chmod +x $lib'
17624 sunos4*)
17625 version_type=sunos
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath=yes
17630 if test "$with_gnu_ld" = yes; then
17631 need_lib_prefix=no
17633 need_version=yes
17636 sysv4 | sysv4.3*)
17637 version_type=linux
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 case $host_vendor in
17642 sni)
17643 shlibpath_overrides_runpath=no
17644 need_lib_prefix=no
17645 runpath_var=LD_RUN_PATH
17647 siemens)
17648 need_lib_prefix=no
17650 motorola)
17651 need_lib_prefix=no
17652 need_version=no
17653 shlibpath_overrides_runpath=no
17654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17656 esac
17659 sysv4*MP*)
17660 if test -d /usr/nec ;then
17661 version_type=linux
17662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17663 soname_spec='$libname${shared_ext}.$major'
17664 shlibpath_var=LD_LIBRARY_PATH
17668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17669 version_type=freebsd-elf
17670 need_lib_prefix=no
17671 need_version=no
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 shlibpath_var=LD_LIBRARY_PATH
17675 shlibpath_overrides_runpath=yes
17676 hardcode_into_libs=yes
17677 if test "$with_gnu_ld" = yes; then
17678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17679 else
17680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17681 case $host_os in
17682 sco3.2v5*)
17683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17685 esac
17687 sys_lib_dlsearch_path_spec='/usr/lib'
17690 tpf*)
17691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17692 version_type=linux
17693 need_lib_prefix=no
17694 need_version=no
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=no
17698 hardcode_into_libs=yes
17701 uts4*)
17702 version_type=linux
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 shlibpath_var=LD_LIBRARY_PATH
17709 dynamic_linker=no
17711 esac
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17713 $as_echo "$dynamic_linker" >&6; }
17714 test "$dynamic_linker" = no && can_build_shared=no
17716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17717 if test "$GCC" = yes; then
17718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17721 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17724 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17821 hardcode_action=
17822 if test -n "$hardcode_libdir_flag_spec" ||
17823 test -n "$runpath_var" ||
17824 test "X$hardcode_automatic" = "Xyes" ; then
17826 # We can hardcode non-existent directories.
17827 if test "$hardcode_direct" != no &&
17828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17829 # have to relink, otherwise we might link with an installed library
17830 # when we should be linking with a yet-to-be-installed one
17831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17832 test "$hardcode_minus_L" != no; then
17833 # Linking always hardcodes the temporary library directory.
17834 hardcode_action=relink
17835 else
17836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17837 hardcode_action=immediate
17839 else
17840 # We cannot hardcode anything, or else we can only hardcode existing
17841 # directories.
17842 hardcode_action=unsupported
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17845 $as_echo "$hardcode_action" >&6; }
17847 if test "$hardcode_action" = relink ||
17848 test "$inherit_rpath" = yes; then
17849 # Fast installation is not supported
17850 enable_fast_install=no
17851 elif test "$shlibpath_overrides_runpath" = yes ||
17852 test "$enable_shared" = no; then
17853 # Fast installation is not necessary
17854 enable_fast_install=needless
17862 if test "x$enable_dlopen" != xyes; then
17863 enable_dlopen=unknown
17864 enable_dlopen_self=unknown
17865 enable_dlopen_self_static=unknown
17866 else
17867 lt_cv_dlopen=no
17868 lt_cv_dlopen_libs=
17870 case $host_os in
17871 beos*)
17872 lt_cv_dlopen="load_add_on"
17873 lt_cv_dlopen_libs=
17874 lt_cv_dlopen_self=yes
17877 mingw* | pw32* | cegcc*)
17878 lt_cv_dlopen="LoadLibrary"
17879 lt_cv_dlopen_libs=
17882 cygwin*)
17883 lt_cv_dlopen="dlopen"
17884 lt_cv_dlopen_libs=
17887 darwin*)
17888 # if libdl is installed we need to link against it
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17894 ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-ldl $LIBS"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17899 /* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17902 #ifdef __cplusplus
17903 extern "C"
17904 #endif
17905 char dlopen ();
17907 main ()
17909 return dlopen ();
17911 return 0;
17913 _ACEOF
17914 if ac_fn_c_try_link "$LINENO"; then :
17915 ac_cv_lib_dl_dlopen=yes
17916 else
17917 ac_cv_lib_dl_dlopen=no
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17925 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17927 else
17929 lt_cv_dlopen="dyld"
17930 lt_cv_dlopen_libs=
17931 lt_cv_dlopen_self=yes
17938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17939 if test "x$ac_cv_func_shl_load" = x""yes; then :
17940 lt_cv_dlopen="shl_load"
17941 else
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17944 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17945 $as_echo_n "(cached) " >&6
17946 else
17947 ac_check_lib_save_LIBS=$LIBS
17948 LIBS="-ldld $LIBS"
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17952 /* Override any GCC internal prototype to avoid an error.
17953 Use char because int might match the return type of a GCC
17954 builtin and then its argument prototype would still apply. */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 char shl_load ();
17960 main ()
17962 return shl_load ();
17964 return 0;
17966 _ACEOF
17967 if ac_fn_c_try_link "$LINENO"; then :
17968 ac_cv_lib_dld_shl_load=yes
17969 else
17970 ac_cv_lib_dld_shl_load=no
17972 rm -f core conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17978 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17980 else
17981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17982 if test "x$ac_cv_func_dlopen" = x""yes; then :
17983 lt_cv_dlopen="dlopen"
17984 else
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-ldl $LIBS"
17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17995 /* Override any GCC internal prototype to avoid an error.
17996 Use char because int might match the return type of a GCC
17997 builtin and then its argument prototype would still apply. */
17998 #ifdef __cplusplus
17999 extern "C"
18000 #endif
18001 char dlopen ();
18003 main ()
18005 return dlopen ();
18007 return 0;
18009 _ACEOF
18010 if ac_fn_c_try_link "$LINENO"; then :
18011 ac_cv_lib_dl_dlopen=yes
18012 else
18013 ac_cv_lib_dl_dlopen=no
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS=$ac_check_lib_save_LIBS
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18021 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18023 else
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18025 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18027 $as_echo_n "(cached) " >&6
18028 else
18029 ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-lsvld $LIBS"
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char dlopen ();
18042 main ()
18044 return dlopen ();
18046 return 0;
18048 _ACEOF
18049 if ac_fn_c_try_link "$LINENO"; then :
18050 ac_cv_lib_svld_dlopen=yes
18051 else
18052 ac_cv_lib_svld_dlopen=no
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18059 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18060 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18062 else
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18064 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18066 $as_echo_n "(cached) " >&6
18067 else
18068 ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-ldld $LIBS"
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 char dld_link ();
18081 main ()
18083 return dld_link ();
18085 return 0;
18087 _ACEOF
18088 if ac_fn_c_try_link "$LINENO"; then :
18089 ac_cv_lib_dld_dld_link=yes
18090 else
18091 ac_cv_lib_dld_dld_link=no
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18098 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18099 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18119 esac
18121 if test "x$lt_cv_dlopen" != xno; then
18122 enable_dlopen=yes
18123 else
18124 enable_dlopen=no
18127 case $lt_cv_dlopen in
18128 dlopen)
18129 save_CPPFLAGS="$CPPFLAGS"
18130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18132 save_LDFLAGS="$LDFLAGS"
18133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18135 save_LIBS="$LIBS"
18136 LIBS="$lt_cv_dlopen_libs $LIBS"
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18139 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18140 if test "${lt_cv_dlopen_self+set}" = set; then :
18141 $as_echo_n "(cached) " >&6
18142 else
18143 if test "$cross_compiling" = yes; then :
18144 lt_cv_dlopen_self=cross
18145 else
18146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18147 lt_status=$lt_dlunknown
18148 cat > conftest.$ac_ext <<_LT_EOF
18149 #line 18149 "configure"
18150 #include "confdefs.h"
18152 #if HAVE_DLFCN_H
18153 #include <dlfcn.h>
18154 #endif
18156 #include <stdio.h>
18158 #ifdef RTLD_GLOBAL
18159 # define LT_DLGLOBAL RTLD_GLOBAL
18160 #else
18161 # ifdef DL_GLOBAL
18162 # define LT_DLGLOBAL DL_GLOBAL
18163 # else
18164 # define LT_DLGLOBAL 0
18165 # endif
18166 #endif
18168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18169 find out it does not work in some platform. */
18170 #ifndef LT_DLLAZY_OR_NOW
18171 # ifdef RTLD_LAZY
18172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18173 # else
18174 # ifdef DL_LAZY
18175 # define LT_DLLAZY_OR_NOW DL_LAZY
18176 # else
18177 # ifdef RTLD_NOW
18178 # define LT_DLLAZY_OR_NOW RTLD_NOW
18179 # else
18180 # ifdef DL_NOW
18181 # define LT_DLLAZY_OR_NOW DL_NOW
18182 # else
18183 # define LT_DLLAZY_OR_NOW 0
18184 # endif
18185 # endif
18186 # endif
18187 # endif
18188 #endif
18190 /* When -fvisbility=hidden is used, assume the code has been annotated
18191 correspondingly for the symbols needed. */
18192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18193 void fnord () __attribute__((visibility("default")));
18194 #endif
18196 void fnord () { int i=42; }
18197 int main ()
18199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18200 int status = $lt_dlunknown;
18202 if (self)
18204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18205 else
18207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18208 else puts (dlerror ());
18210 /* dlclose (self); */
18212 else
18213 puts (dlerror ());
18215 return status;
18217 _LT_EOF
18218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18219 (eval $ac_link) 2>&5
18220 ac_status=$?
18221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18223 (./conftest; exit; ) >&5 2>/dev/null
18224 lt_status=$?
18225 case x$lt_status in
18226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18229 esac
18230 else :
18231 # compilation failed
18232 lt_cv_dlopen_self=no
18235 rm -fr conftest*
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18240 $as_echo "$lt_cv_dlopen_self" >&6; }
18242 if test "x$lt_cv_dlopen_self" = xyes; then
18243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18245 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18246 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249 if test "$cross_compiling" = yes; then :
18250 lt_cv_dlopen_self_static=cross
18251 else
18252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18253 lt_status=$lt_dlunknown
18254 cat > conftest.$ac_ext <<_LT_EOF
18255 #line 18255 "configure"
18256 #include "confdefs.h"
18258 #if HAVE_DLFCN_H
18259 #include <dlfcn.h>
18260 #endif
18262 #include <stdio.h>
18264 #ifdef RTLD_GLOBAL
18265 # define LT_DLGLOBAL RTLD_GLOBAL
18266 #else
18267 # ifdef DL_GLOBAL
18268 # define LT_DLGLOBAL DL_GLOBAL
18269 # else
18270 # define LT_DLGLOBAL 0
18271 # endif
18272 #endif
18274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18275 find out it does not work in some platform. */
18276 #ifndef LT_DLLAZY_OR_NOW
18277 # ifdef RTLD_LAZY
18278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18279 # else
18280 # ifdef DL_LAZY
18281 # define LT_DLLAZY_OR_NOW DL_LAZY
18282 # else
18283 # ifdef RTLD_NOW
18284 # define LT_DLLAZY_OR_NOW RTLD_NOW
18285 # else
18286 # ifdef DL_NOW
18287 # define LT_DLLAZY_OR_NOW DL_NOW
18288 # else
18289 # define LT_DLLAZY_OR_NOW 0
18290 # endif
18291 # endif
18292 # endif
18293 # endif
18294 #endif
18296 /* When -fvisbility=hidden is used, assume the code has been annotated
18297 correspondingly for the symbols needed. */
18298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18299 void fnord () __attribute__((visibility("default")));
18300 #endif
18302 void fnord () { int i=42; }
18303 int main ()
18305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306 int status = $lt_dlunknown;
18308 if (self)
18310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18311 else
18313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18314 else puts (dlerror ());
18316 /* dlclose (self); */
18318 else
18319 puts (dlerror ());
18321 return status;
18323 _LT_EOF
18324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18325 (eval $ac_link) 2>&5
18326 ac_status=$?
18327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18329 (./conftest; exit; ) >&5 2>/dev/null
18330 lt_status=$?
18331 case x$lt_status in
18332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18335 esac
18336 else :
18337 # compilation failed
18338 lt_cv_dlopen_self_static=no
18341 rm -fr conftest*
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18346 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18349 CPPFLAGS="$save_CPPFLAGS"
18350 LDFLAGS="$save_LDFLAGS"
18351 LIBS="$save_LIBS"
18353 esac
18355 case $lt_cv_dlopen_self in
18356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18357 *) enable_dlopen_self=unknown ;;
18358 esac
18360 case $lt_cv_dlopen_self_static in
18361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18362 *) enable_dlopen_self_static=unknown ;;
18363 esac
18382 striplib=
18383 old_striplib=
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18385 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18386 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391 else
18392 # FIXME - insert some real tests, host_os isn't really good enough
18393 case $host_os in
18394 darwin*)
18395 if test -n "$STRIP" ; then
18396 striplib="$STRIP -x"
18397 old_striplib="$STRIP -S"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18399 $as_echo "yes" >&6; }
18400 else
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407 $as_echo "no" >&6; }
18409 esac
18423 # Report which library types will actually be built
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18427 $as_echo "$can_build_shared" >&6; }
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18430 $as_echo_n "checking whether to build shared libraries... " >&6; }
18431 test "$can_build_shared" = "no" && enable_shared=no
18433 # On AIX, shared libraries and static libraries use the same namespace, and
18434 # are all built from PIC.
18435 case $host_os in
18436 aix3*)
18437 test "$enable_shared" = yes && enable_static=no
18438 if test -n "$RANLIB"; then
18439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18440 postinstall_cmds='$RANLIB $lib'
18444 aix[4-9]*)
18445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18446 test "$enable_shared" = yes && enable_static=no
18449 esac
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18451 $as_echo "$enable_shared" >&6; }
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18454 $as_echo_n "checking whether to build static libraries... " >&6; }
18455 # Make sure either enable_shared or enable_static is yes.
18456 test "$enable_shared" = yes || enable_static=yes
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18458 $as_echo "$enable_static" >&6; }
18464 ac_ext=c
18465 ac_cpp='$CPP $CPPFLAGS'
18466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18470 CC="$lt_save_CC"
18472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18474 (test "X$CXX" != "Xg++"))) ; then
18475 ac_ext=cpp
18476 ac_cpp='$CXXCPP $CPPFLAGS'
18477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18481 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18482 if test -z "$CXXCPP"; then
18483 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18486 # Double quotes because CXXCPP needs to be expanded
18487 for CXXCPP in "$CXX -E" "/lib/cpp"
18489 ac_preproc_ok=false
18490 for ac_cxx_preproc_warn_flag in '' yes
18492 # Use a header file that comes with gcc, so configuring glibc
18493 # with a fresh cross-compiler works.
18494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 # <limits.h> exists even on freestanding compilers.
18496 # On the NeXT, cc -E runs the code through the compiler's parser,
18497 # not just through cpp. "Syntax error" is here to catch this case.
18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500 #ifdef __STDC__
18501 # include <limits.h>
18502 #else
18503 # include <assert.h>
18504 #endif
18505 Syntax error
18506 _ACEOF
18507 if ac_fn_cxx_try_cpp "$LINENO"; then :
18509 else
18510 # Broken: fails on valid input.
18511 continue
18513 rm -f conftest.err conftest.$ac_ext
18515 # OK, works on sane cases. Now check whether nonexistent headers
18516 # can be detected and how.
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <ac_nonexistent.h>
18520 _ACEOF
18521 if ac_fn_cxx_try_cpp "$LINENO"; then :
18522 # Broken: success on invalid input.
18523 continue
18524 else
18525 # Passes both tests.
18526 ac_preproc_ok=:
18527 break
18529 rm -f conftest.err conftest.$ac_ext
18531 done
18532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18533 rm -f conftest.err conftest.$ac_ext
18534 if $ac_preproc_ok; then :
18535 break
18538 done
18539 ac_cv_prog_CXXCPP=$CXXCPP
18542 CXXCPP=$ac_cv_prog_CXXCPP
18543 else
18544 ac_cv_prog_CXXCPP=$CXXCPP
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18547 $as_echo "$CXXCPP" >&6; }
18548 ac_preproc_ok=false
18549 for ac_cxx_preproc_warn_flag in '' yes
18551 # Use a header file that comes with gcc, so configuring glibc
18552 # with a fresh cross-compiler works.
18553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18554 # <limits.h> exists even on freestanding compilers.
18555 # On the NeXT, cc -E runs the code through the compiler's parser,
18556 # not just through cpp. "Syntax error" is here to catch this case.
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18559 #ifdef __STDC__
18560 # include <limits.h>
18561 #else
18562 # include <assert.h>
18563 #endif
18564 Syntax error
18565 _ACEOF
18566 if ac_fn_cxx_try_cpp "$LINENO"; then :
18568 else
18569 # Broken: fails on valid input.
18570 continue
18572 rm -f conftest.err conftest.$ac_ext
18574 # OK, works on sane cases. Now check whether nonexistent headers
18575 # can be detected and how.
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18578 #include <ac_nonexistent.h>
18579 _ACEOF
18580 if ac_fn_cxx_try_cpp "$LINENO"; then :
18581 # Broken: success on invalid input.
18582 continue
18583 else
18584 # Passes both tests.
18585 ac_preproc_ok=:
18586 break
18588 rm -f conftest.err conftest.$ac_ext
18590 done
18591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18592 rm -f conftest.err conftest.$ac_ext
18593 if $ac_preproc_ok; then :
18595 else
18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18598 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18599 See \`config.log' for more details." "$LINENO" 5; }
18602 ac_ext=c
18603 ac_cpp='$CPP $CPPFLAGS'
18604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18608 else
18609 _lt_caught_CXX_error=yes
18612 ac_ext=cpp
18613 ac_cpp='$CXXCPP $CPPFLAGS'
18614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18618 archive_cmds_need_lc_CXX=no
18619 allow_undefined_flag_CXX=
18620 always_export_symbols_CXX=no
18621 archive_expsym_cmds_CXX=
18622 compiler_needs_object_CXX=no
18623 export_dynamic_flag_spec_CXX=
18624 hardcode_direct_CXX=no
18625 hardcode_direct_absolute_CXX=no
18626 hardcode_libdir_flag_spec_CXX=
18627 hardcode_libdir_flag_spec_ld_CXX=
18628 hardcode_libdir_separator_CXX=
18629 hardcode_minus_L_CXX=no
18630 hardcode_shlibpath_var_CXX=unsupported
18631 hardcode_automatic_CXX=no
18632 inherit_rpath_CXX=no
18633 module_cmds_CXX=
18634 module_expsym_cmds_CXX=
18635 link_all_deplibs_CXX=unknown
18636 old_archive_cmds_CXX=$old_archive_cmds
18637 reload_flag_CXX=$reload_flag
18638 reload_cmds_CXX=$reload_cmds
18639 no_undefined_flag_CXX=
18640 whole_archive_flag_spec_CXX=
18641 enable_shared_with_static_runtimes_CXX=no
18643 # Source file extension for C++ test sources.
18644 ac_ext=cpp
18646 # Object file extension for compiled C++ test sources.
18647 objext=o
18648 objext_CXX=$objext
18650 # No sense in running all these tests if we already determined that
18651 # the CXX compiler isn't working. Some variables (like enable_shared)
18652 # are currently assumed to apply to all compilers on this platform,
18653 # and will be corrupted by setting them based on a non-working compiler.
18654 if test "$_lt_caught_CXX_error" != yes; then
18655 # Code to be used in simple compile tests
18656 lt_simple_compile_test_code="int some_variable = 0;"
18658 # Code to be used in simple link tests
18659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18668 # If no C compiler was specified, use CC.
18669 LTCC=${LTCC-"$CC"}
18671 # If no C compiler flags were specified, use CFLAGS.
18672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18674 # Allow CC to be a program name with arguments.
18675 compiler=$CC
18678 # save warnings/boilerplate of simple test code
18679 ac_outfile=conftest.$ac_objext
18680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18682 _lt_compiler_boilerplate=`cat conftest.err`
18683 $RM conftest*
18685 ac_outfile=conftest.$ac_objext
18686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18688 _lt_linker_boilerplate=`cat conftest.err`
18689 $RM -r conftest*
18692 # Allow CC to be a program name with arguments.
18693 lt_save_CC=$CC
18694 lt_save_LD=$LD
18695 lt_save_GCC=$GCC
18696 GCC=$GXX
18697 lt_save_with_gnu_ld=$with_gnu_ld
18698 lt_save_path_LD=$lt_cv_path_LD
18699 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18700 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18701 else
18702 $as_unset lt_cv_prog_gnu_ld
18704 if test -n "${lt_cv_path_LDCXX+set}"; then
18705 lt_cv_path_LD=$lt_cv_path_LDCXX
18706 else
18707 $as_unset lt_cv_path_LD
18709 test -z "${LDCXX+set}" || LD=$LDCXX
18710 CC=${CXX-"c++"}
18711 compiler=$CC
18712 compiler_CXX=$CC
18713 for cc_temp in $compiler""; do
18714 case $cc_temp in
18715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18717 \-*) ;;
18718 *) break;;
18719 esac
18720 done
18721 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18724 if test -n "$compiler"; then
18725 # We don't want -fno-exception when compiling C++ code, so set the
18726 # no_builtin_flag separately
18727 if test "$GXX" = yes; then
18728 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18729 else
18730 lt_prog_compiler_no_builtin_flag_CXX=
18733 if test "$GXX" = yes; then
18734 # Set up default GNU C++ configuration
18738 # Check whether --with-gnu-ld was given.
18739 if test "${with_gnu_ld+set}" = set; then :
18740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18741 else
18742 with_gnu_ld=no
18745 ac_prog=ld
18746 if test "$GCC" = yes; then
18747 # Check if gcc -print-prog-name=ld gives a path.
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18749 $as_echo_n "checking for ld used by $CC... " >&6; }
18750 case $host in
18751 *-*-mingw*)
18752 # gcc leaves a trailing carriage return which upsets mingw
18753 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18755 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18756 esac
18757 case $ac_prog in
18758 # Accept absolute paths.
18759 [\\/]* | ?:[\\/]*)
18760 re_direlt='/[^/][^/]*/\.\./'
18761 # Canonicalize the pathname of ld
18762 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18763 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18764 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18765 done
18766 test -z "$LD" && LD="$ac_prog"
18769 # If it fails, then pretend we aren't using GCC.
18770 ac_prog=ld
18773 # If it is relative, then search for the first ld in PATH.
18774 with_gnu_ld=unknown
18776 esac
18777 elif test "$with_gnu_ld" = yes; then
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18779 $as_echo_n "checking for GNU ld... " >&6; }
18780 else
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18782 $as_echo_n "checking for non-GNU ld... " >&6; }
18784 if test "${lt_cv_path_LD+set}" = set; then :
18785 $as_echo_n "(cached) " >&6
18786 else
18787 if test -z "$LD"; then
18788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18789 for ac_dir in $PATH; do
18790 IFS="$lt_save_ifs"
18791 test -z "$ac_dir" && ac_dir=.
18792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18793 lt_cv_path_LD="$ac_dir/$ac_prog"
18794 # Check to see if the program is GNU ld. I'd rather use --version,
18795 # but apparently some variants of GNU ld only accept -v.
18796 # Break only if it was the GNU/non-GNU ld that we prefer.
18797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18798 *GNU* | *'with BFD'*)
18799 test "$with_gnu_ld" != no && break
18802 test "$with_gnu_ld" != yes && break
18804 esac
18806 done
18807 IFS="$lt_save_ifs"
18808 else
18809 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18813 LD="$lt_cv_path_LD"
18814 if test -n "$LD"; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18816 $as_echo "$LD" >&6; }
18817 else
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18821 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18824 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18825 $as_echo_n "(cached) " >&6
18826 else
18827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18828 case `$LD -v 2>&1 </dev/null` in
18829 *GNU* | *'with BFD'*)
18830 lt_cv_prog_gnu_ld=yes
18833 lt_cv_prog_gnu_ld=no
18835 esac
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18839 with_gnu_ld=$lt_cv_prog_gnu_ld
18847 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18848 # archiving commands below assume that GNU ld is being used.
18849 if test "$with_gnu_ld" = yes; then
18850 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18851 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'
18853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18856 # If archive_cmds runs LD, not CC, wlarc should be empty
18857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18858 # investigate it a little bit more. (MM)
18859 wlarc='${wl}'
18861 # ancient GNU ld didn't support --whole-archive et. al.
18862 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18863 $GREP 'no-whole-archive' > /dev/null; then
18864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18865 else
18866 whole_archive_flag_spec_CXX=
18868 else
18869 with_gnu_ld=no
18870 wlarc=
18872 # A generic and very simple default shared library creation
18873 # command for GNU C++ for the case where it uses the native
18874 # linker, instead of GNU ld. If possible, this setting should
18875 # overridden to take advantage of the native linker features on
18876 # the platform it is being used on.
18877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18880 # Commands to make compiler produce verbose output that lists
18881 # what "hidden" libraries, object files and flags are used when
18882 # linking a shared library.
18883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18885 else
18886 GXX=no
18887 with_gnu_ld=no
18888 wlarc=
18891 # PORTME: fill in a description of your system's C++ link characteristics
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18894 ld_shlibs_CXX=yes
18895 case $host_os in
18896 aix3*)
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18900 aix[4-9]*)
18901 if test "$host_cpu" = ia64; then
18902 # On IA64, the linker does run time linking by default, so we don't
18903 # have to do anything special.
18904 aix_use_runtimelinking=no
18905 exp_sym_flag='-Bexport'
18906 no_entry_flag=""
18907 else
18908 aix_use_runtimelinking=no
18910 # Test if we are trying to use run time linking or normal
18911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18912 # need to do runtime linking.
18913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18914 for ld_flag in $LDFLAGS; do
18915 case $ld_flag in
18916 *-brtl*)
18917 aix_use_runtimelinking=yes
18918 break
18920 esac
18921 done
18923 esac
18925 exp_sym_flag='-bexport'
18926 no_entry_flag='-bnoentry'
18929 # When large executables or shared objects are built, AIX ld can
18930 # have problems creating the table of contents. If linking a library
18931 # or program results in "error TOC overflow" add -mminimal-toc to
18932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18935 archive_cmds_CXX=''
18936 hardcode_direct_CXX=yes
18937 hardcode_direct_absolute_CXX=yes
18938 hardcode_libdir_separator_CXX=':'
18939 link_all_deplibs_CXX=yes
18940 file_list_spec_CXX='${wl}-f,'
18942 if test "$GXX" = yes; then
18943 case $host_os in aix4.[012]|aix4.[012].*)
18944 # We only want to do this on AIX 4.2 and lower, the check
18945 # below for broken collect2 doesn't work under 4.3+
18946 collect2name=`${CC} -print-prog-name=collect2`
18947 if test -f "$collect2name" &&
18948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18949 then
18950 # We have reworked collect2
18952 else
18953 # We have old collect2
18954 hardcode_direct_CXX=unsupported
18955 # It fails to find uninstalled libraries when the uninstalled
18956 # path is not listed in the libpath. Setting hardcode_minus_L
18957 # to unsupported forces relinking
18958 hardcode_minus_L_CXX=yes
18959 hardcode_libdir_flag_spec_CXX='-L$libdir'
18960 hardcode_libdir_separator_CXX=
18962 esac
18963 shared_flag='-shared'
18964 if test "$aix_use_runtimelinking" = yes; then
18965 shared_flag="$shared_flag "'${wl}-G'
18967 else
18968 # not using gcc
18969 if test "$host_cpu" = ia64; then
18970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18971 # chokes on -Wl,-G. The following line is correct:
18972 shared_flag='-G'
18973 else
18974 if test "$aix_use_runtimelinking" = yes; then
18975 shared_flag='${wl}-G'
18976 else
18977 shared_flag='${wl}-bM:SRE'
18982 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18983 # It seems that -bexpall does not export symbols beginning with
18984 # underscore (_), so it is better to generate a list of symbols to
18985 # export.
18986 always_export_symbols_CXX=yes
18987 if test "$aix_use_runtimelinking" = yes; then
18988 # Warning - without using the other runtime loading flags (-brtl),
18989 # -berok will link without error, but may produce a broken library.
18990 allow_undefined_flag_CXX='-berok'
18991 # Determine the default libpath from the value encoded in an empty
18992 # executable.
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18997 main ()
19001 return 0;
19003 _ACEOF
19004 if ac_fn_cxx_try_link "$LINENO"; then :
19006 lt_aix_libpath_sed='
19007 /Import File Strings/,/^$/ {
19008 /^0/ {
19009 s/^0 *\(.*\)$/\1/
19013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19014 # Check for a 64-bit object if we didn't find anything.
19015 if test -z "$aix_libpath"; then
19016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19019 rm -f core conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19025 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"
19026 else
19027 if test "$host_cpu" = ia64; then
19028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19029 allow_undefined_flag_CXX="-z nodefs"
19030 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"
19031 else
19032 # Determine the default libpath from the value encoded in an
19033 # empty executable.
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19038 main ()
19042 return 0;
19044 _ACEOF
19045 if ac_fn_cxx_try_link "$LINENO"; then :
19047 lt_aix_libpath_sed='
19048 /Import File Strings/,/^$/ {
19049 /^0/ {
19050 s/^0 *\(.*\)$/\1/
19054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19055 # Check for a 64-bit object if we didn't find anything.
19056 if test -z "$aix_libpath"; then
19057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19060 rm -f core conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19064 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19065 # Warning - without using the other run time loading flags,
19066 # -berok will link without error, but may produce a broken library.
19067 no_undefined_flag_CXX=' ${wl}-bernotok'
19068 allow_undefined_flag_CXX=' ${wl}-berok'
19069 if test "$with_gnu_ld" = yes; then
19070 # We only use this code for GNU lds that support --whole-archive.
19071 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19072 else
19073 # Exported symbols can be pulled into shared objects from archives
19074 whole_archive_flag_spec_CXX='$convenience'
19076 archive_cmds_need_lc_CXX=yes
19077 # This is similar to how AIX traditionally builds its shared
19078 # libraries.
19079 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'
19084 beos*)
19085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19086 allow_undefined_flag_CXX=unsupported
19087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19088 # support --undefined. This deserves some investigation. FIXME
19089 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19090 else
19091 ld_shlibs_CXX=no
19095 chorus*)
19096 case $cc_basename in
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19101 esac
19104 cygwin* | mingw* | pw32* | cegcc*)
19105 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19106 # as there is no search path for DLLs.
19107 hardcode_libdir_flag_spec_CXX='-L$libdir'
19108 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19109 allow_undefined_flag_CXX=unsupported
19110 always_export_symbols_CXX=no
19111 enable_shared_with_static_runtimes_CXX=yes
19113 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19114 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'
19115 # If the export-symbols file already is a .def file (1st line
19116 # is EXPORTS), use it as is; otherwise, prepend...
19117 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19118 cp $export_symbols $output_objdir/$soname.def;
19119 else
19120 echo EXPORTS > $output_objdir/$soname.def;
19121 cat $export_symbols >> $output_objdir/$soname.def;
19123 $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'
19124 else
19125 ld_shlibs_CXX=no
19128 darwin* | rhapsody*)
19131 archive_cmds_need_lc_CXX=no
19132 hardcode_direct_CXX=no
19133 hardcode_automatic_CXX=yes
19134 hardcode_shlibpath_var_CXX=unsupported
19135 if test "$lt_cv_ld_force_load" = "yes"; then
19136 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\"`'
19137 else
19138 whole_archive_flag_spec_CXX=''
19140 link_all_deplibs_CXX=yes
19141 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19142 case $cc_basename in
19143 ifort*) _lt_dar_can_shared=yes ;;
19144 *) _lt_dar_can_shared=$GCC ;;
19145 esac
19146 if test "$_lt_dar_can_shared" = "yes"; then
19147 output_verbose_link_cmd=func_echo_all
19148 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}"
19149 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19150 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}"
19151 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}"
19152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19153 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}"
19154 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}"
19157 else
19158 ld_shlibs_CXX=no
19163 dgux*)
19164 case $cc_basename in
19165 ec++*)
19166 # FIXME: insert proper C++ library support
19167 ld_shlibs_CXX=no
19169 ghcx*)
19170 # Green Hills C++ Compiler
19171 # FIXME: insert proper C++ library support
19172 ld_shlibs_CXX=no
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19178 esac
19181 freebsd2.*)
19182 # C++ shared libraries reported to be fairly broken before
19183 # switch to ELF
19184 ld_shlibs_CXX=no
19187 freebsd-elf*)
19188 archive_cmds_need_lc_CXX=no
19191 freebsd* | dragonfly*)
19192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19193 # conventions
19194 ld_shlibs_CXX=yes
19197 gnu*)
19200 haiku*)
19201 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19202 link_all_deplibs_CXX=yes
19205 hpux9*)
19206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19207 hardcode_libdir_separator_CXX=:
19208 export_dynamic_flag_spec_CXX='${wl}-E'
19209 hardcode_direct_CXX=yes
19210 hardcode_minus_L_CXX=yes # Not in the search PATH,
19211 # but as the default
19212 # location of the library.
19214 case $cc_basename in
19215 CC*)
19216 # FIXME: insert proper C++ library support
19217 ld_shlibs_CXX=no
19219 aCC*)
19220 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'
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19228 # dependencies.
19229 output_verbose_link_cmd='templist=`($CC -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"'
19232 if test "$GXX" = yes; then
19233 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'
19234 else
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19239 esac
19242 hpux10*|hpux11*)
19243 if test $with_gnu_ld = no; then
19244 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19245 hardcode_libdir_separator_CXX=:
19247 case $host_cpu in
19248 hppa*64*|ia64*)
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19253 esac
19255 case $host_cpu in
19256 hppa*64*|ia64*)
19257 hardcode_direct_CXX=no
19258 hardcode_shlibpath_var_CXX=no
19261 hardcode_direct_CXX=yes
19262 hardcode_direct_absolute_CXX=yes
19263 hardcode_minus_L_CXX=yes # Not in the search PATH,
19264 # but as the default
19265 # location of the library.
19267 esac
19269 case $cc_basename in
19270 CC*)
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19274 aCC*)
19275 case $host_cpu in
19276 hppa*64*)
19277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19279 ia64*)
19280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19285 esac
19286 # Commands to make compiler produce verbose output that lists
19287 # what "hidden" libraries, object files and flags are used when
19288 # linking a shared library.
19290 # There doesn't appear to be a way to prevent this compiler from
19291 # explicitly linking system object files so we need to strip them
19292 # from the output so that they don't get included in the library
19293 # dependencies.
19294 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"'
19297 if test "$GXX" = yes; then
19298 if test $with_gnu_ld = no; then
19299 case $host_cpu in
19300 hppa*64*)
19301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19303 ia64*)
19304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19309 esac
19311 else
19312 # FIXME: insert proper C++ library support
19313 ld_shlibs_CXX=no
19316 esac
19319 interix[3-9]*)
19320 hardcode_direct_CXX=no
19321 hardcode_shlibpath_var_CXX=no
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}-E'
19324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19325 # Instead, shared libraries are loaded at an image base (0x10000000 by
19326 # default) and relocated if they conflict, which is a slow very memory
19327 # consuming and fragmenting process. To avoid this, we pick a random,
19328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19330 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'
19331 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'
19333 irix5* | irix6*)
19334 case $cc_basename in
19335 CC*)
19336 # SGI C++
19337 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'
19339 # Archives containing C++ object files must be created using
19340 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19341 # necessary to make sure instantiated templates are included
19342 # in the archive.
19343 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19346 if test "$GXX" = yes; then
19347 if test "$with_gnu_ld" = no; then
19348 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'
19349 else
19350 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'
19353 link_all_deplibs_CXX=yes
19355 esac
19356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19357 hardcode_libdir_separator_CXX=:
19358 inherit_rpath_CXX=yes
19361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19362 case $cc_basename in
19363 KCC*)
19364 # Kuck and Associates, Inc. (KAI) C++ Compiler
19366 # KCC will only create a shared library if the output file
19367 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19368 # to its proper name (with version) after linking.
19369 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'
19370 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'
19371 # Commands to make compiler produce verbose output that lists
19372 # what "hidden" libraries, object files and flags are used when
19373 # linking a shared library.
19375 # There doesn't appear to be a way to prevent this compiler from
19376 # explicitly linking system object files so we need to strip them
19377 # from the output so that they don't get included in the library
19378 # dependencies.
19379 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"'
19381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19384 # Archives containing C++ object files must be created using
19385 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19386 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19388 icpc* | ecpc* )
19389 # Intel C++
19390 with_gnu_ld=yes
19391 # version 8.0 and above of icpc choke on multiply defined symbols
19392 # if we add $predep_objects and $postdep_objects, however 7.1 and
19393 # earlier do not add the objects themselves.
19394 case `$CC -V 2>&1` in
19395 *"Version 7."*)
19396 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 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'
19399 *) # Version 8.0 or newer
19400 tmp_idyn=
19401 case $host_cpu in
19402 ia64*) tmp_idyn=' -i_dynamic';;
19403 esac
19404 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19405 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'
19407 esac
19408 archive_cmds_need_lc_CXX=no
19409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19411 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19413 pgCC* | pgcpp*)
19414 # Portland Group C++ compiler
19415 case `$CC -V` in
19416 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19417 prelink_cmds_CXX='tpldir=Template.dir~
19418 rm -rf $tpldir~
19419 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19420 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19421 old_archive_cmds_CXX='tpldir=Template.dir~
19422 rm -rf $tpldir~
19423 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19424 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19425 $RANLIB $oldlib'
19426 archive_cmds_CXX='tpldir=Template.dir~
19427 rm -rf $tpldir~
19428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19429 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19430 archive_expsym_cmds_CXX='tpldir=Template.dir~
19431 rm -rf $tpldir~
19432 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19433 $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'
19435 *) # Version 6 and above use weak symbols
19436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19437 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'
19439 esac
19441 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19443 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'
19445 cxx*)
19446 # Compaq C++
19447 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19448 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'
19450 runpath_var=LD_RUN_PATH
19451 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19452 hardcode_libdir_separator_CXX=:
19454 # Commands to make compiler produce verbose output that lists
19455 # what "hidden" libraries, object files and flags are used when
19456 # linking a shared library.
19458 # There doesn't appear to be a way to prevent this compiler from
19459 # explicitly linking system object files so we need to strip them
19460 # from the output so that they don't get included in the library
19461 # dependencies.
19462 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'
19464 xl* | mpixl* | bgxl*)
19465 # IBM XL 8.0 on PPC, with GNU ld
19466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19468 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19469 if test "x$supports_anon_versioning" = xyes; then
19470 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19472 echo "local: *; };" >> $output_objdir/$libname.ver~
19473 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19477 case `$CC -V 2>&1 | sed 5q` in
19478 *Sun\ C*)
19479 # Sun C++ 5.9
19480 no_undefined_flag_CXX=' -zdefs'
19481 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19482 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'
19483 hardcode_libdir_flag_spec_CXX='-R$libdir'
19484 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'
19485 compiler_needs_object_CXX=yes
19487 # Not sure whether something based on
19488 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19489 # would be better.
19490 output_verbose_link_cmd='func_echo_all'
19492 # Archives containing C++ object files must be created using
19493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19494 # necessary to make sure instantiated templates are included
19495 # in the archive.
19496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19498 esac
19500 esac
19503 lynxos*)
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19508 m88k*)
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19513 mvs*)
19514 case $cc_basename in
19515 cxx*)
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19520 # FIXME: insert proper C++ library support
19521 ld_shlibs_CXX=no
19523 esac
19526 netbsd*)
19527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19528 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19529 wlarc=
19530 hardcode_libdir_flag_spec_CXX='-R$libdir'
19531 hardcode_direct_CXX=yes
19532 hardcode_shlibpath_var_CXX=no
19534 # Workaround some broken pre-1.5 toolchains
19535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19538 *nto* | *qnx*)
19539 ld_shlibs_CXX=yes
19542 openbsd2*)
19543 # C++ shared libraries are fairly broken
19544 ld_shlibs_CXX=no
19547 openbsd*)
19548 if test -f /usr/libexec/ld.so; then
19549 hardcode_direct_CXX=yes
19550 hardcode_shlibpath_var_CXX=no
19551 hardcode_direct_absolute_CXX=yes
19552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19556 export_dynamic_flag_spec_CXX='${wl}-E'
19557 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19559 output_verbose_link_cmd=func_echo_all
19560 else
19561 ld_shlibs_CXX=no
19565 osf3* | osf4* | osf5*)
19566 case $cc_basename in
19567 KCC*)
19568 # Kuck and Associates, Inc. (KAI) C++ Compiler
19570 # KCC will only create a shared library if the output file
19571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19572 # to its proper name (with version) after linking.
19573 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'
19575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19576 hardcode_libdir_separator_CXX=:
19578 # Archives containing C++ object files must be created using
19579 # the KAI C++ compiler.
19580 case $host in
19581 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19582 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19583 esac
19585 RCC*)
19586 # Rational C++ 2.4.1
19587 # FIXME: insert proper C++ library support
19588 ld_shlibs_CXX=no
19590 cxx*)
19591 case $host in
19592 osf3*)
19593 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19594 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'
19595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19598 allow_undefined_flag_CXX=' -expect_unresolved \*'
19599 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'
19600 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19601 echo "-hidden">> $lib.exp~
19602 $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~
19603 $RM $lib.exp'
19604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19606 esac
19608 hardcode_libdir_separator_CXX=:
19610 # Commands to make compiler produce verbose output that lists
19611 # what "hidden" libraries, object files and flags are used when
19612 # linking a shared library.
19614 # There doesn't appear to be a way to prevent this compiler from
19615 # explicitly linking system object files so we need to strip them
19616 # from the output so that they don't get included in the library
19617 # dependencies.
19618 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"'
19621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19623 case $host in
19624 osf3*)
19625 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'
19628 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'
19630 esac
19632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19633 hardcode_libdir_separator_CXX=:
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19640 else
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19645 esac
19648 psos*)
19649 # FIXME: insert proper C++ library support
19650 ld_shlibs_CXX=no
19653 sunos4*)
19654 case $cc_basename in
19655 CC*)
19656 # Sun C++ 4.x
19657 # FIXME: insert proper C++ library support
19658 ld_shlibs_CXX=no
19660 lcc*)
19661 # Lucid
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19666 # FIXME: insert proper C++ library support
19667 ld_shlibs_CXX=no
19669 esac
19672 solaris*)
19673 case $cc_basename in
19674 CC*)
19675 # Sun C++ 4.2, 5.x and Centerline C++
19676 archive_cmds_need_lc_CXX=yes
19677 no_undefined_flag_CXX=' -zdefs'
19678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19680 $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'
19682 hardcode_libdir_flag_spec_CXX='-R$libdir'
19683 hardcode_shlibpath_var_CXX=no
19684 case $host_os in
19685 solaris2.[0-5] | solaris2.[0-5].*) ;;
19687 # The compiler driver will combine and reorder linker options,
19688 # but understands `-z linker_flag'.
19689 # Supported since Solaris 2.6 (maybe 2.5.1?)
19690 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19692 esac
19693 link_all_deplibs_CXX=yes
19695 output_verbose_link_cmd='func_echo_all'
19697 # Archives containing C++ object files must be created using
19698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19699 # necessary to make sure instantiated templates are included
19700 # in the archive.
19701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19703 gcx*)
19704 # Green Hills C++ Compiler
19705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19707 # The C++ compiler must be used to create the archive.
19708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19711 # GNU C++ compiler with Solaris linker
19712 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19713 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19714 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19715 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19717 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19719 # Commands to make compiler produce verbose output that lists
19720 # what "hidden" libraries, object files and flags are used when
19721 # linking a shared library.
19722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19723 else
19724 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19725 # platform.
19726 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19728 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19733 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19736 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19737 case $host_os in
19738 solaris2.[0-5] | solaris2.[0-5].*) ;;
19740 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19742 esac
19745 esac
19748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19749 no_undefined_flag_CXX='${wl}-z,text'
19750 archive_cmds_need_lc_CXX=no
19751 hardcode_shlibpath_var_CXX=no
19752 runpath_var='LD_RUN_PATH'
19754 case $cc_basename in
19755 CC*)
19756 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19757 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19763 esac
19766 sysv5* | sco3.2v5* | sco5v6*)
19767 # Note: We can NOT use -z defs as we might desire, because we do not
19768 # link with -lc, and that would cause any symbols used from libc to
19769 # always be unresolved, which means just about no library would
19770 # ever link correctly. If we're not using GNU ld we use -z text
19771 # though, which does catch some bad symbols but isn't as heavy-handed
19772 # as -z defs.
19773 no_undefined_flag_CXX='${wl}-z,text'
19774 allow_undefined_flag_CXX='${wl}-z,nodefs'
19775 archive_cmds_need_lc_CXX=no
19776 hardcode_shlibpath_var_CXX=no
19777 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19778 hardcode_libdir_separator_CXX=':'
19779 link_all_deplibs_CXX=yes
19780 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19781 runpath_var='LD_RUN_PATH'
19783 case $cc_basename in
19784 CC*)
19785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19788 '"$old_archive_cmds_CXX"
19789 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19790 '"$reload_cmds_CXX"
19793 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19794 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19796 esac
19799 tandem*)
19800 case $cc_basename in
19801 NCC*)
19802 # NonStop-UX NCC 3.20
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19807 # FIXME: insert proper C++ library support
19808 ld_shlibs_CXX=no
19810 esac
19813 vxworks*)
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19822 esac
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19825 $as_echo "$ld_shlibs_CXX" >&6; }
19826 test "$ld_shlibs_CXX" = no && can_build_shared=no
19828 GCC_CXX="$GXX"
19829 LD_CXX="$LD"
19831 ## CAVEAT EMPTOR:
19832 ## There is no encapsulation within the following macros, do not change
19833 ## the running order or otherwise move them around unless you know exactly
19834 ## what you are doing...
19835 # Dependencies to place before and after the object being linked:
19836 predep_objects_CXX=
19837 postdep_objects_CXX=
19838 predeps_CXX=
19839 postdeps_CXX=
19840 compiler_lib_search_path_CXX=
19842 cat > conftest.$ac_ext <<_LT_EOF
19843 class Foo
19845 public:
19846 Foo (void) { a = 0; }
19847 private:
19848 int a;
19850 _LT_EOF
19852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19853 (eval $ac_compile) 2>&5
19854 ac_status=$?
19855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19856 test $ac_status = 0; }; then
19857 # Parse the compiler output and extract the necessary
19858 # objects, libraries and library flags.
19860 # Sentinel used to keep track of whether or not we are before
19861 # the conftest object file.
19862 pre_test_object_deps_done=no
19864 for p in `eval "$output_verbose_link_cmd"`; do
19865 case $p in
19867 -L* | -R* | -l*)
19868 # Some compilers place space between "-{L,R}" and the path.
19869 # Remove the space.
19870 if test $p = "-L" ||
19871 test $p = "-R"; then
19872 prev=$p
19873 continue
19874 else
19875 prev=
19878 if test "$pre_test_object_deps_done" = no; then
19879 case $p in
19880 -L* | -R*)
19881 # Internal compiler library paths should come after those
19882 # provided the user. The postdeps already come after the
19883 # user supplied libs so there is no need to process them.
19884 if test -z "$compiler_lib_search_path_CXX"; then
19885 compiler_lib_search_path_CXX="${prev}${p}"
19886 else
19887 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19890 # The "-l" case would never come before the object being
19891 # linked, so don't bother handling this case.
19892 esac
19893 else
19894 if test -z "$postdeps_CXX"; then
19895 postdeps_CXX="${prev}${p}"
19896 else
19897 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19902 *.$objext)
19903 # This assumes that the test object file only shows up
19904 # once in the compiler output.
19905 if test "$p" = "conftest.$objext"; then
19906 pre_test_object_deps_done=yes
19907 continue
19910 if test "$pre_test_object_deps_done" = no; then
19911 if test -z "$predep_objects_CXX"; then
19912 predep_objects_CXX="$p"
19913 else
19914 predep_objects_CXX="$predep_objects_CXX $p"
19916 else
19917 if test -z "$postdep_objects_CXX"; then
19918 postdep_objects_CXX="$p"
19919 else
19920 postdep_objects_CXX="$postdep_objects_CXX $p"
19925 *) ;; # Ignore the rest.
19927 esac
19928 done
19930 # Clean up.
19931 rm -f a.out a.exe
19932 else
19933 echo "libtool.m4: error: problem compiling CXX test program"
19936 $RM -f confest.$objext
19938 # PORTME: override above test on systems where it is broken
19939 case $host_os in
19940 interix[3-9]*)
19941 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19942 # hack all around it, let's just trust "g++" to DTRT.
19943 predep_objects_CXX=
19944 postdep_objects_CXX=
19945 postdeps_CXX=
19948 linux*)
19949 case `$CC -V 2>&1 | sed 5q` in
19950 *Sun\ C*)
19951 # Sun C++ 5.9
19953 # The more standards-conforming stlport4 library is
19954 # incompatible with the Cstd library. Avoid specifying
19955 # it if it's in CXXFLAGS. Ignore libCrun as
19956 # -library=stlport4 depends on it.
19957 case " $CXX $CXXFLAGS " in
19958 *" -library=stlport4 "*)
19959 solaris_use_stlport4=yes
19961 esac
19963 if test "$solaris_use_stlport4" != yes; then
19964 postdeps_CXX='-library=Cstd -library=Crun'
19967 esac
19970 solaris*)
19971 case $cc_basename in
19972 CC*)
19973 # The more standards-conforming stlport4 library is
19974 # incompatible with the Cstd library. Avoid specifying
19975 # it if it's in CXXFLAGS. Ignore libCrun as
19976 # -library=stlport4 depends on it.
19977 case " $CXX $CXXFLAGS " in
19978 *" -library=stlport4 "*)
19979 solaris_use_stlport4=yes
19981 esac
19983 # Adding this requires a known-good setup of shared libraries for
19984 # Sun compiler versions before 5.6, else PIC objects from an old
19985 # archive will be linked into the output, leading to subtle bugs.
19986 if test "$solaris_use_stlport4" != yes; then
19987 postdeps_CXX='-library=Cstd -library=Crun'
19990 esac
19992 esac
19995 case " $postdeps_CXX " in
19996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19997 esac
19998 compiler_lib_search_dirs_CXX=
19999 if test -n "${compiler_lib_search_path_CXX}"; then
20000 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20033 lt_prog_compiler_wl_CXX=
20034 lt_prog_compiler_pic_CXX=
20035 lt_prog_compiler_static_CXX=
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20040 # C++ specific cases for pic, static, wl, etc.
20041 if test "$GXX" = yes; then
20042 lt_prog_compiler_wl_CXX='-Wl,'
20043 lt_prog_compiler_static_CXX='-static'
20045 case $host_os in
20046 aix*)
20047 # All AIX code is PIC.
20048 if test "$host_cpu" = ia64; then
20049 # AIX 5 now supports IA64 processor
20050 lt_prog_compiler_static_CXX='-Bstatic'
20052 lt_prog_compiler_pic_CXX='-fPIC'
20055 amigaos*)
20056 case $host_cpu in
20057 powerpc)
20058 # see comment about AmigaOS4 .so support
20059 lt_prog_compiler_pic_CXX='-fPIC'
20061 m68k)
20062 # FIXME: we need at least 68020 code to build shared libraries, but
20063 # adding the `-m68020' flag to GCC prevents building anything better,
20064 # like `-m68040'.
20065 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20067 esac
20070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20071 # PIC is the default for these OSes.
20073 mingw* | cygwin* | os2* | pw32* | cegcc*)
20074 # This hack is so that the source file can tell whether it is being
20075 # built for inclusion in a dll (and should export symbols for example).
20076 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20077 # (--disable-auto-import) libraries
20078 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20080 darwin* | rhapsody*)
20081 # PIC is the default on this platform
20082 # Common symbols not allowed in MH_DYLIB files
20083 lt_prog_compiler_pic_CXX='-fno-common'
20085 *djgpp*)
20086 # DJGPP does not support shared libraries at all
20087 lt_prog_compiler_pic_CXX=
20089 haiku*)
20090 # PIC is the default for Haiku.
20091 # The "-static" flag exists, but is broken.
20092 lt_prog_compiler_static_CXX=
20094 interix[3-9]*)
20095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20096 # Instead, we relocate shared libraries at runtime.
20098 sysv4*MP*)
20099 if test -d /usr/nec; then
20100 lt_prog_compiler_pic_CXX=-Kconform_pic
20103 hpux*)
20104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20106 # sets the default TLS model and affects inlining.
20107 case $host_cpu in
20108 hppa*64*)
20111 lt_prog_compiler_pic_CXX='-fPIC'
20113 esac
20115 *qnx* | *nto*)
20116 # QNX uses GNU C++, but need to define -shared option too, otherwise
20117 # it will coredump.
20118 lt_prog_compiler_pic_CXX='-fPIC -shared'
20121 lt_prog_compiler_pic_CXX='-fPIC'
20123 esac
20124 else
20125 case $host_os in
20126 aix[4-9]*)
20127 # All AIX code is PIC.
20128 if test "$host_cpu" = ia64; then
20129 # AIX 5 now supports IA64 processor
20130 lt_prog_compiler_static_CXX='-Bstatic'
20131 else
20132 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20135 chorus*)
20136 case $cc_basename in
20137 cxch68*)
20138 # Green Hills C++ Compiler
20139 # _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"
20141 esac
20143 dgux*)
20144 case $cc_basename in
20145 ec++*)
20146 lt_prog_compiler_pic_CXX='-KPIC'
20148 ghcx*)
20149 # Green Hills C++ Compiler
20150 lt_prog_compiler_pic_CXX='-pic'
20154 esac
20156 freebsd* | dragonfly*)
20157 # FreeBSD uses GNU C++
20159 hpux9* | hpux10* | hpux11*)
20160 case $cc_basename in
20161 CC*)
20162 lt_prog_compiler_wl_CXX='-Wl,'
20163 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20164 if test "$host_cpu" != ia64; then
20165 lt_prog_compiler_pic_CXX='+Z'
20168 aCC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20171 case $host_cpu in
20172 hppa*64*|ia64*)
20173 # +Z the default
20176 lt_prog_compiler_pic_CXX='+Z'
20178 esac
20182 esac
20184 interix*)
20185 # This is c89, which is MS Visual C++ (no shared libs)
20186 # Anyone wants to do a port?
20188 irix5* | irix6* | nonstopux*)
20189 case $cc_basename in
20190 CC*)
20191 lt_prog_compiler_wl_CXX='-Wl,'
20192 lt_prog_compiler_static_CXX='-non_shared'
20193 # CC pic flag -KPIC is the default.
20197 esac
20199 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20200 case $cc_basename in
20201 KCC*)
20202 # KAI C++ Compiler
20203 lt_prog_compiler_wl_CXX='--backend -Wl,'
20204 lt_prog_compiler_pic_CXX='-fPIC'
20206 ecpc* )
20207 # old Intel C++ for x86_64 which still supported -KPIC.
20208 lt_prog_compiler_wl_CXX='-Wl,'
20209 lt_prog_compiler_pic_CXX='-KPIC'
20210 lt_prog_compiler_static_CXX='-static'
20212 icpc* )
20213 # Intel C++, used to be incompatible with GCC.
20214 # ICC 10 doesn't accept -KPIC any more.
20215 lt_prog_compiler_wl_CXX='-Wl,'
20216 lt_prog_compiler_pic_CXX='-fPIC'
20217 lt_prog_compiler_static_CXX='-static'
20219 pgCC* | pgcpp*)
20220 # Portland Group C++ compiler
20221 lt_prog_compiler_wl_CXX='-Wl,'
20222 lt_prog_compiler_pic_CXX='-fpic'
20223 lt_prog_compiler_static_CXX='-Bstatic'
20225 cxx*)
20226 # Compaq C++
20227 # Make sure the PIC flag is empty. It appears that all Alpha
20228 # Linux and Compaq Tru64 Unix objects are PIC.
20229 lt_prog_compiler_pic_CXX=
20230 lt_prog_compiler_static_CXX='-non_shared'
20232 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20233 # IBM XL 8.0, 9.0 on PPC and BlueGene
20234 lt_prog_compiler_wl_CXX='-Wl,'
20235 lt_prog_compiler_pic_CXX='-qpic'
20236 lt_prog_compiler_static_CXX='-qstaticlink'
20239 case `$CC -V 2>&1 | sed 5q` in
20240 *Sun\ C*)
20241 # Sun C++ 5.9
20242 lt_prog_compiler_pic_CXX='-KPIC'
20243 lt_prog_compiler_static_CXX='-Bstatic'
20244 lt_prog_compiler_wl_CXX='-Qoption ld '
20246 esac
20248 esac
20250 lynxos*)
20252 m88k*)
20254 mvs*)
20255 case $cc_basename in
20256 cxx*)
20257 lt_prog_compiler_pic_CXX='-W c,exportall'
20261 esac
20263 netbsd*)
20265 *qnx* | *nto*)
20266 # QNX uses GNU C++, but need to define -shared option too, otherwise
20267 # it will coredump.
20268 lt_prog_compiler_pic_CXX='-fPIC -shared'
20270 osf3* | osf4* | osf5*)
20271 case $cc_basename in
20272 KCC*)
20273 lt_prog_compiler_wl_CXX='--backend -Wl,'
20275 RCC*)
20276 # Rational C++ 2.4.1
20277 lt_prog_compiler_pic_CXX='-pic'
20279 cxx*)
20280 # Digital/Compaq C++
20281 lt_prog_compiler_wl_CXX='-Wl,'
20282 # Make sure the PIC flag is empty. It appears that all Alpha
20283 # Linux and Compaq Tru64 Unix objects are PIC.
20284 lt_prog_compiler_pic_CXX=
20285 lt_prog_compiler_static_CXX='-non_shared'
20289 esac
20291 psos*)
20293 solaris*)
20294 case $cc_basename in
20295 CC*)
20296 # Sun C++ 4.2, 5.x and Centerline C++
20297 lt_prog_compiler_pic_CXX='-KPIC'
20298 lt_prog_compiler_static_CXX='-Bstatic'
20299 lt_prog_compiler_wl_CXX='-Qoption ld '
20301 gcx*)
20302 # Green Hills C++ Compiler
20303 lt_prog_compiler_pic_CXX='-PIC'
20307 esac
20309 sunos4*)
20310 case $cc_basename in
20311 CC*)
20312 # Sun C++ 4.x
20313 lt_prog_compiler_pic_CXX='-pic'
20314 lt_prog_compiler_static_CXX='-Bstatic'
20316 lcc*)
20317 # Lucid
20318 lt_prog_compiler_pic_CXX='-pic'
20322 esac
20324 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20325 case $cc_basename in
20326 CC*)
20327 lt_prog_compiler_wl_CXX='-Wl,'
20328 lt_prog_compiler_pic_CXX='-KPIC'
20329 lt_prog_compiler_static_CXX='-Bstatic'
20331 esac
20333 tandem*)
20334 case $cc_basename in
20335 NCC*)
20336 # NonStop-UX NCC 3.20
20337 lt_prog_compiler_pic_CXX='-KPIC'
20341 esac
20343 vxworks*)
20346 lt_prog_compiler_can_build_shared_CXX=no
20348 esac
20351 case $host_os in
20352 # For platforms which do not support PIC, -DPIC is meaningless:
20353 *djgpp*)
20354 lt_prog_compiler_pic_CXX=
20357 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20359 esac
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20361 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20366 # Check to make sure the PIC flag actually works.
20368 if test -n "$lt_prog_compiler_pic_CXX"; then
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20370 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20371 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20373 else
20374 lt_cv_prog_compiler_pic_works_CXX=no
20375 ac_outfile=conftest.$ac_objext
20376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20377 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20378 # Insert the option either (1) after the last *FLAGS variable, or
20379 # (2) before a word containing "conftest.", or (3) at the end.
20380 # Note that $ac_compile itself does not contain backslashes and begins
20381 # with a dollar sign (not a hyphen), so the echo should work correctly.
20382 # The option is referenced via a variable to avoid confusing sed.
20383 lt_compile=`echo "$ac_compile" | $SED \
20384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20386 -e 's:$: $lt_compiler_flag:'`
20387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20388 (eval "$lt_compile" 2>conftest.err)
20389 ac_status=$?
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 if (exit $ac_status) && test -s "$ac_outfile"; then
20393 # The compiler can only warn and ignore the option if not recognized
20394 # So say no if there are warnings other than the usual output.
20395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20398 lt_cv_prog_compiler_pic_works_CXX=yes
20401 $RM conftest*
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20405 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20407 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20408 case $lt_prog_compiler_pic_CXX in
20409 "" | " "*) ;;
20410 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20411 esac
20412 else
20413 lt_prog_compiler_pic_CXX=
20414 lt_prog_compiler_can_build_shared_CXX=no
20422 # Check to make sure the static flag actually works.
20424 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20427 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20428 $as_echo_n "(cached) " >&6
20429 else
20430 lt_cv_prog_compiler_static_works_CXX=no
20431 save_LDFLAGS="$LDFLAGS"
20432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20435 # The linker can only warn and ignore the option if not recognized
20436 # So say no if there are warnings
20437 if test -s conftest.err; then
20438 # Append any errors to the config.log.
20439 cat conftest.err 1>&5
20440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20442 if diff conftest.exp conftest.er2 >/dev/null; then
20443 lt_cv_prog_compiler_static_works_CXX=yes
20445 else
20446 lt_cv_prog_compiler_static_works_CXX=yes
20449 $RM -r conftest*
20450 LDFLAGS="$save_LDFLAGS"
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20454 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20456 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20458 else
20459 lt_prog_compiler_static_CXX=
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20469 else
20470 lt_cv_prog_compiler_c_o_CXX=no
20471 $RM -r conftest 2>/dev/null
20472 mkdir conftest
20473 cd conftest
20474 mkdir out
20475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20477 lt_compiler_flag="-o out/conftest2.$ac_objext"
20478 # Insert the option either (1) after the last *FLAGS variable, or
20479 # (2) before a word containing "conftest.", or (3) at the end.
20480 # Note that $ac_compile itself does not contain backslashes and begins
20481 # with a dollar sign (not a hyphen), so the echo should work correctly.
20482 lt_compile=`echo "$ac_compile" | $SED \
20483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20485 -e 's:$: $lt_compiler_flag:'`
20486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20487 (eval "$lt_compile" 2>out/conftest.err)
20488 ac_status=$?
20489 cat out/conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20492 then
20493 # The compiler can only warn and ignore the option if not recognized
20494 # So say no if there are warnings
20495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20498 lt_cv_prog_compiler_c_o_CXX=yes
20501 chmod u+w . 2>&5
20502 $RM conftest*
20503 # SGI C++ compiler will create directory out/ii_files/ for
20504 # template instantiation
20505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20506 $RM out/* && rmdir out
20507 cd ..
20508 $RM -r conftest
20509 $RM conftest*
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20519 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20520 $as_echo_n "(cached) " >&6
20521 else
20522 lt_cv_prog_compiler_c_o_CXX=no
20523 $RM -r conftest 2>/dev/null
20524 mkdir conftest
20525 cd conftest
20526 mkdir out
20527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20529 lt_compiler_flag="-o out/conftest2.$ac_objext"
20530 # Insert the option either (1) after the last *FLAGS variable, or
20531 # (2) before a word containing "conftest.", or (3) at the end.
20532 # Note that $ac_compile itself does not contain backslashes and begins
20533 # with a dollar sign (not a hyphen), so the echo should work correctly.
20534 lt_compile=`echo "$ac_compile" | $SED \
20535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20537 -e 's:$: $lt_compiler_flag:'`
20538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20539 (eval "$lt_compile" 2>out/conftest.err)
20540 ac_status=$?
20541 cat out/conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20544 then
20545 # The compiler can only warn and ignore the option if not recognized
20546 # So say no if there are warnings
20547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20550 lt_cv_prog_compiler_c_o_CXX=yes
20553 chmod u+w . 2>&5
20554 $RM conftest*
20555 # SGI C++ compiler will create directory out/ii_files/ for
20556 # template instantiation
20557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20558 $RM out/* && rmdir out
20559 cd ..
20560 $RM -r conftest
20561 $RM conftest*
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20570 hard_links="nottested"
20571 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20572 # do not overwrite the value of need_locks provided by the user
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20574 $as_echo_n "checking if we can lock with hard links... " >&6; }
20575 hard_links=yes
20576 $RM conftest*
20577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20578 touch conftest.a
20579 ln conftest.a conftest.b 2>&5 || hard_links=no
20580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20582 $as_echo "$hard_links" >&6; }
20583 if test "$hard_links" = no; then
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20586 need_locks=warn
20588 else
20589 need_locks=no
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20598 case $host_os in
20599 aix[4-9]*)
20600 # If we're using GNU nm, then we don't want the "-C" option.
20601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20602 # Also, AIX nm treats weak defined symbols like other global defined
20603 # symbols, whereas GNU nm marks them as "W".
20604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20605 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'
20606 else
20607 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'
20610 pw32*)
20611 export_symbols_cmds_CXX="$ltdll_cmds"
20613 cygwin* | mingw* | cegcc*)
20614 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'
20617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20619 esac
20620 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20623 $as_echo "$ld_shlibs_CXX" >&6; }
20624 test "$ld_shlibs_CXX" = no && can_build_shared=no
20626 with_gnu_ld_CXX=$with_gnu_ld
20634 # Do we need to explicitly link libc?
20636 case "x$archive_cmds_need_lc_CXX" in
20637 x|xyes)
20638 # Assume -lc should be added
20639 archive_cmds_need_lc_CXX=yes
20641 if test "$enable_shared" = yes && test "$GCC" = yes; then
20642 case $archive_cmds_CXX in
20643 *'~'*)
20644 # FIXME: we may have to deal with multi-command sequences.
20646 '$CC '*)
20647 # Test whether the compiler implicitly links with -lc since on some
20648 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20649 # to ld, don't add -lc before -lgcc.
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20651 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20652 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20654 else
20655 $RM conftest*
20656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20659 (eval $ac_compile) 2>&5
20660 ac_status=$?
20661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20662 test $ac_status = 0; } 2>conftest.err; then
20663 soname=conftest
20664 lib=conftest
20665 libobjs=conftest.$ac_objext
20666 deplibs=
20667 wl=$lt_prog_compiler_wl_CXX
20668 pic_flag=$lt_prog_compiler_pic_CXX
20669 compiler_flags=-v
20670 linker_flags=-v
20671 verstring=
20672 output_objdir=.
20673 libname=conftest
20674 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20675 allow_undefined_flag_CXX=
20676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20677 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20678 ac_status=$?
20679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20680 test $ac_status = 0; }
20681 then
20682 lt_cv_archive_cmds_need_lc_CXX=no
20683 else
20684 lt_cv_archive_cmds_need_lc_CXX=yes
20686 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20687 else
20688 cat conftest.err 1>&5
20690 $RM conftest*
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20694 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20695 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20697 esac
20700 esac
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20768 library_names_spec=
20769 libname_spec='lib$name'
20770 soname_spec=
20771 shrext_cmds=".so"
20772 postinstall_cmds=
20773 postuninstall_cmds=
20774 finish_cmds=
20775 finish_eval=
20776 shlibpath_var=
20777 shlibpath_overrides_runpath=unknown
20778 version_type=none
20779 dynamic_linker="$host_os ld.so"
20780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20781 need_lib_prefix=unknown
20782 hardcode_into_libs=no
20784 # when you set need_version to no, make sure it does not cause -set_version
20785 # flags to be left without arguments
20786 need_version=unknown
20788 case $host_os in
20789 aix3*)
20790 version_type=linux
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20792 shlibpath_var=LIBPATH
20794 # AIX 3 has no versioning support, so we append a major version to the name.
20795 soname_spec='${libname}${release}${shared_ext}$major'
20798 aix[4-9]*)
20799 version_type=linux
20800 need_lib_prefix=no
20801 need_version=no
20802 hardcode_into_libs=yes
20803 if test "$host_cpu" = ia64; then
20804 # AIX 5 supports IA64
20805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20806 shlibpath_var=LD_LIBRARY_PATH
20807 else
20808 # With GCC up to 2.95.x, collect2 would create an import file
20809 # for dependence libraries. The import file would start with
20810 # the line `#! .'. This would cause the generated library to
20811 # depend on `.', always an invalid library. This was fixed in
20812 # development snapshots of GCC prior to 3.0.
20813 case $host_os in
20814 aix4 | aix4.[01] | aix4.[01].*)
20815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20816 echo ' yes '
20817 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20819 else
20820 can_build_shared=no
20823 esac
20824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20825 # soname into executable. Probably we can add versioning support to
20826 # collect2, so additional links can be useful in future.
20827 if test "$aix_use_runtimelinking" = yes; then
20828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20829 # instead of lib<name>.a to let people know that these are not
20830 # typical AIX shared libraries.
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832 else
20833 # We preserve .a as extension for shared libraries through AIX4.2
20834 # and later when we are not doing run time linking.
20835 library_names_spec='${libname}${release}.a $libname.a'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20838 shlibpath_var=LIBPATH
20842 amigaos*)
20843 case $host_cpu in
20844 powerpc)
20845 # Since July 2007 AmigaOS4 officially supports .so libraries.
20846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20849 m68k)
20850 library_names_spec='$libname.ixlibrary $libname.a'
20851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20852 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'
20854 esac
20857 beos*)
20858 library_names_spec='${libname}${shared_ext}'
20859 dynamic_linker="$host_os ld.so"
20860 shlibpath_var=LIBRARY_PATH
20863 bsdi[45]*)
20864 version_type=linux
20865 need_version=no
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20869 shlibpath_var=LD_LIBRARY_PATH
20870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20872 # the default ld.so.conf also contains /usr/contrib/lib and
20873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20874 # libtool to hard-code these into programs
20877 cygwin* | mingw* | pw32* | cegcc*)
20878 version_type=windows
20879 shrext_cmds=".dll"
20880 need_version=no
20881 need_lib_prefix=no
20883 case $GCC,$host_os in
20884 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20885 library_names_spec='$libname.dll.a'
20886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20887 postinstall_cmds='base_file=`basename \${file}`~
20888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20889 dldir=$destdir/`dirname \$dlpath`~
20890 test -d \$dldir || mkdir -p \$dldir~
20891 $install_prog $dir/$dlname \$dldir/$dlname~
20892 chmod a+x \$dldir/$dlname~
20893 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20894 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20897 dlpath=$dir/\$dldll~
20898 $RM \$dlpath'
20899 shlibpath_overrides_runpath=yes
20901 case $host_os in
20902 cygwin*)
20903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20907 mingw* | cegcc*)
20908 # MinGW DLLs use traditional 'lib' prefix
20909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20911 pw32*)
20912 # pw32 DLLs use 'pw' prefix rather than 'lib'
20913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20915 esac
20919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20921 esac
20922 dynamic_linker='Win32 ld.exe'
20923 # FIXME: first we should search . and the directory the executable is in
20924 shlibpath_var=PATH
20927 darwin* | rhapsody*)
20928 dynamic_linker="$host_os dyld"
20929 version_type=darwin
20930 need_lib_prefix=no
20931 need_version=no
20932 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20933 soname_spec='${libname}${release}${major}$shared_ext'
20934 shlibpath_overrides_runpath=yes
20935 shlibpath_var=DYLD_LIBRARY_PATH
20936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20941 dgux*)
20942 version_type=linux
20943 need_lib_prefix=no
20944 need_version=no
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20946 soname_spec='${libname}${release}${shared_ext}$major'
20947 shlibpath_var=LD_LIBRARY_PATH
20950 freebsd* | dragonfly*)
20951 # DragonFly does not have aout. When/if they implement a new
20952 # versioning mechanism, adjust this.
20953 if test -x /usr/bin/objformat; then
20954 objformat=`/usr/bin/objformat`
20955 else
20956 case $host_os in
20957 freebsd[23].*) objformat=aout ;;
20958 *) objformat=elf ;;
20959 esac
20961 version_type=freebsd-$objformat
20962 case $version_type in
20963 freebsd-elf*)
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20965 need_version=no
20966 need_lib_prefix=no
20968 freebsd-*)
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20970 need_version=yes
20972 esac
20973 shlibpath_var=LD_LIBRARY_PATH
20974 case $host_os in
20975 freebsd2.*)
20976 shlibpath_overrides_runpath=yes
20978 freebsd3.[01]* | freebsdelf3.[01]*)
20979 shlibpath_overrides_runpath=yes
20980 hardcode_into_libs=yes
20982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20984 shlibpath_overrides_runpath=no
20985 hardcode_into_libs=yes
20987 *) # from 4.6 on, and DragonFly
20988 shlibpath_overrides_runpath=yes
20989 hardcode_into_libs=yes
20991 esac
20994 gnu*)
20995 version_type=linux
20996 need_lib_prefix=no
20997 need_version=no
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20999 soname_spec='${libname}${release}${shared_ext}$major'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 hardcode_into_libs=yes
21004 haiku*)
21005 version_type=linux
21006 need_lib_prefix=no
21007 need_version=no
21008 dynamic_linker="$host_os runtime_loader"
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21010 soname_spec='${libname}${release}${shared_ext}$major'
21011 shlibpath_var=LIBRARY_PATH
21012 shlibpath_overrides_runpath=yes
21013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21014 hardcode_into_libs=yes
21017 hpux9* | hpux10* | hpux11*)
21018 # Give a soname corresponding to the major version so that dld.sl refuses to
21019 # link against other versions.
21020 version_type=sunos
21021 need_lib_prefix=no
21022 need_version=no
21023 case $host_cpu in
21024 ia64*)
21025 shrext_cmds='.so'
21026 hardcode_into_libs=yes
21027 dynamic_linker="$host_os dld.so"
21028 shlibpath_var=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21031 soname_spec='${libname}${release}${shared_ext}$major'
21032 if test "X$HPUX_IA64_MODE" = X32; then
21033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21034 else
21035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21039 hppa*64*)
21040 shrext_cmds='.sl'
21041 hardcode_into_libs=yes
21042 dynamic_linker="$host_os dld.sl"
21043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec='${libname}${release}${shared_ext}$major'
21047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21051 shrext_cmds='.sl'
21052 dynamic_linker="$host_os dld.sl"
21053 shlibpath_var=SHLIB_PATH
21054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec='${libname}${release}${shared_ext}$major'
21058 esac
21059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21060 postinstall_cmds='chmod 555 $lib'
21061 # or fails outright, so override atomically:
21062 install_override_mode=555
21065 interix[3-9]*)
21066 version_type=linux
21067 need_lib_prefix=no
21068 need_version=no
21069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21070 soname_spec='${libname}${release}${shared_ext}$major'
21071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21072 shlibpath_var=LD_LIBRARY_PATH
21073 shlibpath_overrides_runpath=no
21074 hardcode_into_libs=yes
21077 irix5* | irix6* | nonstopux*)
21078 case $host_os in
21079 nonstopux*) version_type=nonstopux ;;
21081 if test "$lt_cv_prog_gnu_ld" = yes; then
21082 version_type=linux
21083 else
21084 version_type=irix
21085 fi ;;
21086 esac
21087 need_lib_prefix=no
21088 need_version=no
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21091 case $host_os in
21092 irix5* | nonstopux*)
21093 libsuff= shlibsuff=
21096 case $LD in # libtool.m4 will add one of these switches to LD
21097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21098 libsuff= shlibsuff= libmagic=32-bit;;
21099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21100 libsuff=32 shlibsuff=N32 libmagic=N32;;
21101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21103 *) libsuff= shlibsuff= libmagic=never-match;;
21104 esac
21106 esac
21107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21108 shlibpath_overrides_runpath=no
21109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21111 hardcode_into_libs=yes
21114 # No shared lib support for Linux oldld, aout, or coff.
21115 linux*oldld* | linux*aout* | linux*coff*)
21116 dynamic_linker=no
21119 # This must be Linux ELF.
21120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21121 version_type=linux
21122 need_lib_prefix=no
21123 need_version=no
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125 soname_spec='${libname}${release}${shared_ext}$major'
21126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21127 shlibpath_var=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath=no
21130 # Some binutils ld are patched to set DT_RUNPATH
21131 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21132 $as_echo_n "(cached) " >&6
21133 else
21134 lt_cv_shlibpath_overrides_runpath=no
21135 save_LDFLAGS=$LDFLAGS
21136 save_libdir=$libdir
21137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h. */
21143 main ()
21147 return 0;
21149 _ACEOF
21150 if ac_fn_cxx_try_link "$LINENO"; then :
21151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21152 lt_cv_shlibpath_overrides_runpath=yes
21155 rm -f core conftest.err conftest.$ac_objext \
21156 conftest$ac_exeext conftest.$ac_ext
21157 LDFLAGS=$save_LDFLAGS
21158 libdir=$save_libdir
21162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21164 # This implies no fast_install, which is unacceptable.
21165 # Some rework will be needed to allow for fast_install
21166 # before this can be enabled.
21167 hardcode_into_libs=yes
21169 # Append ld.so.conf contents to the search path
21170 if test -f /etc/ld.so.conf; then
21171 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' ' '`
21172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21175 # We used to test for /lib/ld.so.1 and disable shared libraries on
21176 # powerpc, because MkLinux only supported shared libraries with the
21177 # GNU dynamic linker. Since this was broken with cross compilers,
21178 # most powerpc-linux boxes support dynamic linking these days and
21179 # people can always --disable-shared, the test was removed, and we
21180 # assume the GNU/Linux dynamic linker is in use.
21181 dynamic_linker='GNU/Linux ld.so'
21184 netbsd*)
21185 version_type=sunos
21186 need_lib_prefix=no
21187 need_version=no
21188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21191 dynamic_linker='NetBSD (a.out) ld.so'
21192 else
21193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21194 soname_spec='${libname}${release}${shared_ext}$major'
21195 dynamic_linker='NetBSD ld.elf_so'
21197 shlibpath_var=LD_LIBRARY_PATH
21198 shlibpath_overrides_runpath=yes
21199 hardcode_into_libs=yes
21202 newsos6)
21203 version_type=linux
21204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21205 shlibpath_var=LD_LIBRARY_PATH
21206 shlibpath_overrides_runpath=yes
21209 *nto* | *qnx*)
21210 version_type=qnx
21211 need_lib_prefix=no
21212 need_version=no
21213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec='${libname}${release}${shared_ext}$major'
21215 shlibpath_var=LD_LIBRARY_PATH
21216 shlibpath_overrides_runpath=no
21217 hardcode_into_libs=yes
21218 dynamic_linker='ldqnx.so'
21221 openbsd*)
21222 version_type=sunos
21223 sys_lib_dlsearch_path_spec="/usr/lib"
21224 need_lib_prefix=no
21225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21226 case $host_os in
21227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21228 *) need_version=no ;;
21229 esac
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21234 case $host_os in
21235 openbsd2.[89] | openbsd2.[89].*)
21236 shlibpath_overrides_runpath=no
21239 shlibpath_overrides_runpath=yes
21241 esac
21242 else
21243 shlibpath_overrides_runpath=yes
21247 os2*)
21248 libname_spec='$name'
21249 shrext_cmds=".dll"
21250 need_lib_prefix=no
21251 library_names_spec='$libname${shared_ext} $libname.a'
21252 dynamic_linker='OS/2 ld.exe'
21253 shlibpath_var=LIBPATH
21256 osf3* | osf4* | osf5*)
21257 version_type=osf
21258 need_lib_prefix=no
21259 need_version=no
21260 soname_spec='${libname}${release}${shared_ext}$major'
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21262 shlibpath_var=LD_LIBRARY_PATH
21263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21267 rdos*)
21268 dynamic_linker=no
21271 solaris*)
21272 version_type=linux
21273 need_lib_prefix=no
21274 need_version=no
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 shlibpath_overrides_runpath=yes
21279 hardcode_into_libs=yes
21280 # ldd complains unless libraries are executable
21281 postinstall_cmds='chmod +x $lib'
21284 sunos4*)
21285 version_type=sunos
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21288 shlibpath_var=LD_LIBRARY_PATH
21289 shlibpath_overrides_runpath=yes
21290 if test "$with_gnu_ld" = yes; then
21291 need_lib_prefix=no
21293 need_version=yes
21296 sysv4 | sysv4.3*)
21297 version_type=linux
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21299 soname_spec='${libname}${release}${shared_ext}$major'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 case $host_vendor in
21302 sni)
21303 shlibpath_overrides_runpath=no
21304 need_lib_prefix=no
21305 runpath_var=LD_RUN_PATH
21307 siemens)
21308 need_lib_prefix=no
21310 motorola)
21311 need_lib_prefix=no
21312 need_version=no
21313 shlibpath_overrides_runpath=no
21314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21316 esac
21319 sysv4*MP*)
21320 if test -d /usr/nec ;then
21321 version_type=linux
21322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21323 soname_spec='$libname${shared_ext}.$major'
21324 shlibpath_var=LD_LIBRARY_PATH
21328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21329 version_type=freebsd-elf
21330 need_lib_prefix=no
21331 need_version=no
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21333 soname_spec='${libname}${release}${shared_ext}$major'
21334 shlibpath_var=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath=yes
21336 hardcode_into_libs=yes
21337 if test "$with_gnu_ld" = yes; then
21338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21339 else
21340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21341 case $host_os in
21342 sco3.2v5*)
21343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21345 esac
21347 sys_lib_dlsearch_path_spec='/usr/lib'
21350 tpf*)
21351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21352 version_type=linux
21353 need_lib_prefix=no
21354 need_version=no
21355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21356 shlibpath_var=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath=no
21358 hardcode_into_libs=yes
21361 uts4*)
21362 version_type=linux
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 shlibpath_var=LD_LIBRARY_PATH
21369 dynamic_linker=no
21371 esac
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21373 $as_echo "$dynamic_linker" >&6; }
21374 test "$dynamic_linker" = no && can_build_shared=no
21376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21377 if test "$GCC" = yes; then
21378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21381 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21384 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21427 hardcode_action_CXX=
21428 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21429 test -n "$runpath_var_CXX" ||
21430 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21432 # We can hardcode non-existent directories.
21433 if test "$hardcode_direct_CXX" != no &&
21434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21435 # have to relink, otherwise we might link with an installed library
21436 # when we should be linking with a yet-to-be-installed one
21437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21438 test "$hardcode_minus_L_CXX" != no; then
21439 # Linking always hardcodes the temporary library directory.
21440 hardcode_action_CXX=relink
21441 else
21442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21443 hardcode_action_CXX=immediate
21445 else
21446 # We cannot hardcode anything, or else we can only hardcode existing
21447 # directories.
21448 hardcode_action_CXX=unsupported
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21451 $as_echo "$hardcode_action_CXX" >&6; }
21453 if test "$hardcode_action_CXX" = relink ||
21454 test "$inherit_rpath_CXX" = yes; then
21455 # Fast installation is not supported
21456 enable_fast_install=no
21457 elif test "$shlibpath_overrides_runpath" = yes ||
21458 test "$enable_shared" = no; then
21459 # Fast installation is not necessary
21460 enable_fast_install=needless
21469 fi # test -n "$compiler"
21471 CC=$lt_save_CC
21472 LDCXX=$LD
21473 LD=$lt_save_LD
21474 GCC=$lt_save_GCC
21475 with_gnu_ld=$lt_save_with_gnu_ld
21476 lt_cv_path_LDCXX=$lt_cv_path_LD
21477 lt_cv_path_LD=$lt_save_path_LD
21478 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21479 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21480 fi # test "$_lt_caught_CXX_error" != yes
21482 ac_ext=c
21483 ac_cpp='$CPP $CPPFLAGS'
21484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21503 # Only expand once:
21509 # Identify the assembler which will work hand-in-glove with the newly
21510 # built GCC, so that we can examine its features. This is the assembler
21511 # which will be driven by the driver program.
21513 # If build != host, and we aren't building gas in-tree, we identify a
21514 # build->target assembler and hope that it will have the same features
21515 # as the host->target assembler we'll be using.
21516 gcc_cv_gas_major_version=
21517 gcc_cv_gas_minor_version=
21518 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21520 if test "${gcc_cv_as+set}" = set; then :
21522 else
21524 if test -x "$DEFAULT_ASSEMBLER"; then
21525 gcc_cv_as="$DEFAULT_ASSEMBLER"
21526 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21527 && test -f ../gas/Makefile \
21528 && test x$build = x$host; then
21529 gcc_cv_as=../gas/as-new$build_exeext
21530 elif test -x as$build_exeext; then
21531 # Build using assembler in the current directory.
21532 gcc_cv_as=./as$build_exeext
21533 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21534 gcc_cv_as="$AS_FOR_TARGET"
21535 else
21536 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21537 set dummy $AS_FOR_TARGET; ac_word=$2
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21539 $as_echo_n "checking for $ac_word... " >&6; }
21540 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21542 else
21543 case $gcc_cv_as in
21544 [\\/]* | ?:[\\/]*)
21545 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21549 for as_dir in $PATH
21551 IFS=$as_save_IFS
21552 test -z "$as_dir" && as_dir=.
21553 for ac_exec_ext in '' $ac_executable_extensions; do
21554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21555 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21557 break 2
21559 done
21560 done
21561 IFS=$as_save_IFS
21564 esac
21566 gcc_cv_as=$ac_cv_path_gcc_cv_as
21567 if test -n "$gcc_cv_as"; then
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21569 $as_echo "$gcc_cv_as" >&6; }
21570 else
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 $as_echo "no" >&6; }
21579 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21581 case "$ORIGINAL_AS_FOR_TARGET" in
21582 ./as | ./as$build_exeext) ;;
21583 *) ac_config_files="$ac_config_files as:exec-tool.in"
21585 esac
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21588 $as_echo_n "checking what assembler to use... " >&6; }
21589 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21590 # Single tree build which includes gas. We want to prefer it
21591 # over whatever linker top-level may have detected, since
21592 # we'll use what we're building after installation anyway.
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21594 $as_echo "newly built gas" >&6; }
21595 in_tree_gas=yes
21596 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21597 for f in $gcc_cv_as_bfd_srcdir/configure \
21598 $gcc_cv_as_gas_srcdir/configure \
21599 $gcc_cv_as_gas_srcdir/configure.in \
21600 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21601 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21602 if test x$gcc_cv_gas_version != x; then
21603 break
21605 done
21606 case $gcc_cv_gas_version in
21607 VERSION=[0-9]*) ;;
21608 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21609 esac
21610 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21611 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21612 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21613 case $gcc_cv_gas_patch_version in
21614 "") gcc_cv_gas_patch_version="0" ;;
21615 esac
21616 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21617 + $gcc_cv_gas_minor_version \) \* 1000 \
21618 + $gcc_cv_gas_patch_version`
21620 in_tree_gas_is_elf=no
21621 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21622 || (grep 'obj_format = multi' ../gas/Makefile \
21623 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21624 then
21625 in_tree_gas_is_elf=yes
21627 else
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21629 $as_echo "$gcc_cv_as" >&6; }
21630 in_tree_gas=no
21633 default_ld=
21634 # Check whether --enable-ld was given.
21635 if test "${enable_ld+set}" = set; then :
21636 enableval=$enable_ld; case "${enableval}" in
21638 default_ld=ld.gold
21640 esac
21644 install_gold_as_default=no
21645 # Check whether --enable-gold was given.
21646 if test "${enable_gold+set}" = set; then :
21647 enableval=$enable_gold; case "${enableval}" in
21648 default)
21649 install_gold_as_default=yes
21651 yes)
21652 if test x${default_ld} != x; then
21653 install_gold_as_default=yes
21659 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21661 esac
21665 # Identify the linker which will work hand-in-glove with the newly
21666 # built GCC, so that we can examine its features. This is the linker
21667 # which will be driven by the driver program.
21669 # If build != host, and we aren't building gas in-tree, we identify a
21670 # build->target linker and hope that it will have the same features
21671 # as the host->target linker we'll be using.
21672 gcc_cv_gld_major_version=
21673 gcc_cv_gld_minor_version=
21674 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21675 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21676 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21678 if test "${gcc_cv_ld+set}" = set; then :
21680 else
21682 if test -x "$DEFAULT_LINKER"; then
21683 gcc_cv_ld="$DEFAULT_LINKER"
21684 elif test $install_gold_as_default = yes \
21685 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21686 && test -f ../gold/Makefile \
21687 && test x$build = x$host; then
21688 gcc_cv_ld=../gold/ld-new$build_exeext
21689 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21690 && test -f ../ld/Makefile \
21691 && test x$build = x$host; then
21692 gcc_cv_ld=../ld/ld-new$build_exeext
21693 elif test -x collect-ld$build_exeext; then
21694 # Build using linker in the current directory.
21695 gcc_cv_ld=./collect-ld$build_exeext
21696 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21697 gcc_cv_ld="$LD_FOR_TARGET"
21698 else
21699 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21700 set dummy $LD_FOR_TARGET; ac_word=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 case $gcc_cv_ld in
21707 [\\/]* | ?:[\\/]*)
21708 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21712 for as_dir in $PATH
21714 IFS=$as_save_IFS
21715 test -z "$as_dir" && as_dir=.
21716 for ac_exec_ext in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21720 break 2
21722 done
21723 done
21724 IFS=$as_save_IFS
21727 esac
21729 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21730 if test -n "$gcc_cv_ld"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21732 $as_echo "$gcc_cv_ld" >&6; }
21733 else
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21742 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21743 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21744 # if the PLUGIN_LD is set ld-new, just have it as ld
21745 # as that is the installed named.
21746 if test x$PLUGIN_LD_SUFFIX = xld-new \
21747 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21748 PLUGIN_LD_SUFFIX=ld
21751 # Check whether --with-plugin-ld was given.
21752 if test "${with_plugin_ld+set}" = set; then :
21753 withval=$with_plugin_ld; if test x"$withval" != x; then
21754 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21755 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21761 cat >>confdefs.h <<_ACEOF
21762 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21763 _ACEOF
21766 # Check to see if we are using gold instead of ld
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21768 $as_echo_n "checking whether we are using gold... " >&6; }
21769 ld_is_gold=no
21770 if test x$gcc_cv_ld != x; then
21771 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21772 | grep "GNU gold" > /dev/null; then
21773 ld_is_gold=yes
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21777 $as_echo "$ld_is_gold" >&6; }
21779 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21781 case "$ORIGINAL_LD_FOR_TARGET" in
21782 ./collect-ld | ./collect-ld$build_exeext) ;;
21783 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21785 esac
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21788 $as_echo_n "checking what linker to use... " >&6; }
21789 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21790 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21791 # Single tree build which includes ld. We want to prefer it
21792 # over whatever linker top-level may have detected, since
21793 # we'll use what we're building after installation anyway.
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21795 $as_echo "newly built ld" >&6; }
21796 in_tree_ld=yes
21797 in_tree_ld_is_elf=no
21798 if (grep 'EMUL = .*elf' ../ld/Makefile \
21799 || grep 'EMUL = .*linux' ../ld/Makefile \
21800 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21801 in_tree_ld_is_elf=yes
21802 elif test "$ld_is_gold" = yes; then
21803 in_tree_ld_is_elf=yes
21805 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
21807 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21808 if test x$gcc_cv_gld_version != x; then
21809 break
21811 done
21812 case $gcc_cv_gld_version in
21813 VERSION=[0-9]*) ;;
21814 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21815 esac
21816 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21817 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21818 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21819 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21820 else
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21822 $as_echo "$gcc_cv_ld" >&6; }
21823 in_tree_ld=no
21824 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21825 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21826 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21832 # Figure out what nm we will be using.
21833 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21834 if test "${gcc_cv_nm+set}" = set; then :
21836 else
21838 if test -f $gcc_cv_binutils_srcdir/configure.in \
21839 && test -f ../binutils/Makefile \
21840 && test x$build = x$host; then
21841 gcc_cv_nm=../binutils/nm-new$build_exeext
21842 elif test -x nm$build_exeext; then
21843 gcc_cv_nm=./nm$build_exeext
21844 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21845 gcc_cv_nm="$NM_FOR_TARGET"
21846 else
21847 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21848 set dummy $NM_FOR_TARGET; ac_word=$2
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21850 $as_echo_n "checking for $ac_word... " >&6; }
21851 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21853 else
21854 case $gcc_cv_nm in
21855 [\\/]* | ?:[\\/]*)
21856 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21860 for as_dir in $PATH
21862 IFS=$as_save_IFS
21863 test -z "$as_dir" && as_dir=.
21864 for ac_exec_ext in '' $ac_executable_extensions; do
21865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21866 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21868 break 2
21870 done
21871 done
21872 IFS=$as_save_IFS
21875 esac
21877 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21878 if test -n "$gcc_cv_nm"; then
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21880 $as_echo "$gcc_cv_nm" >&6; }
21881 else
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21883 $as_echo "no" >&6; }
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21891 $as_echo_n "checking what nm to use... " >&6; }
21892 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21893 # Single tree build which includes binutils.
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21895 $as_echo "newly built nm" >&6; }
21896 in_tree_nm=yes
21897 else
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21899 $as_echo "$gcc_cv_nm" >&6; }
21900 in_tree_nm=no
21903 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21905 case "$ORIGINAL_NM_FOR_TARGET" in
21906 ./nm | ./nm$build_exeext) ;;
21907 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21909 esac
21912 # Figure out what objdump we will be using.
21913 if test "${gcc_cv_objdump+set}" = set; then :
21915 else
21917 if test -f $gcc_cv_binutils_srcdir/configure.in \
21918 && test -f ../binutils/Makefile \
21919 && test x$build = x$host; then
21920 # Single tree build which includes binutils.
21921 gcc_cv_objdump=../binutils/objdump$build_exeext
21922 elif test -x objdump$build_exeext; then
21923 gcc_cv_objdump=./objdump$build_exeext
21924 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21925 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21926 else
21927 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21928 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21930 $as_echo_n "checking for $ac_word... " >&6; }
21931 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21933 else
21934 case $gcc_cv_objdump in
21935 [\\/]* | ?:[\\/]*)
21936 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21940 for as_dir in $PATH
21942 IFS=$as_save_IFS
21943 test -z "$as_dir" && as_dir=.
21944 for ac_exec_ext in '' $ac_executable_extensions; do
21945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21946 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21948 break 2
21950 done
21951 done
21952 IFS=$as_save_IFS
21955 esac
21957 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21958 if test -n "$gcc_cv_objdump"; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21960 $as_echo "$gcc_cv_objdump" >&6; }
21961 else
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21971 $as_echo_n "checking what objdump to use... " >&6; }
21972 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21973 # Single tree build which includes binutils.
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21975 $as_echo "newly built objdump" >&6; }
21976 elif test x$gcc_cv_objdump = x; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21978 $as_echo "not found" >&6; }
21979 else
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21981 $as_echo "$gcc_cv_objdump" >&6; }
21984 # Figure out what readelf we will be using.
21985 if test "${gcc_cv_readelf+set}" = set; then :
21987 else
21989 if test -f $gcc_cv_binutils_srcdir/configure.in \
21990 && test -f ../binutils/Makefile \
21991 && test x$build = x$host; then
21992 # Single tree build which includes binutils.
21993 gcc_cv_readelf=../binutils/readelf$build_exeext
21994 elif test -x readelf$build_exeext; then
21995 gcc_cv_readelf=./readelf$build_exeext
21996 else
21997 # Extract the first word of "readelf", so it can be a program name with args.
21998 set dummy readelf; ac_word=$2
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22000 $as_echo_n "checking for $ac_word... " >&6; }
22001 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22003 else
22004 case $gcc_cv_readelf in
22005 [\\/]* | ?:[\\/]*)
22006 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22010 for as_dir in $PATH
22012 IFS=$as_save_IFS
22013 test -z "$as_dir" && as_dir=.
22014 for ac_exec_ext in '' $ac_executable_extensions; do
22015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22016 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22018 break 2
22020 done
22021 done
22022 IFS=$as_save_IFS
22025 esac
22027 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22028 if test -n "$gcc_cv_readelf"; then
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22030 $as_echo "$gcc_cv_readelf" >&6; }
22031 else
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22041 $as_echo_n "checking what readelf to use... " >&6; }
22042 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22043 # Single tree build which includes binutils.
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22045 $as_echo "newly built readelf" >&6; }
22046 elif test x$gcc_cv_readelf = x; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22048 $as_echo "not found" >&6; }
22049 else
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22051 $as_echo "$gcc_cv_readelf" >&6; }
22054 # Figure out what assembler alignment features are present.
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22056 $as_echo_n "checking assembler flags... " >&6; }
22057 if test "${gcc_cv_as_flags+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22059 else
22060 case "$target" in
22061 i[34567]86-*-linux*)
22062 gcc_cv_as_flags=--32
22064 x86_64-*-linux-gnux32)
22065 gcc_cv_as_flags=--x32
22067 x86_64-*-linux*)
22068 gcc_cv_as_flags=--64
22070 powerpc*-*-darwin*)
22071 gcc_cv_as_flags="-arch ppc"
22074 gcc_cv_as_flags=" "
22076 esac
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22079 $as_echo "$gcc_cv_as_flags" >&6; }
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22082 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22083 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22085 else
22086 gcc_cv_as_balign_and_p2align=no
22087 if test $in_tree_gas = yes; then
22088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22089 then gcc_cv_as_balign_and_p2align=yes
22091 elif test x$gcc_cv_as != x; then
22092 $as_echo '.balign 4
22093 .p2align 2' > conftest.s
22094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; }
22100 then
22101 gcc_cv_as_balign_and_p2align=yes
22102 else
22103 echo "configure: failed program was" >&5
22104 cat conftest.s >&5
22106 rm -f conftest.o conftest.s
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22110 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22111 if test $gcc_cv_as_balign_and_p2align = yes; then
22113 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22118 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22119 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22120 $as_echo_n "(cached) " >&6
22121 else
22122 gcc_cv_as_max_skip_p2align=no
22123 if test $in_tree_gas = yes; then
22124 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22125 then gcc_cv_as_max_skip_p2align=yes
22127 elif test x$gcc_cv_as != x; then
22128 $as_echo '.p2align 4,,7' > conftest.s
22129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22134 test $ac_status = 0; }; }
22135 then
22136 gcc_cv_as_max_skip_p2align=yes
22137 else
22138 echo "configure: failed program was" >&5
22139 cat conftest.s >&5
22141 rm -f conftest.o conftest.s
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22145 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22146 if test $gcc_cv_as_max_skip_p2align = yes; then
22148 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22153 $as_echo_n "checking assembler for .literal16... " >&6; }
22154 if test "${gcc_cv_as_literal16+set}" = set; then :
22155 $as_echo_n "(cached) " >&6
22156 else
22157 gcc_cv_as_literal16=no
22158 if test $in_tree_gas = yes; then
22159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22160 then gcc_cv_as_literal16=yes
22162 elif test x$gcc_cv_as != x; then
22163 $as_echo '.literal16' > conftest.s
22164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22170 then
22171 gcc_cv_as_literal16=yes
22172 else
22173 echo "configure: failed program was" >&5
22174 cat conftest.s >&5
22176 rm -f conftest.o conftest.s
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22180 $as_echo "$gcc_cv_as_literal16" >&6; }
22181 if test $gcc_cv_as_literal16 = yes; then
22183 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22188 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22189 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22190 $as_echo_n "(cached) " >&6
22191 else
22192 gcc_cv_as_subsection_m1=no
22193 if test $in_tree_gas = yes; then
22194 if test $in_tree_gas_is_elf = yes \
22195 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22196 then gcc_cv_as_subsection_m1=yes
22198 elif test x$gcc_cv_as != x; then
22199 $as_echo 'conftest_label1: .word 0
22200 .subsection -1
22201 conftest_label2: .word 0
22202 .previous' > conftest.s
22203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22208 test $ac_status = 0; }; }
22209 then
22210 if test x$gcc_cv_nm != x; then
22211 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22212 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22213 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22214 then :
22215 else gcc_cv_as_subsection_m1=yes
22217 rm -f conftest.nm1 conftest.nm2
22219 else
22220 echo "configure: failed program was" >&5
22221 cat conftest.s >&5
22223 rm -f conftest.o conftest.s
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22227 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22228 if test $gcc_cv_as_subsection_m1 = yes; then
22230 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22235 $as_echo_n "checking assembler for .weak... " >&6; }
22236 if test "${gcc_cv_as_weak+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239 gcc_cv_as_weak=no
22240 if test $in_tree_gas = yes; then
22241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22242 then gcc_cv_as_weak=yes
22244 elif test x$gcc_cv_as != x; then
22245 $as_echo ' .weak foobar' > conftest.s
22246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22251 test $ac_status = 0; }; }
22252 then
22253 gcc_cv_as_weak=yes
22254 else
22255 echo "configure: failed program was" >&5
22256 cat conftest.s >&5
22258 rm -f conftest.o conftest.s
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22262 $as_echo "$gcc_cv_as_weak" >&6; }
22263 if test $gcc_cv_as_weak = yes; then
22265 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22270 $as_echo_n "checking assembler for .weakref... " >&6; }
22271 if test "${gcc_cv_as_weakref+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22273 else
22274 gcc_cv_as_weakref=no
22275 if test $in_tree_gas = yes; then
22276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22277 then gcc_cv_as_weakref=yes
22279 elif test x$gcc_cv_as != x; then
22280 $as_echo ' .weakref foobar, barfnot' > conftest.s
22281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22286 test $ac_status = 0; }; }
22287 then
22288 gcc_cv_as_weakref=yes
22289 else
22290 echo "configure: failed program was" >&5
22291 cat conftest.s >&5
22293 rm -f conftest.o conftest.s
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22297 $as_echo "$gcc_cv_as_weakref" >&6; }
22298 if test $gcc_cv_as_weakref = yes; then
22300 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22305 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22306 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22307 $as_echo_n "(cached) " >&6
22308 else
22309 gcc_cv_as_nsubspa_comdat=no
22310 if test $in_tree_gas = yes; then
22311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22312 then gcc_cv_as_nsubspa_comdat=yes
22314 elif test x$gcc_cv_as != x; then
22315 $as_echo ' .SPACE $TEXT$
22316 .NSUBSPA $CODE$,COMDAT' > conftest.s
22317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22322 test $ac_status = 0; }; }
22323 then
22324 gcc_cv_as_nsubspa_comdat=yes
22325 else
22326 echo "configure: failed program was" >&5
22327 cat conftest.s >&5
22329 rm -f conftest.o conftest.s
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22333 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22334 if test $gcc_cv_as_nsubspa_comdat = yes; then
22336 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22340 # .hidden needs to be supported in both the assembler and the linker,
22341 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22342 # This is irritatingly difficult to feature test for; we have to check the
22343 # date string after the version number. If we've got an in-tree
22344 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22345 # to be safe.
22346 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22348 $as_echo_n "checking assembler for .hidden... " >&6; }
22349 if test "${gcc_cv_as_hidden+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22351 else
22352 gcc_cv_as_hidden=no
22353 if test $in_tree_gas = yes; then
22354 if test $in_tree_gas_is_elf = yes \
22355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22356 then gcc_cv_as_hidden=yes
22358 elif test x$gcc_cv_as != x; then
22359 $as_echo ' .hidden foobar
22360 foobar:' > conftest.s
22361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22366 test $ac_status = 0; }; }
22367 then
22368 gcc_cv_as_hidden=yes
22369 else
22370 echo "configure: failed program was" >&5
22371 cat conftest.s >&5
22373 rm -f conftest.o conftest.s
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22377 $as_echo "$gcc_cv_as_hidden" >&6; }
22379 case "${target}" in
22380 *-*-darwin*)
22381 # Darwin as has some visibility support, though with a different syntax.
22382 gcc_cv_as_hidden=yes
22384 esac
22386 # gnu_indirect_function type is an extension proposed at
22387 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22388 # selection of function implementation
22389 # Check whether --enable-gnu-indirect-function was given.
22390 if test "${enable_gnu_indirect_function+set}" = set; then :
22391 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22392 yes | no) ;;
22393 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22394 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22395 esac
22396 else
22397 enable_gnu_indirect_function="$default_gnu_indirect_function"
22401 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22403 cat >>confdefs.h <<_ACEOF
22404 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22405 _ACEOF
22409 if test $in_tree_ld != yes ; then
22410 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22411 if echo "$ld_ver" | grep GNU > /dev/null; then
22412 if test x"$ld_is_gold" = xyes; then
22413 # GNU gold --version looks like this:
22415 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22417 # We extract the binutils version which is more familiar and specific
22418 # than the gold version.
22419 ld_vers=`echo $ld_ver | sed -n \
22420 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22421 else
22422 # GNU ld --version looks like this:
22424 # GNU ld (GNU Binutils) 2.21.51.20110225
22425 ld_vers=`echo $ld_ver | sed -n \
22426 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22428 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'`
22429 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22430 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22431 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22432 else
22433 case "${target}" in
22434 *-*-solaris2*)
22435 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22436 # format.
22438 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22439 # /usr/ccs/bin/ld has been configured.
22440 ld_ver=`$gcc_cv_ld -V 2>&1`
22441 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22442 ld_vers=`echo $ld_ver | sed -n \
22443 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22444 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22445 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22448 esac
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22453 $as_echo_n "checking linker for .hidden support... " >&6; }
22454 if test "${gcc_cv_ld_hidden+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 if test $in_tree_ld = yes ; then
22458 gcc_cv_ld_hidden=no
22459 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 \
22460 && test $in_tree_ld_is_elf = yes; then
22461 gcc_cv_ld_hidden=yes
22463 else
22464 gcc_cv_ld_hidden=yes
22465 if test x"$ld_is_gold" = xyes; then
22467 elif echo "$ld_ver" | grep GNU > /dev/null; then
22468 case "${target}" in
22469 mmix-knuth-mmixware)
22470 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22471 gcc_cv_ld_hidden=no
22473 esac
22474 if test 0"$ld_date" -lt 20020404; then
22475 if test -n "$ld_date"; then
22476 # If there was date string, but was earlier than 2002-04-04, fail
22477 gcc_cv_ld_hidden=no
22478 elif test -z "$ld_vers"; then
22479 # If there was no date string nor ld version number, something is wrong
22480 gcc_cv_ld_hidden=no
22481 else
22482 test -z "$ld_vers_patch" && ld_vers_patch=0
22483 if test "$ld_vers_major" -lt 2; then
22484 gcc_cv_ld_hidden=no
22485 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22486 gcc_cv_ld_hidden="no"
22487 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22488 gcc_cv_ld_hidden=no
22492 else
22493 case "${target}" in
22494 *-*-darwin*)
22495 # Darwin ld has some visibility support.
22496 gcc_cv_ld_hidden=yes
22498 hppa64*-*-hpux* | ia64*-*-hpux*)
22499 gcc_cv_ld_hidden=yes
22501 *-*-solaris2.1[0-9]*)
22502 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22503 # .symbolic was only added in Solaris 9 12/02.
22504 gcc_cv_ld_hidden=yes
22507 gcc_cv_ld_hidden=no
22509 esac
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22514 $as_echo "$gcc_cv_ld_hidden" >&6; }
22515 libgcc_visibility=no
22518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22519 libgcc_visibility=yes
22521 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22526 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22527 gcc_cv_ld_ro_rw_mix=unknown
22528 if test $in_tree_ld = yes ; then
22529 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 \
22530 && test $in_tree_ld_is_elf = yes; then
22531 gcc_cv_ld_ro_rw_mix=read-write
22533 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22534 echo '.section myfoosect, "a"' > conftest1.s
22535 echo '.section myfoosect, "aw"' > conftest2.s
22536 echo '.byte 1' >> conftest2.s
22537 echo '.section myfoosect, "a"' > conftest3.s
22538 echo '.byte 0' >> conftest3.s
22539 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22540 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22541 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22542 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22543 conftest2.o conftest3.o > /dev/null 2>&1; then
22544 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22545 | sed -e '/myfoosect/!d' -e N`
22546 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22547 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22548 gcc_cv_ld_ro_rw_mix=read-only
22549 else
22550 gcc_cv_ld_ro_rw_mix=read-write
22554 rm -f conftest.* conftest[123].*
22556 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22558 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22562 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22564 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22565 case "${target}" in
22566 *-*-solaris2*)
22568 # Solaris 2 ld -V output looks like this for a regular version:
22570 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22572 # but test versions add stuff at the end:
22574 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22576 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22577 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22578 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22579 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22580 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22581 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22584 esac
22587 # Check whether --enable-initfini-array was given.
22588 if test "${enable_initfini_array+set}" = set; then :
22589 enableval=$enable_initfini_array;
22590 else
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22593 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22594 if test "${gcc_cv_initfini_array+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22596 else
22597 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22598 case "${target}" in
22599 ia64-*)
22600 if test "$cross_compiling" = yes; then :
22601 gcc_cv_initfini_array=no
22602 else
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22606 #ifndef __ELF__
22607 #error Not an ELF OS
22608 #endif
22609 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22610 if it can be used. */
22611 static int x = -1;
22612 int main (void) { return x; }
22613 int foo (void) { x = 0; }
22614 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22616 _ACEOF
22617 if ac_fn_c_try_run "$LINENO"; then :
22618 gcc_cv_initfini_array=yes
22619 else
22620 gcc_cv_initfini_array=no
22622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22623 conftest.$ac_objext conftest.beam conftest.$ac_ext
22627 gcc_cv_initfini_array=no
22628 if test $in_tree_ld = yes ; then
22629 if test "$gcc_cv_gld_major_version" -eq 2 \
22630 -a "$gcc_cv_gld_minor_version" -ge 22 \
22631 -o "$gcc_cv_gld_major_version" -gt 2 \
22632 && test $in_tree_ld_is_elf = yes; then
22633 gcc_cv_initfini_array=yes
22635 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22636 cat > conftest.s <<\EOF
22637 .section .dtors,"a",%progbits
22638 .balign 4
22639 .byte 'A', 'A', 'A', 'A'
22640 .section .ctors,"a",%progbits
22641 .balign 4
22642 .byte 'B', 'B', 'B', 'B'
22643 .section .fini_array.65530,"a",%progbits
22644 .balign 4
22645 .byte 'C', 'C', 'C', 'C'
22646 .section .init_array.65530,"a",%progbits
22647 .balign 4
22648 .byte 'D', 'D', 'D', 'D'
22649 .section .dtors.64528,"a",%progbits
22650 .balign 4
22651 .byte 'E', 'E', 'E', 'E'
22652 .section .ctors.64528,"a",%progbits
22653 .balign 4
22654 .byte 'F', 'F', 'F', 'F'
22655 .section .fini_array.01005,"a",%progbits
22656 .balign 4
22657 .byte 'G', 'G', 'G', 'G'
22658 .section .init_array.01005,"a",%progbits
22659 .balign 4
22660 .byte 'H', 'H', 'H', 'H'
22661 .text
22662 .globl _start
22663 _start:
22665 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22666 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22667 && $gcc_cv_objdump -s -j .init_array conftest \
22668 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22669 && $gcc_cv_objdump -s -j .fini_array conftest \
22670 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22671 gcc_cv_initfini_array=yes
22673 rm -f conftest conftest.*
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22678 #ifndef __ELF__
22679 # error Not an ELF OS
22680 #endif
22681 #include <stdlib.h>
22682 #if defined __GLIBC_PREREQ
22683 # if __GLIBC_PREREQ (2, 4)
22684 # else
22685 # error GLIBC 2.4 required
22686 # endif
22687 #else
22688 # if defined __sun__ && defined __svr4__
22689 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22690 # else
22691 # error The C library not known to support .init_array/.fini_array
22692 # endif
22693 #endif
22695 _ACEOF
22696 if ac_fn_c_try_cpp "$LINENO"; then :
22698 else
22699 gcc_cv_initfini_array=no
22701 rm -f conftest.err conftest.$ac_ext;;
22702 esac
22703 else
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22705 $as_echo_n "checking cross compile... guessing... " >&6; }
22706 gcc_cv_initfini_array=no
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22710 $as_echo "$gcc_cv_initfini_array" >&6; }
22711 enable_initfini_array=$gcc_cv_initfini_array
22715 if test $enable_initfini_array = yes; then
22717 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22721 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22723 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22724 if test "${gcc_cv_as_leb128+set}" = set; then :
22725 $as_echo_n "(cached) " >&6
22726 else
22727 gcc_cv_as_leb128=no
22728 if test $in_tree_gas = yes; then
22729 if test $in_tree_gas_is_elf = yes \
22730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22731 then gcc_cv_as_leb128=yes
22733 elif test x$gcc_cv_as != x; then
22734 $as_echo ' .data
22735 .uleb128 L2 - L1
22737 .uleb128 1280
22738 .sleb128 -1010
22739 L2:' > conftest.s
22740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22745 test $ac_status = 0; }; }
22746 then
22747 # GAS versions before 2.11 do not support uleb128,
22748 # despite appearing to.
22749 # ??? There exists an elf-specific test that will crash
22750 # the assembler. Perhaps it's better to figure out whether
22751 # arbitrary sections are supported and try the test.
22752 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22753 if echo "$as_ver" | grep GNU > /dev/null; then
22754 as_vers=`echo $as_ver | sed -n \
22755 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22756 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22757 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22758 if test $as_major -eq 2 && test $as_minor -lt 11
22759 then :
22760 else gcc_cv_as_leb128=yes
22763 else
22764 echo "configure: failed program was" >&5
22765 cat conftest.s >&5
22767 rm -f conftest.o conftest.s
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22771 $as_echo "$gcc_cv_as_leb128" >&6; }
22772 if test $gcc_cv_as_leb128 = yes; then
22774 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22778 # Check if we have assembler support for unwind directives.
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22780 $as_echo_n "checking assembler for cfi directives... " >&6; }
22781 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22782 $as_echo_n "(cached) " >&6
22783 else
22784 gcc_cv_as_cfi_directive=no
22785 if test x$gcc_cv_as != x; then
22786 $as_echo ' .text
22787 .cfi_startproc
22788 .cfi_offset 0, 0
22789 .cfi_same_value 1
22790 .cfi_def_cfa 1, 2
22791 .cfi_escape 1, 2, 3, 4, 5
22792 .cfi_endproc' > conftest.s
22793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798 test $ac_status = 0; }; }
22799 then
22800 case "$target" in
22801 *-*-solaris*)
22802 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22803 # read-only and read-write sections, we need to make sure that the
22804 # assembler used emits read-write .eh_frame sections.
22805 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22806 if test "x$gcc_cv_objdump" != x; then
22807 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22808 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22809 gcc_cv_as_cfi_directive=no
22810 else
22811 case "$target" in
22812 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22813 # On Solaris/x86, make sure that GCC and assembler agree on using
22814 # read-only .eh_frame sections for 64-bit.
22815 if test x$gas = xyes; then
22816 as_ix86_64_opt="--64"
22817 else
22818 as_ix86_64_opt="-xarch=amd64"
22820 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22821 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22822 sed -e /.eh_frame/!d -e N | \
22823 grep READONLY > /dev/null; then
22824 gcc_cv_as_cfi_directive=yes
22825 else
22826 gcc_cv_as_cfi_directive=no
22830 gcc_cv_as_cfi_directive=yes
22832 esac
22834 else
22835 # no objdump, err on the side of caution
22836 gcc_cv_as_cfi_directive=no
22838 else
22839 gcc_cv_as_cfi_directive=yes
22842 *-*-*)
22843 gcc_cv_as_cfi_directive=yes
22845 esac
22846 else
22847 echo "configure: failed program was" >&5
22848 cat conftest.s >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22854 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22856 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22858 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22859 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 gcc_cv_as_cfi_advance_working=no
22863 if test x$gcc_cv_as != x; then
22864 $as_echo ' .text
22865 .cfi_startproc
22866 .cfi_adjust_cfa_offset 64
22867 .skip 75040, 0
22868 .cfi_adjust_cfa_offset 128
22869 .cfi_endproc' > conftest.s
22870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22876 then
22878 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22879 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22880 gcc_cv_as_cfi_advance_working=yes
22883 else
22884 echo "configure: failed program was" >&5
22885 cat conftest.s >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22891 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22893 else
22894 # no objdump, err on the side of caution
22895 gcc_cv_as_cfi_advance_working=no
22899 cat >>confdefs.h <<_ACEOF
22900 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22901 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22902 _ACEOF
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22907 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22908 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22910 else
22911 gcc_cv_as_cfi_personality_directive=no
22912 if test x$gcc_cv_as != x; then
22913 $as_echo ' .text
22914 .cfi_startproc
22915 .cfi_personality 0, symbol
22916 .cfi_endproc' > conftest.s
22917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22923 then
22924 gcc_cv_as_cfi_personality_directive=yes
22925 else
22926 echo "configure: failed program was" >&5
22927 cat conftest.s >&5
22929 rm -f conftest.o conftest.s
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22933 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22938 then echo 1; else echo 0; fi`
22939 _ACEOF
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22943 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22944 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22945 $as_echo_n "(cached) " >&6
22946 else
22947 gcc_cv_as_cfi_sections_directive=no
22948 if test x$gcc_cv_as != x; then
22949 $as_echo ' .text
22950 .cfi_sections .debug_frame, .eh_frame
22951 .cfi_startproc
22952 .cfi_endproc' > conftest.s
22953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22958 test $ac_status = 0; }; }
22959 then
22960 case $target_os in
22961 win32 | pe | cygwin* | mingw32* | uwin*)
22962 # Need to check that we generated the correct relocation for the
22963 # .debug_frame section. This was fixed for binutils 2.21.
22964 gcc_cv_as_cfi_sections_directive=no
22965 if test "x$gcc_cv_objdump" != x; then
22966 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22967 grep secrel > /dev/null; then
22968 gcc_cv_as_cfi_sections_directive=yes
22973 gcc_cv_as_cfi_sections_directive=yes
22975 esac
22976 else
22977 echo "configure: failed program was" >&5
22978 cat conftest.s >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22984 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22988 cat >>confdefs.h <<_ACEOF
22989 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22990 then echo 1; else echo 0; fi`
22991 _ACEOF
22994 # GAS versions up to and including 2.11.0 may mis-optimize
22995 # .eh_frame data.
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22997 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22998 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22999 $as_echo_n "(cached) " >&6
23000 else
23001 gcc_cv_as_eh_frame=no
23002 if test $in_tree_gas = yes; then
23003 if test $in_tree_gas_is_elf = yes \
23004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23005 then gcc_cv_as_eh_frame=yes
23007 elif test x$gcc_cv_as != x; then
23008 $as_echo ' .text
23009 .LFB1:
23010 .4byte 0
23011 .L1:
23012 .4byte 0
23013 .LFE1:
23014 .section .eh_frame,"aw",@progbits
23015 __FRAME_BEGIN__:
23016 .4byte .LECIE1-.LSCIE1
23017 .LSCIE1:
23018 .4byte 0x0
23019 .byte 0x1
23020 .ascii "z\0"
23021 .byte 0x1
23022 .byte 0x78
23023 .byte 0x1a
23024 .byte 0x0
23025 .byte 0x4
23026 .4byte 1
23027 .p2align 1
23028 .LECIE1:
23029 .LSFDE1:
23030 .4byte .LEFDE1-.LASFDE1
23031 .LASFDE1:
23032 .4byte .LASFDE1-__FRAME_BEGIN__
23033 .4byte .LFB1
23034 .4byte .LFE1-.LFB1
23035 .byte 0x4
23036 .4byte .LFE1-.LFB1
23037 .byte 0x4
23038 .4byte .L1-.LFB1
23039 .LEFDE1:' > conftest.s
23040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23045 test $ac_status = 0; }; }
23046 then
23047 cat > conftest.lit <<EOF
23048 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23049 0010 01000000 12000000 18000000 00000000 ................
23050 0020 08000000 04080000 0044 .........D
23052 cat > conftest.big <<EOF
23053 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23054 0010 00000001 00000012 00000018 00000000 ................
23055 0020 00000008 04000000 0844 .........D
23057 # If the assembler didn't choke, and we can objdump,
23058 # and we got the correct data, then succeed.
23059 # The text in the here-document typically retains its unix-style line
23060 # endings, while the output of objdump will use host line endings.
23061 # Therefore, use diff -b for the comparisons.
23062 if test x$gcc_cv_objdump != x \
23063 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23064 | tail -3 > conftest.got \
23065 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23066 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23067 then
23068 gcc_cv_as_eh_frame=yes
23069 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23074 test $ac_status = 0; }; }; then
23075 gcc_cv_as_eh_frame=buggy
23076 else
23077 # Uh oh, what do we do now?
23078 gcc_cv_as_eh_frame=no
23080 else
23081 echo "configure: failed program was" >&5
23082 cat conftest.s >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23088 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23091 if test $gcc_cv_as_eh_frame = buggy; then
23093 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23098 $as_echo_n "checking assembler for section merging support... " >&6; }
23099 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23101 else
23102 gcc_cv_as_shf_merge=no
23103 if test $in_tree_gas = yes; then
23104 if test $in_tree_gas_is_elf = yes \
23105 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23106 then gcc_cv_as_shf_merge=yes
23108 elif test x$gcc_cv_as != x; then
23109 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23115 test $ac_status = 0; }; }
23116 then
23117 gcc_cv_as_shf_merge=yes
23118 else
23119 echo "configure: failed program was" >&5
23120 cat conftest.s >&5
23122 rm -f conftest.o conftest.s
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23126 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23128 if test $gcc_cv_as_shf_merge = no; then
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23130 $as_echo_n "checking assembler for section merging support... " >&6; }
23131 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23133 else
23134 gcc_cv_as_shf_merge=no
23135 if test $in_tree_gas = yes; then
23136 if test $in_tree_gas_is_elf = yes \
23137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23138 then gcc_cv_as_shf_merge=yes
23140 elif test x$gcc_cv_as != x; then
23141 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23148 then
23149 gcc_cv_as_shf_merge=yes
23150 else
23151 echo "configure: failed program was" >&5
23152 cat conftest.s >&5
23154 rm -f conftest.o conftest.s
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23158 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23162 cat >>confdefs.h <<_ACEOF
23163 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23164 _ACEOF
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23168 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23169 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23170 $as_echo_n "(cached) " >&6
23171 else
23172 gcc_cv_as_comdat_group=no
23173 if test $in_tree_gas = yes; then
23174 if test $in_tree_gas_is_elf = yes \
23175 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23176 then gcc_cv_as_comdat_group=yes
23178 elif test x$gcc_cv_as != x; then
23179 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23185 test $ac_status = 0; }; }
23186 then
23187 gcc_cv_as_comdat_group=yes
23188 else
23189 echo "configure: failed program was" >&5
23190 cat conftest.s >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23196 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23198 if test $gcc_cv_as_comdat_group = yes; then
23199 gcc_cv_as_comdat_group_percent=no
23200 gcc_cv_as_comdat_group_group=no
23201 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23203 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23204 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23205 $as_echo_n "(cached) " >&6
23206 else
23207 gcc_cv_as_comdat_group_percent=no
23208 if test $in_tree_gas = yes; then
23209 if test $in_tree_gas_is_elf = yes \
23210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23211 then gcc_cv_as_comdat_group_percent=yes
23213 elif test x$gcc_cv_as != x; then
23214 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220 test $ac_status = 0; }; }
23221 then
23222 gcc_cv_as_comdat_group_percent=yes
23223 else
23224 echo "configure: failed program was" >&5
23225 cat conftest.s >&5
23227 rm -f conftest.o conftest.s
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23231 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23233 if test $gcc_cv_as_comdat_group_percent = yes; then
23234 gcc_cv_as_comdat_group_group=no
23235 else
23236 case "${target}" in
23237 # Sun as uses a completely different syntax.
23238 *-*-solaris2*)
23239 case "${target}" in
23240 sparc*-*-solaris2*)
23241 conftest_s='
23242 .group foo,".text%foo",#comdat
23243 .section ".text%foo", #alloc,#execinstr,#progbits
23244 .globl foo
23245 foo:
23248 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23249 conftest_s='
23250 .group foo,.text%foo,#comdat
23251 .section .text%foo, "ax", @progbits
23252 .globl foo
23253 foo:
23256 esac
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23258 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23259 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23260 $as_echo_n "(cached) " >&6
23261 else
23262 gcc_cv_as_comdat_group_group=no
23263 if test x$gcc_cv_as != x; then
23264 $as_echo "$conftest_s" > conftest.s
23265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23270 test $ac_status = 0; }; }
23271 then
23272 gcc_cv_as_comdat_group_group=yes
23273 else
23274 echo "configure: failed program was" >&5
23275 cat conftest.s >&5
23277 rm -f conftest.o conftest.s
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23281 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23284 esac
23285 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23286 gcc_cv_as_comdat_group_group=no
23290 if test x"$ld_is_gold" = xyes; then
23291 comdat_group=yes
23292 elif test $in_tree_ld = yes ; then
23293 comdat_group=no
23294 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 \
23295 && test $in_tree_ld_is_elf = yes; then
23296 comdat_group=yes
23298 elif echo "$ld_ver" | grep GNU > /dev/null; then
23299 comdat_group=yes
23300 if test 0"$ld_date" -lt 20050308; then
23301 if test -n "$ld_date"; then
23302 # If there was date string, but was earlier than 2005-03-08, fail
23303 comdat_group=no
23304 elif test "$ld_vers_major" -lt 2; then
23305 comdat_group=no
23306 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23307 comdat_group=no
23310 else
23311 case "${target}" in
23312 *-*-solaris2.1[1-9]*)
23313 comdat_group=no
23314 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23315 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23316 # version 1.688.
23318 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23319 # least ld version 1.2267.
23320 if test "$ld_vers_major" -gt 1; then
23321 comdat_group=yes
23322 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23323 comdat_group=yes
23324 elif test "$ld_vers_minor" -ge 2267; then
23325 comdat_group=yes
23329 # Assume linkers other than GNU ld don't support COMDAT group.
23330 comdat_group=no
23332 esac
23334 # Allow overriding the automatic COMDAT group tests above.
23335 # Check whether --enable-comdat was given.
23336 if test "${enable_comdat+set}" = set; then :
23337 enableval=$enable_comdat; comdat_group="$enable_comdat"
23340 if test $comdat_group = no; then
23341 gcc_cv_as_comdat_group=no
23342 gcc_cv_as_comdat_group_percent=no
23343 gcc_cv_as_comdat_group_group=no
23346 cat >>confdefs.h <<_ACEOF
23347 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23348 || test $gcc_cv_as_comdat_group_percent = yes \
23349 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23350 _ACEOF
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23354 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23355 if test "${gcc_cv_as_discriminator+set}" = set; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358 gcc_cv_as_discriminator=no
23359 if test $in_tree_gas = yes; then
23360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23361 then gcc_cv_as_discriminator=yes
23363 elif test x$gcc_cv_as != x; then
23364 $as_echo ' .text
23365 .file 1 "conf.c"
23366 .loc 1 1 0 discriminator 1' > conftest.s
23367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23373 then
23374 gcc_cv_as_discriminator=yes
23375 else
23376 echo "configure: failed program was" >&5
23377 cat conftest.s >&5
23379 rm -f conftest.o conftest.s
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23383 $as_echo "$gcc_cv_as_discriminator" >&6; }
23384 if test $gcc_cv_as_discriminator = yes; then
23386 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23390 # Thread-local storage - the check is heavily parameterized.
23391 conftest_s=
23392 tls_first_major=
23393 tls_first_minor=
23394 tls_as_opt=
23395 case "$target" in
23396 alpha*-*-*)
23397 conftest_s='
23398 .section ".tdata","awT",@progbits
23399 foo: .long 25
23400 .text
23401 ldq $27,__tls_get_addr($29) !literal!1
23402 lda $16,foo($29) !tlsgd!1
23403 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23404 ldq $27,__tls_get_addr($29) !literal!2
23405 lda $16,foo($29) !tlsldm!2
23406 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23407 ldq $1,foo($29) !gotdtprel
23408 ldah $2,foo($29) !dtprelhi
23409 lda $3,foo($2) !dtprello
23410 lda $4,foo($29) !dtprel
23411 ldq $1,foo($29) !gottprel
23412 ldah $2,foo($29) !tprelhi
23413 lda $3,foo($2) !tprello
23414 lda $4,foo($29) !tprel'
23415 tls_first_major=2
23416 tls_first_minor=13
23417 tls_as_opt=--fatal-warnings
23419 cris-*-*|crisv32-*-*)
23420 conftest_s='
23421 .section ".tdata","awT",@progbits
23422 x: .long 25
23423 .text
23424 move.d x:IE,$r10
23425 nop'
23426 tls_first_major=2
23427 tls_first_minor=20
23428 tls_as_opt=--fatal-warnings
23430 frv*-*-*)
23431 conftest_s='
23432 .section ".tdata","awT",@progbits
23433 x: .long 25
23434 .text
23435 call #gettlsoff(x)'
23436 tls_first_major=2
23437 tls_first_minor=14
23439 hppa*-*-linux*)
23440 conftest_s='
23441 t1: .reg %r20
23442 t2: .reg %r21
23443 gp: .reg %r19
23444 .section ".tdata","awT",@progbits
23445 foo: .long 25
23446 .text
23447 .align 4
23448 addil LT%foo-$tls_gdidx$,gp
23449 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23450 b __tls_get_addr
23452 addil LT%foo-$tls_ldidx$,gp
23453 b __tls_get_addr
23454 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23455 addil LR%foo-$tls_dtpoff$,%ret0
23456 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23457 mfctl %cr27,%t1
23458 addil LT%foo-$tls_ieoff$,gp
23459 ldw RT%foo-$tls_ieoff$(%r1),%t2
23460 add %t1,%t2,%t3
23461 mfctl %cr27,%t1
23462 addil LR%foo-$tls_leoff$,%t1
23463 ldo RR%foo-$tls_leoff$(%r1),%t2'
23464 tls_first_major=2
23465 tls_first_minor=15
23466 tls_as_opt=--fatal-warnings
23468 arm*-*-*)
23469 conftest_s='
23470 .section ".tdata","awT",%progbits
23471 foo: .long 25
23472 .text
23473 .word foo(gottpoff)
23474 .word foo(tpoff)
23475 .word foo(tlsgd)
23476 .word foo(tlsldm)
23477 .word foo(tlsldo)'
23478 tls_first_major=2
23479 tls_first_minor=17
23481 i[34567]86-*-* | x86_64-*-*)
23482 case "$target" in
23483 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23484 on_solaris=yes
23487 on_solaris=no
23489 esac
23490 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23491 conftest_s='
23492 .section .tdata,"awt",@progbits'
23493 tls_first_major=0
23494 tls_first_minor=0
23495 tls_section_flag=t
23497 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23499 else
23500 conftest_s='
23501 .section ".tdata","awT",@progbits'
23502 tls_first_major=2
23503 tls_first_minor=14
23504 tls_section_flag=T
23505 tls_as_opt="--fatal-warnings"
23507 case "$target" in
23508 i[34567]86-*-*)
23509 conftest_s="$conftest_s
23510 foo: .long 25
23511 .text
23512 movl %gs:0, %eax
23513 leal foo@tlsgd(,%ebx,1), %eax
23514 leal foo@tlsldm(%ebx), %eax
23515 leal foo@dtpoff(%eax), %edx
23516 movl foo@gottpoff(%ebx), %eax
23517 subl foo@gottpoff(%ebx), %eax
23518 addl foo@gotntpoff(%ebx), %eax
23519 movl foo@indntpoff, %eax
23520 movl \$foo@tpoff, %eax
23521 subl \$foo@tpoff, %eax
23522 leal foo@ntpoff(%ecx), %eax"
23524 x86_64-*-*)
23525 if test x$on_solaris = xyes; then
23526 case $gas_flag in
23527 yes) tls_as_opt="$tls_as_opt --64" ;;
23528 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23529 esac
23531 conftest_s="$conftest_s
23532 foo: .long 25
23533 .text
23534 movq %fs:0, %rax
23535 leaq foo@tlsgd(%rip), %rdi
23536 leaq foo@tlsld(%rip), %rdi
23537 leaq foo@dtpoff(%rax), %rdx
23538 movq foo@gottpoff(%rip), %rax
23539 movq \$foo@tpoff, %rax"
23541 esac
23543 ia64-*-*)
23544 conftest_s='
23545 .section ".tdata","awT",@progbits
23546 foo: data8 25
23547 .text
23548 addl r16 = @ltoff(@dtpmod(foo#)), gp
23549 addl r17 = @ltoff(@dtprel(foo#)), gp
23550 addl r18 = @ltoff(@tprel(foo#)), gp
23551 addl r19 = @dtprel(foo#), gp
23552 adds r21 = @dtprel(foo#), r13
23553 movl r23 = @dtprel(foo#)
23554 addl r20 = @tprel(foo#), gp
23555 adds r22 = @tprel(foo#), r13
23556 movl r24 = @tprel(foo#)'
23557 tls_first_major=2
23558 tls_first_minor=13
23559 tls_as_opt=--fatal-warnings
23561 microblaze*-*-*)
23562 conftest_s='
23563 .section .tdata,"awT",@progbits
23565 .word 2
23566 .text
23567 addik r5,r20,x@TLSGD
23568 addik r5,r20,x@TLSLDM'
23569 tls_first_major=2
23570 tls_first_minor=20
23571 tls_as_opt='--fatal-warnings'
23573 mips*-*-*)
23574 conftest_s='
23575 .section .tdata,"awT",@progbits
23577 .word 2
23578 .text
23579 addiu $4, $28, %tlsgd(x)
23580 addiu $4, $28, %tlsldm(x)
23581 lui $4, %dtprel_hi(x)
23582 addiu $4, $4, %dtprel_lo(x)
23583 lw $4, %gottprel(x)($28)
23584 lui $4, %tprel_hi(x)
23585 addiu $4, $4, %tprel_lo(x)'
23586 tls_first_major=2
23587 tls_first_minor=16
23588 tls_as_opt='-32 --fatal-warnings'
23590 m68k-*-*)
23591 conftest_s='
23592 .section .tdata,"awT",@progbits
23594 .word 2
23595 .text
23596 foo:
23597 move.l x@TLSGD(%a5),%a0
23598 move.l x@TLSLDM(%a5),%a0
23599 move.l x@TLSLDO(%a5),%a0
23600 move.l x@TLSIE(%a5),%a0
23601 move.l x@TLSLE(%a5),%a0'
23602 tls_first_major=2
23603 tls_first_minor=19
23604 tls_as_opt='--fatal-warnings'
23606 nios2-*-*)
23607 conftest_s='
23608 .section ".tdata","awT",@progbits'
23609 tls_first_major=2
23610 tls_first_minor=23
23611 tls_as_opt="--fatal-warnings"
23613 aarch64*-*-*)
23614 conftest_s='
23615 .section ".tdata","awT",%progbits
23616 foo: .long 25
23617 .text
23618 adrp x0, :tlsgd:x
23619 add x0, x0, #:tlsgd_lo12:x
23620 bl __tls_get_addr
23621 nop'
23622 tls_first_major=2
23623 tls_first_minor=20
23624 tls_as_opt='--fatal-warnings'
23626 powerpc-ibm-aix*)
23627 conftest_s='
23628 .extern __get_tpointer
23629 .toc
23630 LC..1:
23631 .tc a[TC],a[TL]@le
23632 .csect .text[PR]
23633 .tlstest:
23634 lwz 9,LC..1(2)
23635 bla __get_tpointer
23636 lwzx 3,9,3
23637 .globl a
23638 .csect a[TL],4
23640 .space 4'
23641 tls_first_major=0
23642 tls_first_minor=0
23644 powerpc64*-*-*)
23645 conftest_s='
23646 .section ".tdata","awT",@progbits
23647 .align 3
23648 ld0: .space 8
23649 ld1: .space 8
23650 x1: .space 8
23651 x2: .space 8
23652 x3: .space 8
23653 .text
23654 addi 3,2,ld0@got@tlsgd
23655 bl .__tls_get_addr
23657 addi 3,2,ld1@toc
23658 bl .__tls_get_addr
23660 addi 3,2,x1@got@tlsld
23661 bl .__tls_get_addr
23663 addi 9,3,x1@dtprel
23664 bl .__tls_get_addr
23666 addis 9,3,x2@dtprel@ha
23667 addi 9,9,x2@dtprel@l
23668 bl .__tls_get_addr
23670 ld 9,x3@got@dtprel(2)
23671 add 9,9,3
23672 bl .__tls_get_addr
23673 nop'
23674 tls_first_major=2
23675 tls_first_minor=14
23676 tls_as_opt="-a64 --fatal-warnings"
23678 powerpc*-*-*)
23679 conftest_s='
23680 .section ".tdata","awT",@progbits
23681 .align 2
23682 ld0: .space 4
23683 ld1: .space 4
23684 x1: .space 4
23685 x2: .space 4
23686 x3: .space 4
23687 .text
23688 addi 3,31,ld0@got@tlsgd
23689 bl __tls_get_addr
23690 addi 3,31,x1@got@tlsld
23691 bl __tls_get_addr
23692 addi 9,3,x1@dtprel
23693 addis 9,3,x2@dtprel@ha
23694 addi 9,9,x2@dtprel@l
23695 lwz 9,x3@got@tprel(31)
23696 add 9,9,x@tls
23697 addi 9,2,x1@tprel
23698 addis 9,2,x2@tprel@ha
23699 addi 9,9,x2@tprel@l'
23700 tls_first_major=2
23701 tls_first_minor=14
23702 tls_as_opt="-a32 --fatal-warnings"
23704 s390-*-*)
23705 conftest_s='
23706 .section ".tdata","awT",@progbits
23707 foo: .long 25
23708 .text
23709 .long foo@TLSGD
23710 .long foo@TLSLDM
23711 .long foo@DTPOFF
23712 .long foo@NTPOFF
23713 .long foo@GOTNTPOFF
23714 .long foo@INDNTPOFF
23715 l %r1,foo@GOTNTPOFF(%r12)
23716 l %r1,0(%r1):tls_load:foo
23717 bas %r14,0(%r1,%r13):tls_gdcall:foo
23718 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23719 tls_first_major=2
23720 tls_first_minor=14
23721 tls_as_opt="-m31 --fatal-warnings"
23723 s390x-*-*)
23724 conftest_s='
23725 .section ".tdata","awT",@progbits
23726 foo: .long 25
23727 .text
23728 .quad foo@TLSGD
23729 .quad foo@TLSLDM
23730 .quad foo@DTPOFF
23731 .quad foo@NTPOFF
23732 .quad foo@GOTNTPOFF
23733 lg %r1,foo@GOTNTPOFF(%r12)
23734 larl %r1,foo@INDNTPOFF
23735 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23736 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23737 tls_first_major=2
23738 tls_first_minor=14
23739 tls_as_opt="-m64 -Aesame --fatal-warnings"
23741 sh-*-* | sh[34]-*-*)
23742 conftest_s='
23743 .section ".tdata","awT",@progbits
23744 foo: .long 25
23745 .text
23746 .long foo@TLSGD
23747 .long foo@TLSLDM
23748 .long foo@DTPOFF
23749 .long foo@GOTTPOFF
23750 .long foo@TPOFF'
23751 tls_first_major=2
23752 tls_first_minor=13
23753 tls_as_opt=--fatal-warnings
23755 sparc*-*-*)
23756 case "$target" in
23757 sparc*-sun-solaris2.*)
23758 on_solaris=yes
23761 on_solaris=no
23763 esac
23764 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23765 conftest_s='
23766 .section ".tdata",#alloc,#write,#tls'
23767 tls_first_major=0
23768 tls_first_minor=0
23769 else
23770 conftest_s='
23771 .section ".tdata","awT",@progbits'
23772 tls_first_major=2
23773 tls_first_minor=14
23774 tls_as_opt="-32 --fatal-warnings"
23776 conftest_s="$conftest_s
23777 foo: .long 25
23778 .text
23779 sethi %tgd_hi22(foo), %o0
23780 add %o0, %tgd_lo10(foo), %o1
23781 add %l7, %o1, %o0, %tgd_add(foo)
23782 call __tls_get_addr, %tgd_call(foo)
23783 sethi %tldm_hi22(foo), %l1
23784 add %l1, %tldm_lo10(foo), %l2
23785 add %l7, %l2, %o0, %tldm_add(foo)
23786 call __tls_get_addr, %tldm_call(foo)
23787 sethi %tldo_hix22(foo), %l3
23788 xor %l3, %tldo_lox10(foo), %l4
23789 add %o0, %l4, %l5, %tldo_add(foo)
23790 sethi %tie_hi22(foo), %o3
23791 add %o3, %tie_lo10(foo), %o3
23792 ld [%l7 + %o3], %o2, %tie_ld(foo)
23793 add %g7, %o2, %o4, %tie_add(foo)
23794 sethi %tle_hix22(foo), %l1
23795 xor %l1, %tle_lox10(foo), %o5
23796 ld [%g7 + %o5], %o1"
23798 tilepro*-*-*)
23799 conftest_s='
23800 .section ".tdata","awT",@progbits
23801 foo: .long 25
23802 .text
23803 addli r0, zero, tls_gd(foo)
23804 auli r0, zero, tls_gd_ha16(foo)
23805 addli r0, r0, tls_gd_lo16(foo)
23806 jal __tls_get_addr
23807 addli r0, zero, tls_ie(foo)
23808 auli r0, r0, tls_ie_ha16(foo)
23809 addli r0, r0, tls_ie_lo16(foo)'
23810 tls_first_major=2
23811 tls_first_minor=22
23812 tls_as_opt="--fatal-warnings"
23814 tilegx*-*-*)
23815 conftest_s='
23816 .section ".tdata","awT",@progbits
23817 foo: .long 25
23818 .text
23819 shl16insli r0, zero, hw0_last_tls_gd(foo)
23820 shl16insli r0, zero, hw1_last_tls_gd(foo)
23821 shl16insli r0, r0, hw0_tls_gd(foo)
23822 jal __tls_get_addr
23823 shl16insli r0, zero, hw1_last_tls_ie(foo)
23824 shl16insli r0, r0, hw0_tls_ie(foo)'
23825 tls_first_major=2
23826 tls_first_minor=22
23827 tls_as_opt="--fatal-warnings"
23829 xtensa*-*-*)
23830 conftest_s='
23831 .section ".tdata","awT",@progbits
23832 foo: .long 25
23833 .text
23834 movi a8, foo@TLSFUNC
23835 movi a10, foo@TLSARG
23836 callx8.tls a8, foo@TLSCALL'
23837 tls_first_major=2
23838 tls_first_minor=19
23840 esac
23841 set_have_as_tls=no
23842 if test "x$enable_tls" = xno ; then
23843 : # TLS explicitly disabled.
23844 elif test "x$enable_tls" = xyes ; then
23845 set_have_as_tls=yes # TLS explicitly enabled.
23846 elif test -z "$tls_first_major"; then
23847 : # If we don't have a check, assume no support.
23848 else
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23850 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23851 if test "${gcc_cv_as_tls+set}" = set; then :
23852 $as_echo_n "(cached) " >&6
23853 else
23854 gcc_cv_as_tls=no
23855 if test $in_tree_gas = yes; then
23856 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23857 then gcc_cv_as_tls=yes
23859 elif test x$gcc_cv_as != x; then
23860 $as_echo "$conftest_s" > conftest.s
23861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23863 (eval $ac_try) 2>&5
23864 ac_status=$?
23865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23866 test $ac_status = 0; }; }
23867 then
23868 gcc_cv_as_tls=yes
23869 else
23870 echo "configure: failed program was" >&5
23871 cat conftest.s >&5
23873 rm -f conftest.o conftest.s
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23877 $as_echo "$gcc_cv_as_tls" >&6; }
23878 if test $gcc_cv_as_tls = yes; then
23879 set_have_as_tls=yes
23882 if test $set_have_as_tls = yes ; then
23884 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23888 # Target-specific assembler checks.
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23891 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23892 gcc_cv_ld_static_dynamic=no
23893 gcc_cv_ld_static_option='-Bstatic'
23894 gcc_cv_ld_dynamic_option='-Bdynamic'
23895 if test $in_tree_ld = yes ; then
23896 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
23897 gcc_cv_ld_static_dynamic=yes
23899 elif test x$gcc_cv_ld != x; then
23900 # Check if linker supports -Bstatic/-Bdynamic option
23901 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23902 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23903 gcc_cv_ld_static_dynamic=yes
23904 else
23905 case "$target" in
23906 # AIX ld uses -b flags
23907 *-*-aix4.[23]* | *-*-aix[5-9]*)
23908 gcc_cv_ld_static_dynamic=yes
23909 gcc_cv_ld_static_option="-bstatic"
23910 gcc_cv_ld_dynamic_option="-bdynamic"
23912 # HP-UX ld uses -a flags to select between shared and archive.
23913 *-*-hpux*)
23914 if test x"$gnu_ld" = xno; then
23915 gcc_cv_ld_static_dynamic=yes
23916 gcc_cv_ld_static_option="-aarchive_shared"
23917 gcc_cv_ld_dynamic_option="-adefault"
23920 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23921 *-*-solaris2*)
23922 gcc_cv_ld_static_dynamic=yes
23924 esac
23927 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23929 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23932 cat >>confdefs.h <<_ACEOF
23933 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23934 _ACEOF
23937 cat >>confdefs.h <<_ACEOF
23938 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23939 _ACEOF
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23943 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23945 if test x"$demangler_in_ld" = xyes; then
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23947 $as_echo_n "checking linker --demangle support... " >&6; }
23948 gcc_cv_ld_demangle=no
23949 if test $in_tree_ld = yes; then
23950 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 \
23951 gcc_cv_ld_demangle=yes
23953 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23954 # Check if the GNU linker supports --demangle option
23955 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23956 gcc_cv_ld_demangle=yes
23959 if test x"$gcc_cv_ld_demangle" = xyes; then
23961 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23965 $as_echo "$gcc_cv_ld_demangle" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23969 $as_echo_n "checking linker plugin support... " >&6; }
23970 gcc_cv_lto_plugin=0
23971 if test -f liblto_plugin.la; then
23972 save_ld_ver="$ld_ver"
23973 save_ld_vers_major="$ld_vers_major"
23974 save_ld_vers_minor="$ld_vers_minor"
23975 save_ld_is_gold="$ld_is_gold"
23977 ld_is_gold=no
23979 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23980 ld_ver="GNU ld"
23981 # FIXME: ld_is_gold?
23982 ld_vers_major="$gcc_cv_gld_major_version"
23983 ld_vers_minor="$gcc_cv_gld_minor_version"
23984 else
23985 # Determine plugin linker version.
23986 # FIXME: Partial duplicate from above, generalize.
23987 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23988 if echo "$ld_ver" | grep GNU > /dev/null; then
23989 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23990 ld_is_gold=yes
23991 ld_vers=`echo $ld_ver | sed -n \
23992 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23993 else
23994 ld_vers=`echo $ld_ver | sed -n \
23995 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23997 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23998 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24002 # Determine plugin support.
24003 if echo "$ld_ver" | grep GNU > /dev/null; then
24004 # Require GNU ld or gold 2.21+ for plugin support by default.
24005 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24006 gcc_cv_lto_plugin=2
24007 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24008 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24009 gcc_cv_lto_plugin=1
24013 ld_ver="$save_ld_ver"
24014 ld_vers_major="$save_ld_vers_major"
24015 ld_vers_minor="$save_ld_vers_minor"
24016 ld_is_gold="$save_ld_is_gold"
24019 cat >>confdefs.h <<_ACEOF
24020 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24021 _ACEOF
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24024 $as_echo "$gcc_cv_lto_plugin" >&6; }
24026 case "$target" in
24027 aarch64*-*-*)
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24029 $as_echo_n "checking assembler for -mabi option... " >&6; }
24030 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24032 else
24033 gcc_cv_as_aarch64_mabi=no
24034 if test x$gcc_cv_as != x; then
24035 $as_echo '.text' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 gcc_cv_as_aarch64_mabi=yes
24044 else
24045 echo "configure: failed program was" >&5
24046 cat conftest.s >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24052 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24054 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24056 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24058 else
24059 if test x$with_abi = xilp32; then
24060 as_fn_error "Assembler does not support -mabi=ilp32.\
24061 Upgrade the Assembler." "$LINENO" 5
24063 if test x"$with_multilib_list" = xdefault; then
24064 TM_MULTILIB_CONFIG=lp64
24065 else
24066 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24067 for aarch64_multilib in ${aarch64_multilibs}; do
24068 case ${aarch64_multilib} in
24069 ilp32)
24070 as_fn_error "Assembler does not support -mabi=ilp32.\
24071 Upgrade the Assembler." "$LINENO" 5
24075 esac
24076 done
24079 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24080 # Check whether --enable-fix-cortex-a53-835769 was given.
24081 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24082 enableval=$enable_fix_cortex_a53_835769;
24083 case $enableval in
24084 yes)
24085 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24090 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24091 Valid choices are 'yes' and 'no'." "$LINENO" 5
24094 esac
24100 # All TARGET_ABI_OSF targets.
24101 alpha*-*-linux* | alpha*-*-*bsd*)
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24103 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24104 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24105 $as_echo_n "(cached) " >&6
24106 else
24107 gcc_cv_as_alpha_explicit_relocs=no
24108 if test $in_tree_gas = yes; then
24109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24110 then gcc_cv_as_alpha_explicit_relocs=yes
24112 elif test x$gcc_cv_as != x; then
24113 $as_echo ' .set nomacro
24114 .text
24115 extbl $3, $2, $3 !lituse_bytoff!1
24116 ldq $2, a($29) !literal!1
24117 ldq $4, b($29) !literal!2
24118 ldq_u $3, 0($2) !lituse_base!1
24119 ldq $27, f($29) !literal!5
24120 jsr $26, ($27), f !lituse_jsr!5
24121 ldah $29, 0($26) !gpdisp!3
24122 lda $0, c($29) !gprel
24123 ldah $1, d($29) !gprelhigh
24124 lda $1, d($1) !gprellow
24125 lda $29, 0($29) !gpdisp!3' > conftest.s
24126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }
24132 then
24133 gcc_cv_as_alpha_explicit_relocs=yes
24134 else
24135 echo "configure: failed program was" >&5
24136 cat conftest.s >&5
24138 rm -f conftest.o conftest.s
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24142 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24143 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24145 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24149 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24150 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24151 $as_echo_n "(cached) " >&6
24152 else
24153 gcc_cv_as_alpha_jsrdirect_relocs=no
24154 if test $in_tree_gas = yes; then
24155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24156 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24158 elif test x$gcc_cv_as != x; then
24159 $as_echo ' .set nomacro
24160 .text
24161 ldq $27, a($29) !literal!1
24162 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165 (eval $ac_try) 2>&5
24166 ac_status=$?
24167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; }
24169 then
24170 gcc_cv_as_alpha_jsrdirect_relocs=yes
24171 else
24172 echo "configure: failed program was" >&5
24173 cat conftest.s >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24179 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24180 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24182 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24187 cris-*-*)
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24189 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24190 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_cris_no_mul_bug=no
24194 if test $in_tree_gas = yes; then
24195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24196 then gcc_cv_as_cris_no_mul_bug=yes
24198 elif test x$gcc_cv_as != x; then
24199 $as_echo '.text' > conftest.s
24200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }
24206 then
24207 gcc_cv_as_cris_no_mul_bug=yes
24208 else
24209 echo "configure: failed program was" >&5
24210 cat conftest.s >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24216 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24217 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24219 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24224 sparc*-*-*)
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24226 $as_echo_n "checking assembler for .register... " >&6; }
24227 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_sparc_register_op=no
24231 if test x$gcc_cv_as != x; then
24232 $as_echo '.register %g2, #scratch' > conftest.s
24233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24236 ac_status=$?
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24239 then
24240 gcc_cv_as_sparc_register_op=yes
24241 else
24242 echo "configure: failed program was" >&5
24243 cat conftest.s >&5
24245 rm -f conftest.o conftest.s
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24249 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24250 if test $gcc_cv_as_sparc_register_op = yes; then
24252 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24257 $as_echo_n "checking assembler for #nobits... " >&6; }
24258 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24260 else
24261 gcc_cv_as_sparc_nobits=no
24262 if test x$gcc_cv_as != x; then
24263 $as_echo '.section "nobits",#alloc,#write,#nobits
24264 .section "progbits",#alloc,#write,#progbits' > conftest.s
24265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }
24271 then
24272 gcc_cv_as_sparc_nobits=yes
24273 else
24274 echo "configure: failed program was" >&5
24275 cat conftest.s >&5
24277 rm -f conftest.o conftest.s
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24281 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24284 cat >>confdefs.h <<_ACEOF
24285 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24286 _ACEOF
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24290 $as_echo_n "checking assembler for -relax option... " >&6; }
24291 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24293 else
24294 gcc_cv_as_sparc_relax=no
24295 if test x$gcc_cv_as != x; then
24296 $as_echo '.text' > conftest.s
24297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24303 then
24304 gcc_cv_as_sparc_relax=yes
24305 else
24306 echo "configure: failed program was" >&5
24307 cat conftest.s >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24313 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24314 if test $gcc_cv_as_sparc_relax = yes; then
24316 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24321 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24322 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 gcc_cv_as_sparc_gotdata_op=no
24326 if test x$gcc_cv_as != x; then
24327 $as_echo '.text
24328 .align 4
24329 foo:
24331 bar:
24332 sethi %gdop_hix22(foo), %g1
24333 xor %g1, %gdop_lox10(foo), %g1
24334 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24341 then
24342 if test x$gcc_cv_ld != x \
24343 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24344 if test x$gcc_cv_objdump != x; then
24345 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24346 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24347 gcc_cv_as_sparc_gotdata_op=no
24348 else
24349 gcc_cv_as_sparc_gotdata_op=yes
24353 rm -f conftest
24354 else
24355 echo "configure: failed program was" >&5
24356 cat conftest.s >&5
24358 rm -f conftest.o conftest.s
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24362 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24363 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24365 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24370 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24371 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 gcc_cv_as_sparc_ua_pcrel=no
24375 if test x$gcc_cv_as != x; then
24376 $as_echo '.text
24377 foo:
24379 .data
24380 .align 4
24381 .byte 0
24382 .uaword %r_disp32(foo)' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24389 then
24390 if test x$gcc_cv_ld != x \
24391 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24392 gcc_cv_as_sparc_ua_pcrel=yes
24394 rm -f conftest
24395 else
24396 echo "configure: failed program was" >&5
24397 cat conftest.s >&5
24399 rm -f conftest.o conftest.s
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24403 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24404 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24406 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24410 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24411 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24413 else
24414 gcc_cv_as_sparc_ua_pcrel_hidden=no
24415 if test x$gcc_cv_as != x; then
24416 $as_echo '.data
24417 .align 4
24418 .byte 0x31
24419 .uaword %r_disp32(foo)
24420 .byte 0x32, 0x33, 0x34
24421 .global foo
24422 .hidden foo
24423 foo:
24424 .skip 4' > conftest.s
24425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24431 then
24432 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24433 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24434 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24435 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24436 if $gcc_cv_objdump -R conftest 2> /dev/null \
24437 | grep 'DISP32' > /dev/null 2>&1; then
24439 else
24440 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24443 rm -f conftest
24444 else
24445 echo "configure: failed program was" >&5
24446 cat conftest.s >&5
24448 rm -f conftest.o conftest.s
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24452 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24453 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24455 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24459 fi # unaligned pcrel relocs
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24462 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24463 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24464 $as_echo_n "(cached) " >&6
24465 else
24466 gcc_cv_as_sparc_offsetable_lo10=no
24467 if test x$gcc_cv_as != x; then
24468 $as_echo '.text
24469 or %g1, %lo(ab) + 12, %g1
24470 or %g1, %lo(ab + 12), %g1' > conftest.s
24471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24477 then
24478 if test x$gcc_cv_objdump != x \
24479 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24480 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24481 gcc_cv_as_sparc_offsetable_lo10=yes
24483 else
24484 echo "configure: failed program was" >&5
24485 cat conftest.s >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24491 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24492 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24494 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24499 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24500 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24501 $as_echo_n "(cached) " >&6
24502 else
24503 gcc_cv_as_sparc_fmaf=no
24504 if test x$gcc_cv_as != x; then
24505 $as_echo '.text
24506 .register %g2, #scratch
24507 .register %g3, #scratch
24508 .align 4
24509 fmaddd %f0, %f2, %f4, %f6
24510 addxccc %g1, %g2, %g3
24511 fsrl32 %f2, %f4, %f8
24512 fnaddd %f10, %f12, %f14' > conftest.s
24513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }
24519 then
24520 gcc_cv_as_sparc_fmaf=yes
24521 else
24522 echo "configure: failed program was" >&5
24523 cat conftest.s >&5
24525 rm -f conftest.o conftest.s
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24529 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24530 if test $gcc_cv_as_sparc_fmaf = yes; then
24532 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24537 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24538 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24540 else
24541 gcc_cv_as_sparc_sparc4=no
24542 if test x$gcc_cv_as != x; then
24543 $as_echo '.text
24544 .register %g2, #scratch
24545 .register %g3, #scratch
24546 .align 4
24547 cxbe %g2, %g3, 1f
24548 1: cwbneg %g2, %g3, 1f
24549 1: sha1
24551 aes_kexpand0 %f4, %f6, %f8
24552 des_round %f38, %f40, %f42, %f44
24553 camellia_f %f54, %f56, %f58, %f60
24554 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24561 then
24562 gcc_cv_as_sparc_sparc4=yes
24563 else
24564 echo "configure: failed program was" >&5
24565 cat conftest.s >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24571 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24572 if test $gcc_cv_as_sparc_sparc4 = yes; then
24574 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24579 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24580 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24582 else
24583 gcc_cv_as_sparc_leon=no
24584 if test x$gcc_cv_as != x; then
24585 $as_echo '.text
24586 .register %g2, #scratch
24587 .register %g3, #scratch
24588 .align 4
24589 smac %g2, %g3, %g1
24590 umac %g2, %g3, %g1
24591 casa [%g2] 0xb, %g3, %g1' > conftest.s
24592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24594 (eval $ac_try) 2>&5
24595 ac_status=$?
24596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24597 test $ac_status = 0; }; }
24598 then
24599 gcc_cv_as_sparc_leon=yes
24600 else
24601 echo "configure: failed program was" >&5
24602 cat conftest.s >&5
24604 rm -f conftest.o conftest.s
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24608 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24609 if test $gcc_cv_as_sparc_leon = yes; then
24611 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24616 i[34567]86-*-* | x86_64-*-*)
24617 case $target_os in
24618 cygwin*)
24619 # Full C++ conformance when using a shared libstdc++-v3 requires some
24620 # support from the Cygwin DLL, which in more recent versions exports
24621 # wrappers to aid in interposing and redirecting operators new, delete,
24622 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24623 # are configuring for a version of Cygwin that exports the wrappers.
24624 if test x$host = x$target && test x$host_cpu = xi686; then
24625 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24626 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24627 gcc_ac_cygwin_dll_wrappers=yes
24628 else
24629 gcc_ac_cygwin_dll_wrappers=no
24632 else
24633 # Can't check presence of libc functions during cross-compile, so
24634 # we just have to assume we're building for an up-to-date target.
24635 gcc_ac_cygwin_dll_wrappers=yes
24638 cat >>confdefs.h <<_ACEOF
24639 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24640 _ACEOF
24642 esac
24643 case $target_os in
24644 cygwin* | pe | mingw32* | interix*)
24645 # Recent binutils allows the three-operand form of ".comm" on PE. This
24646 # definition is used unconditionally to initialise the default state of
24647 # the target option variable that governs usage of the feature.
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24649 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24650 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24651 $as_echo_n "(cached) " >&6
24652 else
24653 gcc_cv_as_comm_has_align=no
24654 if test $in_tree_gas = yes; then
24655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24656 then gcc_cv_as_comm_has_align=yes
24658 elif test x$gcc_cv_as != x; then
24659 $as_echo '.comm foo,1,32' > conftest.s
24660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24662 (eval $ac_try) 2>&5
24663 ac_status=$?
24664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24665 test $ac_status = 0; }; }
24666 then
24667 gcc_cv_as_comm_has_align=yes
24668 else
24669 echo "configure: failed program was" >&5
24670 cat conftest.s >&5
24672 rm -f conftest.o conftest.s
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24676 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24679 cat >>confdefs.h <<_ACEOF
24680 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24681 _ACEOF
24683 # Used for DWARF 2 in PE
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24685 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24686 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_ix86_pe_secrel32=no
24690 if test $in_tree_gas = yes; then
24691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24692 then gcc_cv_as_ix86_pe_secrel32=yes
24694 elif test x$gcc_cv_as != x; then
24695 $as_echo '.text
24696 foo: nop
24697 .data
24698 .secrel32 foo' > conftest.s
24699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24701 (eval $ac_try) 2>&5
24702 ac_status=$?
24703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24704 test $ac_status = 0; }; }
24705 then
24706 if test x$gcc_cv_ld != x \
24707 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24708 gcc_cv_as_ix86_pe_secrel32=yes
24710 rm -f conftest
24711 else
24712 echo "configure: failed program was" >&5
24713 cat conftest.s >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24719 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24720 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24722 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24725 # Test if the assembler supports the extended form of the .section
24726 # directive that specifies section alignment. LTO support uses this,
24727 # but normally only after installation, so we warn but don't fail the
24728 # configure if LTO is enabled but the assembler does not support it.
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24730 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24731 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 gcc_cv_as_section_has_align=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24737 then gcc_cv_as_section_has_align=yes
24739 elif test x$gcc_cv_as != x; then
24740 $as_echo '.section lto_test,"dr0"' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_section_has_align=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24757 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24759 if test x$gcc_cv_as_section_has_align != xyes; then
24760 case ",$enable_languages," in
24761 *,lto,*)
24762 { $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
24763 $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;}
24765 esac
24768 esac
24770 # Test if the assembler supports the section flag 'e' for specifying
24771 # an excluded section.
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24773 $as_echo_n "checking assembler for .section with e... " >&6; }
24774 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24776 else
24777 gcc_cv_as_section_has_e=no
24778 if test $in_tree_gas = yes; then
24779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24780 then gcc_cv_as_section_has_e=yes
24782 elif test x$gcc_cv_as != x; then
24783 $as_echo '.section foo1,"e"
24784 .byte 0,0,0,0' > conftest.s
24785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24791 then
24792 gcc_cv_as_section_has_e=yes
24793 else
24794 echo "configure: failed program was" >&5
24795 cat conftest.s >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24801 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24804 cat >>confdefs.h <<_ACEOF
24805 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24806 _ACEOF
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24810 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24811 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24812 $as_echo_n "(cached) " >&6
24813 else
24814 gcc_cv_as_ix86_filds=no
24815 if test x$gcc_cv_as != x; then
24816 $as_echo 'filds mem; fists mem' > conftest.s
24817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24822 test $ac_status = 0; }; }
24823 then
24824 gcc_cv_as_ix86_filds=yes
24825 else
24826 echo "configure: failed program was" >&5
24827 cat conftest.s >&5
24829 rm -f conftest.o conftest.s
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24833 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24834 if test $gcc_cv_as_ix86_filds = yes; then
24836 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24841 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24842 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24843 $as_echo_n "(cached) " >&6
24844 else
24845 gcc_cv_as_ix86_fildq=no
24846 if test x$gcc_cv_as != x; then
24847 $as_echo 'fildq mem; fistpq mem' > conftest.s
24848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24853 test $ac_status = 0; }; }
24854 then
24855 gcc_cv_as_ix86_fildq=yes
24856 else
24857 echo "configure: failed program was" >&5
24858 cat conftest.s >&5
24860 rm -f conftest.o conftest.s
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24864 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24865 if test $gcc_cv_as_ix86_fildq = yes; then
24867 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24872 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24873 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24874 $as_echo_n "(cached) " >&6
24875 else
24876 gcc_cv_as_ix86_cmov_sun_syntax=no
24877 if test x$gcc_cv_as != x; then
24878 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24884 test $ac_status = 0; }; }
24885 then
24886 gcc_cv_as_ix86_cmov_sun_syntax=yes
24887 else
24888 echo "configure: failed program was" >&5
24889 cat conftest.s >&5
24891 rm -f conftest.o conftest.s
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24895 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24896 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24898 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24903 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24904 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24907 gcc_cv_as_ix86_ffreep=no
24908 if test x$gcc_cv_as != x; then
24909 $as_echo 'ffreep %st(1)' > conftest.s
24910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; }
24916 then
24917 gcc_cv_as_ix86_ffreep=yes
24918 else
24919 echo "configure: failed program was" >&5
24920 cat conftest.s >&5
24922 rm -f conftest.o conftest.s
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24926 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24927 if test $gcc_cv_as_ix86_ffreep = yes; then
24929 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24934 $as_echo_n "checking assembler for .quad directive... " >&6; }
24935 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_ix86_quad=no
24939 if test x$gcc_cv_as != x; then
24940 $as_echo '.quad 0' > conftest.s
24941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24944 ac_status=$?
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24947 then
24948 gcc_cv_as_ix86_quad=yes
24949 else
24950 echo "configure: failed program was" >&5
24951 cat conftest.s >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24957 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24958 if test $gcc_cv_as_ix86_quad = yes; then
24960 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24965 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24966 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24967 $as_echo_n "(cached) " >&6
24968 else
24969 gcc_cv_as_ix86_sahf=no
24970 if test x$gcc_cv_as != x; then
24971 $as_echo '.code64
24972 sahf' > conftest.s
24973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24978 test $ac_status = 0; }; }
24979 then
24980 gcc_cv_as_ix86_sahf=yes
24981 else
24982 echo "configure: failed program was" >&5
24983 cat conftest.s >&5
24985 rm -f conftest.o conftest.s
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24989 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24990 if test $gcc_cv_as_ix86_sahf = yes; then
24992 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24997 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24998 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 gcc_cv_as_ix86_interunit_movq=no
25002 if test x$gcc_cv_as != x; then
25003 $as_echo '.code64
25004 movq %mm0, %rax
25005 movq %rax, %xmm0' > conftest.s
25006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25012 then
25013 gcc_cv_as_ix86_interunit_movq=yes
25014 else
25015 echo "configure: failed program was" >&5
25016 cat conftest.s >&5
25018 rm -f conftest.o conftest.s
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25022 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25025 cat >>confdefs.h <<_ACEOF
25026 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25027 _ACEOF
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25031 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25032 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25033 $as_echo_n "(cached) " >&6
25034 else
25035 gcc_cv_as_ix86_hle=no
25036 if test x$gcc_cv_as != x; then
25037 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25044 then
25045 gcc_cv_as_ix86_hle=yes
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25054 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25055 if test $gcc_cv_as_ix86_hle = yes; then
25057 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25062 $as_echo_n "checking assembler for swap suffix... " >&6; }
25063 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 gcc_cv_as_ix86_swap=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo 'movl.s %esp, %ebp' > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25075 then
25076 gcc_cv_as_ix86_swap=yes
25077 else
25078 echo "configure: failed program was" >&5
25079 cat conftest.s >&5
25081 rm -f conftest.o conftest.s
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25085 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25086 if test $gcc_cv_as_ix86_swap = yes; then
25088 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25093 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25094 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25095 $as_echo_n "(cached) " >&6
25096 else
25097 gcc_cv_as_ix86_diff_sect_delta=no
25098 if test x$gcc_cv_as != x; then
25099 $as_echo '.section .rodata
25100 .L1:
25101 .long .L2-.L1
25102 .long .L3-.L1
25103 .text
25104 .L3: nop
25105 .L2: nop' > conftest.s
25106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; }
25112 then
25113 gcc_cv_as_ix86_diff_sect_delta=yes
25114 else
25115 echo "configure: failed program was" >&5
25116 cat conftest.s >&5
25118 rm -f conftest.o conftest.s
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25122 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25123 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25125 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25129 # These two are used unconditionally by i386.[ch]; it is to be defined
25130 # to 1 if the feature is present, 0 otherwise.
25131 as_ix86_gotoff_in_data_opt=
25132 if test x$gas = xyes; then
25133 as_ix86_gotoff_in_data_opt="--32"
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25136 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25137 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25138 $as_echo_n "(cached) " >&6
25139 else
25140 gcc_cv_as_ix86_gotoff_in_data=no
25141 if test $in_tree_gas = yes; then
25142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25143 then gcc_cv_as_ix86_gotoff_in_data=yes
25145 elif test x$gcc_cv_as != x; then
25146 $as_echo ' .text
25147 .L0:
25149 .data
25150 .long .L0@GOTOFF' > conftest.s
25151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; }
25157 then
25158 gcc_cv_as_ix86_gotoff_in_data=yes
25159 else
25160 echo "configure: failed program was" >&5
25161 cat conftest.s >&5
25163 rm -f conftest.o conftest.s
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25167 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25170 cat >>confdefs.h <<_ACEOF
25171 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25172 _ACEOF
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25176 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25177 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25178 $as_echo_n "(cached) " >&6
25179 else
25180 gcc_cv_as_ix86_rep_lock_prefix=no
25181 if test x$gcc_cv_as != x; then
25182 $as_echo 'rep movsl
25183 rep ret
25184 rep nop
25185 rep bsf %ecx, %eax
25186 rep bsr %ecx, %eax
25187 lock addl %edi, (%eax,%esi)
25188 lock orl $0, (%esp)' > conftest.s
25189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194 test $ac_status = 0; }; }
25195 then
25196 gcc_cv_as_ix86_rep_lock_prefix=yes
25197 else
25198 echo "configure: failed program was" >&5
25199 cat conftest.s >&5
25201 rm -f conftest.o conftest.s
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25205 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25206 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25208 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25213 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25214 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25216 else
25217 gcc_cv_as_ix86_ud2=no
25218 if test x$gcc_cv_as != x; then
25219 $as_echo 'ud2' > conftest.s
25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25226 then
25227 gcc_cv_as_ix86_ud2=yes
25228 else
25229 echo "configure: failed program was" >&5
25230 cat conftest.s >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25236 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25237 if test $gcc_cv_as_ix86_ud2 = yes; then
25239 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25244 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25245 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25247 else
25248 gcc_cv_as_ix86_tlsgdplt=no
25249 if test x$gcc_cv_as != x; then
25250 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; }
25257 then
25258 if test x$gcc_cv_ld != x \
25259 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25260 gcc_cv_as_ix86_tlsgdplt=yes
25262 rm -f conftest
25263 else
25264 echo "configure: failed program was" >&5
25265 cat conftest.s >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25271 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25272 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25274 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25278 conftest_s='
25279 .section .tdata,"aw'$tls_section_flag'",@progbits
25280 tls_ld:
25281 .section .text,"ax",@progbits
25282 call tls_ld@tlsldmplt'
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25284 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25285 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_ix86_tlsldmplt=no
25289 if test x$gcc_cv_as != x; then
25290 $as_echo "$conftest_s" > 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 if test x$gcc_cv_ld != x \
25299 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25300 gcc_cv_as_ix86_tlsldmplt=yes
25302 rm -f conftest
25303 else
25304 echo "configure: failed program was" >&5
25305 cat conftest.s >&5
25307 rm -f conftest.o conftest.s
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25311 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25314 cat >>confdefs.h <<_ACEOF
25315 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25316 _ACEOF
25319 # Enforce 32-bit output with gas and gld.
25320 if test x$gas = xyes; then
25321 as_ix86_tls_ldm_opt="--32"
25323 if echo "$ld_ver" | grep GNU > /dev/null; then
25324 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25325 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25326 else
25327 ld_ix86_tls_ldm_opt="-melf_i386"
25330 conftest_s='
25331 .section .text,"ax",@progbits
25332 .globl _start
25333 .type _start, @function
25334 _start:
25335 leal value@tlsldm(%ebx), %eax
25336 call ___tls_get_addr@plt
25338 .section .tdata,"aw'$tls_section_flag'",@progbits
25339 .type value, @object
25340 value:'
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25342 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25343 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25345 else
25346 gcc_cv_as_ix86_tlsldm=no
25347 if test x$gcc_cv_as != x; then
25348 $as_echo "$conftest_s" > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25357 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25358 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25359 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25360 gcc_cv_as_ix86_tlsldm=yes
25363 rm -f conftest
25364 else
25365 echo "configure: failed program was" >&5
25366 cat conftest.s >&5
25368 rm -f conftest.o conftest.s
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25372 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25375 cat >>confdefs.h <<_ACEOF
25376 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25377 _ACEOF
25382 ia64*-*-*)
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25384 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25385 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25389 if test $in_tree_gas = yes; then
25390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25391 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25393 elif test x$gcc_cv_as != x; then
25394 $as_echo ' .text
25395 addl r15 = @ltoffx(x#), gp
25397 ld8.mov r16 = [r15], x#' > conftest.s
25398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25404 then
25405 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25406 else
25407 echo "configure: failed program was" >&5
25408 cat conftest.s >&5
25410 rm -f conftest.o conftest.s
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25414 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25415 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25417 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25423 powerpc*-*-*)
25424 case $target in
25425 *-*-aix*) conftest_s=' .machine "pwr5"
25426 .csect .text[PR]
25427 mfcr 3,128';;
25428 *-*-darwin*)
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25430 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25431 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25432 $as_echo_n "(cached) " >&6
25433 else
25434 gcc_cv_as_machine_directive=no
25435 if test x$gcc_cv_as != x; then
25436 $as_echo ' .machine ppc7400' > conftest.s
25437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25442 test $ac_status = 0; }; }
25443 then
25444 gcc_cv_as_machine_directive=yes
25445 else
25446 echo "configure: failed program was" >&5
25447 cat conftest.s >&5
25449 rm -f conftest.o conftest.s
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25453 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25455 if test x$gcc_cv_as_machine_directive != xyes; then
25456 echo "*** This target requires an assembler supporting \".machine\"" >&2
25457 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25458 test x$build = x$target && exit 1
25460 conftest_s=' .text
25461 mfcr r3,128';;
25462 *) conftest_s=' .machine power4
25463 .text
25464 mfcr 3,128';;
25465 esac
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25468 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_powerpc_mfcrf=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25475 then gcc_cv_as_powerpc_mfcrf=yes
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo "$conftest_s" > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_powerpc_mfcrf=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25495 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25496 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25498 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25502 case $target in
25503 *-*-aix*) conftest_s=' .machine "pwr5"
25504 .csect .text[PR]
25505 popcntb 3,3';;
25506 *) conftest_s=' .machine power5
25507 .text
25508 popcntb 3,3';;
25509 esac
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25512 $as_echo_n "checking assembler for popcntb support... " >&6; }
25513 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_powerpc_popcntb=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25519 then gcc_cv_as_powerpc_popcntb=yes
25521 elif test x$gcc_cv_as != x; then
25522 $as_echo "$conftest_s" > conftest.s
25523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25529 then
25530 gcc_cv_as_powerpc_popcntb=yes
25531 else
25532 echo "configure: failed program was" >&5
25533 cat conftest.s >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25539 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25540 if test $gcc_cv_as_powerpc_popcntb = yes; then
25542 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25546 case $target in
25547 *-*-aix*) conftest_s=' .machine "pwr5x"
25548 .csect .text[PR]
25549 frin 1,1';;
25550 *) conftest_s=' .machine power5
25551 .text
25552 frin 1,1';;
25553 esac
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25556 $as_echo_n "checking assembler for fp round support... " >&6; }
25557 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_powerpc_fprnd=no
25561 if test $in_tree_gas = yes; then
25562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25563 then gcc_cv_as_powerpc_fprnd=yes
25565 elif test x$gcc_cv_as != x; then
25566 $as_echo "$conftest_s" > conftest.s
25567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25573 then
25574 gcc_cv_as_powerpc_fprnd=yes
25575 else
25576 echo "configure: failed program was" >&5
25577 cat conftest.s >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25583 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25584 if test $gcc_cv_as_powerpc_fprnd = yes; then
25586 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25590 case $target in
25591 *-*-aix*) conftest_s=' .machine "pwr6"
25592 .csect .text[PR]
25593 mffgpr 1,3';;
25594 *) conftest_s=' .machine power6
25595 .text
25596 mffgpr 1,3';;
25597 esac
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25600 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25601 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25603 else
25604 gcc_cv_as_powerpc_mfpgpr=no
25605 if test $in_tree_gas = yes; then
25606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25607 then gcc_cv_as_powerpc_mfpgpr=yes
25609 elif test x$gcc_cv_as != x; then
25610 $as_echo "$conftest_s" > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25617 then
25618 gcc_cv_as_powerpc_mfpgpr=yes
25619 else
25620 echo "configure: failed program was" >&5
25621 cat conftest.s >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25627 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25628 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25630 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25634 case $target in
25635 *-*-aix*) conftest_s=' .csect .text[PR]
25636 LCF..0:
25637 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25638 *-*-darwin*)
25639 conftest_s=' .text
25640 LCF0:
25641 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25642 *) conftest_s=' .text
25643 .LCF0:
25644 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25645 esac
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25648 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25649 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 gcc_cv_as_powerpc_rel16=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25655 then gcc_cv_as_powerpc_rel16=yes
25657 elif test x$gcc_cv_as != x; then
25658 $as_echo "$conftest_s" > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_powerpc_rel16=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25675 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25676 if test $gcc_cv_as_powerpc_rel16 = yes; then
25678 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25682 case $target in
25683 *-*-aix*) conftest_s=' .machine "pwr6"
25684 .csect .text[PR]
25685 cmpb 3,4,5';;
25686 *) conftest_s=' .machine power6
25687 .text
25688 cmpb 3,4,5';;
25689 esac
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25692 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25693 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_powerpc_cmpb=no
25697 if test $in_tree_gas = yes; then
25698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25699 then gcc_cv_as_powerpc_cmpb=yes
25701 elif test x$gcc_cv_as != x; then
25702 $as_echo "$conftest_s" > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_powerpc_cmpb=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25719 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25720 if test $gcc_cv_as_powerpc_cmpb = yes; then
25722 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25726 case $target in
25727 *-*-aix*) conftest_s=' .machine "pwr6"
25728 .csect .text[PR]
25729 dadd 1,2,3';;
25730 *) conftest_s=' .machine power6
25731 .text
25732 dadd 1,2,3';;
25733 esac
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25736 $as_echo_n "checking assembler for decimal float support... " >&6; }
25737 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 gcc_cv_as_powerpc_dfp=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25743 then gcc_cv_as_powerpc_dfp=yes
25745 elif test x$gcc_cv_as != x; then
25746 $as_echo "$conftest_s" > conftest.s
25747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 then
25754 gcc_cv_as_powerpc_dfp=yes
25755 else
25756 echo "configure: failed program was" >&5
25757 cat conftest.s >&5
25759 rm -f conftest.o conftest.s
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25763 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25764 if test $gcc_cv_as_powerpc_dfp = yes; then
25766 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25770 case $target in
25771 *-*-aix*) conftest_s=' .machine "pwr7"
25772 .csect .text[PR]
25773 lxvd2x 1,2,3';;
25774 *) conftest_s=' .machine power7
25775 .text
25776 lxvd2x 1,2,3';;
25777 esac
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25780 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25781 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_powerpc_vsx=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25787 then gcc_cv_as_powerpc_vsx=yes
25789 elif test x$gcc_cv_as != x; then
25790 $as_echo "$conftest_s" > conftest.s
25791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25793 (eval $ac_try) 2>&5
25794 ac_status=$?
25795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25796 test $ac_status = 0; }; }
25797 then
25798 gcc_cv_as_powerpc_vsx=yes
25799 else
25800 echo "configure: failed program was" >&5
25801 cat conftest.s >&5
25803 rm -f conftest.o conftest.s
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25807 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25808 if test $gcc_cv_as_powerpc_vsx = yes; then
25810 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25814 case $target in
25815 *-*-aix*) conftest_s=' .machine "pwr7"
25816 .csect .text[PR]
25817 popcntd 3,3';;
25818 *) conftest_s=' .machine power7
25819 .text
25820 popcntd 3,3';;
25821 esac
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25824 $as_echo_n "checking assembler for popcntd support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_powerpc_popcntd=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25831 then gcc_cv_as_powerpc_popcntd=yes
25833 elif test x$gcc_cv_as != x; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25841 then
25842 gcc_cv_as_powerpc_popcntd=yes
25843 else
25844 echo "configure: failed program was" >&5
25845 cat conftest.s >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25851 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25852 if test $gcc_cv_as_powerpc_popcntd = yes; then
25854 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25858 case $target in
25859 *-*-aix*) conftest_s=' .machine "pwr8"
25860 .csect .text[PR]';;
25861 *) conftest_s=' .machine power8
25862 .text';;
25863 esac
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25866 $as_echo_n "checking assembler for power8 support... " >&6; }
25867 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25869 else
25870 gcc_cv_as_powerpc_power8=no
25871 if test $in_tree_gas = yes; then
25872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25873 then gcc_cv_as_powerpc_power8=yes
25875 elif test x$gcc_cv_as != x; then
25876 $as_echo "$conftest_s" > conftest.s
25877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882 test $ac_status = 0; }; }
25883 then
25884 gcc_cv_as_powerpc_power8=yes
25885 else
25886 echo "configure: failed program was" >&5
25887 cat conftest.s >&5
25889 rm -f conftest.o conftest.s
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25893 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25894 if test $gcc_cv_as_powerpc_power8 = yes; then
25896 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25900 case $target in
25901 *-*-aix*) conftest_s=' .csect .text[PR]
25902 lwsync';;
25903 *) conftest_s=' .text
25904 lwsync';;
25905 esac
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25908 $as_echo_n "checking assembler for lwsync support... " >&6; }
25909 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25910 $as_echo_n "(cached) " >&6
25911 else
25912 gcc_cv_as_powerpc_lwsync=no
25913 if test $in_tree_gas = yes; then
25914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25915 then gcc_cv_as_powerpc_lwsync=yes
25917 elif test x$gcc_cv_as != x; then
25918 $as_echo "$conftest_s" > conftest.s
25919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25925 then
25926 gcc_cv_as_powerpc_lwsync=yes
25927 else
25928 echo "configure: failed program was" >&5
25929 cat conftest.s >&5
25931 rm -f conftest.o conftest.s
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25935 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25936 if test $gcc_cv_as_powerpc_lwsync = yes; then
25938 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25942 case $target in
25943 *-*-aix*) conftest_s=' .machine "476"
25944 .csect .text[PR]
25945 dci 0';;
25946 *) conftest_s=' .machine "476"
25947 .text
25948 dci 0';;
25949 esac
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25952 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25953 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25954 $as_echo_n "(cached) " >&6
25955 else
25956 gcc_cv_as_powerpc_dci=no
25957 if test $in_tree_gas = yes; then
25958 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25959 then gcc_cv_as_powerpc_dci=yes
25961 elif test x$gcc_cv_as != x; then
25962 $as_echo "$conftest_s" > conftest.s
25963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25968 test $ac_status = 0; }; }
25969 then
25970 gcc_cv_as_powerpc_dci=yes
25971 else
25972 echo "configure: failed program was" >&5
25973 cat conftest.s >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25979 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25980 if test $gcc_cv_as_powerpc_dci = yes; then
25982 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25987 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25988 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25990 else
25991 gcc_cv_as_powerpc_gnu_attribute=no
25992 if test $in_tree_gas = yes; then
25993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25994 then gcc_cv_as_powerpc_gnu_attribute=yes
25996 elif test x$gcc_cv_as != x; then
25997 $as_echo '.gnu_attribute 4,1' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26004 then
26005 gcc_cv_as_powerpc_gnu_attribute=yes
26006 else
26007 echo "configure: failed program was" >&5
26008 cat conftest.s >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26014 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26015 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26017 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26022 $as_echo_n "checking assembler for tls marker support... " >&6; }
26023 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26024 $as_echo_n "(cached) " >&6
26025 else
26026 gcc_cv_as_powerpc_tls_markers=no
26027 if test $in_tree_gas = yes; then
26028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26029 then gcc_cv_as_powerpc_tls_markers=yes
26031 elif test x$gcc_cv_as != x; then
26032 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; }
26039 then
26040 gcc_cv_as_powerpc_tls_markers=yes
26041 else
26042 echo "configure: failed program was" >&5
26043 cat conftest.s >&5
26045 rm -f conftest.o conftest.s
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26049 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26050 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26052 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26056 case $target in
26057 *-*-aix*)
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26059 $as_echo_n "checking assembler for .ref support... " >&6; }
26060 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26062 else
26063 gcc_cv_as_aix_ref=no
26064 if test $in_tree_gas = yes; then
26065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26066 then gcc_cv_as_aix_ref=yes
26068 elif test x$gcc_cv_as != x; then
26069 $as_echo ' .csect stuff[rw]
26070 stuff:
26071 .long 1
26072 .extern sym
26073 .ref sym
26074 ' > conftest.s
26075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26078 ac_status=$?
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; }
26081 then
26082 gcc_cv_as_aix_ref=yes
26083 else
26084 echo "configure: failed program was" >&5
26085 cat conftest.s >&5
26087 rm -f conftest.o conftest.s
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26091 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26092 if test $gcc_cv_as_aix_ref = yes; then
26094 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26098 esac
26101 mips*-*-*)
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26103 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26104 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_mips_explicit_relocs=no
26108 if test $in_tree_gas = yes; then
26109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26110 then gcc_cv_as_mips_explicit_relocs=yes
26112 elif test x$gcc_cv_as != x; then
26113 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26119 test $ac_status = 0; }; }
26120 then
26121 gcc_cv_as_mips_explicit_relocs=yes
26122 else
26123 echo "configure: failed program was" >&5
26124 cat conftest.s >&5
26126 rm -f conftest.o conftest.s
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26130 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26131 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26132 if test x$target_cpu_default = x
26133 then target_cpu_default=MASK_EXPLICIT_RELOCS
26134 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26138 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26139 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_mips_no_shared=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26145 then gcc_cv_as_mips_no_shared=yes
26147 elif test x$gcc_cv_as != x; then
26148 $as_echo 'nop' > conftest.s
26149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26155 then
26156 gcc_cv_as_mips_no_shared=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26165 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26166 if test $gcc_cv_as_mips_no_shared = yes; then
26168 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26173 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26174 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26176 else
26177 gcc_cv_as_mips_gnu_attribute=no
26178 if test $in_tree_gas = yes; then
26179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26180 then gcc_cv_as_mips_gnu_attribute=yes
26182 elif test x$gcc_cv_as != x; then
26183 $as_echo '.gnu_attribute 4,1' > conftest.s
26184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26189 test $ac_status = 0; }; }
26190 then
26191 gcc_cv_as_mips_gnu_attribute=yes
26192 else
26193 echo "configure: failed program was" >&5
26194 cat conftest.s >&5
26196 rm -f conftest.o conftest.s
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26200 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26201 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26203 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26208 $as_echo_n "checking assembler for .module support... " >&6; }
26209 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_mips_dot_module=no
26213 if test x$gcc_cv_as != x; then
26214 $as_echo '.module mips2
26215 .module fp=xx' > conftest.s
26216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26222 then
26223 gcc_cv_as_mips_dot_module=yes
26224 else
26225 echo "configure: failed program was" >&5
26226 cat conftest.s >&5
26228 rm -f conftest.o conftest.s
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26232 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26233 if test $gcc_cv_as_mips_dot_module = yes; then
26235 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26238 if test x$gcc_cv_as_mips_dot_module = xno \
26239 && test x$with_fp_32 != x; then
26240 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26244 $as_echo_n "checking assembler for .micromips support... " >&6; }
26245 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 gcc_cv_as_micromips_support=no
26249 if test x$gcc_cv_as != x; then
26250 $as_echo '.set micromips' > conftest.s
26251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26257 then
26258 gcc_cv_as_micromips_support=yes
26259 else
26260 echo "configure: failed program was" >&5
26261 cat conftest.s >&5
26263 rm -f conftest.o conftest.s
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26267 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26268 if test $gcc_cv_as_micromips_support = yes; then
26270 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26275 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26276 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26277 $as_echo_n "(cached) " >&6
26278 else
26279 gcc_cv_as_mips_dtprelword=no
26280 if test $in_tree_gas = yes; then
26281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26282 then gcc_cv_as_mips_dtprelword=yes
26284 elif test x$gcc_cv_as != x; then
26285 $as_echo '.section .tdata,"awT",@progbits
26287 .word 2
26288 .text
26289 .dtprelword x+0x8000' > conftest.s
26290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26292 (eval $ac_try) 2>&5
26293 ac_status=$?
26294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26295 test $ac_status = 0; }; }
26296 then
26297 gcc_cv_as_mips_dtprelword=yes
26298 else
26299 echo "configure: failed program was" >&5
26300 cat conftest.s >&5
26302 rm -f conftest.o conftest.s
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26306 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26307 if test $gcc_cv_as_mips_dtprelword = yes; then
26309 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26314 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26315 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 gcc_cv_as_mips_dspr1_mult=no
26319 if test x$gcc_cv_as != x; then
26320 $as_echo ' .set mips32r2
26321 .set nodspr2
26322 .set dsp
26323 madd $ac3,$4,$5
26324 maddu $ac3,$4,$5
26325 msub $ac3,$4,$5
26326 msubu $ac3,$4,$5
26327 mult $ac3,$4,$5
26328 multu $ac3,$4,$5' > conftest.s
26329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26334 test $ac_status = 0; }; }
26335 then
26336 gcc_cv_as_mips_dspr1_mult=yes
26337 else
26338 echo "configure: failed program was" >&5
26339 cat conftest.s >&5
26341 rm -f conftest.o conftest.s
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26345 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26346 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26348 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26353 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26354 gcc_cv_as_ld_jalr_reloc=no
26355 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26356 if test $in_tree_ld = yes ; then
26357 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 \
26358 && test $in_tree_ld_is_elf = yes; then
26359 gcc_cv_as_ld_jalr_reloc=yes
26361 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26362 echo ' .ent x' > conftest.s
26363 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26364 echo ' lw $25,%call16(y)($28)' >> conftest.s
26365 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26366 echo '1: jalr $25' >> conftest.s
26367 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26368 echo '1: jalr $25' >> conftest.s
26369 echo ' .end x' >> conftest.s
26370 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26371 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26372 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26373 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26374 gcc_cv_as_ld_jalr_reloc=yes
26377 rm -f conftest.*
26380 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26381 if test x$target_cpu_default = x; then
26382 target_cpu_default=MASK_RELAX_PIC_CALLS
26383 else
26384 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26388 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26391 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26392 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26393 $as_echo_n "(cached) " >&6
26394 else
26395 gcc_cv_ld_mips_personality_relaxation=no
26396 if test $in_tree_ld = yes ; then
26397 if test "$gcc_cv_gld_major_version" -eq 2 \
26398 -a "$gcc_cv_gld_minor_version" -ge 21 \
26399 -o "$gcc_cv_gld_major_version" -gt 2; then
26400 gcc_cv_ld_mips_personality_relaxation=yes
26402 elif test x$gcc_cv_as != x \
26403 -a x$gcc_cv_ld != x \
26404 -a x$gcc_cv_readelf != x ; then
26405 cat > conftest.s <<EOF
26406 .cfi_startproc
26407 .cfi_personality 0x80,indirect_ptr
26408 .ent test
26409 test:
26411 .end test
26412 .cfi_endproc
26414 .section .data,"aw",@progbits
26415 indirect_ptr:
26416 .dc.a personality
26418 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26419 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26420 if $gcc_cv_readelf -d conftest 2>&1 \
26421 | grep TEXTREL > /dev/null 2>&1; then
26423 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26424 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26426 else
26427 gcc_cv_ld_mips_personality_relaxation=yes
26431 rm -f conftest.s conftest.o conftest
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26434 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26435 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26437 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26442 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26443 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26445 else
26446 gcc_cv_as_mips_nan=no
26447 if test x$gcc_cv_as != x; then
26448 $as_echo '' > conftest.s
26449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26454 test $ac_status = 0; }; }
26455 then
26456 gcc_cv_as_mips_nan=yes
26457 else
26458 echo "configure: failed program was" >&5
26459 cat conftest.s >&5
26461 rm -f conftest.o conftest.s
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26465 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26466 if test $gcc_cv_as_mips_nan = yes; then
26468 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26471 if test x$gcc_cv_as_mips_nan = xno \
26472 && test x$with_nan != x; then
26473 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26476 esac
26478 # Mips and HP-UX need the GNU assembler.
26479 # Linux on IA64 might be able to use the Intel assembler.
26481 case "$target" in
26482 mips*-*-* | *-*-hpux* )
26483 if test x$gas_flag = xyes \
26484 || test x"$host" != x"$build" \
26485 || test ! -x "$gcc_cv_as" \
26486 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26488 else
26489 echo "*** This configuration requires the GNU assembler" >&2
26490 exit 1
26493 esac
26495 # ??? Not all targets support dwarf2 debug_line, even within a version
26496 # of gas. Moreover, we need to emit a valid instruction to trigger any
26497 # info to the output file. So, as supported targets are added to gas 2.11,
26498 # add some instruction here to (also) show we expect this might work.
26499 # ??? Once 2.11 is released, probably need to add first known working
26500 # version to the per-target configury.
26501 case "$cpu_type" in
26502 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26503 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26504 | xstormy16 | xtensa)
26505 insn="nop"
26507 ia64 | s390)
26508 insn="nop 0"
26510 mmix)
26511 insn="swym 0"
26513 esac
26514 if test x"$insn" != x; then
26515 conftest_s="\
26516 .file 1 \"conftest.s\"
26517 .loc 1 3 0
26518 $insn"
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26520 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26521 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26523 else
26524 gcc_cv_as_dwarf2_debug_line=no
26525 if test $in_tree_gas = yes; then
26526 if test $in_tree_gas_is_elf = yes \
26527 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26528 then gcc_cv_as_dwarf2_debug_line=yes
26530 elif test x$gcc_cv_as != x; then
26531 $as_echo "$conftest_s" > conftest.s
26532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26538 then
26539 if test x$gcc_cv_objdump != x \
26540 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26541 | grep debug_line > /dev/null 2>&1; then
26542 gcc_cv_as_dwarf2_debug_line=yes
26544 else
26545 echo "configure: failed program was" >&5
26546 cat conftest.s >&5
26548 rm -f conftest.o conftest.s
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26552 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26555 # The .debug_line file table must be in the exact order that
26556 # we specified the files, since these indices are also used
26557 # by DW_AT_decl_file. Approximate this test by testing if
26558 # the assembler bitches if the same index is assigned twice.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26560 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26561 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26562 $as_echo_n "(cached) " >&6
26563 else
26564 gcc_cv_as_dwarf2_file_buggy=no
26565 if test x$gcc_cv_as != x; then
26566 $as_echo ' .file 1 "foo.s"
26567 .file 1 "bar.s"' > conftest.s
26568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573 test $ac_status = 0; }; }
26574 then
26575 gcc_cv_as_dwarf2_file_buggy=yes
26576 else
26577 echo "configure: failed program was" >&5
26578 cat conftest.s >&5
26580 rm -f conftest.o conftest.s
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26584 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26587 if test $gcc_cv_as_dwarf2_debug_line = yes \
26588 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26590 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26595 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26596 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599 gcc_cv_as_gdwarf2_flag=no
26600 if test $in_tree_gas = yes; then
26601 if test $in_tree_gas_is_elf = yes \
26602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26603 then gcc_cv_as_gdwarf2_flag=yes
26605 elif test x$gcc_cv_as != x; then
26606 $as_echo "$insn" > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_gdwarf2_flag=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_gdwarf2_flag" >&5
26623 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26624 if test $gcc_cv_as_gdwarf2_flag = yes; then
26626 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26631 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26632 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_gstabs_flag=no
26636 if test $in_tree_gas = yes; then
26637 if test $in_tree_gas_is_elf = yes \
26638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26639 then gcc_cv_as_gstabs_flag=yes
26641 elif test x$gcc_cv_as != x; then
26642 $as_echo "$insn" > conftest.s
26643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }
26649 then
26650 gcc_cv_as_gstabs_flag=yes
26651 else
26652 echo "configure: failed program was" >&5
26653 cat conftest.s >&5
26655 rm -f conftest.o conftest.s
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26659 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26660 if test $gcc_cv_as_gstabs_flag = yes; then
26662 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26667 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26668 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26669 $as_echo_n "(cached) " >&6
26670 else
26671 gcc_cv_as_debug_prefix_map_flag=no
26672 if test $in_tree_gas = yes; then
26673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26674 then gcc_cv_as_debug_prefix_map_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 --debug-prefix-map /a=/b -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_debug_prefix_map_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_debug_prefix_map_flag" >&5
26694 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26695 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26697 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26703 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26704 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_as_compress_debug=no
26708 if test x$gcc_cv_as != x; then
26709 $as_echo '' > conftest.s
26710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26716 then
26717 # gas compiled without zlib cannot compress debug sections and warns
26718 # about it, but still exits successfully. So check for this, too.
26719 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26720 then
26721 gcc_cv_as_compress_debug=0
26722 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26723 then
26724 gcc_cv_as_compress_debug=1
26725 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26726 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26727 else
26728 gcc_cv_as_compress_debug=0
26729 # FIXME: Future gas versions will support ELF gABI style via
26730 # --compress-debug-sections[=type].
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26740 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26743 cat >>confdefs.h <<_ACEOF
26744 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26745 _ACEOF
26748 cat >>confdefs.h <<_ACEOF
26749 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26750 _ACEOF
26753 cat >>confdefs.h <<_ACEOF
26754 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26755 _ACEOF
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26759 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26760 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26761 $as_echo_n "(cached) " >&6
26762 else
26763 gcc_cv_as_lcomm_with_alignment=no
26764 if test x$gcc_cv_as != x; then
26765 $as_echo '.lcomm bar,4,16' > conftest.s
26766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26768 (eval $ac_try) 2>&5
26769 ac_status=$?
26770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26771 test $ac_status = 0; }; }
26772 then
26773 gcc_cv_as_lcomm_with_alignment=yes
26774 else
26775 echo "configure: failed program was" >&5
26776 cat conftest.s >&5
26778 rm -f conftest.o conftest.s
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26782 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26783 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26785 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26789 if test x$with_sysroot = x && test x$host = x$target \
26790 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26791 && test "$prefix" != "NONE"; then
26793 cat >>confdefs.h <<_ACEOF
26794 #define PREFIX_INCLUDE_DIR "$prefix/include"
26795 _ACEOF
26799 # Determine the version of glibc, if any, used on the target.
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26801 $as_echo_n "checking for target glibc version... " >&6; }
26803 # Check whether --with-glibc-version was given.
26804 if test "${with_glibc_version+set}" = set; then :
26805 withval=$with_glibc_version;
26806 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26807 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26808 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26809 else
26810 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26812 else
26814 glibc_version_major=0
26815 glibc_version_minor=0
26816 if test -f $target_header_dir/features.h \
26817 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26818 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26819 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26820 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26825 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26827 cat >>confdefs.h <<_ACEOF
26828 #define TARGET_GLIBC_MAJOR $glibc_version_major
26829 _ACEOF
26832 cat >>confdefs.h <<_ACEOF
26833 #define TARGET_GLIBC_MINOR $glibc_version_minor
26834 _ACEOF
26837 # Check whether --enable-gnu-unique-object was given.
26838 if test "${enable_gnu_unique_object+set}" = set; then :
26839 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26840 yes | no) ;;
26841 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26842 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26843 esac
26844 else
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26846 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26847 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850 gcc_cv_as_gnu_unique_object=no
26851 if test $in_tree_gas = yes; then
26852 if test $in_tree_gas_is_elf = yes \
26853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26854 then gcc_cv_as_gnu_unique_object=yes
26856 elif test x$gcc_cv_as != x; then
26857 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26863 test $ac_status = 0; }; }
26864 then
26865 gcc_cv_as_gnu_unique_object=yes
26866 else
26867 echo "configure: failed program was" >&5
26868 cat conftest.s >&5
26870 rm -f conftest.o conftest.s
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26874 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26875 if test $gcc_cv_as_gnu_unique_object = yes; then
26876 # We need to unquote above to to use the definition from config.gcc.
26877 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26879 if test $glibc_version_major -gt 2 \
26880 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26881 enable_gnu_unique_object=yes
26887 if test x$enable_gnu_unique_object = xyes; then
26889 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26894 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26895 if test "${gcc_cv_as_line_zero+set}" = set; then :
26896 $as_echo_n "(cached) " >&6
26897 else
26898 gcc_cv_as_line_zero=no
26899 if test $in_tree_gas = yes; then
26900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26901 then gcc_cv_as_line_zero=yes
26903 elif test "x$gcc_cv_as" != x; then
26904 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26905 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26907 (eval $ac_try) 2>&5
26908 ac_status=$?
26909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26910 test $ac_status = 0; }; } &&
26911 test "x`cat conftest.out`" = x
26912 then
26913 gcc_cv_as_line_zero=yes
26914 else
26915 echo "configure: failed program was" >&5
26916 cat conftest.s >&5
26917 echo "configure: error output was" >&5
26918 cat conftest.out >&5
26920 rm -f conftest.o conftest.s conftest.out
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26924 $as_echo "$gcc_cv_as_line_zero" >&6; }
26925 if test "x$gcc_cv_as_line_zero" = xyes; then
26927 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26932 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26933 gcc_cv_ld_eh_frame_hdr=no
26934 if test $in_tree_ld = yes ; then
26935 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 \
26936 && test $in_tree_ld_is_elf = yes; then
26937 gcc_cv_ld_eh_frame_hdr=yes
26939 elif test x$gcc_cv_ld != x; then
26940 if echo "$ld_ver" | grep GNU > /dev/null; then
26941 # Check if linker supports --eh-frame-hdr option
26942 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26943 gcc_cv_ld_eh_frame_hdr=yes
26945 else
26946 case "$target" in
26947 *-*-solaris2*)
26948 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26949 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26950 gcc_cv_ld_eh_frame_hdr=yes
26953 esac
26957 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26959 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26963 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26966 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26967 gcc_cv_ld_eh_frame_ciev3=no
26968 if test $in_tree_ld = yes ; then
26969 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 \
26970 && test $in_tree_ld_is_elf = yes; then
26971 gcc_cv_ld_eh_frame_ciev3=yes
26973 elif test x$gcc_cv_ld != x; then
26974 if echo "$ld_ver" | grep GNU > /dev/null; then
26975 gcc_cv_ld_eh_frame_ciev3=yes
26976 if test 0"$ld_date" -lt 20040513; then
26977 if test -n "$ld_date"; then
26978 # If there was date string, but was earlier than 2004-05-13, fail
26979 gcc_cv_ld_eh_frame_ciev3=no
26980 elif test "$ld_vers_major" -lt 2; then
26981 gcc_cv_ld_eh_frame_ciev3=no
26982 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26983 gcc_cv_ld_eh_frame_ciev3=no
26986 else
26987 case "$target" in
26988 *-*-solaris2*)
26989 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26990 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26991 gcc_cv_ld_eh_frame_ciev3=yes
26994 esac
26998 cat >>confdefs.h <<_ACEOF
26999 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27000 _ACEOF
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27003 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27006 $as_echo_n "checking linker position independent executable support... " >&6; }
27007 gcc_cv_ld_pie=no
27008 if test $in_tree_ld = yes ; then
27009 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 \
27010 && test $in_tree_ld_is_elf = yes; then
27011 gcc_cv_ld_pie=yes
27013 elif test x$gcc_cv_ld != x; then
27014 # Check if linker supports -pie option
27015 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27016 gcc_cv_ld_pie=yes
27019 if test x"$gcc_cv_ld_pie" = xyes; then
27021 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27025 $as_echo "$gcc_cv_ld_pie" >&6; }
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27028 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27029 gcc_cv_ld_eh_gc_sections=no
27030 if test $in_tree_ld = yes ; then
27031 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 \
27032 && test $in_tree_ld_is_elf = yes; then
27033 gcc_cv_ld_eh_gc_sections=yes
27035 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27036 cat > conftest.s <<EOF
27037 .section .text
27038 .globl _start
27039 .type _start, @function
27040 _start:
27041 .long foo
27042 .size _start, .-_start
27043 .section .text.foo,"ax",@progbits
27044 .type foo, @function
27045 foo:
27046 .long 0
27047 .size foo, .-foo
27048 .section .gcc_except_table.foo,"a",@progbits
27049 .L0:
27050 .long 0
27051 .section .eh_frame,"a",@progbits
27052 .long .L0
27054 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27055 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27056 | grep "gc-sections option ignored" > /dev/null; then
27057 gcc_cv_ld_eh_gc_sections=no
27058 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27059 | grep gcc_except_table > /dev/null; then
27060 gcc_cv_ld_eh_gc_sections=yes
27061 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27062 if test x$gcc_cv_as_comdat_group != xyes; then
27063 gcc_cv_ld_eh_gc_sections=no
27064 cat > conftest.s <<EOF
27065 .section .text
27066 .globl _start
27067 .type _start, @function
27068 _start:
27069 .long foo
27070 .size _start, .-_start
27071 .section .gnu.linkonce.t.foo,"ax",@progbits
27072 .type foo, @function
27073 foo:
27074 .long 0
27075 .size foo, .-foo
27076 .section .gcc_except_table.foo,"a",@progbits
27077 .L0:
27078 .long 0
27079 .section .eh_frame,"a",@progbits
27080 .long .L0
27082 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27083 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27084 | grep "gc-sections option ignored" > /dev/null; then
27085 gcc_cv_ld_eh_gc_sections=no
27086 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27087 | grep gcc_except_table > /dev/null; then
27088 gcc_cv_ld_eh_gc_sections=yes
27094 rm -f conftest.s conftest.o conftest
27096 case "$target" in
27097 hppa*-*-linux*)
27098 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27099 gcc_cv_ld_eh_gc_sections=no
27101 esac
27102 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27104 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27108 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27111 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27112 gcc_cv_ld_eh_gc_sections_bug=no
27113 if test $in_tree_ld = yes ; then
27114 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 \
27115 && test $in_tree_ld_is_elf = yes; then
27116 gcc_cv_ld_eh_gc_sections_bug=yes
27118 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
27119 gcc_cv_ld_eh_gc_sections_bug=yes
27120 cat > conftest.s <<EOF
27121 .section .text
27122 .globl _start
27123 .type _start, @function
27124 _start:
27125 .long foo
27126 .size _start, .-_start
27127 .section .text.startup.foo,"ax",@progbits
27128 .type foo, @function
27129 foo:
27130 .long 0
27131 .size foo, .-foo
27132 .section .gcc_except_table.foo,"a",@progbits
27133 .L0:
27134 .long 0
27135 .section .eh_frame,"a",@progbits
27136 .long .L0
27138 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27139 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27140 | grep "gc-sections option ignored" > /dev/null; then
27142 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27143 | grep gcc_except_table > /dev/null; then
27144 gcc_cv_ld_eh_gc_sections_bug=no
27147 rm -f conftest.s conftest.o conftest
27149 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27151 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27155 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27158 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27159 # gold/gld support compressed debug sections since binutils 2.19/2.21
27160 if test $in_tree_ld = yes ; then
27161 gcc_cv_ld_compress_debug=0
27162 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 \
27163 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27164 gcc_cv_ld_compress_debug=2
27165 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27166 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 \
27167 && test $in_tree_ld_is_elf = yes; then
27168 gcc_cv_ld_compress_debug=1
27170 elif echo "$ld_ver" | grep GNU > /dev/null; then
27171 gcc_cv_ld_compress_debug=1
27172 if test 0"$ld_date" -lt 20050308; then
27173 if test -n "$ld_date"; then
27174 # If there was date string, but was earlier than 2005-03-08, fail
27175 gcc_cv_ld_compress_debug=0
27176 elif test "$ld_vers_major" -lt 2; then
27177 gcc_cv_ld_compress_debug=0
27178 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27179 gcc_cv_ld_compress_debug=0
27182 if test $ld_is_gold = yes; then
27183 gcc_cv_ld_compress_debug=2
27184 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27186 else
27187 case "${target}" in
27188 *-*-solaris2*)
27189 # Introduced in Solaris 11.2.
27190 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27191 gcc_cv_ld_compress_debug=3
27192 gcc_cv_ld_compress_debug_option="-z compress-sections"
27193 else
27194 gcc_cv_ld_compress_debug=0
27198 # Assume linkers other than GNU ld don't support compessed debug
27199 # sections.
27200 gcc_cv_ld_compress_debug=0
27202 esac
27205 cat >>confdefs.h <<_ACEOF
27206 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27207 _ACEOF
27210 cat >>confdefs.h <<_ACEOF
27211 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27212 _ACEOF
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27215 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27217 # --------
27218 # UNSORTED
27219 # --------
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27222 $as_echo_n "checking linker --as-needed support... " >&6; }
27223 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27224 $as_echo_n "(cached) " >&6
27225 else
27226 gcc_cv_ld_as_needed=no
27227 gcc_cv_ld_as_needed_option='--as-needed'
27228 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27229 if test $in_tree_ld = yes ; then
27230 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 \
27231 && test $in_tree_ld_is_elf = yes; then
27232 gcc_cv_ld_as_needed=yes
27234 elif test x$gcc_cv_ld != x; then
27235 # Check if linker supports --as-needed and --no-as-needed options
27236 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27237 gcc_cv_ld_as_needed=yes
27238 else
27239 case "$target" in
27240 # Solaris 2 ld always supports -z ignore/-z record.
27241 *-*-solaris2*)
27242 gcc_cv_ld_as_needed=yes
27243 gcc_cv_ld_as_needed_option="-z ignore"
27244 gcc_cv_ld_no_as_needed_option="-z record"
27246 esac
27249 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27250 # dl_iterate_phdr, i.e. since Solaris 11.
27251 case "$target" in
27252 *-*-solaris2.1[1-9]*)
27253 case "$target" in
27254 i?86-*-* | x86_64-*-*)
27255 if echo "$ld_ver" | grep GNU > /dev/null; then
27256 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27257 gcc_cv_ld_as_needed=no
27260 esac
27262 *-*-solaris2*)
27263 gcc_cv_ld_as_needed=no
27265 esac
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27269 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27270 if test x"$gcc_cv_ld_as_needed" = xyes; then
27272 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27275 cat >>confdefs.h <<_ACEOF
27276 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27277 _ACEOF
27280 cat >>confdefs.h <<_ACEOF
27281 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27282 _ACEOF
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27287 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27288 saved_LDFLAGS="$LDFLAGS"
27289 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27290 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h. */
27293 int main(void) {return 0;}
27294 _ACEOF
27295 if ac_fn_c_try_link "$LINENO"; then :
27296 gcc_cv_ld_clearcap=yes; break
27297 else
27298 gcc_cv_ld_clearcap=no
27300 rm -f core conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext conftest.$ac_ext
27302 done
27303 LDFLAGS="$saved_LDFLAGS"
27304 if test "x$gcc_cv_ld_clearcap" = xyes; then
27306 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27308 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27312 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27314 case "$target:$tm_file" in
27315 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27316 case "$target" in
27317 *le-*-linux*)
27318 emul_name="-melf64lppc"
27320 *-*-linux*)
27321 emul_name="-melf64ppc"
27323 *-*-freebsd*)
27324 emul_name="-melf64ppc_fbsd"
27326 esac
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27328 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27329 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27330 $as_echo_n "(cached) " >&6
27331 else
27332 gcc_cv_ld_no_dot_syms=no
27333 if test x"$ld_is_gold" = xyes; then
27334 gcc_cv_ld_no_dot_syms=yes
27335 elif test $in_tree_ld = yes ; then
27336 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
27337 gcc_cv_ld_no_dot_syms=yes
27339 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27340 cat > conftest1.s <<EOF
27341 .text
27342 bl .foo
27344 cat > conftest2.s <<EOF
27345 .section ".opd","aw"
27346 .align 3
27347 .globl foo
27348 .type foo,@function
27349 foo:
27350 .quad .LEfoo,.TOC.@tocbase,0
27351 .text
27352 .LEfoo:
27354 .size foo,.-.LEfoo
27356 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27357 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27358 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27359 gcc_cv_ld_no_dot_syms=yes
27361 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27366 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27367 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27369 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27374 $as_echo_n "checking linker large toc support... " >&6; }
27375 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27376 $as_echo_n "(cached) " >&6
27377 else
27378 gcc_cv_ld_large_toc=no
27379 if test x"$ld_is_gold" = xyes; then
27380 gcc_cv_ld_large_toc=yes
27381 elif test $in_tree_ld = yes ; then
27382 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
27383 gcc_cv_ld_large_toc=yes
27385 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27386 cat > conftest.s <<EOF
27387 .section ".tbss","awT",@nobits
27388 .align 3
27389 ie0: .space 8
27390 .global _start
27391 .text
27392 _start:
27393 addis 9,13,ie0@got@tprel@ha
27394 ld 9,ie0@got@tprel@l(9)
27396 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27397 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27398 gcc_cv_ld_large_toc=yes
27400 rm -f conftest conftest.o conftest.s
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27405 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27406 if test x"$gcc_cv_ld_large_toc" = xyes; then
27408 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27412 esac
27414 case "$target" in
27415 *-*-aix*)
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27417 $as_echo_n "checking linker large toc support... " >&6; }
27418 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27419 $as_echo_n "(cached) " >&6
27420 else
27421 gcc_cv_ld_large_toc=no
27422 if test x$gcc_cv_as != x ; then
27423 cat > conftest.s <<EOF
27424 .toc
27425 LC..1:
27426 .tc a[TC],a[RW]
27427 .extern a[RW]
27428 .csect .text[PR]
27429 .largetoctest:
27430 addis 9,LC..1@u(2)
27431 ld 3,LC..1@l(9)
27433 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27434 gcc_cv_ld_large_toc=yes
27436 rm -f conftest conftest.o conftest.s
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27441 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27442 if test x"$gcc_cv_ld_large_toc" = xyes; then
27444 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27448 esac
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27451 $as_echo_n "checking linker --build-id support... " >&6; }
27452 if test "${gcc_cv_ld_buildid+set}" = set; then :
27453 $as_echo_n "(cached) " >&6
27454 else
27455 gcc_cv_ld_buildid=no
27456 if test $in_tree_ld = yes ; then
27457 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27458 "$gcc_cv_gld_minor_version" -ge 18 -o \
27459 "$gcc_cv_gld_major_version" -gt 2 \
27460 && test $in_tree_ld_is_elf = yes; then
27461 gcc_cv_ld_buildid=yes
27463 elif test x$gcc_cv_ld != x; then
27464 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27465 gcc_cv_ld_buildid=yes
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27470 $as_echo "$gcc_cv_ld_buildid" >&6; }
27471 if test x"$gcc_cv_ld_buildid" = xyes; then
27473 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27477 # Check whether --enable-linker-build-id was given.
27478 if test "${enable_linker_build_id+set}" = set; then :
27479 enableval=$enable_linker_build_id;
27480 else
27481 enable_linker_build_id=no
27485 if test x"$enable_linker_build_id" = xyes; then
27486 if test x"$gcc_cv_ld_buildid" = xyes; then
27488 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27490 else
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27492 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27496 # In binutils 2.21, GNU ld gained support for new emulations fully
27497 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27499 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27500 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27501 $as_echo_n "(cached) " >&6
27502 else
27503 gcc_cv_ld_sol2_emulation=no
27504 if test $in_tree_ld = yes ; then
27505 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27506 "$gcc_cv_gld_minor_version" -ge 21 -o \
27507 "$gcc_cv_gld_major_version" -gt 2 \
27508 && test $in_tree_ld_is_elf = yes; then
27509 gcc_cv_ld_sol2_emulation=yes
27511 elif test x$gcc_cv_ld != x; then
27512 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27513 grep _sol2 > /dev/null; then
27514 gcc_cv_ld_sol2_emulation=yes
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27519 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27520 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27522 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27527 $as_echo_n "checking linker --sysroot support... " >&6; }
27528 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27529 $as_echo_n "(cached) " >&6
27530 else
27531 gcc_cv_ld_sysroot=no
27532 if test $in_tree_ld = yes ; then
27533 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
27534 gcc_cv_ld_sysroot=yes
27536 elif test x$gcc_cv_ld != x; then
27537 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27538 gcc_cv_ld_sysroot=yes
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27543 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27544 if test x"$gcc_cv_ld_sysroot" = xyes; then
27546 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27550 # Test for stack protector support in target C library.
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27552 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27553 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27555 else
27556 gcc_cv_libc_provides_ssp=no
27557 case "$target" in
27558 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27559 # glibc 2.4 and later provides __stack_chk_fail and
27560 # either __stack_chk_guard, or TLS access to stack guard canary.
27562 if test $glibc_version_major -gt 2 \
27563 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27564 gcc_cv_libc_provides_ssp=yes
27565 else
27567 if test -f $target_header_dir/features.h \
27568 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27569 $target_header_dir/features.h > /dev/null; then
27570 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27571 $target_header_dir/features.h > /dev/null && \
27572 test -f $target_header_dir/bits/uClibc_config.h && \
27573 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27574 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27575 gcc_cv_libc_provides_ssp=yes
27577 # all versions of Bionic support stack protector
27578 elif test -f $target_header_dir/sys/cdefs.h \
27579 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27580 $target_header_dir/sys/cdefs.h > /dev/null; then
27581 gcc_cv_libc_provides_ssp=yes
27585 *-*-gnu*)
27586 # Avoid complicated tests (see
27587 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27588 # simply assert that glibc does provide this, which is true for all
27589 # realistically usable GNU/Hurd configurations.
27590 gcc_cv_libc_provides_ssp=yes;;
27591 *-*-darwin* | *-*-freebsd*)
27592 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27593 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27594 gcc_cv_libc_provides_ssp=yes
27595 else
27596 echo "no __stack_chk_fail on this target"
27600 *) gcc_cv_libc_provides_ssp=no ;;
27601 esac
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27604 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27606 if test x$gcc_cv_libc_provides_ssp = xyes; then
27608 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27612 # Test for <sys/sdt.h> on the target.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27615 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27616 have_sys_sdt_h=no
27617 if test -f $target_header_dir/sys/sdt.h; then
27618 have_sys_sdt_h=yes
27620 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27624 $as_echo "$have_sys_sdt_h" >&6; }
27626 # Check if TFmode long double should be used by default or not.
27627 # Some glibc targets used DFmode long double, but with glibc 2.4
27628 # and later they can use TFmode.
27629 case "$target" in
27630 powerpc*-*-linux* | \
27631 sparc*-*-linux* | \
27632 s390*-*-linux* | \
27633 alpha*-*-linux*)
27635 # Check whether --with-long-double-128 was given.
27636 if test "${with_long_double_128+set}" = set; then :
27637 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27638 else
27640 if test $glibc_version_major -gt 2 \
27641 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27642 gcc_cv_target_ldbl128=yes
27643 else
27645 gcc_cv_target_ldbl128=no
27646 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27647 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27648 && gcc_cv_target_ldbl128=yes
27654 esac
27655 if test x$gcc_cv_target_ldbl128 = xyes; then
27657 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27662 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27663 gcc_cv_target_dl_iterate_phdr=unknown
27664 case "$target" in
27665 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27666 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27667 # libdl there, both complicating its use and breaking compatibility
27668 # between Solaris 10 updates.
27669 *-*-solaris2.1[1-9]*)
27670 # <link.h> needs both a dl_iterate_phdr declaration and support for
27671 # compilation with largefile support.
27672 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27673 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27674 gcc_cv_target_dl_iterate_phdr=yes
27675 else
27676 gcc_cv_target_dl_iterate_phdr=no
27679 *-*-dragonfly* | *-*-freebsd*)
27680 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27681 gcc_cv_target_dl_iterate_phdr=yes
27682 else
27683 gcc_cv_target_dl_iterate_phdr=no
27686 esac
27688 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27690 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27694 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27696 # We no longer support different GC mechanisms. Emit an error if
27697 # the user configures with --with-gc.
27699 # Check whether --with-gc was given.
27700 if test "${with_gc+set}" = set; then :
27701 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27705 # Libraries to use on the host. This will normally be set by the top
27706 # level Makefile. Here we simply capture the value for our Makefile.
27707 if test -z "${HOST_LIBS+set}"; then
27708 HOST_LIBS=
27712 # Use the system's zlib library.
27713 zlibdir=-L../zlib
27714 zlibinc="-I\$(srcdir)/../zlib"
27716 # Check whether --with-system-zlib was given.
27717 if test "${with_system_zlib+set}" = set; then :
27718 withval=$with_system_zlib; zlibdir=
27719 zlibinc=
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27728 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27729 # Check whether --enable-maintainer-mode was given.
27730 if test "${enable_maintainer_mode+set}" = set; then :
27731 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27732 else
27733 maintainer_mode=no
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27738 $as_echo "$maintainer_mode" >&6; }
27740 if test "$maintainer_mode" = "yes"; then
27741 MAINT=''
27742 else
27743 MAINT='#'
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27748 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27749 # Check whether --enable-link-mutex was given.
27750 if test "${enable_link_mutex+set}" = set; then :
27751 enableval=$enable_link_mutex; do_link_mutex=$enableval
27752 else
27753 do_link_mutex=no
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27757 $as_echo "$do_link_mutex" >&6; }
27759 if test "$do_link_mutex" = "yes"; then
27760 DO_LINK_MUTEX=true
27761 else
27762 DO_LINK_MUTEX=false
27766 # --------------
27767 # Language hooks
27768 # --------------
27770 # Make empty files to contain the specs and options for each language.
27771 # Then add #include lines to for a compiler that has specs and/or options.
27773 subdirs=
27774 lang_opt_files=
27775 lang_specs_files=
27776 lang_tree_files=
27777 # These (without "all_") are set in each config-lang.in.
27778 # `language' must be a single word so is spelled singularly.
27779 all_languages=
27780 all_compilers=
27781 all_outputs='Makefile'
27782 # List of language makefile fragments.
27783 all_lang_makefrags=
27784 # Additional files for gengtype
27785 all_gtfiles="$target_gtfiles"
27787 # These are the languages that are set in --enable-languages,
27788 # and are available in the GCC tree.
27789 all_selected_languages=
27791 # Add the language fragments.
27792 # Languages are added via two mechanisms. Some information must be
27793 # recorded in makefile variables, these are defined in config-lang.in.
27794 # We accumulate them and plug them into the main Makefile.
27795 # The other mechanism is a set of hooks for each of the main targets
27796 # like `clean', `install', etc.
27798 language_hooks="Make-hooks"
27800 for lang in ${srcdir}/*/config-lang.in
27802 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27804 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27805 if test "x$lang_alias" = x
27806 then
27807 echo "$lang doesn't set \$language." 1>&2
27808 exit 1
27810 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27811 subdirs="$subdirs $subdir"
27813 # $gcc_subdir is where the gcc integration files are to be found
27814 # for a language, both for internal compiler purposes (compiler
27815 # sources implementing front-end to GCC tree converters), and for
27816 # build infrastructure purposes (Make-lang.in, etc.)
27818 # This will be <subdir> (relative to $srcdir) if a line like
27819 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27820 # is found in <langdir>/config-lang.in, and will remain <langdir>
27821 # otherwise.
27823 # Except for the language alias (fetched above), the regular
27824 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27825 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27826 # only this and the language alias.
27828 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27829 if [ "$gcc_subdir" = "" ]; then
27830 gcc_subdir="$subdir"
27833 case ",$enable_languages," in
27834 *,$lang_alias,*)
27835 all_selected_languages="$all_selected_languages $lang_alias"
27836 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27837 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27840 esac
27842 language=
27843 boot_language=
27844 compilers=
27845 outputs=
27846 gtfiles=
27847 subdir_requires=
27848 . ${srcdir}/$gcc_subdir/config-lang.in
27849 if test "x$language" = x
27850 then
27851 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27852 exit 1
27855 ok=:
27856 case ",$enable_languages," in
27857 *,$lang_alias,*) ;;
27859 for i in $subdir_requires; do
27860 test -f "${srcdir}/$i/config-lang.in" && continue
27861 ok=false
27862 break
27863 done
27865 esac
27866 $ok || continue
27868 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27869 if test -f $srcdir/$gcc_subdir/lang.opt; then
27870 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27871 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27873 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27874 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27876 all_languages="$all_languages $language"
27877 all_compilers="$all_compilers $compilers"
27878 all_outputs="$all_outputs $outputs"
27879 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27880 case ",$enable_languages," in
27881 *,lto,*)
27883 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27885 enable_lto=yes
27888 *) ;;
27889 esac
27890 done
27892 check_languages=
27893 for language in $all_selected_languages
27895 check_languages="$check_languages check-$language"
27896 done
27898 # We link each language in with a set of hooks, reached indirectly via
27899 # lang.${target}. Only do so for selected languages.
27901 rm -f Make-hooks
27902 touch Make-hooks
27903 target_list="all.cross start.encap rest.encap tags \
27904 install-common install-man install-info install-pdf install-html dvi \
27905 pdf html uninstall info man srcextra srcman srcinfo \
27906 mostlyclean clean distclean maintainer-clean install-plugin"
27908 for t in $target_list
27911 for lang in $all_selected_languages
27913 x="$x $lang.$t"
27914 done
27915 echo "lang.$t: $x" >> Make-hooks
27916 done
27918 # --------
27919 # Option include files
27920 # --------
27922 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27923 option_includes="option-includes.mk"
27926 # --------
27927 # UNSORTED
27928 # --------
27930 # Create .gdbinit.
27932 echo "dir ." > .gdbinit
27933 echo "dir ${srcdir}" >> .gdbinit
27934 if test x$gdb_needs_out_file_path = xyes
27935 then
27936 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27938 if test "x$subdirs" != x; then
27939 for s in $subdirs
27941 echo "dir ${srcdir}/$s" >> .gdbinit
27942 done
27944 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27945 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27947 # Put a breakpoint on __asan_report_error to help with debugging buffer
27948 # overflow.
27949 case "$CFLAGS" in
27950 *-fsanitize=address*)
27951 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27953 esac
27955 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27959 # Find a directory in which to install a shared libgcc.
27961 # Check whether --enable-version-specific-runtime-libs was given.
27962 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27963 enableval=$enable_version_specific_runtime_libs;
27967 # Substitute configuration variables
28030 # Echo link setup.
28031 if test x${build} = x${host} ; then
28032 if test x${host} = x${target} ; then
28033 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28034 else
28035 echo "Links are now set up to build a cross-compiler" 1>&2
28036 echo " from ${host} to ${target}." 1>&2
28038 else
28039 if test x${host} = x${target} ; then
28040 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28041 echo " for ${target}." 1>&2
28042 else
28043 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28044 echo " from ${host} to ${target}." 1>&2
28053 if test "x${ISLLIBS}" != "x" ; then
28055 $as_echo "#define HAVE_isl 1" >>confdefs.h
28059 # Check for plugin support
28060 # Check whether --enable-plugin was given.
28061 if test "${enable_plugin+set}" = set; then :
28062 enableval=$enable_plugin; enable_plugin=$enableval
28063 else
28064 enable_plugin=yes; default_plugin=yes
28068 pluginlibs=
28070 case "${host}" in
28071 *-*-darwin*)
28072 if test x$build = x$host; then
28073 export_sym_check="nm${exeext} -g"
28074 elif test x$host = x$target; then
28075 export_sym_check="$gcc_cv_nm -g"
28076 else
28077 export_sym_check=
28081 if test x$build = x$host; then
28082 export_sym_check="objdump${exeext} -T"
28083 elif test x$host = x$target; then
28084 export_sym_check="$gcc_cv_objdump -T"
28085 else
28086 export_sym_check=
28089 esac
28091 if test x"$enable_plugin" = x"yes"; then
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28094 $as_echo_n "checking for exported symbols... " >&6; }
28095 if test "x$export_sym_check" != x; then
28096 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28097 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28098 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28099 : # No need to use a flag
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28101 $as_echo "yes" >&6; }
28102 else
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28106 $as_echo_n "checking for -rdynamic... " >&6; }
28107 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28108 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28109 plugin_rdynamic=yes
28110 pluginlibs="-rdynamic"
28111 else
28112 plugin_rdynamic=no
28113 enable_plugin=no
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28116 $as_echo "$plugin_rdynamic" >&6; }
28118 else
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28120 $as_echo "unable to check" >&6; }
28123 # Check -ldl
28124 saved_LIBS="$LIBS"
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28126 $as_echo_n "checking for library containing dlopen... " >&6; }
28127 if test "${ac_cv_search_dlopen+set}" = set; then :
28128 $as_echo_n "(cached) " >&6
28129 else
28130 ac_func_search_save_LIBS=$LIBS
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 /* Override any GCC internal prototype to avoid an error.
28135 Use char because int might match the return type of a GCC
28136 builtin and then its argument prototype would still apply. */
28137 #ifdef __cplusplus
28138 extern "C"
28139 #endif
28140 char dlopen ();
28142 main ()
28144 return dlopen ();
28146 return 0;
28148 _ACEOF
28149 for ac_lib in '' dl; do
28150 if test -z "$ac_lib"; then
28151 ac_res="none required"
28152 else
28153 ac_res=-l$ac_lib
28154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28156 if ac_fn_c_try_link "$LINENO"; then :
28157 ac_cv_search_dlopen=$ac_res
28159 rm -f core conftest.err conftest.$ac_objext \
28160 conftest$ac_exeext
28161 if test "${ac_cv_search_dlopen+set}" = set; then :
28162 break
28164 done
28165 if test "${ac_cv_search_dlopen+set}" = set; then :
28167 else
28168 ac_cv_search_dlopen=no
28170 rm conftest.$ac_ext
28171 LIBS=$ac_func_search_save_LIBS
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28174 $as_echo "$ac_cv_search_dlopen" >&6; }
28175 ac_res=$ac_cv_search_dlopen
28176 if test "$ac_res" != no; then :
28177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28181 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28182 pluginlibs="$pluginlibs -ldl"
28184 LIBS="$saved_LIBS"
28186 # Check that we can build shared objects with -fPIC -shared
28187 saved_LDFLAGS="$LDFLAGS"
28188 saved_CFLAGS="$CFLAGS"
28189 case "${host}" in
28190 *-*-darwin*)
28191 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28192 CFLAGS="$CFLAGS -fPIC"
28193 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28196 CFLAGS="$CFLAGS -fPIC"
28197 LDFLAGS="$LDFLAGS -fPIC -shared"
28199 esac
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28201 $as_echo_n "checking for -fPIC -shared... " >&6; }
28202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h. */
28204 extern int X;
28206 main ()
28208 return X == 0;
28210 return 0;
28212 _ACEOF
28213 if ac_fn_c_try_link "$LINENO"; then :
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215 $as_echo "yes" >&6; }; have_pic_shared=yes
28216 else
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28218 $as_echo "no" >&6; }; have_pic_shared=no
28220 rm -f core conftest.err conftest.$ac_objext \
28221 conftest$ac_exeext conftest.$ac_ext
28222 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28223 pluginlibs=
28224 enable_plugin=no
28226 LDFLAGS="$saved_LDFLAGS"
28227 CFLAGS="$saved_CFLAGS"
28229 # If plugin support had been requested but not available, fail.
28230 if test x"$enable_plugin" = x"no" ; then
28231 if test x"$default_plugin" != x"yes"; then
28232 as_fn_error "
28233 Building GCC with plugin support requires a host that supports
28234 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28241 if test x"$enable_plugin" = x"yes"; then
28243 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28248 # Enable --enable-host-shared
28249 # Check whether --enable-host-shared was given.
28250 if test "${enable_host_shared+set}" = set; then :
28251 enableval=$enable_host_shared; PICFLAG=-fPIC
28252 else
28253 PICFLAG=
28260 # Check whether --enable-libquadmath-support was given.
28261 if test "${enable_libquadmath_support+set}" = set; then :
28262 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28263 else
28264 ENABLE_LIBQUADMATH_SUPPORT=yes
28267 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28269 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28274 # Specify what hash style to use by default.
28276 # Check whether --with-linker-hash-style was given.
28277 if test "${with_linker_hash_style+set}" = set; then :
28278 withval=$with_linker_hash_style; case x"$withval" in
28279 xsysv)
28280 LINKER_HASH_STYLE=sysv
28282 xgnu)
28283 LINKER_HASH_STYLE=gnu
28285 xboth)
28286 LINKER_HASH_STYLE=both
28289 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28291 esac
28292 else
28293 LINKER_HASH_STYLE=''
28296 if test x"${LINKER_HASH_STYLE}" != x; then
28298 cat >>confdefs.h <<_ACEOF
28299 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28300 _ACEOF
28304 # Specify what should be the default of -fdiagnostics-color option.
28306 # Check whether --with-diagnostics-color was given.
28307 if test "${with_diagnostics_color+set}" = set; then :
28308 withval=$with_diagnostics_color; case x"$withval" in
28309 xnever)
28310 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28312 xauto)
28313 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28315 xauto-if-env)
28316 DIAGNOSTICS_COLOR_DEFAULT=-1
28318 xalways)
28319 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28322 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28324 esac
28325 else
28326 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28330 cat >>confdefs.h <<_ACEOF
28331 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28332 _ACEOF
28335 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28336 # of jit/jit-playback.c.
28337 cat > gcc-driver-name.h <<EOF
28338 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28341 # Configure the subdirectories
28342 # AC_CONFIG_SUBDIRS($subdirs)
28344 # Create the Makefile
28345 # and configure language subdirectories
28346 ac_config_files="$ac_config_files $all_outputs"
28349 ac_config_commands="$ac_config_commands default"
28351 cat >confcache <<\_ACEOF
28352 # This file is a shell script that caches the results of configure
28353 # tests run on this system so they can be shared between configure
28354 # scripts and configure runs, see configure's option --config-cache.
28355 # It is not useful on other systems. If it contains results you don't
28356 # want to keep, you may remove or edit it.
28358 # config.status only pays attention to the cache file if you give it
28359 # the --recheck option to rerun configure.
28361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28363 # following values.
28365 _ACEOF
28367 # The following way of writing the cache mishandles newlines in values,
28368 # but we know of no workaround that is simple, portable, and efficient.
28369 # So, we kill variables containing newlines.
28370 # Ultrix sh set writes to stderr and can't be redirected directly,
28371 # and sets the high bit in the cache file unless we assign to the vars.
28373 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28374 eval ac_val=\$$ac_var
28375 case $ac_val in #(
28376 *${as_nl}*)
28377 case $ac_var in #(
28378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28380 esac
28381 case $ac_var in #(
28382 _ | IFS | as_nl) ;; #(
28383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28384 *) { eval $ac_var=; unset $ac_var;} ;;
28385 esac ;;
28386 esac
28387 done
28389 (set) 2>&1 |
28390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28391 *${as_nl}ac_space=\ *)
28392 # `set' does not quote correctly, so add quotes: double-quote
28393 # substitution turns \\\\ into \\, and sed turns \\ into \.
28394 sed -n \
28395 "s/'/'\\\\''/g;
28396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28397 ;; #(
28399 # `set' quotes correctly as required by POSIX, so do not add quotes.
28400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28402 esac |
28403 sort
28405 sed '
28406 /^ac_cv_env_/b end
28407 t clear
28408 :clear
28409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28410 t end
28411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28412 :end' >>confcache
28413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28414 if test -w "$cache_file"; then
28415 test "x$cache_file" != "x/dev/null" &&
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28417 $as_echo "$as_me: updating cache $cache_file" >&6;}
28418 cat confcache >$cache_file
28419 else
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28424 rm -f confcache
28426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28427 # Let make expand exec_prefix.
28428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28430 DEFS=-DHAVE_CONFIG_H
28432 ac_libobjs=
28433 ac_ltlibobjs=
28434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28435 # 1. Remove the extension, and $U if already installed.
28436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28439 # will be set to the directory where LIBOBJS objects are built.
28440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28442 done
28443 LIBOBJS=$ac_libobjs
28445 LTLIBOBJS=$ac_ltlibobjs
28450 : ${CONFIG_STATUS=./config.status}
28451 ac_write_fail=0
28452 ac_clean_files_save=$ac_clean_files
28453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28456 as_write_fail=0
28457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28458 #! $SHELL
28459 # Generated by $as_me.
28460 # Run this file to recreate the current configuration.
28461 # Compiler output produced by configure, useful for debugging
28462 # configure, is in config.log if it exists.
28464 debug=false
28465 ac_cs_recheck=false
28466 ac_cs_silent=false
28468 SHELL=\${CONFIG_SHELL-$SHELL}
28469 export SHELL
28470 _ASEOF
28471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28472 ## -------------------- ##
28473 ## M4sh Initialization. ##
28474 ## -------------------- ##
28476 # Be more Bourne compatible
28477 DUALCASE=1; export DUALCASE # for MKS sh
28478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28479 emulate sh
28480 NULLCMD=:
28481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28482 # is contrary to our usage. Disable this feature.
28483 alias -g '${1+"$@"}'='"$@"'
28484 setopt NO_GLOB_SUBST
28485 else
28486 case `(set -o) 2>/dev/null` in #(
28487 *posix*) :
28488 set -o posix ;; #(
28489 *) :
28491 esac
28495 as_nl='
28497 export as_nl
28498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28502 # Prefer a ksh shell builtin over an external printf program on Solaris,
28503 # but without wasting forks for bash or zsh.
28504 if test -z "$BASH_VERSION$ZSH_VERSION" \
28505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28506 as_echo='print -r --'
28507 as_echo_n='print -rn --'
28508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28509 as_echo='printf %s\n'
28510 as_echo_n='printf %s'
28511 else
28512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28514 as_echo_n='/usr/ucb/echo -n'
28515 else
28516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28517 as_echo_n_body='eval
28518 arg=$1;
28519 case $arg in #(
28520 *"$as_nl"*)
28521 expr "X$arg" : "X\\(.*\\)$as_nl";
28522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28523 esac;
28524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28526 export as_echo_n_body
28527 as_echo_n='sh -c $as_echo_n_body as_echo'
28529 export as_echo_body
28530 as_echo='sh -c $as_echo_body as_echo'
28533 # The user is always right.
28534 if test "${PATH_SEPARATOR+set}" != set; then
28535 PATH_SEPARATOR=:
28536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28538 PATH_SEPARATOR=';'
28543 # IFS
28544 # We need space, tab and new line, in precisely that order. Quoting is
28545 # there to prevent editors from complaining about space-tab.
28546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28547 # splitting by setting IFS to empty value.)
28548 IFS=" "" $as_nl"
28550 # Find who we are. Look in the path if we contain no directory separator.
28551 case $0 in #((
28552 *[\\/]* ) as_myself=$0 ;;
28553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28554 for as_dir in $PATH
28556 IFS=$as_save_IFS
28557 test -z "$as_dir" && as_dir=.
28558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28559 done
28560 IFS=$as_save_IFS
28563 esac
28564 # We did not find ourselves, most probably we were run as `sh COMMAND'
28565 # in which case we are not to be found in the path.
28566 if test "x$as_myself" = x; then
28567 as_myself=$0
28569 if test ! -f "$as_myself"; then
28570 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28571 exit 1
28574 # Unset variables that we do not need and which cause bugs (e.g. in
28575 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28576 # suppresses any "Segmentation fault" message there. '((' could
28577 # trigger a bug in pdksh 5.2.14.
28578 for as_var in BASH_ENV ENV MAIL MAILPATH
28579 do eval test x\${$as_var+set} = xset \
28580 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28581 done
28582 PS1='$ '
28583 PS2='> '
28584 PS4='+ '
28586 # NLS nuisances.
28587 LC_ALL=C
28588 export LC_ALL
28589 LANGUAGE=C
28590 export LANGUAGE
28592 # CDPATH.
28593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28596 # as_fn_error ERROR [LINENO LOG_FD]
28597 # ---------------------------------
28598 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28599 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28600 # script with status $?, using 1 if that was 0.
28601 as_fn_error ()
28603 as_status=$?; test $as_status -eq 0 && as_status=1
28604 if test "$3"; then
28605 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28606 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28608 $as_echo "$as_me: error: $1" >&2
28609 as_fn_exit $as_status
28610 } # as_fn_error
28613 # as_fn_set_status STATUS
28614 # -----------------------
28615 # Set $? to STATUS, without forking.
28616 as_fn_set_status ()
28618 return $1
28619 } # as_fn_set_status
28621 # as_fn_exit STATUS
28622 # -----------------
28623 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28624 as_fn_exit ()
28626 set +e
28627 as_fn_set_status $1
28628 exit $1
28629 } # as_fn_exit
28631 # as_fn_unset VAR
28632 # ---------------
28633 # Portably unset VAR.
28634 as_fn_unset ()
28636 { eval $1=; unset $1;}
28638 as_unset=as_fn_unset
28639 # as_fn_append VAR VALUE
28640 # ----------------------
28641 # Append the text in VALUE to the end of the definition contained in VAR. Take
28642 # advantage of any shell optimizations that allow amortized linear growth over
28643 # repeated appends, instead of the typical quadratic growth present in naive
28644 # implementations.
28645 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28646 eval 'as_fn_append ()
28648 eval $1+=\$2
28650 else
28651 as_fn_append ()
28653 eval $1=\$$1\$2
28655 fi # as_fn_append
28657 # as_fn_arith ARG...
28658 # ------------------
28659 # Perform arithmetic evaluation on the ARGs, and store the result in the
28660 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28661 # must be portable across $(()) and expr.
28662 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28663 eval 'as_fn_arith ()
28665 as_val=$(( $* ))
28667 else
28668 as_fn_arith ()
28670 as_val=`expr "$@" || test $? -eq 1`
28672 fi # as_fn_arith
28675 if expr a : '\(a\)' >/dev/null 2>&1 &&
28676 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28677 as_expr=expr
28678 else
28679 as_expr=false
28682 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28683 as_basename=basename
28684 else
28685 as_basename=false
28688 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28689 as_dirname=dirname
28690 else
28691 as_dirname=false
28694 as_me=`$as_basename -- "$0" ||
28695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28696 X"$0" : 'X\(//\)$' \| \
28697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28698 $as_echo X/"$0" |
28699 sed '/^.*\/\([^/][^/]*\)\/*$/{
28700 s//\1/
28703 /^X\/\(\/\/\)$/{
28704 s//\1/
28707 /^X\/\(\/\).*/{
28708 s//\1/
28711 s/.*/./; q'`
28713 # Avoid depending upon Character Ranges.
28714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28717 as_cr_digits='0123456789'
28718 as_cr_alnum=$as_cr_Letters$as_cr_digits
28720 ECHO_C= ECHO_N= ECHO_T=
28721 case `echo -n x` in #(((((
28722 -n*)
28723 case `echo 'xy\c'` in
28724 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28725 xy) ECHO_C='\c';;
28726 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28727 ECHO_T=' ';;
28728 esac;;
28730 ECHO_N='-n';;
28731 esac
28733 rm -f conf$$ conf$$.exe conf$$.file
28734 if test -d conf$$.dir; then
28735 rm -f conf$$.dir/conf$$.file
28736 else
28737 rm -f conf$$.dir
28738 mkdir conf$$.dir 2>/dev/null
28740 if (echo >conf$$.file) 2>/dev/null; then
28741 if ln -s conf$$.file conf$$ 2>/dev/null; then
28742 as_ln_s='ln -s'
28743 # ... but there are two gotchas:
28744 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28745 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28746 # In both cases, we have to default to `cp -p'.
28747 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28748 as_ln_s='cp -p'
28749 elif ln conf$$.file conf$$ 2>/dev/null; then
28750 as_ln_s=ln
28751 else
28752 as_ln_s='cp -p'
28754 else
28755 as_ln_s='cp -p'
28757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28758 rmdir conf$$.dir 2>/dev/null
28761 # as_fn_mkdir_p
28762 # -------------
28763 # Create "$as_dir" as a directory, including parents if necessary.
28764 as_fn_mkdir_p ()
28767 case $as_dir in #(
28768 -*) as_dir=./$as_dir;;
28769 esac
28770 test -d "$as_dir" || eval $as_mkdir_p || {
28771 as_dirs=
28772 while :; do
28773 case $as_dir in #(
28774 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28775 *) as_qdir=$as_dir;;
28776 esac
28777 as_dirs="'$as_qdir' $as_dirs"
28778 as_dir=`$as_dirname -- "$as_dir" ||
28779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28780 X"$as_dir" : 'X\(//\)[^/]' \| \
28781 X"$as_dir" : 'X\(//\)$' \| \
28782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28783 $as_echo X"$as_dir" |
28784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28785 s//\1/
28788 /^X\(\/\/\)[^/].*/{
28789 s//\1/
28792 /^X\(\/\/\)$/{
28793 s//\1/
28796 /^X\(\/\).*/{
28797 s//\1/
28800 s/.*/./; q'`
28801 test -d "$as_dir" && break
28802 done
28803 test -z "$as_dirs" || eval "mkdir $as_dirs"
28804 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28807 } # as_fn_mkdir_p
28808 if mkdir -p . 2>/dev/null; then
28809 as_mkdir_p='mkdir -p "$as_dir"'
28810 else
28811 test -d ./-p && rmdir ./-p
28812 as_mkdir_p=false
28815 if test -x / >/dev/null 2>&1; then
28816 as_test_x='test -x'
28817 else
28818 if ls -dL / >/dev/null 2>&1; then
28819 as_ls_L_option=L
28820 else
28821 as_ls_L_option=
28823 as_test_x='
28824 eval sh -c '\''
28825 if test -d "$1"; then
28826 test -d "$1/.";
28827 else
28828 case $1 in #(
28829 -*)set "./$1";;
28830 esac;
28831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28832 ???[sx]*):;;*)false;;esac;fi
28833 '\'' sh
28836 as_executable_p=$as_test_x
28838 # Sed expression to map a string onto a valid CPP name.
28839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28841 # Sed expression to map a string onto a valid variable name.
28842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28845 exec 6>&1
28846 ## ----------------------------------- ##
28847 ## Main body of $CONFIG_STATUS script. ##
28848 ## ----------------------------------- ##
28849 _ASEOF
28850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28853 # Save the log message, to keep $0 and so on meaningful, and to
28854 # report actual input values of CONFIG_FILES etc. instead of their
28855 # values after options handling.
28856 ac_log="
28857 This file was extended by $as_me, which was
28858 generated by GNU Autoconf 2.64. Invocation command line was
28860 CONFIG_FILES = $CONFIG_FILES
28861 CONFIG_HEADERS = $CONFIG_HEADERS
28862 CONFIG_LINKS = $CONFIG_LINKS
28863 CONFIG_COMMANDS = $CONFIG_COMMANDS
28864 $ $0 $@
28866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28869 _ACEOF
28871 case $ac_config_files in *"
28872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28873 esac
28875 case $ac_config_headers in *"
28876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28877 esac
28880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28881 # Files that config.status was made for.
28882 config_files="$ac_config_files"
28883 config_headers="$ac_config_headers"
28884 config_links="$ac_config_links"
28885 config_commands="$ac_config_commands"
28887 _ACEOF
28889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28890 ac_cs_usage="\
28891 \`$as_me' instantiates files and other configuration actions
28892 from templates according to the current configuration. Unless the files
28893 and actions are specified as TAGs, all are instantiated by default.
28895 Usage: $0 [OPTION]... [TAG]...
28897 -h, --help print this help, then exit
28898 -V, --version print version number and configuration settings, then exit
28899 -q, --quiet, --silent
28900 do not print progress messages
28901 -d, --debug don't remove temporary files
28902 --recheck update $as_me by reconfiguring in the same conditions
28903 --file=FILE[:TEMPLATE]
28904 instantiate the configuration file FILE
28905 --header=FILE[:TEMPLATE]
28906 instantiate the configuration header FILE
28908 Configuration files:
28909 $config_files
28911 Configuration headers:
28912 $config_headers
28914 Configuration links:
28915 $config_links
28917 Configuration commands:
28918 $config_commands
28920 Report bugs to the package provider."
28922 _ACEOF
28923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28924 ac_cs_version="\\
28925 config.status
28926 configured by $0, generated by GNU Autoconf 2.64,
28927 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28929 Copyright (C) 2009 Free Software Foundation, Inc.
28930 This config.status script is free software; the Free Software Foundation
28931 gives unlimited permission to copy, distribute and modify it."
28933 ac_pwd='$ac_pwd'
28934 srcdir='$srcdir'
28935 AWK='$AWK'
28936 test -n "\$AWK" || AWK=awk
28937 _ACEOF
28939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28940 # The default lists apply if the user does not specify any file.
28941 ac_need_defaults=:
28942 while test $# != 0
28944 case $1 in
28945 --*=*)
28946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28948 ac_shift=:
28951 ac_option=$1
28952 ac_optarg=$2
28953 ac_shift=shift
28955 esac
28957 case $ac_option in
28958 # Handling of the options.
28959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28960 ac_cs_recheck=: ;;
28961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28962 $as_echo "$ac_cs_version"; exit ;;
28963 --debug | --debu | --deb | --de | --d | -d )
28964 debug=: ;;
28965 --file | --fil | --fi | --f )
28966 $ac_shift
28967 case $ac_optarg in
28968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28969 esac
28970 as_fn_append CONFIG_FILES " '$ac_optarg'"
28971 ac_need_defaults=false;;
28972 --header | --heade | --head | --hea )
28973 $ac_shift
28974 case $ac_optarg in
28975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28976 esac
28977 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28978 ac_need_defaults=false;;
28979 --he | --h)
28980 # Conflict between --help and --header
28981 as_fn_error "ambiguous option: \`$1'
28982 Try \`$0 --help' for more information.";;
28983 --help | --hel | -h )
28984 $as_echo "$ac_cs_usage"; exit ;;
28985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28987 ac_cs_silent=: ;;
28989 # This is an error.
28990 -*) as_fn_error "unrecognized option: \`$1'
28991 Try \`$0 --help' for more information." ;;
28993 *) as_fn_append ac_config_targets " $1"
28994 ac_need_defaults=false ;;
28996 esac
28997 shift
28998 done
29000 ac_configure_extra_args=
29002 if $ac_cs_silent; then
29003 exec 6>/dev/null
29004 ac_configure_extra_args="$ac_configure_extra_args --silent"
29007 _ACEOF
29008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29009 if \$ac_cs_recheck; then
29010 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29011 shift
29012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29013 CONFIG_SHELL='$SHELL'
29014 export CONFIG_SHELL
29015 exec "\$@"
29018 _ACEOF
29019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29020 exec 5>>config.log
29022 echo
29023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29024 ## Running $as_me. ##
29025 _ASBOX
29026 $as_echo "$ac_log"
29027 } >&5
29029 _ACEOF
29030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29032 # INIT-COMMANDS
29034 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29035 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29036 subdirs='$subdirs'
29038 _ACEOF
29040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29042 # Handling of arguments.
29043 for ac_config_target in $ac_config_targets
29045 case $ac_config_target in
29046 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29047 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29048 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29049 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29050 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29051 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29052 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29053 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29054 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29056 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29057 esac
29058 done
29061 # If the user did not use the arguments to specify the items to instantiate,
29062 # then the envvar interface is used. Set only those that are not.
29063 # We use the long form for the default assignment because of an extremely
29064 # bizarre bug on SunOS 4.1.3.
29065 if $ac_need_defaults; then
29066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29068 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29072 # Have a temporary directory for convenience. Make it in the build tree
29073 # simply because there is no reason against having it here, and in addition,
29074 # creating and moving files from /tmp can sometimes cause problems.
29075 # Hook for its removal unless debugging.
29076 # Note that there is a small window in which the directory will not be cleaned:
29077 # after its creation but before its name has been assigned to `$tmp'.
29078 $debug ||
29080 tmp=
29081 trap 'exit_status=$?
29082 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29084 trap 'as_fn_exit 1' 1 2 13 15
29086 # Create a (secure) tmp directory for tmp files.
29089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29090 test -n "$tmp" && test -d "$tmp"
29091 } ||
29093 tmp=./conf$$-$RANDOM
29094 (umask 077 && mkdir "$tmp")
29095 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29097 # Set up the scripts for CONFIG_FILES section.
29098 # No need to generate them if there are no CONFIG_FILES.
29099 # This happens for instance with `./config.status config.h'.
29100 if test -n "$CONFIG_FILES"; then
29102 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29103 ac_cs_awk_getline=:
29104 ac_cs_awk_pipe_init=
29105 ac_cs_awk_read_file='
29106 while ((getline aline < (F[key])) > 0)
29107 print(aline)
29108 close(F[key])'
29109 ac_cs_awk_pipe_fini=
29110 else
29111 ac_cs_awk_getline=false
29112 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29113 ac_cs_awk_read_file='
29114 print "|#_!!_#|"
29115 print "cat " F[key] " &&"
29116 '$ac_cs_awk_pipe_init
29117 # The final `:' finishes the AND list.
29118 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29120 ac_cr=`echo X | tr X '\015'`
29121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29122 # But we know of no other shell where ac_cr would be empty at this
29123 # point, so we can use a bashism as a fallback.
29124 if test "x$ac_cr" = x; then
29125 eval ac_cr=\$\'\\r\'
29127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29129 ac_cs_awk_cr='\r'
29130 else
29131 ac_cs_awk_cr=$ac_cr
29134 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29135 _ACEOF
29137 # Create commands to substitute file output variables.
29139 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29140 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29141 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29142 echo "_ACAWK" &&
29143 echo "_ACEOF"
29144 } >conf$$files.sh &&
29145 . ./conf$$files.sh ||
29146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29147 rm -f conf$$files.sh
29150 echo "cat >conf$$subs.awk <<_ACEOF" &&
29151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29152 echo "_ACEOF"
29153 } >conf$$subs.sh ||
29154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29156 ac_delim='%!_!# '
29157 for ac_last_try in false false false false false :; do
29158 . ./conf$$subs.sh ||
29159 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29162 if test $ac_delim_n = $ac_delim_num; then
29163 break
29164 elif $ac_last_try; then
29165 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29166 else
29167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29169 done
29170 rm -f conf$$subs.sh
29172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29173 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29174 _ACEOF
29175 sed -n '
29177 s/^/S["/; s/!.*/"]=/
29180 s/^[^!]*!//
29181 :repl
29182 t repl
29183 s/'"$ac_delim"'$//
29184 t delim
29187 s/\(.\{148\}\).*/\1/
29188 t more1
29189 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29192 b repl
29193 :more1
29194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29197 s/.\{148\}//
29198 t nl
29199 :delim
29201 s/\(.\{148\}\).*/\1/
29202 t more2
29203 s/["\\]/\\&/g; s/^/"/; s/$/"/
29206 :more2
29207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29210 s/.\{148\}//
29211 t delim
29212 ' <conf$$subs.awk | sed '
29213 /^[^""]/{
29215 s/\n//
29217 ' >>$CONFIG_STATUS || ac_write_fail=1
29218 rm -f conf$$subs.awk
29219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29220 _ACAWK
29221 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29222 for (key in S) S_is_set[key] = 1
29223 FS = "\a"
29224 \$ac_cs_awk_pipe_init
29227 line = $ 0
29228 nfields = split(line, field, "@")
29229 substed = 0
29230 len = length(field[1])
29231 for (i = 2; i < nfields; i++) {
29232 key = field[i]
29233 keylen = length(key)
29234 if (S_is_set[key]) {
29235 value = S[key]
29236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29237 len += length(value) + length(field[++i])
29238 substed = 1
29239 } else
29240 len += 1 + keylen
29242 if (nfields == 3 && !substed) {
29243 key = field[2]
29244 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29245 \$ac_cs_awk_read_file
29246 next
29249 print line
29251 \$ac_cs_awk_pipe_fini
29252 _ACAWK
29253 _ACEOF
29254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29255 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29256 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29257 else
29259 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29260 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29261 _ACEOF
29263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29265 # trailing colons and then remove the whole line if VPATH becomes empty
29266 # (actually we leave an empty line to preserve line numbers).
29267 if test "x$srcdir" = x.; then
29268 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29269 s/:*\$(srcdir):*/:/
29270 s/:*\${srcdir}:*/:/
29271 s/:*@srcdir@:*/:/
29272 s/^\([^=]*=[ ]*\):*/\1/
29273 s/:*$//
29274 s/^[^=]*=[ ]*$//
29278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29279 fi # test -n "$CONFIG_FILES"
29281 # Set up the scripts for CONFIG_HEADERS section.
29282 # No need to generate them if there are no CONFIG_HEADERS.
29283 # This happens for instance with `./config.status Makefile'.
29284 if test -n "$CONFIG_HEADERS"; then
29285 cat >"$tmp/defines.awk" <<\_ACAWK ||
29286 BEGIN {
29287 _ACEOF
29289 # Transform confdefs.h into an awk script `defines.awk', embedded as
29290 # here-document in config.status, that substitutes the proper values into
29291 # config.h.in to produce config.h.
29293 # Create a delimiter string that does not exist in confdefs.h, to ease
29294 # handling of long lines.
29295 ac_delim='%!_!# '
29296 for ac_last_try in false false :; do
29297 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29298 if test -z "$ac_t"; then
29299 break
29300 elif $ac_last_try; then
29301 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29302 else
29303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29305 done
29307 # For the awk script, D is an array of macro values keyed by name,
29308 # likewise P contains macro parameters if any. Preserve backslash
29309 # newline sequences.
29311 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29312 sed -n '
29313 s/.\{148\}/&'"$ac_delim"'/g
29314 t rset
29315 :rset
29316 s/^[ ]*#[ ]*define[ ][ ]*/ /
29317 t def
29319 :def
29320 s/\\$//
29321 t bsnl
29322 s/["\\]/\\&/g
29323 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29324 D["\1"]=" \3"/p
29325 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29327 :bsnl
29328 s/["\\]/\\&/g
29329 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29330 D["\1"]=" \3\\\\\\n"\\/p
29331 t cont
29332 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29333 t cont
29335 :cont
29337 s/.\{148\}/&'"$ac_delim"'/g
29338 t clear
29339 :clear
29340 s/\\$//
29341 t bsnlc
29342 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29344 :bsnlc
29345 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29346 b cont
29347 ' <confdefs.h | sed '
29348 s/'"$ac_delim"'/"\\\
29349 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29352 for (key in D) D_is_set[key] = 1
29353 FS = "\a"
29355 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29356 line = \$ 0
29357 split(line, arg, " ")
29358 if (arg[1] == "#") {
29359 defundef = arg[2]
29360 mac1 = arg[3]
29361 } else {
29362 defundef = substr(arg[1], 2)
29363 mac1 = arg[2]
29365 split(mac1, mac2, "(") #)
29366 macro = mac2[1]
29367 prefix = substr(line, 1, index(line, defundef) - 1)
29368 if (D_is_set[macro]) {
29369 # Preserve the white space surrounding the "#".
29370 print prefix "define", macro P[macro] D[macro]
29371 next
29372 } else {
29373 # Replace #undef with comments. This is necessary, for example,
29374 # in the case of _POSIX_SOURCE, which is predefined and required
29375 # on some systems where configure will not decide to define it.
29376 if (defundef == "undef") {
29377 print "/*", prefix defundef, macro, "*/"
29378 next
29382 { print }
29383 _ACAWK
29384 _ACEOF
29385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29386 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29387 fi # test -n "$CONFIG_HEADERS"
29390 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29391 shift
29392 for ac_tag
29394 case $ac_tag in
29395 :[FHLC]) ac_mode=$ac_tag; continue;;
29396 esac
29397 case $ac_mode$ac_tag in
29398 :[FHL]*:*);;
29399 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29400 :[FH]-) ac_tag=-:-;;
29401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29402 esac
29403 ac_save_IFS=$IFS
29404 IFS=:
29405 set x $ac_tag
29406 IFS=$ac_save_IFS
29407 shift
29408 ac_file=$1
29409 shift
29411 case $ac_mode in
29412 :L) ac_source=$1;;
29413 :[FH])
29414 ac_file_inputs=
29415 for ac_f
29417 case $ac_f in
29418 -) ac_f="$tmp/stdin";;
29419 *) # Look for the file first in the build tree, then in the source tree
29420 # (if the path is not absolute). The absolute path cannot be DOS-style,
29421 # because $ac_f cannot contain `:'.
29422 test -f "$ac_f" ||
29423 case $ac_f in
29424 [\\/$]*) false;;
29425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29426 esac ||
29427 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29428 esac
29429 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29430 as_fn_append ac_file_inputs " '$ac_f'"
29431 done
29433 # Let's still pretend it is `configure' which instantiates (i.e., don't
29434 # use $as_me), people would be surprised to read:
29435 # /* config.h. Generated by config.status. */
29436 configure_input='Generated from '`
29437 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29438 `' by configure.'
29439 if test x"$ac_file" != x-; then
29440 configure_input="$ac_file. $configure_input"
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29442 $as_echo "$as_me: creating $ac_file" >&6;}
29444 # Neutralize special characters interpreted by sed in replacement strings.
29445 case $configure_input in #(
29446 *\&* | *\|* | *\\* )
29447 ac_sed_conf_input=`$as_echo "$configure_input" |
29448 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29449 *) ac_sed_conf_input=$configure_input;;
29450 esac
29452 case $ac_tag in
29453 *:-:* | *:-) cat >"$tmp/stdin" \
29454 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29455 esac
29457 esac
29459 ac_dir=`$as_dirname -- "$ac_file" ||
29460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29461 X"$ac_file" : 'X\(//\)[^/]' \| \
29462 X"$ac_file" : 'X\(//\)$' \| \
29463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29464 $as_echo X"$ac_file" |
29465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29466 s//\1/
29469 /^X\(\/\/\)[^/].*/{
29470 s//\1/
29473 /^X\(\/\/\)$/{
29474 s//\1/
29477 /^X\(\/\).*/{
29478 s//\1/
29481 s/.*/./; q'`
29482 as_dir="$ac_dir"; as_fn_mkdir_p
29483 ac_builddir=.
29485 case "$ac_dir" in
29486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29489 # A ".." for each directory in $ac_dir_suffix.
29490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29491 case $ac_top_builddir_sub in
29492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29494 esac ;;
29495 esac
29496 ac_abs_top_builddir=$ac_pwd
29497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29498 # for backward compatibility:
29499 ac_top_builddir=$ac_top_build_prefix
29501 case $srcdir in
29502 .) # We are building in place.
29503 ac_srcdir=.
29504 ac_top_srcdir=$ac_top_builddir_sub
29505 ac_abs_top_srcdir=$ac_pwd ;;
29506 [\\/]* | ?:[\\/]* ) # Absolute name.
29507 ac_srcdir=$srcdir$ac_dir_suffix;
29508 ac_top_srcdir=$srcdir
29509 ac_abs_top_srcdir=$srcdir ;;
29510 *) # Relative name.
29511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29512 ac_top_srcdir=$ac_top_build_prefix$srcdir
29513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29514 esac
29515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29518 case $ac_mode in
29521 # CONFIG_FILE
29524 _ACEOF
29526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29527 # If the template does not know about datarootdir, expand it.
29528 # FIXME: This hack should be removed a few years after 2.60.
29529 ac_datarootdir_hack=; ac_datarootdir_seen=
29530 ac_sed_dataroot='
29531 /datarootdir/ {
29535 /@datadir@/p
29536 /@docdir@/p
29537 /@infodir@/p
29538 /@localedir@/p
29539 /@mandir@/p'
29540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29541 *datarootdir*) ac_datarootdir_seen=yes;;
29542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29545 _ACEOF
29546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29547 ac_datarootdir_hack='
29548 s&@datadir@&$datadir&g
29549 s&@docdir@&$docdir&g
29550 s&@infodir@&$infodir&g
29551 s&@localedir@&$localedir&g
29552 s&@mandir@&$mandir&g
29553 s&\\\${datarootdir}&$datarootdir&g' ;;
29554 esac
29555 _ACEOF
29557 # Neutralize VPATH when `$srcdir' = `.'.
29558 # Shell code in configure.ac might set extrasub.
29559 # FIXME: do we really want to maintain this feature?
29560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29561 ac_sed_extra="$ac_vpsub
29562 $extrasub
29563 _ACEOF
29564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29567 s|@configure_input@|$ac_sed_conf_input|;t t
29568 s&@top_builddir@&$ac_top_builddir_sub&;t t
29569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29570 s&@srcdir@&$ac_srcdir&;t t
29571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29572 s&@top_srcdir@&$ac_top_srcdir&;t t
29573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29574 s&@builddir@&$ac_builddir&;t t
29575 s&@abs_builddir@&$ac_abs_builddir&;t t
29576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29577 $ac_datarootdir_hack
29579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29580 if $ac_cs_awk_getline; then
29581 $AWK -f "$tmp/subs.awk"
29582 else
29583 $AWK -f "$tmp/subs.awk" | $SHELL
29584 fi >$tmp/out \
29585 || as_fn_error "could not create $ac_file" "$LINENO" 5
29587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29591 which seems to be undefined. Please make sure it is defined." >&5
29592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29593 which seems to be undefined. Please make sure it is defined." >&2;}
29595 rm -f "$tmp/stdin"
29596 case $ac_file in
29597 -) cat "$tmp/out" && rm -f "$tmp/out";;
29598 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29599 esac \
29600 || as_fn_error "could not create $ac_file" "$LINENO" 5
29604 # CONFIG_HEADER
29606 if test x"$ac_file" != x-; then
29608 $as_echo "/* $configure_input */" \
29609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29610 } >"$tmp/config.h" \
29611 || as_fn_error "could not create $ac_file" "$LINENO" 5
29612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29615 else
29616 rm -f "$ac_file"
29617 mv "$tmp/config.h" "$ac_file" \
29618 || as_fn_error "could not create $ac_file" "$LINENO" 5
29620 else
29621 $as_echo "/* $configure_input */" \
29622 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29623 || as_fn_error "could not create -" "$LINENO" 5
29628 # CONFIG_LINK
29631 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29633 else
29634 # Prefer the file from the source tree if names are identical.
29635 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29636 ac_source=$srcdir/$ac_source
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29640 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29642 if test ! -r "$ac_source"; then
29643 as_fn_error "$ac_source: file not found" "$LINENO" 5
29645 rm -f "$ac_file"
29647 # Try a relative symlink, then a hard link, then a copy.
29648 case $srcdir in
29649 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29650 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29651 esac
29652 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29653 ln "$ac_source" "$ac_file" 2>/dev/null ||
29654 cp -p "$ac_source" "$ac_file" ||
29655 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29659 $as_echo "$as_me: executing $ac_file commands" >&6;}
29661 esac
29664 case $ac_file$ac_mode in
29665 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29666 "gccdepdir":C)
29667 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29668 for lang in $subdirs c-family common
29670 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29671 done ;;
29672 "as":F) chmod +x as ;;
29673 "collect-ld":F) chmod +x collect-ld ;;
29674 "nm":F) chmod +x nm ;;
29675 "default":C)
29676 case ${CONFIG_HEADERS} in
29677 *auto-host.h:config.in*)
29678 echo > cstamp-h ;;
29679 esac
29680 # Make sure all the subdirs exist.
29681 for d in $subdirs doc build common c-family
29683 test -d $d || mkdir $d
29684 done
29687 esac
29688 done # for ac_tag
29691 as_fn_exit 0
29692 _ACEOF
29693 ac_clean_files=$ac_clean_files_save
29695 test $ac_write_fail = 0 ||
29696 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29699 # configure is writing to config.log, and then calls config.status.
29700 # config.status does its own redirection, appending to config.log.
29701 # Unfortunately, on DOS this fails, as config.log is still kept open
29702 # by configure, so config.status won't be able to write to it; its
29703 # output is simply discarded. So we exec the FD to /dev/null,
29704 # effectively closing config.log, so it can be properly (re)opened and
29705 # appended to by config.status. When coming back to configure, we
29706 # need to make the FD available again.
29707 if test "$no_create" != yes; then
29708 ac_cs_success=:
29709 ac_config_status_args=
29710 test "$silent" = yes &&
29711 ac_config_status_args="$ac_config_status_args --quiet"
29712 exec 5>/dev/null
29713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29714 exec 5>>config.log
29715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29716 # would make configure fail if this is the last instruction.
29717 $ac_cs_success || as_fn_exit $?
29719 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29721 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}