* ipa-polymorphic-call.c
[official-gcc.git] / gcc / configure
bloba62f232f55d4730225e3c661a8f26985eb61ec39
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 doc_build_sys
746 BISON
747 FLEX
748 GENERATED_MANPAGES
749 BUILD_INFO
750 MAKEINFO
751 have_mktemp_command
752 make_compare_target
753 INSTALL_DATA
754 INSTALL_PROGRAM
755 INSTALL
756 ranlib_flags
757 RANLIB
759 LN_S
761 SET_MAKE
762 accel_dir_suffix
763 real_target_noncanonical
764 enable_as_accelerator
765 REPORT_BUGS_TEXI
766 REPORT_BUGS_TO
767 PKGVERSION
768 CONFIGURE_SPECS
769 CROSS_SYSTEM_HEADER_DIR
770 TARGET_SYSTEM_ROOT_DEFINE
771 TARGET_SYSTEM_ROOT
772 SYSROOT_CFLAGS_FOR_TARGET
773 enable_shared
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 TREEBROWSER
786 nocommon_flag
787 noexception_flags
788 warn_cxxflags
789 warn_cflags
790 c_strict_warn
791 strict_warn
792 c_loose_warn
793 loose_warn
795 EGREP
796 GREP
797 CXXCPP
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 enable_fix_cortex_a53_843419
927 with_glibc_version
928 enable_gnu_unique_object
929 enable_linker_build_id
930 with_long_double_128
931 with_gc
932 with_system_zlib
933 enable_maintainer_mode
934 enable_link_mutex
935 enable_version_specific_runtime_libs
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_linker_hash_style
940 with_diagnostics_color
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
951 CXXFLAGS
953 CXXCPP
955 GMPLIBS
956 GMPINC
957 ISLLIBS
958 ISLINC'
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1029 ac_dashdash=yes ;;
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=no ;;
1079 -docdir | --docdir | --docdi | --doc | --do)
1080 ac_prev=docdir ;;
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 ac_prev=dvidir ;;
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1343 -*) as_fn_error "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1353 esac
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 esac
1366 done
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error "missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1452 /^X\(\/\/\)$/{
1453 s//\1/
1456 /^X\(\/\).*/{
1457 s//\1/
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1465 else
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1555 cat <<\_ACEOF
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1566 _ACEOF
1569 if test -n "$ac_init_help"; then
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files in source dir intended
1579 for creating source tarballs for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support for large files
1582 --disable-build-format-warnings
1583 don't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and locate unused parts
1594 of the compiler. With LEVEL, specify optimization.
1595 Values are opt, noopt, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support for multiple ABIs
1601 --enable-multiarch enable support for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit for C++
1603 --enable-decimal-float={no,yes,bid,dpd}
1604 enable decimal float extension to C. Selecting 'bid'
1605 or 'dpd' choses which decimal floating point format
1606 to use
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1609 package
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check for tls support
1612 --enable-objc-gc enable the use of Boehm's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify which front-ends to build
1616 --disable-rpath do not hardcode runtime library paths
1617 --enable-sjlj-exceptions
1618 arrange to use setjmp/longjmp exception handling
1619 --enable-secureplt enable -msecure-plt by default for PowerPC
1620 --enable-leading-mingw64-underscores
1621 enable leading underscores on 64 bit mingw targets
1622 --enable-cld enable -mcld by default for 32bit x86
1623 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1625 --disable-win32-registry
1626 disable lookup of installation paths in the Registry
1627 on Windows hosts
1628 --enable-win32-registry enable registry lookup (default)
1629 --enable-win32-registry=KEY
1630 use KEY instead of GCC version as the last portion
1631 of the registry key
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1638 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1639 --enable-gnu-indirect-function
1640 enable the use of the @gnu_indirect_function to
1641 glibc systems
1642 --enable-initfini-array use .init_array/.fini_array sections
1643 --enable-comdat enable COMDAT group support
1645 --enable-fix-cortex-a53-835769
1646 enable workaround for AArch64 Cortex-A53 erratum
1647 835769 by default
1648 --disable-fix-cortex-a53-835769
1649 disable workaround for AArch64 Cortex-A53 erratum
1650 835769 by default
1653 --enable-fix-cortex-a53-843419
1654 enable workaround for AArch64 Cortex-A53 erratum
1655 843419 by default
1656 --disable-fix-cortex-a53-843419
1657 disable workaround for AArch64 Cortex-A53 erratum
1658 843419 by default
1660 --enable-gnu-unique-object
1661 enable the use of the @gnu_unique_object ELF
1662 extension on glibc systems
1663 --enable-linker-build-id
1664 compiler will always pass --build-id to linker
1665 --enable-maintainer-mode
1666 enable make rules and dependencies not useful (and
1667 sometimes confusing) to the casual installer
1668 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1669 thrashing on the build machine
1670 --enable-version-specific-runtime-libs
1671 specify that runtime libraries should be installed
1672 in a compiler-specific directory
1673 --enable-plugin enable plugin support
1674 --enable-host-shared build host code as shared libraries
1675 --disable-libquadmath-support
1676 disable libquadmath support for Fortran
1678 Optional Packages:
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-build-libsubdir=DIR Directory where to find libraries for build system
1682 --with-local-prefix=DIR specifies directory to put local include
1683 --with-gxx-include-dir=DIR
1684 specifies directory to put g++ header files
1685 --with-cpp-install-dir=DIR
1686 install the user visible C preprocessor in DIR
1687 (relative to PREFIX) as well as PREFIX/bin
1688 --with-gnu-ld arrange to work with GNU ld
1689 --with-ld arrange to use the specified ld (full pathname)
1690 --with-demangler-in-ld try to use demangler in GNU ld
1691 --with-gnu-as arrange to work with GNU as
1692 --with-as arrange to use the specified as (full pathname)
1693 --with-stabs arrange to use stabs instead of host debug format
1694 --with-dwarf2 force the default debug format to be DWARF 2
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-specs=SPECS add SPECS to driver command-line processing
1702 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1703 --with-bugurl=URL Direct users to URL to report a bug
1704 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1705 --with-gnu-ld assume the C compiler uses GNU ld default=no
1706 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1707 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1708 --with-pic try to use only PIC/non-PIC objects [default=use
1709 both]
1710 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1711 --with-plugin-ld=[ARG] specify the plugin linker
1712 --with-glibc-version=M.N
1713 assume GCC used with glibc version M.N or later
1714 --with-long-double-128 use 128-bit long double by default
1715 --with-gc={page,zone} this option is not supported anymore. It used to
1716 choose the garbage collection mechanism to use with
1717 the compiler
1718 --with-system-zlib use installed libz
1719 --with-linker-hash-style={sysv,gnu,both}
1720 specify the linker hash style
1721 --with-diagnostics-color={never,auto,auto-if-env,always}
1722 specify the default of -fdiagnostics-color option
1723 auto-if-env stands for -fdiagnostics-color=auto if
1724 GCC_COLOR environment variable is present and
1725 -fdiagnostics-color=never otherwise
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1735 CXX C++ compiler command
1736 CXXFLAGS C++ compiler flags
1737 CXXCPP C++ preprocessor
1738 CPP C preprocessor
1739 GMPLIBS How to link GMP
1740 GMPINC How to find GMP include files
1741 ISLLIBS How to link ISL
1742 ISLINC How to find ISL include files
1744 Use these variables to override the choices made by `configure' or to help
1745 it to find libraries and programs with nonstandard names/locations.
1747 Report bugs to the package provider.
1748 _ACEOF
1749 ac_status=$?
1752 if test "$ac_init_help" = "recursive"; then
1753 # If there are subdirs, report their specific --help.
1754 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1755 test -d "$ac_dir" ||
1756 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1757 continue
1758 ac_builddir=.
1760 case "$ac_dir" in
1761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1764 # A ".." for each directory in $ac_dir_suffix.
1765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1766 case $ac_top_builddir_sub in
1767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 esac ;;
1770 esac
1771 ac_abs_top_builddir=$ac_pwd
1772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1773 # for backward compatibility:
1774 ac_top_builddir=$ac_top_build_prefix
1776 case $srcdir in
1777 .) # We are building in place.
1778 ac_srcdir=.
1779 ac_top_srcdir=$ac_top_builddir_sub
1780 ac_abs_top_srcdir=$ac_pwd ;;
1781 [\\/]* | ?:[\\/]* ) # Absolute name.
1782 ac_srcdir=$srcdir$ac_dir_suffix;
1783 ac_top_srcdir=$srcdir
1784 ac_abs_top_srcdir=$srcdir ;;
1785 *) # Relative name.
1786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1787 ac_top_srcdir=$ac_top_build_prefix$srcdir
1788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 esac
1790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792 cd "$ac_dir" || { ac_status=$?; continue; }
1793 # Check for guested configure.
1794 if test -f "$ac_srcdir/configure.gnu"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1797 elif test -f "$ac_srcdir/configure"; then
1798 echo &&
1799 $SHELL "$ac_srcdir/configure" --help=recursive
1800 else
1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 fi || ac_status=$?
1803 cd "$ac_pwd" || { ac_status=$?; break; }
1804 done
1807 test -n "$ac_init_help" && exit $ac_status
1808 if $ac_init_version; then
1809 cat <<\_ACEOF
1810 configure
1811 generated by GNU Autoconf 2.64
1813 Copyright (C) 2009 Free Software Foundation, Inc.
1814 This configure script is free software; the Free Software Foundation
1815 gives unlimited permission to copy, distribute and modify it.
1816 _ACEOF
1817 exit
1820 ## ------------------------ ##
1821 ## Autoconf initialization. ##
1822 ## ------------------------ ##
1824 # ac_fn_c_try_compile LINENO
1825 # --------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext
1831 if { { ac_try="$ac_compile"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1860 } # ac_fn_c_try_compile
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_cxx_try_compile
1900 # ac_fn_cxx_try_cpp LINENO
1901 # ------------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_cpp ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 return $ac_retval
1935 } # ac_fn_cxx_try_cpp
1937 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # ---------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_cxx_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_cxx_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1965 else
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1981 else
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1990 yes:no: )
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 no:yes:* )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_cxx_check_header_mongrel
2024 # ac_fn_cxx_try_run LINENO
2025 # ------------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_cxx_try_run ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2039 ac_status=$?
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 return $ac_retval
2064 } # ac_fn_cxx_try_run
2066 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2067 # ---------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_cxx_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_cxx_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_cxx_check_header_compile
2097 # ac_fn_c_try_cpp LINENO
2098 # ----------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_c_try_cpp ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } >/dev/null && {
2119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=1
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 return $ac_retval
2132 } # ac_fn_c_try_cpp
2134 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2135 # ----------------------------------------------
2136 # Tries to find the compile-time value of EXPR in a program that includes
2137 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2138 # computed
2139 ac_fn_cxx_compute_int ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if test "$cross_compiling" = yes; then
2143 # Depending upon the size, compute the lo and hi bounds.
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 static int test_array [1 - 2 * !(($2) >= 0)];
2151 test_array [0] = 0
2154 return 0;
2156 _ACEOF
2157 if ac_fn_cxx_try_compile "$LINENO"; then :
2158 ac_lo=0 ac_mid=0
2159 while :; do
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 test_array [0] = 0
2170 return 0;
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_hi=$ac_mid; break
2175 else
2176 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2177 if test $ac_lo -le $ac_mid; then
2178 ac_lo= ac_hi=
2179 break
2181 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 done
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 static int test_array [1 - 2 * !(($2) < 0)];
2193 test_array [0] = 0
2196 return 0;
2198 _ACEOF
2199 if ac_fn_cxx_try_compile "$LINENO"; then :
2200 ac_hi=-1 ac_mid=-1
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209 test_array [0] = 0
2212 return 0;
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_lo=$ac_mid; break
2217 else
2218 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2219 if test $ac_mid -le $ac_hi; then
2220 ac_lo= ac_hi=
2221 break
2223 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 else
2228 ac_lo= ac_hi=
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 # Binary search between lo and hi bounds.
2234 while test "x$ac_lo" != "x$ac_hi"; do
2235 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2240 main ()
2242 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2243 test_array [0] = 0
2246 return 0;
2248 _ACEOF
2249 if ac_fn_cxx_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid
2251 else
2252 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 done
2256 case $ac_lo in #((
2257 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2258 '') ac_retval=1 ;;
2259 esac
2260 else
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2264 static long int longval () { return $2; }
2265 static unsigned long int ulongval () { return $2; }
2266 #include <stdio.h>
2267 #include <stdlib.h>
2269 main ()
2272 FILE *f = fopen ("conftest.val", "w");
2273 if (! f)
2274 return 1;
2275 if (($2) < 0)
2277 long int i = longval ();
2278 if (i != ($2))
2279 return 1;
2280 fprintf (f, "%ld", i);
2282 else
2284 unsigned long int i = ulongval ();
2285 if (i != ($2))
2286 return 1;
2287 fprintf (f, "%lu", i);
2289 /* Do not output a trailing newline, as this causes \r\n confusion
2290 on some platforms. */
2291 return ferror (f) || fclose (f) != 0;
2294 return 0;
2296 _ACEOF
2297 if ac_fn_cxx_try_run "$LINENO"; then :
2298 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2299 else
2300 ac_retval=1
2302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2303 conftest.$ac_objext conftest.beam conftest.$ac_ext
2304 rm -f conftest.val
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 return $ac_retval
2310 } # ac_fn_cxx_compute_int
2312 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2313 # ---------------------------------------------
2314 # Tests whether TYPE exists after having included INCLUDES, setting cache
2315 # variable VAR accordingly.
2316 ac_fn_cxx_check_type ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 eval "$3=no"
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2329 main ()
2331 if (sizeof ($2))
2332 return 0;
2334 return 0;
2336 _ACEOF
2337 if ac_fn_cxx_try_compile "$LINENO"; then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 if (sizeof (($2)))
2345 return 0;
2347 return 0;
2349 _ACEOF
2350 if ac_fn_cxx_try_compile "$LINENO"; then :
2352 else
2353 eval "$3=yes"
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_cxx_check_type
2366 # ac_fn_c_find_intX_t LINENO BITS VAR
2367 # -----------------------------------
2368 # Finds a signed integer type with width BITS, setting cache variable VAR
2369 # accordingly.
2370 ac_fn_c_find_intX_t ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2374 $as_echo_n "checking for int$2_t... " >&6; }
2375 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 eval "$3=no"
2379 for ac_type in int$2_t 'int' 'long int' \
2380 'long long int' 'short int' 'signed char'; do
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2383 $ac_includes_default
2385 main ()
2387 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2388 test_array [0] = 0
2391 return 0;
2393 _ACEOF
2394 if ac_fn_cxx_try_compile "$LINENO"; then :
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2399 main ()
2401 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2402 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2403 test_array [0] = 0
2406 return 0;
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 else
2412 case $ac_type in #(
2413 int$2_t) :
2414 eval "$3=yes" ;; #(
2415 *) :
2416 eval "$3=\$ac_type" ;;
2417 esac
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 eval as_val=\$$3
2423 if test "x$as_val" = x""no; then :
2425 else
2426 break
2428 done
2430 eval ac_res=\$$3
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2435 } # ac_fn_c_find_intX_t
2437 # ac_fn_cxx_try_link LINENO
2438 # -------------------------
2439 # Try to link conftest.$ac_ext, and return whether this succeeded.
2440 ac_fn_cxx_try_link ()
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { { ac_try="$ac_link"
2445 case "(($ac_try" in
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2448 esac
2449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450 $as_echo "$ac_try_echo"; } >&5
2451 (eval "$ac_link") 2>conftest.err
2452 ac_status=$?
2453 if test -s conftest.err; then
2454 grep -v '^ *+' conftest.err >conftest.er1
2455 cat conftest.er1 >&5
2456 mv -f conftest.er1 conftest.err
2458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459 test $ac_status = 0; } && {
2460 test -z "$ac_cxx_werror_flag" ||
2461 test ! -s conftest.err
2462 } && test -s conftest$ac_exeext && {
2463 test "$cross_compiling" = yes ||
2464 $as_test_x conftest$ac_exeext
2465 }; then :
2466 ac_retval=0
2467 else
2468 $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 ac_retval=1
2473 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2474 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2475 # interfere with the next link command; also delete a directory that is
2476 # left behind by Apple's compiler. We do this before executing the actions.
2477 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 return $ac_retval
2481 } # ac_fn_cxx_try_link
2483 # ac_fn_c_find_uintX_t LINENO BITS VAR
2484 # ------------------------------------
2485 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2486 # accordingly.
2487 ac_fn_c_find_uintX_t ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2491 $as_echo_n "checking for uint$2_t... " >&6; }
2492 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 eval "$3=no"
2496 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2497 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 $ac_includes_default
2502 main ()
2504 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2505 test_array [0] = 0
2508 return 0;
2510 _ACEOF
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512 case $ac_type in #(
2513 uint$2_t) :
2514 eval "$3=yes" ;; #(
2515 *) :
2516 eval "$3=\$ac_type" ;;
2517 esac
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 eval as_val=\$$3
2521 if test "x$as_val" = x""no; then :
2523 else
2524 break
2526 done
2528 eval ac_res=\$$3
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533 } # ac_fn_c_find_uintX_t
2535 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2536 # ------------------------------------------------
2537 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2538 ac_fn_cxx_check_header_preproc ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2548 #include <$2>
2549 _ACEOF
2550 if ac_fn_cxx_try_cpp "$LINENO"; then :
2551 eval "$3=yes"
2552 else
2553 eval "$3=no"
2555 rm -f conftest.err conftest.$ac_ext
2557 eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_cxx_check_header_preproc
2564 # ac_fn_cxx_check_func LINENO FUNC VAR
2565 # ------------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_cxx_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2592 #undef $2
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2597 #ifdef __cplusplus
2598 extern "C"
2599 #endif
2600 char $2 ();
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2605 choke me
2606 #endif
2609 main ()
2611 return $2 ();
2613 return 0;
2615 _ACEOF
2616 if ac_fn_cxx_try_link "$LINENO"; then :
2617 eval "$3=yes"
2618 else
2619 eval "$3=no"
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2624 eval ac_res=\$$3
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_cxx_check_func
2631 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2632 # --------------------------------------
2633 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2634 ac_fn_cxx_check_decl ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 as_decl_name=`echo $2|sed 's/ *(.*//'`
2638 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2640 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2648 main ()
2650 #ifndef $as_decl_name
2651 #ifdef __cplusplus
2652 (void) $as_decl_use;
2653 #else
2654 (void) $as_decl_name;
2655 #endif
2656 #endif
2659 return 0;
2661 _ACEOF
2662 if ac_fn_cxx_try_compile "$LINENO"; then :
2663 eval "$3=yes"
2664 else
2665 eval "$3=no"
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 eval ac_res=\$$3
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671 $as_echo "$ac_res" >&6; }
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2674 } # ac_fn_cxx_check_decl
2676 # ac_fn_c_try_link LINENO
2677 # -----------------------
2678 # Try to link conftest.$ac_ext, and return whether this succeeded.
2679 ac_fn_c_try_link ()
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 rm -f conftest.$ac_objext conftest$ac_exeext
2683 if { { ac_try="$ac_link"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_link") 2>conftest.err
2691 ac_status=$?
2692 if test -s conftest.err; then
2693 grep -v '^ *+' conftest.err >conftest.er1
2694 cat conftest.er1 >&5
2695 mv -f conftest.er1 conftest.err
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest$ac_exeext && {
2702 test "$cross_compiling" = yes ||
2703 $as_test_x conftest$ac_exeext
2704 }; then :
2705 ac_retval=0
2706 else
2707 $as_echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 ac_retval=1
2712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2714 # interfere with the next link command; also delete a directory that is
2715 # left behind by Apple's compiler. We do this before executing the actions.
2716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2718 return $ac_retval
2720 } # ac_fn_c_try_link
2722 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2723 # ----------------------------------------------
2724 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2725 ac_fn_c_check_header_preproc ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2729 $as_echo_n "checking for $2... " >&6; }
2730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2735 #include <$2>
2736 _ACEOF
2737 if ac_fn_c_try_cpp "$LINENO"; then :
2738 eval "$3=yes"
2739 else
2740 eval "$3=no"
2742 rm -f conftest.err conftest.$ac_ext
2744 eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2749 } # ac_fn_c_check_header_preproc
2751 # ac_fn_c_check_func LINENO FUNC VAR
2752 # ----------------------------------
2753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2754 ac_fn_c_check_func ()
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2758 $as_echo_n "checking for $2... " >&6; }
2759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2766 #define $2 innocuous_$2
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char $2 (); below.
2770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 <limits.h> exists even on freestanding compilers. */
2773 #ifdef __STDC__
2774 # include <limits.h>
2775 #else
2776 # include <assert.h>
2777 #endif
2779 #undef $2
2781 /* Override any GCC internal prototype to avoid an error.
2782 Use char because int might match the return type of a GCC
2783 builtin and then its argument prototype would still apply. */
2784 #ifdef __cplusplus
2785 extern "C"
2786 #endif
2787 char $2 ();
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined __stub_$2 || defined __stub___$2
2792 choke me
2793 #endif
2796 main ()
2798 return $2 ();
2800 return 0;
2802 _ACEOF
2803 if ac_fn_c_try_link "$LINENO"; then :
2804 eval "$3=yes"
2805 else
2806 eval "$3=no"
2808 rm -f core conftest.err conftest.$ac_objext \
2809 conftest$ac_exeext conftest.$ac_ext
2811 eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2816 } # ac_fn_c_check_func
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.64. Invocation command line was
2824 $ $0 $@
2826 _ACEOF
2827 exec 5>>config.log
2829 cat <<_ASUNAME
2830 ## --------- ##
2831 ## Platform. ##
2832 ## --------- ##
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2851 _ASUNAME
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 $as_echo "PATH: $as_dir"
2859 done
2860 IFS=$as_save_IFS
2862 } >&5
2864 cat >&5 <<_ACEOF
2867 ## ----------- ##
2868 ## Core tests. ##
2869 ## ----------- ##
2871 _ACEOF
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2879 ac_configure_args=
2880 ac_configure_args0=
2881 ac_configure_args1=
2882 ac_must_keep_next=false
2883 for ac_pass in 1 2
2885 for ac_arg
2887 case $ac_arg in
2888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890 | -silent | --silent | --silen | --sile | --sil)
2891 continue ;;
2892 *\'*)
2893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2894 esac
2895 case $ac_pass in
2896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2898 as_fn_append ac_configure_args1 " '$ac_arg'"
2899 if test $ac_must_keep_next = true; then
2900 ac_must_keep_next=false # Got value, back to normal.
2901 else
2902 case $ac_arg in
2903 *=* | --config-cache | -C | -disable-* | --disable-* \
2904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906 | -with-* | --with-* | -without-* | --without-* | --x)
2907 case "$ac_configure_args0 " in
2908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2909 esac
2911 -* ) ac_must_keep_next=true ;;
2912 esac
2914 as_fn_append ac_configure_args " '$ac_arg'"
2916 esac
2917 done
2918 done
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log. We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928 # Save into config.log some information that might help in debugging.
2930 echo
2932 cat <<\_ASBOX
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2936 _ASBOX
2937 echo
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941 eval ac_val=\$$ac_var
2942 case $ac_val in #(
2943 *${as_nl}*)
2944 case $ac_var in #(
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2947 esac
2948 case $ac_var in #(
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2952 esac ;;
2953 esac
2954 done
2955 (set) 2>&1 |
2956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2958 sed -n \
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2961 ;; #(
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2965 esac |
2966 sort
2968 echo
2970 cat <<\_ASBOX
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2974 _ASBOX
2975 echo
2976 for ac_var in $ac_subst_vars
2978 eval ac_val=\$$ac_var
2979 case $ac_val in
2980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2981 esac
2982 $as_echo "$ac_var='\''$ac_val'\''"
2983 done | sort
2984 echo
2986 if test -n "$ac_subst_files"; then
2987 cat <<\_ASBOX
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2991 _ASBOX
2992 echo
2993 for ac_var in $ac_subst_files
2995 eval ac_val=\$$ac_var
2996 case $ac_val in
2997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998 esac
2999 $as_echo "$ac_var='\''$ac_val'\''"
3000 done | sort
3001 echo
3004 if test -s confdefs.h; then
3005 cat <<\_ASBOX
3006 ## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##
3009 _ASBOX
3010 echo
3011 cat confdefs.h
3012 echo
3014 test "$ac_signal" != 0 &&
3015 $as_echo "$as_me: caught signal $ac_signal"
3016 $as_echo "$as_me: exit $exit_status"
3017 } >&5
3018 rm -f core *.core core.conftest.* &&
3019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3020 exit $exit_status
3022 for ac_signal in 1 2 13 15; do
3023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3024 done
3025 ac_signal=0
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3030 $as_echo "/* confdefs.h */" > confdefs.h
3032 # Predefined preprocessor variables.
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3036 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3040 _ACEOF
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3044 _ACEOF
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3056 _ACEOF
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3061 ac_site_file1=NONE
3062 ac_site_file2=NONE
3063 if test -n "$CONFIG_SITE"; then
3064 ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066 ac_site_file1=$prefix/share/config.site
3067 ac_site_file2=$prefix/etc/config.site
3068 else
3069 ac_site_file1=$ac_default_prefix/share/config.site
3070 ac_site_file2=$ac_default_prefix/etc/config.site
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3074 test "x$ac_site_file" = xNONE && continue
3075 if test -r "$ac_site_file"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078 sed 's/^/| /' "$ac_site_file" >&5
3079 . "$ac_site_file"
3081 done
3083 if test -r "$cache_file"; then
3084 # Some versions of bash will fail to source /dev/null (special
3085 # files actually), so we avoid doing that.
3086 if test -f "$cache_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3089 case $cache_file in
3090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091 *) . "./$cache_file";;
3092 esac
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3097 >$cache_file
3100 # Check that the precious variables saved in the cache have kept the same
3101 # value.
3102 ac_cache_corrupted=false
3103 for ac_var in $ac_precious_vars; do
3104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3105 eval ac_new_set=\$ac_env_${ac_var}_set
3106 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3107 eval ac_new_val=\$ac_env_${ac_var}_value
3108 case $ac_old_set,$ac_new_set in
3109 set,)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112 ac_cache_corrupted=: ;;
3113 ,set)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116 ac_cache_corrupted=: ;;
3117 ,);;
3119 if test "x$ac_old_val" != "x$ac_new_val"; then
3120 # differences in whitespace do not lead to failure.
3121 ac_old_val_w=`echo x $ac_old_val`
3122 ac_new_val_w=`echo x $ac_new_val`
3123 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126 ac_cache_corrupted=:
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130 eval $ac_var=\$ac_old_val
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3133 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3135 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3136 fi;;
3137 esac
3138 # Pass precious variables to config.status.
3139 if test "$ac_new_set" = set; then
3140 case $ac_new_val in
3141 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142 *) ac_arg=$ac_var=$ac_new_val ;;
3143 esac
3144 case " $ac_configure_args " in
3145 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3146 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3147 esac
3149 done
3150 if $ac_cache_corrupted; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157 ## -------------------- ##
3158 ## Main body of script. ##
3159 ## -------------------- ##
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3175 gcc_version=`cat $srcdir/BASE-VER`
3177 # Determine the host, build, and target systems
3178 ac_aux_dir=
3179 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3180 for ac_t in install-sh install.sh shtool; do
3181 if test -f "$ac_dir/$ac_t"; then
3182 ac_aux_dir=$ac_dir
3183 ac_install_sh="$ac_aux_dir/$ac_t -c"
3184 break 2
3186 done
3187 done
3188 if test -z "$ac_aux_dir"; then
3189 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3192 # These three variables are undocumented and unsupported,
3193 # and are intended to be withdrawn in a future Autoconf release.
3194 # They can cause serious problems if a builder's source tree is in a directory
3195 # whose full name contains unusual characters.
3196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3198 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3201 # Make sure we can run config.sub.
3202 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3203 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3206 $as_echo_n "checking build system type... " >&6; }
3207 if test "${ac_cv_build+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 ac_build_alias=$build_alias
3211 test "x$ac_build_alias" = x &&
3212 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3213 test "x$ac_build_alias" = x &&
3214 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3215 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3216 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3220 $as_echo "$ac_cv_build" >&6; }
3221 case $ac_cv_build in
3222 *-*-*) ;;
3223 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3224 esac
3225 build=$ac_cv_build
3226 ac_save_IFS=$IFS; IFS='-'
3227 set x $ac_cv_build
3228 shift
3229 build_cpu=$1
3230 build_vendor=$2
3231 shift; shift
3232 # Remember, the first character of IFS is used to create $*,
3233 # except with old shells:
3234 build_os=$*
3235 IFS=$ac_save_IFS
3236 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3240 $as_echo_n "checking host system type... " >&6; }
3241 if test "${ac_cv_host+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test "x$host_alias" = x; then
3245 ac_cv_host=$ac_cv_build
3246 else
3247 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3248 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3253 $as_echo "$ac_cv_host" >&6; }
3254 case $ac_cv_host in
3255 *-*-*) ;;
3256 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3257 esac
3258 host=$ac_cv_host
3259 ac_save_IFS=$IFS; IFS='-'
3260 set x $ac_cv_host
3261 shift
3262 host_cpu=$1
3263 host_vendor=$2
3264 shift; shift
3265 # Remember, the first character of IFS is used to create $*,
3266 # except with old shells:
3267 host_os=$*
3268 IFS=$ac_save_IFS
3269 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3273 $as_echo_n "checking target system type... " >&6; }
3274 if test "${ac_cv_target+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test "x$target_alias" = x; then
3278 ac_cv_target=$ac_cv_host
3279 else
3280 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3281 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3286 $as_echo "$ac_cv_target" >&6; }
3287 case $ac_cv_target in
3288 *-*-*) ;;
3289 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3290 esac
3291 target=$ac_cv_target
3292 ac_save_IFS=$IFS; IFS='-'
3293 set x $ac_cv_target
3294 shift
3295 target_cpu=$1
3296 target_vendor=$2
3297 shift; shift
3298 # Remember, the first character of IFS is used to create $*,
3299 # except with old shells:
3300 target_os=$*
3301 IFS=$ac_save_IFS
3302 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3305 # The aliases save the names the user supplied, while $host etc.
3306 # will get canonicalized.
3307 test -n "$target_alias" &&
3308 test "$program_prefix$program_suffix$program_transform_name" = \
3309 NONENONEs,x,x, &&
3310 program_prefix=${target_alias}-
3312 # Determine the noncanonical target name, for directory use.
3313 case ${build_alias} in
3314 "") build_noncanonical=${build} ;;
3315 *) build_noncanonical=${build_alias} ;;
3316 esac
3318 case ${host_alias} in
3319 "") host_noncanonical=${build_noncanonical} ;;
3320 *) host_noncanonical=${host_alias} ;;
3321 esac
3323 case ${target_alias} in
3324 "") target_noncanonical=${host_noncanonical} ;;
3325 *) target_noncanonical=${target_alias} ;;
3326 esac
3331 # Used for constructing correct paths for offload compilers.
3332 real_target_noncanonical=${target_noncanonical}
3333 accel_dir_suffix=
3335 # Determine the target- and build-specific subdirectories
3337 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3338 # have matching libraries, they should use host libraries: Makefile.tpl
3339 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3340 # However, they still use the build modules, because the corresponding
3341 # host modules (e.g. bison) are only built for the host when bootstrap
3342 # finishes. So:
3343 # - build_subdir is where we find build modules, and never changes.
3344 # - build_libsubdir is where we find build libraries, and can be overridden.
3346 # Prefix 'build-' so this never conflicts with target_subdir.
3347 build_subdir="build-${build_noncanonical}"
3349 # Check whether --with-build-libsubdir was given.
3350 if test "${with_build_libsubdir+set}" = set; then :
3351 withval=$with_build_libsubdir; build_libsubdir="$withval"
3352 else
3353 build_libsubdir="$build_subdir"
3356 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3357 if ( test $srcdir = . && test -d gcc ) \
3358 || test -d $srcdir/../host-${host_noncanonical}; then
3359 host_subdir="host-${host_noncanonical}"
3360 else
3361 host_subdir=.
3363 # No prefix.
3364 target_subdir=${target_noncanonical}
3367 # Set program_transform_name
3368 test "$program_prefix" != NONE &&
3369 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3370 # Use a double $ so make ignores it.
3371 test "$program_suffix" != NONE &&
3372 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3373 # Double any \ or $.
3374 # By default was `s,x,x', remove it if useless.
3375 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3376 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3379 # Check for bogus environment variables.
3380 # Test if LIBRARY_PATH contains the notation for the current directory
3381 # since this would lead to problems installing/building glibc.
3382 # LIBRARY_PATH contains the current directory if one of the following
3383 # is true:
3384 # - one of the terminals (":" and ";") is the first or last sign
3385 # - two terminals occur directly after each other
3386 # - the path contains an element with a dot in it
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3388 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3389 case ${LIBRARY_PATH} in
3390 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3391 library_path_setting="contains current directory"
3394 library_path_setting="ok"
3396 esac
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3398 $as_echo "$library_path_setting" >&6; }
3399 if test "$library_path_setting" != "ok"; then
3400 as_fn_error "
3401 *** LIBRARY_PATH shouldn't contain the current directory when
3402 *** building gcc. Please change the environment variable
3403 *** and run configure again." "$LINENO" 5
3406 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3407 # since this would lead to problems installing/building glibc.
3408 # GCC_EXEC_PREFIX contains the current directory if one of the following
3409 # is true:
3410 # - one of the terminals (":" and ";") is the first or last sign
3411 # - two terminals occur directly after each other
3412 # - the path contains an element with a dot in it
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3414 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3415 case ${GCC_EXEC_PREFIX} in
3416 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3417 gcc_exec_prefix_setting="contains current directory"
3420 gcc_exec_prefix_setting="ok"
3422 esac
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3424 $as_echo "$gcc_exec_prefix_setting" >&6; }
3425 if test "$gcc_exec_prefix_setting" != "ok"; then
3426 as_fn_error "
3427 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3428 *** building gcc. Please change the environment variable
3429 *** and run configure again." "$LINENO" 5
3432 # -----------
3433 # Directories
3434 # -----------
3436 # Specify the local prefix
3437 local_prefix=
3439 # Check whether --with-local-prefix was given.
3440 if test "${with_local_prefix+set}" = set; then :
3441 withval=$with_local_prefix; case "${withval}" in
3442 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3443 no) ;;
3444 *) local_prefix=$with_local_prefix ;;
3445 esac
3449 # Default local prefix if it is empty
3450 if test x$local_prefix = x; then
3451 local_prefix=/usr/local
3454 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3455 # passed in by the toplevel make and thus we'd get different behavior
3456 # depending on where we built the sources.
3457 gcc_gxx_include_dir=
3458 # Specify the g++ header file directory
3460 # Check whether --with-gxx-include-dir was given.
3461 if test "${with_gxx_include_dir+set}" = set; then :
3462 withval=$with_gxx_include_dir; case "${withval}" in
3463 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3464 no) ;;
3465 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3466 esac
3470 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3471 if test x${gcc_gxx_include_dir} = x; then
3472 if test x${enable_version_specific_runtime_libs} = xyes; then
3473 gcc_gxx_include_dir='${libsubdir}/include/c++'
3474 else
3475 libstdcxx_incdir='include/c++/$(version)'
3476 if test x$host != x$target; then
3477 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3479 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3483 gcc_gxx_include_dir_add_sysroot=0
3484 if test "${with_sysroot+set}" = set; then
3485 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3486 if test "${gcc_gxx_without_sysroot}"; then
3487 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3488 gcc_gxx_include_dir_add_sysroot=1
3493 # Check whether --with-cpp_install_dir was given.
3494 if test "${with_cpp_install_dir+set}" = set; then :
3495 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3496 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3497 elif test x$withval != xno; then
3498 cpp_install_dir=$withval
3503 # We would like to our source tree to be readonly. However when releases or
3504 # pre-releases are generated, the flex/bison generated files as well as the
3505 # various formats of manuals need to be included along with the rest of the
3506 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3507 # just that.
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3510 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3511 # Check whether --enable-generated-files-in-srcdir was given.
3512 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3513 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3514 else
3515 generated_files_in_srcdir=no
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3520 $as_echo "$generated_files_in_srcdir" >&6; }
3522 if test "$generated_files_in_srcdir" = "yes"; then
3523 GENINSRC=''
3524 else
3525 GENINSRC='#'
3529 # -------------------
3530 # Find default linker
3531 # -------------------
3533 # With GNU ld
3535 # Check whether --with-gnu-ld was given.
3536 if test "${with_gnu_ld+set}" = set; then :
3537 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3538 else
3539 gnu_ld_flag=no
3543 # With pre-defined ld
3545 # Check whether --with-ld was given.
3546 if test "${with_ld+set}" = set; then :
3547 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3550 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3551 if test ! -x "$DEFAULT_LINKER"; then
3552 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3553 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3554 gnu_ld_flag=yes
3557 cat >>confdefs.h <<_ACEOF
3558 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3559 _ACEOF
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3564 $as_echo_n "checking whether a default linker was specified... " >&6; }
3565 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3566 if test x"$gnu_ld_flag" = x"no"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3568 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3571 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 # With demangler in GNU ld
3580 # Check whether --with-demangler-in-ld was given.
3581 if test "${with_demangler_in_ld+set}" = set; then :
3582 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3583 else
3584 demangler_in_ld=yes
3588 # ----------------------
3589 # Find default assembler
3590 # ----------------------
3592 # With GNU as
3594 # Check whether --with-gnu-as was given.
3595 if test "${with_gnu_as+set}" = set; then :
3596 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3597 else
3598 gas_flag=no
3603 # Check whether --with-as was given.
3604 if test "${with_as+set}" = set; then :
3605 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3608 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3609 if test ! -x "$DEFAULT_ASSEMBLER"; then
3610 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3611 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3612 gas_flag=yes
3615 cat >>confdefs.h <<_ACEOF
3616 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3617 _ACEOF
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3622 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3623 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3624 if test x"$gas_flag" = x"no"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3626 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3629 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3636 # ---------------
3637 # Find C compiler
3638 # ---------------
3640 # If a non-executable a.out is present (e.g. created by GNU as above even if
3641 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3642 # file, even when creating an executable, so an execution test fails.
3643 # Remove possible default executable files to avoid this.
3645 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3646 # Autoconf includes it.
3647 rm -f a.out a.exe b.out
3649 # Find the native compiler
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$ac_cv_prog_CC"; then
3695 ac_ct_CC=$CC
3696 # Extract the first word of "gcc", so it can be a program name with args.
3697 set dummy gcc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_ac_ct_CC="gcc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3719 IFS=$as_save_IFS
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741 CC=$ac_ct_CC
3743 else
3744 CC="$ac_cv_prog_CC"
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_CC="${ac_tool_prefix}cc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3788 if test -z "$CC"; then
3789 # Extract the first word of "cc", so it can be a program name with args.
3790 set dummy cc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 ac_prog_rejected=no
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808 ac_prog_rejected=yes
3809 continue
3811 ac_cv_prog_CC="cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3819 if test $ac_prog_rejected = yes; then
3820 # We found a bogon in the path, so make sure we never use it.
3821 set dummy $ac_cv_prog_CC
3822 shift
3823 if test $# != 0; then
3824 # We chose a different compiler from the bogus one.
3825 # However, it has the same basename, so the bogon will be chosen
3826 # first if we set CC to just the basename; use the full file name.
3827 shift
3828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3833 CC=$ac_cv_prog_CC
3834 if test -n "$CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 $as_echo "$CC" >&6; }
3837 else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3844 if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
3846 for ac_prog in cl.exe
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3869 done
3870 done
3871 IFS=$as_save_IFS
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3885 test -n "$CC" && break
3886 done
3888 if test -z "$CC"; then
3889 ac_ct_CC=$CC
3890 for ac_prog in cl.exe
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_ac_ct_CC="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$ac_ct_CC" && break
3930 done
3932 if test "x$ac_ct_CC" = x; then
3933 CC=""
3934 else
3935 case $cross_compiling:$ac_tool_warned in
3936 yes:)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned=yes ;;
3940 esac
3941 CC=$ac_ct_CC
3948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error "no acceptable C compiler found in \$PATH
3951 See \`config.log' for more details." "$LINENO" 5; }
3953 # Provide some information about the compiler.
3954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955 set X $ac_compile
3956 ac_compiler=$2
3957 for ac_option in --version -v -V -qversion; do
3958 { { ac_try="$ac_compiler $ac_option >&5"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966 ac_status=$?
3967 if test -s conftest.err; then
3968 sed '10a\
3969 ... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976 done
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3982 main ()
3986 return 0;
3988 _ACEOF
3989 ac_clean_files_save=$ac_clean_files
3990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3991 # Try to create an executable without -o first, disregard a.out.
3992 # It will help us diagnose broken compilers, and finding out an intuition
3993 # of exeext.
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995 $as_echo_n "checking for C compiler default output file name... " >&6; }
3996 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3998 # The possible output files:
3999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4001 ac_rmfiles=
4002 for ac_file in $ac_files
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007 esac
4008 done
4009 rm -f $ac_rmfiles
4011 if { { ac_try="$ac_link_default"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_link_default") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4025 # so that the user can short-circuit this test for compilers unknown to
4026 # Autoconf.
4027 for ac_file in $ac_files ''
4029 test -f "$ac_file" || continue
4030 case $ac_file in
4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4033 [ab].out )
4034 # We found the default executable, but exeext='' is most
4035 # certainly right.
4036 break;;
4037 *.* )
4038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4039 then :; else
4040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 # We set ac_cv_exeext here because the later test for it is not
4043 # safe: cross compilers may not add the suffix if given an `-o'
4044 # argument, so we may need to know it at that point already.
4045 # Even if this section looks crufty: it has the advantage of
4046 # actually working.
4047 break;;
4049 break;;
4050 esac
4051 done
4052 test "$ac_cv_exeext" = no && ac_cv_exeext=
4054 else
4055 ac_file=''
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4058 $as_echo "$ac_file" >&6; }
4059 if test -z "$ac_file"; then :
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 { as_fn_set_status 77
4066 as_fn_error "C compiler cannot create executables
4067 See \`config.log' for more details." "$LINENO" 5; }; }
4069 ac_exeext=$ac_cv_exeext
4071 # Check that the compiler produces executables we can run. If not, either
4072 # the compiler is broken, or we cross compile.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4074 $as_echo_n "checking whether the C compiler works... " >&6; }
4075 # If not cross compiling, check that we can run a simple program.
4076 if test "$cross_compiling" != yes; then
4077 if { ac_try='./$ac_file'
4078 { { case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_try") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; }; then
4088 cross_compiling=no
4089 else
4090 if test "$cross_compiling" = maybe; then
4091 cross_compiling=yes
4092 else
4093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error "cannot run C compiled programs.
4096 If you meant to cross compile, use \`--host'.
4097 See \`config.log' for more details." "$LINENO" 5; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4105 ac_clean_files=$ac_clean_files_save
4106 # Check that the compiler produces executables we can run. If not, either
4107 # the compiler is broken, or we cross compile.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109 $as_echo_n "checking whether we are cross compiling... " >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111 $as_echo "$cross_compiling" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 $as_echo_n "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4116 case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
4123 ac_status=$?
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; then :
4126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4128 # work properly (i.e., refer to `conftest.exe'), while it won't with
4129 # `rm'.
4130 for ac_file in conftest.exe conftest conftest.*; do
4131 test -f "$ac_file" || continue
4132 case $ac_file in
4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4135 break;;
4136 * ) break;;
4137 esac
4138 done
4139 else
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error "cannot compute suffix of executables: cannot compile and link
4143 See \`config.log' for more details." "$LINENO" 5; }
4145 rm -f conftest$ac_cv_exeext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147 $as_echo "$ac_cv_exeext" >&6; }
4149 rm -f conftest.$ac_ext
4150 EXEEXT=$ac_cv_exeext
4151 ac_exeext=$EXEEXT
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153 $as_echo_n "checking for suffix of object files... " >&6; }
4154 if test "${ac_cv_objext+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.o conftest.obj
4169 if { { ac_try="$ac_compile"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
4177 ac_status=$?
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then :
4180 for ac_file in conftest.o conftest.obj conftest.*; do
4181 test -f "$ac_file" || continue;
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4185 break;;
4186 esac
4187 done
4188 else
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot compute suffix of object files: cannot compile
4195 See \`config.log' for more details." "$LINENO" 5; }
4197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200 $as_echo "$ac_cv_objext" >&6; }
4201 OBJEXT=$ac_cv_objext
4202 ac_objext=$OBJEXT
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4212 main ()
4214 #ifndef __GNUC__
4215 choke me
4216 #endif
4219 return 0;
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_compiler_gnu=yes
4224 else
4225 ac_compiler_gnu=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233 if test $ac_compiler_gnu = yes; then
4234 GCC=yes
4235 else
4236 GCC=
4238 ac_test_CFLAGS=${CFLAGS+set}
4239 ac_save_CFLAGS=$CFLAGS
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4242 if test "${ac_cv_prog_cc_g+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4247 ac_cv_prog_cc_g=no
4248 CFLAGS="-g"
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4253 main ()
4257 return 0;
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_g=yes
4262 else
4263 CFLAGS=""
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4268 main ()
4272 return 0;
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"; then :
4277 else
4278 ac_c_werror_flag=$ac_save_c_werror_flag
4279 CFLAGS="-g"
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4284 main ()
4288 return 0;
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_g=yes
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302 $as_echo "$ac_cv_prog_cc_g" >&6; }
4303 if test "$ac_test_CFLAGS" = set; then
4304 CFLAGS=$ac_save_CFLAGS
4305 elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4307 CFLAGS="-g -O2"
4308 else
4309 CFLAGS="-g"
4311 else
4312 if test "$GCC" = yes; then
4313 CFLAGS="-O2"
4314 else
4315 CFLAGS=
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 ac_cv_prog_cc_c89=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <stdarg.h>
4328 #include <stdio.h>
4329 #include <sys/types.h>
4330 #include <sys/stat.h>
4331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4332 struct buf { int x; };
4333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334 static char *e (p, i)
4335 char **p;
4336 int i;
4338 return p[i];
4340 static char *f (char * (*g) (char **, int), char **p, ...)
4342 char *s;
4343 va_list v;
4344 va_start (v,p);
4345 s = g (p, va_arg (v,int));
4346 va_end (v);
4347 return s;
4350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4351 function prototypes and stuff, but not '\xHH' hex character constants.
4352 These don't provoke an error unfortunately, instead are silently treated
4353 as 'x'. The following induces an error, until -std is added to get
4354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4355 array size at least. It's necessary to write '\x00'==0 to get something
4356 that's true only with -std. */
4357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360 inside strings and character constants. */
4361 #define FOO(x) 'x'
4362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4364 int test (int i, double x);
4365 struct s1 {int (*f) (int a);};
4366 struct s2 {int (*f) (double a);};
4367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368 int argc;
4369 char **argv;
4371 main ()
4373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4375 return 0;
4377 _ACEOF
4378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4381 CC="$ac_save_CC $ac_arg"
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_c89=$ac_arg
4385 rm -f core conftest.err conftest.$ac_objext
4386 test "x$ac_cv_prog_cc_c89" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CC=$ac_save_CC
4392 # AC_CACHE_VAL
4393 case "x$ac_cv_prog_cc_c89" in
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 $as_echo "none needed" >&6; } ;;
4397 xno)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399 $as_echo "unsupported" >&6; } ;;
4401 CC="$CC $ac_cv_prog_cc_c89"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4404 esac
4405 if test "x$ac_cv_prog_cc_c89" != xno; then :
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 ac_ext=cpp
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420 if test -z "$CXX"; then
4421 if test -n "$CCC"; then
4422 CXX=$CCC
4423 else
4424 if test -n "$ac_tool_prefix"; then
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$CXX"; then
4435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 CXX=$ac_cv_prog_CXX
4455 if test -n "$CXX"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4457 $as_echo "$CXX" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$CXX" && break
4465 done
4467 if test -z "$CXX"; then
4468 ac_ct_CXX=$CXX
4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$ac_ct_CXX"; then
4479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_ac_ct_CXX="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4499 if test -n "$ac_ct_CXX"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4501 $as_echo "$ac_ct_CXX" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$ac_ct_CXX" && break
4509 done
4511 if test "x$ac_ct_CXX" = x; then
4512 CXX="g++"
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515 yes:)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518 ac_tool_warned=yes ;;
4519 esac
4520 CXX=$ac_ct_CXX
4526 # Provide some information about the compiler.
4527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4528 set X $ac_compile
4529 ac_compiler=$2
4530 for ac_option in --version -v -V -qversion; do
4531 { { ac_try="$ac_compiler $ac_option >&5"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4539 ac_status=$?
4540 if test -s conftest.err; then
4541 sed '10a\
4542 ... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
4545 rm -f conftest.er1 conftest.err
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4549 done
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4552 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4553 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4560 main ()
4562 #ifndef __GNUC__
4563 choke me
4564 #endif
4567 return 0;
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_compiler_gnu=yes
4572 else
4573 ac_compiler_gnu=no
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4580 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4581 if test $ac_compiler_gnu = yes; then
4582 GXX=yes
4583 else
4584 GXX=
4586 ac_test_CXXFLAGS=${CXXFLAGS+set}
4587 ac_save_CXXFLAGS=$CXXFLAGS
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4589 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4590 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4594 ac_cxx_werror_flag=yes
4595 ac_cv_prog_cxx_g=no
4596 CXXFLAGS="-g"
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4601 main ()
4605 return 0;
4607 _ACEOF
4608 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 ac_cv_prog_cxx_g=yes
4610 else
4611 CXXFLAGS=""
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4625 else
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4627 CXXFLAGS="-g"
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4632 main ()
4636 return 0;
4638 _ACEOF
4639 if ac_fn_cxx_try_compile "$LINENO"; then :
4640 ac_cv_prog_cxx_g=yes
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4650 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4651 if test "$ac_test_CXXFLAGS" = set; then
4652 CXXFLAGS=$ac_save_CXXFLAGS
4653 elif test $ac_cv_prog_cxx_g = yes; then
4654 if test "$GXX" = yes; then
4655 CXXFLAGS="-g -O2"
4656 else
4657 CXXFLAGS="-g"
4659 else
4660 if test "$GXX" = yes; then
4661 CXXFLAGS="-O2"
4662 else
4663 CXXFLAGS=
4666 ac_ext=c
4667 ac_cpp='$CPP $CPPFLAGS'
4668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$GNATBIND"; then
4684 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 GNATBIND=$ac_cv_prog_GNATBIND
4704 if test -n "$GNATBIND"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4706 $as_echo "$GNATBIND" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4714 if test -z "$ac_cv_prog_GNATBIND"; then
4715 ac_ct_GNATBIND=$GNATBIND
4716 # Extract the first word of "gnatbind", so it can be a program name with args.
4717 set dummy gnatbind; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_GNATBIND"; then
4724 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4744 if test -n "$ac_ct_GNATBIND"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4746 $as_echo "$ac_ct_GNATBIND" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4752 if test "x$ac_ct_GNATBIND" = x; then
4753 GNATBIND="no"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761 GNATBIND=$ac_ct_GNATBIND
4763 else
4764 GNATBIND="$ac_cv_prog_GNATBIND"
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$GNATMAKE"; then
4776 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 GNATMAKE=$ac_cv_prog_GNATMAKE
4796 if test -n "$GNATMAKE"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4798 $as_echo "$GNATMAKE" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$ac_cv_prog_GNATMAKE"; then
4807 ac_ct_GNATMAKE=$GNATMAKE
4808 # Extract the first word of "gnatmake", so it can be a program name with args.
4809 set dummy gnatmake; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4836 if test -n "$ac_ct_GNATMAKE"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4838 $as_echo "$ac_ct_GNATMAKE" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4844 if test "x$ac_ct_GNATMAKE" = x; then
4845 GNATMAKE="no"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848 yes:)
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851 ac_tool_warned=yes ;;
4852 esac
4853 GNATMAKE=$ac_ct_GNATMAKE
4855 else
4856 GNATMAKE="$ac_cv_prog_GNATMAKE"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4860 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4861 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat >conftest.adb <<EOF
4865 procedure conftest is begin null; end conftest;
4867 acx_cv_cc_gcc_supports_ada=no
4868 # There is a bug in old released versions of GCC which causes the
4869 # driver to exit successfully when the appropriate language module
4870 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4871 # Therefore we must check for the error message as well as an
4872 # unsuccessful exit.
4873 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4874 # given a .adb file, but produce no object file. So we must check
4875 # if an object file was really produced to guard against this.
4876 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4877 if test x"$errors" = x && test -f conftest.$ac_objext; then
4878 acx_cv_cc_gcc_supports_ada=yes
4880 rm -f conftest.*
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4883 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4885 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4886 have_gnat=yes
4887 else
4888 have_gnat=no
4892 # Do configure tests with the C++ compiler, since that's what we build with.
4893 ac_ext=cpp
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4901 # optimizations to be activated explicitly by the toplevel.
4902 case "$CC" in
4903 */prev-gcc/xgcc*) ;;
4904 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4905 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4906 esac
4910 # Determine PICFLAG for target gnatlib.
4915 case "${target}" in
4916 # PIC is the default on some targets or must not be used.
4917 *-*-darwin*)
4918 # For darwin, common symbols are not allowed in MH_DYLIB files
4919 case "${CFLAGS}" in
4920 # If we are using a compiler supporting mdynamic-no-pic
4921 # and the option has been tested as safe to add, then cancel
4922 # it here, since the code generated is incompatible with shared
4923 # libs.
4924 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4925 *) PICFLAG_FOR_TARGET=-fno-common ;;
4926 esac
4928 alpha*-dec-osf5*)
4929 # PIC is the default.
4931 hppa*64*-*-hpux*)
4932 # PIC is the default for 64-bit PA HP-UX.
4934 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4936 i[34567]86-*-mingw* | x86_64-*-mingw*)
4938 i[34567]86-*-interix[3-9]*)
4939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4940 # Instead, we relocate shared libraries at runtime.
4942 i[34567]86-*-nto-qnx*)
4943 # QNX uses GNU C++, but need to define -shared option too, otherwise
4944 # it will coredump.
4945 PICFLAG_FOR_TARGET='-fPIC -shared'
4947 i[34567]86-pc-msdosdjgpp*)
4948 # DJGPP does not support shared libraries at all.
4950 ia64*-*-hpux*)
4951 # On IA64 HP-UX, PIC is the default but the pic flag
4952 # sets the default TLS model and affects inlining.
4953 PICFLAG_FOR_TARGET=-fPIC
4955 mips-sgi-irix6*)
4956 # PIC is the default.
4958 rs6000-ibm-aix* | powerpc-ibm-aix*)
4959 # All AIX code is PIC.
4962 # Some targets support both -fPIC and -fpic, but prefer the latter.
4963 # FIXME: Why?
4964 i[34567]86-*-* | x86_64-*-*)
4965 PICFLAG_FOR_TARGET=-fpic
4967 # FIXME: Override -fPIC default in libgcc only?
4968 sh-*-linux* | sh[2346lbe]*-*-linux*)
4969 PICFLAG_FOR_TARGET=-fpic
4971 # FIXME: Simplify to sh*-*-netbsd*?
4972 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4973 sh64-*-netbsd* | sh64l*-*-netbsd*)
4974 PICFLAG_FOR_TARGET=-fpic
4976 # Default to -fPIC unless specified otherwise.
4978 PICFLAG_FOR_TARGET=-fPIC
4980 esac
4982 # If the user explicitly uses -fpic/-fPIC, keep that.
4983 case "${CFLAGS_FOR_TARGET}" in
4984 *-fpic*)
4985 PICFLAG_FOR_TARGET=-fpic
4987 *-fPIC*)
4988 PICFLAG_FOR_TARGET=-fPIC
4990 esac
4994 # -------------------------
4995 # Check C compiler features
4996 # -------------------------
4999 ac_ext=cpp
5000 ac_cpp='$CXXCPP $CPPFLAGS'
5001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5005 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5006 if test -z "$CXXCPP"; then
5007 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 # Double quotes because CXXCPP needs to be expanded
5011 for CXXCPP in "$CXX -E" "/lib/cpp"
5013 ac_preproc_ok=false
5014 for ac_cxx_preproc_warn_flag in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #ifdef __STDC__
5025 # include <limits.h>
5026 #else
5027 # include <assert.h>
5028 #endif
5029 Syntax error
5030 _ACEOF
5031 if ac_fn_cxx_try_cpp "$LINENO"; then :
5033 else
5034 # Broken: fails on valid input.
5035 continue
5037 rm -f conftest.err conftest.$ac_ext
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5044 _ACEOF
5045 if ac_fn_cxx_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5047 continue
5048 else
5049 # Passes both tests.
5050 ac_preproc_ok=:
5051 break
5053 rm -f conftest.err conftest.$ac_ext
5055 done
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.err conftest.$ac_ext
5058 if $ac_preproc_ok; then :
5059 break
5062 done
5063 ac_cv_prog_CXXCPP=$CXXCPP
5066 CXXCPP=$ac_cv_prog_CXXCPP
5067 else
5068 ac_cv_prog_CXXCPP=$CXXCPP
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5071 $as_echo "$CXXCPP" >&6; }
5072 ac_preproc_ok=false
5073 for ac_cxx_preproc_warn_flag in '' yes
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #ifdef __STDC__
5084 # include <limits.h>
5085 #else
5086 # include <assert.h>
5087 #endif
5088 Syntax error
5089 _ACEOF
5090 if ac_fn_cxx_try_cpp "$LINENO"; then :
5092 else
5093 # Broken: fails on valid input.
5094 continue
5096 rm -f conftest.err conftest.$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if ac_fn_cxx_try_cpp "$LINENO"; then :
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 # Passes both tests.
5109 ac_preproc_ok=:
5110 break
5112 rm -f conftest.err conftest.$ac_ext
5114 done
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then :
5119 else
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." "$LINENO" 5; }
5126 ac_ext=cpp
5127 ac_cpp='$CXXCPP $CPPFLAGS'
5128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5135 if test "${ac_cv_path_GREP+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -z "$GREP"; then
5139 ac_path_GREP_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in grep ggrep; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5149 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5150 # Check for GNU ac_path_GREP and select it if it is found.
5151 # Check for GNU $ac_path_GREP
5152 case `"$ac_path_GREP" --version 2>&1` in
5153 *GNU*)
5154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5156 ac_count=0
5157 $as_echo_n 0123456789 >"conftest.in"
5158 while :
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'GREP' >> "conftest.nl"
5164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166 as_fn_arith $ac_count + 1 && ac_count=$as_val
5167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_GREP="$ac_path_GREP"
5170 ac_path_GREP_max=$ac_count
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5174 done
5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176 esac
5178 $ac_path_GREP_found && break 3
5179 done
5180 done
5181 done
5182 IFS=$as_save_IFS
5183 if test -z "$ac_cv_path_GREP"; then
5184 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 else
5187 ac_cv_path_GREP=$GREP
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5192 $as_echo "$ac_cv_path_GREP" >&6; }
5193 GREP="$ac_cv_path_GREP"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5197 $as_echo_n "checking for egrep... " >&6; }
5198 if test "${ac_cv_path_EGREP+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5202 then ac_cv_path_EGREP="$GREP -E"
5203 else
5204 if test -z "$EGREP"; then
5205 ac_path_EGREP_found=false
5206 # Loop through the user's path and test for each of PROGNAME-LIST
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_prog in egrep; do
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5215 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5216 # Check for GNU ac_path_EGREP and select it if it is found.
5217 # Check for GNU $ac_path_EGREP
5218 case `"$ac_path_EGREP" --version 2>&1` in
5219 *GNU*)
5220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5222 ac_count=0
5223 $as_echo_n 0123456789 >"conftest.in"
5224 while :
5226 cat "conftest.in" "conftest.in" >"conftest.tmp"
5227 mv "conftest.tmp" "conftest.in"
5228 cp "conftest.in" "conftest.nl"
5229 $as_echo 'EGREP' >> "conftest.nl"
5230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5232 as_fn_arith $ac_count + 1 && ac_count=$as_val
5233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5234 # Best one so far, save it but keep looking for a better one
5235 ac_cv_path_EGREP="$ac_path_EGREP"
5236 ac_path_EGREP_max=$ac_count
5238 # 10*(2^10) chars as input seems more than enough
5239 test $ac_count -gt 10 && break
5240 done
5241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5242 esac
5244 $ac_path_EGREP_found && break 3
5245 done
5246 done
5247 done
5248 IFS=$as_save_IFS
5249 if test -z "$ac_cv_path_EGREP"; then
5250 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 else
5253 ac_cv_path_EGREP=$EGREP
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5259 $as_echo "$ac_cv_path_EGREP" >&6; }
5260 EGREP="$ac_cv_path_EGREP"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5264 $as_echo_n "checking for ANSI C header files... " >&6; }
5265 if test "${ac_cv_header_stdc+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include <stdlib.h>
5271 #include <stdarg.h>
5272 #include <string.h>
5273 #include <float.h>
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_cxx_try_compile "$LINENO"; then :
5284 ac_cv_header_stdc=yes
5285 else
5286 ac_cv_header_stdc=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <string.h>
5296 _ACEOF
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev/null 2>&1; then :
5300 else
5301 ac_cv_header_stdc=no
5303 rm -f conftest*
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 #include <stdlib.h>
5313 _ACEOF
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "free" >/dev/null 2>&1; then :
5317 else
5318 ac_cv_header_stdc=no
5320 rm -f conftest*
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then :
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <ctype.h>
5332 #include <stdlib.h>
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5336 #else
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5342 #endif
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5346 main ()
5348 int i;
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5352 return 2;
5353 return 0;
5355 _ACEOF
5356 if ac_fn_cxx_try_run "$LINENO"; then :
5358 else
5359 ac_cv_header_stdc=no
5361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5362 conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5368 $as_echo "$ac_cv_header_stdc" >&6; }
5369 if test $ac_cv_header_stdc = yes; then
5371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5377 inttypes.h stdint.h unistd.h
5378 do :
5379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5380 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5382 eval as_val=\$$as_ac_Header
5383 if test "x$as_val" = x""yes; then :
5384 cat >>confdefs.h <<_ACEOF
5385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386 _ACEOF
5390 done
5394 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5395 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5396 MINIX=yes
5397 else
5398 MINIX=
5402 if test "$MINIX" = yes; then
5404 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5407 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5410 $as_echo "#define _MINIX 1" >>confdefs.h
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5416 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5417 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5423 # define __EXTENSIONS__ 1
5424 $ac_includes_default
5426 main ()
5430 return 0;
5432 _ACEOF
5433 if ac_fn_cxx_try_compile "$LINENO"; then :
5434 ac_cv_safe_to_define___extensions__=yes
5435 else
5436 ac_cv_safe_to_define___extensions__=no
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5441 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5442 test $ac_cv_safe_to_define___extensions__ = yes &&
5443 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5445 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5447 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5449 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5451 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5460 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5461 # On Suns, sometimes $CPP names a directory.
5462 if test -n "$CPP" && test -d "$CPP"; then
5463 CPP=
5465 if test -z "$CPP"; then
5466 if test "${ac_cv_prog_CPP+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 # Double quotes because CPP needs to be expanded
5470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5472 ac_preproc_ok=false
5473 for ac_c_preproc_warn_flag in '' yes
5475 # Use a header file that comes with gcc, so configuring glibc
5476 # with a fresh cross-compiler works.
5477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5478 # <limits.h> exists even on freestanding compilers.
5479 # On the NeXT, cc -E runs the code through the compiler's parser,
5480 # not just through cpp. "Syntax error" is here to catch this case.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #ifdef __STDC__
5484 # include <limits.h>
5485 #else
5486 # include <assert.h>
5487 #endif
5488 Syntax error
5489 _ACEOF
5490 if ac_fn_c_try_cpp "$LINENO"; then :
5492 else
5493 # Broken: fails on valid input.
5494 continue
5496 rm -f conftest.err conftest.$ac_ext
5498 # OK, works on sane cases. Now check whether nonexistent headers
5499 # can be detected and how.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <ac_nonexistent.h>
5503 _ACEOF
5504 if ac_fn_c_try_cpp "$LINENO"; then :
5505 # Broken: success on invalid input.
5506 continue
5507 else
5508 # Passes both tests.
5509 ac_preproc_ok=:
5510 break
5512 rm -f conftest.err conftest.$ac_ext
5514 done
5515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516 rm -f conftest.err conftest.$ac_ext
5517 if $ac_preproc_ok; then :
5518 break
5521 done
5522 ac_cv_prog_CPP=$CPP
5525 CPP=$ac_cv_prog_CPP
5526 else
5527 ac_cv_prog_CPP=$CPP
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5530 $as_echo "$CPP" >&6; }
5531 ac_preproc_ok=false
5532 for ac_c_preproc_warn_flag in '' yes
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #ifdef __STDC__
5543 # include <limits.h>
5544 #else
5545 # include <assert.h>
5546 #endif
5547 Syntax error
5548 _ACEOF
5549 if ac_fn_c_try_cpp "$LINENO"; then :
5551 else
5552 # Broken: fails on valid input.
5553 continue
5555 rm -f conftest.err conftest.$ac_ext
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <ac_nonexistent.h>
5562 _ACEOF
5563 if ac_fn_c_try_cpp "$LINENO"; then :
5564 # Broken: success on invalid input.
5565 continue
5566 else
5567 # Passes both tests.
5568 ac_preproc_ok=:
5569 break
5571 rm -f conftest.err conftest.$ac_ext
5573 done
5574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575 rm -f conftest.err conftest.$ac_ext
5576 if $ac_preproc_ok; then :
5578 else
5579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5582 See \`config.log' for more details." "$LINENO" 5; }
5585 ac_ext=cpp
5586 ac_cpp='$CXXCPP $CPPFLAGS'
5587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5592 $as_echo_n "checking for inline... " >&6; }
5593 if test "${ac_cv_c_inline+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 ac_cv_c_inline=no
5597 for ac_kw in inline __inline__ __inline; do
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #ifndef __cplusplus
5601 typedef int foo_t;
5602 static $ac_kw foo_t static_foo () {return 0; }
5603 $ac_kw foo_t foo () {return 0; }
5604 #endif
5606 _ACEOF
5607 if ac_fn_cxx_try_compile "$LINENO"; then :
5608 ac_cv_c_inline=$ac_kw
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 test "$ac_cv_c_inline" != no && break
5612 done
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5616 $as_echo "$ac_cv_c_inline" >&6; }
5618 case $ac_cv_c_inline in
5619 inline | yes) ;;
5621 case $ac_cv_c_inline in
5622 no) ac_val=;;
5623 *) ac_val=$ac_cv_c_inline;;
5624 esac
5625 cat >>confdefs.h <<_ACEOF
5626 #ifndef __cplusplus
5627 #define inline $ac_val
5628 #endif
5629 _ACEOF
5631 esac
5634 # Check whether --enable-largefile was given.
5635 if test "${enable_largefile+set}" = set; then :
5636 enableval=$enable_largefile;
5639 if test "$enable_largefile" != no; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5642 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5643 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 ac_cv_sys_largefile_CC=no
5647 if test "$GCC" != yes; then
5648 ac_save_CC=$CC
5649 while :; do
5650 # IRIX 6.2 and later do not support large files by default,
5651 # so use the C compiler's -n32 option if that helps.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5662 ? 1 : -1];
5664 main ()
5668 return 0;
5670 _ACEOF
5671 if ac_fn_cxx_try_compile "$LINENO"; then :
5672 break
5674 rm -f core conftest.err conftest.$ac_objext
5675 CC="$CC -n32"
5676 if ac_fn_cxx_try_compile "$LINENO"; then :
5677 ac_cv_sys_largefile_CC=' -n32'; break
5679 rm -f core conftest.err conftest.$ac_objext
5680 break
5681 done
5682 CC=$ac_save_CC
5683 rm -f conftest.$ac_ext
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5687 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5688 if test "$ac_cv_sys_largefile_CC" != no; then
5689 CC=$CC$ac_cv_sys_largefile_CC
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5693 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5694 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 while :; do
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5708 ? 1 : -1];
5710 main ()
5714 return 0;
5716 _ACEOF
5717 if ac_fn_cxx_try_compile "$LINENO"; then :
5718 ac_cv_sys_file_offset_bits=no; break
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #define _FILE_OFFSET_BITS 64
5724 #include <sys/types.h>
5725 /* Check that off_t can represent 2**63 - 1 correctly.
5726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5727 since some C++ compilers masquerading as C compilers
5728 incorrectly reject 9223372036854775807. */
5729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5731 && LARGE_OFF_T % 2147483647 == 1)
5732 ? 1 : -1];
5734 main ()
5738 return 0;
5740 _ACEOF
5741 if ac_fn_cxx_try_compile "$LINENO"; then :
5742 ac_cv_sys_file_offset_bits=64; break
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_cv_sys_file_offset_bits=unknown
5746 break
5747 done
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5750 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5751 case $ac_cv_sys_file_offset_bits in #(
5752 no | unknown) ;;
5754 cat >>confdefs.h <<_ACEOF
5755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5756 _ACEOF
5758 esac
5759 rm -rf conftest*
5760 if test $ac_cv_sys_file_offset_bits = unknown; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5762 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5763 if test "${ac_cv_sys_large_files+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 while :; do
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5779 main ()
5783 return 0;
5785 _ACEOF
5786 if ac_fn_cxx_try_compile "$LINENO"; then :
5787 ac_cv_sys_large_files=no; break
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #define _LARGE_FILES 1
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5803 main ()
5807 return 0;
5809 _ACEOF
5810 if ac_fn_cxx_try_compile "$LINENO"; then :
5811 ac_cv_sys_large_files=1; break
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 ac_cv_sys_large_files=unknown
5815 break
5816 done
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5819 $as_echo "$ac_cv_sys_large_files" >&6; }
5820 case $ac_cv_sys_large_files in #(
5821 no | unknown) ;;
5823 cat >>confdefs.h <<_ACEOF
5824 #define _LARGE_FILES $ac_cv_sys_large_files
5825 _ACEOF
5827 esac
5828 rm -rf conftest*
5833 # sizeof(char) is 1 by definition.
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5839 $as_echo_n "checking size of void *... " >&6; }
5840 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5845 else
5846 if test "$ac_cv_type_void_p" = yes; then
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status 77
5850 as_fn_error "cannot compute sizeof (void *)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5852 else
5853 ac_cv_sizeof_void_p=0
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5859 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5863 cat >>confdefs.h <<_ACEOF
5864 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5865 _ACEOF
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5873 $as_echo_n "checking size of short... " >&6; }
5874 if test "${ac_cv_sizeof_short+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5879 else
5880 if test "$ac_cv_type_short" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status 77
5884 as_fn_error "cannot compute sizeof (short)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5886 else
5887 ac_cv_sizeof_short=0
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5893 $as_echo "$ac_cv_sizeof_short" >&6; }
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF_SHORT $ac_cv_sizeof_short
5899 _ACEOF
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5907 $as_echo_n "checking size of int... " >&6; }
5908 if test "${ac_cv_sizeof_int+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5913 else
5914 if test "$ac_cv_type_int" = yes; then
5915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status 77
5918 as_fn_error "cannot compute sizeof (int)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5920 else
5921 ac_cv_sizeof_int=0
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5927 $as_echo "$ac_cv_sizeof_int" >&6; }
5931 cat >>confdefs.h <<_ACEOF
5932 #define SIZEOF_INT $ac_cv_sizeof_int
5933 _ACEOF
5936 # The cast to long int works around a bug in the HP C Compiler
5937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5939 # This bug is HP SR number 8606223364.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5941 $as_echo_n "checking size of long... " >&6; }
5942 if test "${ac_cv_sizeof_long+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5947 else
5948 if test "$ac_cv_type_long" = yes; then
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 { as_fn_set_status 77
5952 as_fn_error "cannot compute sizeof (long)
5953 See \`config.log' for more details." "$LINENO" 5; }; }
5954 else
5955 ac_cv_sizeof_long=0
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5961 $as_echo "$ac_cv_sizeof_long" >&6; }
5965 cat >>confdefs.h <<_ACEOF
5966 #define SIZEOF_LONG $ac_cv_sizeof_long
5967 _ACEOF
5970 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5971 if test "x$ac_cv_type_long_long" = x""yes; then :
5973 cat >>confdefs.h <<_ACEOF
5974 #define HAVE_LONG_LONG 1
5975 _ACEOF
5977 # The cast to long int works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5982 $as_echo_n "checking size of long long... " >&6; }
5983 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5988 else
5989 if test "$ac_cv_type_long_long" = yes; then
5990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992 { as_fn_set_status 77
5993 as_fn_error "cannot compute sizeof (long long)
5994 See \`config.log' for more details." "$LINENO" 5; }; }
5995 else
5996 ac_cv_sizeof_long_long=0
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6002 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6006 cat >>confdefs.h <<_ACEOF
6007 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6008 _ACEOF
6013 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6014 case $ac_cv_c_int8_t in #(
6015 no|yes) ;; #(
6018 cat >>confdefs.h <<_ACEOF
6019 #define int8_t $ac_cv_c_int8_t
6020 _ACEOF
6022 esac
6024 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6025 case $ac_cv_c_int16_t in #(
6026 no|yes) ;; #(
6029 cat >>confdefs.h <<_ACEOF
6030 #define int16_t $ac_cv_c_int16_t
6031 _ACEOF
6033 esac
6035 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6036 case $ac_cv_c_int32_t in #(
6037 no|yes) ;; #(
6040 cat >>confdefs.h <<_ACEOF
6041 #define int32_t $ac_cv_c_int32_t
6042 _ACEOF
6044 esac
6046 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6047 case $ac_cv_c_int64_t in #(
6048 no|yes) ;; #(
6051 cat >>confdefs.h <<_ACEOF
6052 #define int64_t $ac_cv_c_int64_t
6053 _ACEOF
6055 esac
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6059 $as_echo_n "checking for long long int... " >&6; }
6060 if test "${ac_cv_type_long_long_int+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 /* For now, do not test the preprocessor; as of 2007 there are too many
6067 implementations with broken preprocessors. Perhaps this can
6068 be revisited in 2012. In the meantime, code should not expect
6069 #if to work with literals wider than 32 bits. */
6070 /* Test literals. */
6071 long long int ll = 9223372036854775807ll;
6072 long long int nll = -9223372036854775807LL;
6073 unsigned long long int ull = 18446744073709551615ULL;
6074 /* Test constant expressions. */
6075 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6076 ? 1 : -1)];
6077 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6078 ? 1 : -1)];
6079 int i = 63;
6081 main ()
6083 /* Test availability of runtime routines for shift and division. */
6084 long long int llmax = 9223372036854775807ll;
6085 unsigned long long int ullmax = 18446744073709551615ull;
6086 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6087 | (llmax / ll) | (llmax % ll)
6088 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6089 | (ullmax / ull) | (ullmax % ull));
6091 return 0;
6094 _ACEOF
6095 if ac_fn_cxx_try_link "$LINENO"; then :
6096 if test "$cross_compiling" = yes; then :
6097 ac_cv_type_long_long_int=yes
6098 else
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #include <limits.h>
6102 #ifndef LLONG_MAX
6103 # define HALF \
6104 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6105 # define LLONG_MAX (HALF - 1 + HALF)
6106 #endif
6108 main ()
6110 long long int n = 1;
6111 int i;
6112 for (i = 0; ; i++)
6114 long long int m = n << i;
6115 if (m >> i != n)
6116 return 1;
6117 if (LLONG_MAX / 2 < m)
6118 break;
6120 return 0;
6122 return 0;
6124 _ACEOF
6125 if ac_fn_cxx_try_run "$LINENO"; then :
6126 ac_cv_type_long_long_int=yes
6127 else
6128 ac_cv_type_long_long_int=no
6130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6131 conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 else
6135 ac_cv_type_long_long_int=no
6137 rm -f core conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6141 $as_echo "$ac_cv_type_long_long_int" >&6; }
6142 if test $ac_cv_type_long_long_int = yes; then
6144 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6150 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6153 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6155 else
6156 test $ac_cv_type_long_long_int = yes \
6157 && ac_type='long long int' \
6158 || ac_type='long int'
6160 cat >>confdefs.h <<_ACEOF
6161 #define intmax_t $ac_type
6162 _ACEOF
6168 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6171 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6173 else
6174 for ac_type in 'int' 'long int' 'long long int'; do
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 $ac_includes_default
6179 main ()
6181 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6182 test_array [0] = 0
6185 return 0;
6187 _ACEOF
6188 if ac_fn_cxx_try_compile "$LINENO"; then :
6190 cat >>confdefs.h <<_ACEOF
6191 #define intptr_t $ac_type
6192 _ACEOF
6194 ac_type=
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 test -z "$ac_type" && break
6198 done
6202 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6203 case $ac_cv_c_uint8_t in #(
6204 no|yes) ;; #(
6207 $as_echo "#define _UINT8_T 1" >>confdefs.h
6210 cat >>confdefs.h <<_ACEOF
6211 #define uint8_t $ac_cv_c_uint8_t
6212 _ACEOF
6214 esac
6216 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6217 case $ac_cv_c_uint16_t in #(
6218 no|yes) ;; #(
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint16_t $ac_cv_c_uint16_t
6224 _ACEOF
6226 esac
6228 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6229 case $ac_cv_c_uint32_t in #(
6230 no|yes) ;; #(
6233 $as_echo "#define _UINT32_T 1" >>confdefs.h
6236 cat >>confdefs.h <<_ACEOF
6237 #define uint32_t $ac_cv_c_uint32_t
6238 _ACEOF
6240 esac
6242 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6243 case $ac_cv_c_uint64_t in #(
6244 no|yes) ;; #(
6247 $as_echo "#define _UINT64_T 1" >>confdefs.h
6250 cat >>confdefs.h <<_ACEOF
6251 #define uint64_t $ac_cv_c_uint64_t
6252 _ACEOF
6254 esac
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6258 $as_echo_n "checking for unsigned long long int... " >&6; }
6259 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6265 /* For now, do not test the preprocessor; as of 2007 there are too many
6266 implementations with broken preprocessors. Perhaps this can
6267 be revisited in 2012. In the meantime, code should not expect
6268 #if to work with literals wider than 32 bits. */
6269 /* Test literals. */
6270 long long int ll = 9223372036854775807ll;
6271 long long int nll = -9223372036854775807LL;
6272 unsigned long long int ull = 18446744073709551615ULL;
6273 /* Test constant expressions. */
6274 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6275 ? 1 : -1)];
6276 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6277 ? 1 : -1)];
6278 int i = 63;
6280 main ()
6282 /* Test availability of runtime routines for shift and division. */
6283 long long int llmax = 9223372036854775807ll;
6284 unsigned long long int ullmax = 18446744073709551615ull;
6285 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6286 | (llmax / ll) | (llmax % ll)
6287 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6288 | (ullmax / ull) | (ullmax % ull));
6290 return 0;
6293 _ACEOF
6294 if ac_fn_cxx_try_link "$LINENO"; then :
6295 ac_cv_type_unsigned_long_long_int=yes
6296 else
6297 ac_cv_type_unsigned_long_long_int=no
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6303 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6304 if test $ac_cv_type_unsigned_long_long_int = yes; then
6306 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6312 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6313 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6315 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6317 else
6318 test $ac_cv_type_unsigned_long_long_int = yes \
6319 && ac_type='unsigned long long int' \
6320 || ac_type='unsigned long int'
6322 cat >>confdefs.h <<_ACEOF
6323 #define uintmax_t $ac_type
6324 _ACEOF
6330 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6333 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6335 else
6336 for ac_type in 'unsigned int' 'unsigned long int' \
6337 'unsigned long long int'; do
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 $ac_includes_default
6342 main ()
6344 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6345 test_array [0] = 0
6348 return 0;
6350 _ACEOF
6351 if ac_fn_cxx_try_compile "$LINENO"; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define uintptr_t $ac_type
6355 _ACEOF
6357 ac_type=
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 test -z "$ac_type" && break
6361 done
6377 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6378 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6381 # check what underlying integer type int64_t uses
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6383 $as_echo_n "checking for int64_t underlying type... " >&6; }
6384 if test "${ac_cv_int64_t_type+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6391 #ifdef HAVE_STDINT_H
6392 #include <stdint.h>
6393 #endif
6394 template <typename T> struct X { };
6395 template <>
6396 struct X<long> { typedef long t; };
6399 main ()
6401 X<int64_t>::t x;
6403 return 0;
6405 _ACEOF
6406 if ac_fn_cxx_try_compile "$LINENO"; then :
6407 ac_cv_int64_t_type=long
6408 else
6409 ac_cv_int64_t_type="long long"
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6414 $as_echo "$ac_cv_int64_t_type" >&6; }
6415 if test "$ac_cv_int64_t_type" = "long"; then
6417 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 #ifdef HAVE_STDINT_H
6424 #include <stdint.h>
6425 #endif
6426 template <typename T> struct X { };
6427 template <>
6428 struct X<long long> { typedef long long t; };
6431 main ()
6433 X<int64_t>::t x;
6435 return 0;
6437 _ACEOF
6438 if ac_fn_cxx_try_compile "$LINENO"; then :
6440 else
6441 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 # ---------------------
6450 # Warnings and checking
6451 # ---------------------
6453 # Check $CC warning features (if it's GCC).
6454 # We want to use -pedantic, but we don't want warnings about
6455 # * 'long long'
6456 # * variadic macros
6457 # * overlong strings
6458 # * C++11 narrowing conversions in { }
6459 # So, we only use -pedantic if we can disable those warnings.
6461 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6462 # Check whether --enable-build-format-warnings was given.
6463 if test "${enable_build_format_warnings+set}" = set; then :
6464 enableval=$enable_build_format_warnings;
6465 else
6466 enable_build_format_warnings=yes
6469 if test $enable_build_format_warnings = no; then :
6470 wf_opt=-Wno-format
6471 else
6472 wf_opt=
6474 loose_warn=
6475 save_CFLAGS="$CFLAGS"
6476 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6477 # Do the check with the no- prefix removed since gcc silently
6478 # accepts any -Wno-* option on purpose
6479 case $real_option in
6480 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6481 *) option=$real_option ;;
6482 esac
6483 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 CFLAGS="$option"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6495 main ()
6499 return 0;
6501 _ACEOF
6502 if ac_fn_cxx_try_compile "$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6504 else
6505 eval "$as_acx_Woption=no"
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 eval ac_res=\$$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6516 done
6517 CFLAGS="$save_CFLAGS"
6519 c_loose_warn=
6520 save_CFLAGS="$CFLAGS"
6521 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6522 # Do the check with the no- prefix removed since gcc silently
6523 # accepts any -Wno-* option on purpose
6524 case $real_option in
6525 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6526 *) option=$real_option ;;
6527 esac
6528 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6531 $as_echo_n "checking whether $CC supports $option... " >&6; }
6532 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 CFLAGS="$option"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6540 main ()
6544 return 0;
6546 _ACEOF
6547 if ac_fn_cxx_try_compile "$LINENO"; then :
6548 eval "$as_acx_Woption=yes"
6549 else
6550 eval "$as_acx_Woption=no"
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 eval ac_res=\$$as_acx_Woption
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6557 $as_echo "$ac_res" >&6; }
6558 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6559 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6561 done
6562 CFLAGS="$save_CFLAGS"
6564 strict_warn=
6565 save_CFLAGS="$CFLAGS"
6566 for real_option in -Wmissing-format-attribute; do
6567 # Do the check with the no- prefix removed since gcc silently
6568 # accepts any -Wno-* option on purpose
6569 case $real_option in
6570 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6571 *) option=$real_option ;;
6572 esac
6573 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6576 $as_echo_n "checking whether $CC supports $option... " >&6; }
6577 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 CFLAGS="$option"
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_cxx_try_compile "$LINENO"; then :
6593 eval "$as_acx_Woption=yes"
6594 else
6595 eval "$as_acx_Woption=no"
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 eval ac_res=\$$as_acx_Woption
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6602 $as_echo "$ac_res" >&6; }
6603 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6604 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6606 done
6607 CFLAGS="$save_CFLAGS"
6609 save_CFLAGS="$CFLAGS"
6610 for real_option in -Woverloaded-virtual; do
6611 # Do the check with the no- prefix removed since gcc silently
6612 # accepts any -Wno-* option on purpose
6613 case $real_option in
6614 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6615 *) option=$real_option ;;
6616 esac
6617 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6620 $as_echo_n "checking whether $CC supports $option... " >&6; }
6621 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 CFLAGS="$option"
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6629 main ()
6633 return 0;
6635 _ACEOF
6636 if ac_fn_cxx_try_compile "$LINENO"; then :
6637 eval "$as_acx_Woption=yes"
6638 else
6639 eval "$as_acx_Woption=no"
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 eval ac_res=\$$as_acx_Woption
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6646 $as_echo "$ac_res" >&6; }
6647 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6648 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6650 done
6651 CFLAGS="$save_CFLAGS"
6653 c_strict_warn=
6654 save_CFLAGS="$CFLAGS"
6655 for real_option in -Wold-style-definition -Wc++-compat; do
6656 # Do the check with the no- prefix removed since gcc silently
6657 # accepts any -Wno-* option on purpose
6658 case $real_option in
6659 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6660 *) option=$real_option ;;
6661 esac
6662 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6665 $as_echo_n "checking whether $CC supports $option... " >&6; }
6666 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 CFLAGS="$option"
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6674 main ()
6678 return 0;
6680 _ACEOF
6681 if ac_fn_cxx_try_compile "$LINENO"; then :
6682 eval "$as_acx_Woption=yes"
6683 else
6684 eval "$as_acx_Woption=no"
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 eval ac_res=\$$as_acx_Woption
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6691 $as_echo "$ac_res" >&6; }
6692 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6693 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6695 done
6696 CFLAGS="$save_CFLAGS"
6698 # Do the check with the no- prefix removed from the warning options
6699 # since gcc silently accepts any -Wno-* option on purpose
6700 if test "$GCC" = yes; then :
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6702 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6703 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 save_CFLAGS="$CFLAGS"
6707 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6712 main ()
6716 return 0;
6718 _ACEOF
6719 if ac_fn_cxx_try_compile "$LINENO"; then :
6720 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6721 else
6722 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 CFLAGS="$save_CFLAGS"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6728 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6729 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6730 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6735 # Check whether --enable-werror-always was given.
6736 if test "${enable_werror_always+set}" = set; then :
6737 enableval=$enable_werror_always;
6738 else
6739 enable_werror_always=no
6742 if test $enable_werror_always = yes; then :
6743 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6748 # The above macros do nothing if the compiler is not GCC. However, the
6749 # Makefile has more goo to add other flags, so these variables are used
6750 # to enable warnings only for GCC.
6751 warn_cflags=
6752 warn_cxxflags=
6753 if test "x$GCC" = "xyes"; then
6754 warn_cflags='$(GCC_WARN_CFLAGS)'
6755 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6760 # Disable exceptions and RTTI if building with g++
6761 noexception_flags=
6762 save_CFLAGS="$CFLAGS"
6763 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6764 # Do the check with the no- prefix removed since gcc silently
6765 # accepts any -Wno-* option on purpose
6766 case $real_option in
6767 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6768 *) option=$real_option ;;
6769 esac
6770 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6773 $as_echo_n "checking whether $CC supports $option... " >&6; }
6774 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 CFLAGS="$option"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6782 main ()
6786 return 0;
6788 _ACEOF
6789 if ac_fn_cxx_try_compile "$LINENO"; then :
6790 eval "$as_acx_Woption=yes"
6791 else
6792 eval "$as_acx_Woption=no"
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 eval ac_res=\$$as_acx_Woption
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6799 $as_echo "$ac_res" >&6; }
6800 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6801 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6803 done
6804 CFLAGS="$save_CFLAGS"
6807 # Enable expensive internal checks
6808 is_release=
6809 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6810 is_release=yes
6813 # Check whether --enable-checking was given.
6814 if test "${enable_checking+set}" = set; then :
6815 enableval=$enable_checking; ac_checking_flags="${enableval}"
6816 else
6818 # Determine the default checks.
6819 if test x$is_release = x ; then
6820 ac_checking_flags=yes
6821 else
6822 ac_checking_flags=release
6826 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6827 for check in release $ac_checking_flags
6829 case $check in
6830 # these set all the flags to specific states
6831 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6832 ac_fold_checking= ; ac_gc_checking=1 ;
6833 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6834 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6835 ac_tree_checking=1 ; ac_valgrind_checking= ;
6836 ac_types_checking=1 ;;
6837 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6838 ac_fold_checking= ; ac_gc_checking= ;
6839 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6840 ac_rtlflag_checking= ; ac_runtime_checking= ;
6841 ac_tree_checking= ; ac_valgrind_checking= ;
6842 ac_types_checking= ;;
6843 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6844 ac_fold_checking=1 ; ac_gc_checking=1 ;
6845 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6846 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6847 ac_tree_checking=1 ; ac_valgrind_checking= ;
6848 ac_types_checking=1 ;;
6849 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6850 ac_fold_checking= ; ac_gc_checking= ;
6851 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6852 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6853 ac_tree_checking= ; ac_valgrind_checking= ;
6854 ac_types_checking= ;;
6855 # these enable particular checks
6856 assert) ac_assert_checking=1 ;;
6857 df) ac_df_checking=1 ;;
6858 fold) ac_fold_checking=1 ;;
6859 gc) ac_gc_checking=1 ;;
6860 gcac) ac_gc_always_collect=1 ;;
6861 gimple) ac_gimple_checking=1 ;;
6862 misc) ac_checking=1 ;;
6863 rtl) ac_rtl_checking=1 ;;
6864 rtlflag) ac_rtlflag_checking=1 ;;
6865 runtime) ac_runtime_checking=1 ;;
6866 tree) ac_tree_checking=1 ;;
6867 types) ac_types_checking=1 ;;
6868 valgrind) ac_valgrind_checking=1 ;;
6869 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6870 esac
6871 done
6872 IFS="$ac_save_IFS"
6874 nocommon_flag=""
6875 if test x$ac_checking != x ; then
6877 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6879 nocommon_flag=-fno-common
6882 if test x$ac_df_checking != x ; then
6884 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6887 if test x$ac_assert_checking != x ; then
6889 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6892 if test x$ac_gimple_checking != x ; then
6894 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6898 if test x$ac_runtime_checking != x ; then
6900 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6903 if test x$ac_tree_checking != x ; then
6905 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6907 TREEBROWSER=tree-browser.o
6908 TREECHECKING=yes
6910 if test x$ac_types_checking != x ; then
6912 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6917 if test x$ac_rtl_checking != x ; then
6919 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6922 if test x$ac_rtlflag_checking != x ; then
6924 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6927 if test x$ac_gc_checking != x ; then
6929 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6932 if test x$ac_gc_always_collect != x ; then
6934 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6937 if test x$ac_fold_checking != x ; then
6939 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6942 valgrind_path_defines=
6943 valgrind_command=
6945 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6946 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6947 have_valgrind_h=yes
6948 else
6949 have_valgrind_h=no
6954 # It is certainly possible that there's valgrind but no valgrind.h.
6955 # GCC relies on making annotations so we must have both.
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6957 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 #include <valgrind/memcheck.h>
6961 #ifndef VALGRIND_DISCARD
6962 #error VALGRIND_DISCARD not defined
6963 #endif
6964 _ACEOF
6965 if ac_fn_cxx_try_cpp "$LINENO"; then :
6966 gcc_cv_header_valgrind_memcheck_h=yes
6967 else
6968 gcc_cv_header_valgrind_memcheck_h=no
6970 rm -f conftest.err conftest.$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6972 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6974 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 #include <memcheck.h>
6978 #ifndef VALGRIND_DISCARD
6979 #error VALGRIND_DISCARD not defined
6980 #endif
6981 _ACEOF
6982 if ac_fn_cxx_try_cpp "$LINENO"; then :
6983 gcc_cv_header_memcheck_h=yes
6984 else
6985 gcc_cv_header_memcheck_h=no
6987 rm -f conftest.err conftest.$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6989 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6990 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6992 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6995 if test $gcc_cv_header_memcheck_h = yes; then
6997 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7001 if test x$ac_valgrind_checking != x ; then
7003 # Prepare PATH_SEPARATOR.
7004 # The user is always right.
7005 if test "${PATH_SEPARATOR+set}" != set; then
7006 echo "#! /bin/sh" >conf$$.sh
7007 echo "exit 0" >>conf$$.sh
7008 chmod +x conf$$.sh
7009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7010 PATH_SEPARATOR=';'
7011 else
7012 PATH_SEPARATOR=:
7014 rm -f conf$$.sh
7017 # Find out how to test for executable files. Don't use a zero-byte file,
7018 # as systems may use methods other than mode bits to determine executability.
7019 cat >conf$$.file <<_ASEOF
7020 #! /bin/sh
7021 exit 0
7022 _ASEOF
7023 chmod +x conf$$.file
7024 if test -x conf$$.file >/dev/null 2>&1; then
7025 ac_executable_p="test -x"
7026 else
7027 ac_executable_p="test -f"
7029 rm -f conf$$.file
7031 # Extract the first word of "valgrind", so it can be a program name with args.
7032 set dummy valgrind; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 case "$valgrind_path" in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7044 for ac_dir in $PATH; do
7045 IFS="$ac_save_IFS"
7046 test -z "$ac_dir" && ac_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7049 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7050 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7051 break 2
7054 done
7055 done
7056 IFS="$ac_save_IFS"
7058 esac
7060 valgrind_path="$ac_cv_path_valgrind_path"
7061 if test -n "$valgrind_path"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7063 $as_echo "$valgrind_path" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7069 if test "x$valgrind_path" = "x" \
7070 || (test $have_valgrind_h = no \
7071 && test $gcc_cv_header_memcheck_h = no \
7072 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7073 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7075 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7076 valgrind_command="$valgrind_path -q"
7078 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7084 # Enable code coverage collection
7085 # Check whether --enable-coverage was given.
7086 if test "${enable_coverage+set}" = set; then :
7087 enableval=$enable_coverage; case "${enableval}" in
7088 yes|noopt)
7089 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7091 opt)
7092 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7095 # a.k.a. --disable-coverage
7096 coverage_flags=""
7099 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7101 esac
7102 else
7103 coverage_flags=""
7108 # Check whether --enable-gather-detailed-mem-stats was given.
7109 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7110 enableval=$enable_gather_detailed_mem_stats;
7111 else
7112 enable_gather_detailed_mem_stats=no
7115 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7117 cat >>confdefs.h <<_ACEOF
7118 #define GATHER_STATISTICS $gather_stats
7119 _ACEOF
7122 # Check whether --enable-valgrind-annotations was given.
7123 if test "${enable_valgrind_annotations+set}" = set; then :
7124 enableval=$enable_valgrind_annotations;
7125 else
7126 enable_valgrind_annotations=no
7129 if test x$enable_valgrind_annotations != xno \
7130 || test x$ac_valgrind_checking != x; then
7131 if (test $have_valgrind_h = no \
7132 && test $gcc_cv_header_memcheck_h = no \
7133 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7134 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7137 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7141 # -------------------------------
7142 # Miscenalleous configure options
7143 # -------------------------------
7145 # With stabs
7147 # Check whether --with-stabs was given.
7148 if test "${with_stabs+set}" = set; then :
7149 withval=$with_stabs; stabs="$with_stabs"
7150 else
7151 stabs=no
7155 # Determine whether or not multilibs are enabled.
7156 # Check whether --enable-multilib was given.
7157 if test "${enable_multilib+set}" = set; then :
7158 enableval=$enable_multilib;
7159 else
7160 enable_multilib=yes
7165 # Determine whether or not multiarch is enabled.
7166 # Check whether --enable-multiarch was given.
7167 if test "${enable_multiarch+set}" = set; then :
7168 enableval=$enable_multiarch; case "${enableval}" in
7169 yes|no|auto) enable_multiarch=$enableval;;
7170 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7171 esac
7172 else
7173 enable_multiarch=auto
7176 if test x${enable_multiarch} = xauto; then
7177 if test x${with_native_system_header_dir} != x; then
7178 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7179 enable_multiarch=no
7181 if test x$host != x$target && test "x$with_sysroot" = x; then
7182 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7183 enable_multiarch=no
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7187 $as_echo_n "checking for multiarch configuration... " >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7190 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7192 # needed for setting the multiarch name for soft-float/hard-float ABIs
7196 # Enable __cxa_atexit for C++.
7197 # Check whether --enable-__cxa_atexit was given.
7198 if test "${enable___cxa_atexit+set}" = set; then :
7199 enableval=$enable___cxa_atexit;
7203 # Enable C extension for decimal float if target supports it.
7205 # Check whether --enable-decimal-float was given.
7206 if test "${enable_decimal_float+set}" = set; then :
7207 enableval=$enable_decimal_float;
7208 case $enable_decimal_float in
7209 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7210 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7211 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7212 esac
7214 else
7216 case $target in
7217 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7218 i?86*-*-gnu* | \
7219 i?86*-*-mingw* | x86_64*-*-mingw* | \
7220 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7221 enable_decimal_float=yes
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7225 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7226 enable_decimal_float=no
7228 esac
7233 # x86's use BID format instead of DPD
7234 case x$enable_decimal_float in
7235 xyes)
7236 case $target in
7237 i?86*-*-* | x86_64*-*-*)
7238 enable_decimal_float=bid
7241 enable_decimal_float=dpd
7243 esac
7244 default_decimal_float=$enable_decimal_float
7246 xno)
7247 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7248 # dependency on libdecnumber.
7249 default_decimal_float=dpd
7251 esac
7256 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7258 cat >>confdefs.h <<_ACEOF
7259 #define ENABLE_DECIMAL_FLOAT $dfp
7260 _ACEOF
7263 # Use default_decimal_float for dependency.
7264 enable_decimal_float=$default_decimal_float
7266 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7268 cat >>confdefs.h <<_ACEOF
7269 #define ENABLE_DECIMAL_BID_FORMAT $bid
7270 _ACEOF
7273 # Enable C extension for fixed-point arithmetic.
7274 # Check whether --enable-fixed-point was given.
7275 if test "${enable_fixed_point+set}" = set; then :
7276 enableval=$enable_fixed_point;
7277 else
7279 case $target in
7280 arm*)
7281 enable_fixed_point=yes
7284 mips*-*-*)
7285 enable_fixed_point=yes
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7289 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7290 enable_fixed_point=no
7292 esac
7298 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7300 cat >>confdefs.h <<_ACEOF
7301 #define ENABLE_FIXED_POINT $fixedpoint
7302 _ACEOF
7305 # Enable threads
7306 # Pass with no value to take the default
7307 # Pass with a value to specify a thread package
7308 # Check whether --enable-threads was given.
7309 if test "${enable_threads+set}" = set; then :
7310 enableval=$enable_threads;
7311 else
7312 enable_threads=''
7316 # Check whether --enable-tls was given.
7317 if test "${enable_tls+set}" = set; then :
7318 enableval=$enable_tls;
7319 case $enable_tls in
7320 yes | no) ;;
7321 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7322 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7323 esac
7325 else
7326 enable_tls=''
7330 # Check whether --enable-objc-gc was given.
7331 if test "${enable_objc_gc+set}" = set; then :
7332 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7333 objc_boehm_gc=''
7334 else
7335 objc_boehm_gc=1
7337 else
7338 objc_boehm_gc=''
7343 # Check whether --with-dwarf2 was given.
7344 if test "${with_dwarf2+set}" = set; then :
7345 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7346 else
7347 dwarf2=no
7351 # Check whether --enable-shared was given.
7352 if test "${enable_shared+set}" = set; then :
7353 enableval=$enable_shared;
7354 case $enable_shared in
7355 yes | no) ;;
7357 enable_shared=no
7358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7359 for pkg in $enableval; do
7360 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7361 enable_shared=yes
7363 done
7364 IFS="$ac_save_ifs"
7366 esac
7368 else
7369 enable_shared=yes
7375 # Check whether --with-native-system-header-dir was given.
7376 if test "${with_native_system_header_dir+set}" = set; then :
7377 withval=$with_native_system_header_dir;
7378 case ${with_native_system_header_dir} in
7379 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7380 /* | [A-Za-z]:[\\/]*) ;;
7381 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7382 esac
7383 configured_native_system_header_dir="${withval}"
7385 else
7386 configured_native_system_header_dir=
7391 # Check whether --with-build-sysroot was given.
7392 if test "${with_build_sysroot+set}" = set; then :
7393 withval=$with_build_sysroot; if test x"$withval" != x ; then
7394 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7396 else
7397 SYSROOT_CFLAGS_FOR_TARGET=
7402 if test "x$prefix" = xNONE; then
7403 test_prefix=/usr/local
7404 else
7405 test_prefix=$prefix
7407 if test "x$exec_prefix" = xNONE; then
7408 test_exec_prefix=$test_prefix
7409 else
7410 test_exec_prefix=$exec_prefix
7414 # Check whether --with-sysroot was given.
7415 if test "${with_sysroot+set}" = set; then :
7416 withval=$with_sysroot;
7417 case ${with_sysroot} in
7418 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7419 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7420 esac
7422 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7423 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7425 case ${TARGET_SYSTEM_ROOT} in
7426 "${test_prefix}"|"${test_prefix}/"*|\
7427 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7428 '${prefix}'|'${prefix}/'*|\
7429 '${exec_prefix}'|'${exec_prefix}/'*)
7430 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7431 TARGET_SYSTEM_ROOT_DEFINE="$t"
7433 esac
7435 else
7437 TARGET_SYSTEM_ROOT=
7438 TARGET_SYSTEM_ROOT_DEFINE=
7439 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7448 # Check whether --with-specs was given.
7449 if test "${with_specs+set}" = set; then :
7450 withval=$with_specs; CONFIGURE_SPECS=$withval
7451 else
7452 CONFIGURE_SPECS=
7460 # Check whether --with-pkgversion was given.
7461 if test "${with_pkgversion+set}" = set; then :
7462 withval=$with_pkgversion; case "$withval" in
7463 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7464 no) PKGVERSION= ;;
7465 *) PKGVERSION="($withval) " ;;
7466 esac
7467 else
7468 PKGVERSION="(GCC) "
7476 # Check whether --with-bugurl was given.
7477 if test "${with_bugurl+set}" = set; then :
7478 withval=$with_bugurl; case "$withval" in
7479 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7480 no) BUGURL=
7482 *) BUGURL="$withval"
7484 esac
7485 else
7486 BUGURL="http://gcc.gnu.org/bugs.html"
7490 case ${BUGURL} in
7492 REPORT_BUGS_TO=
7493 REPORT_BUGS_TEXI=
7496 REPORT_BUGS_TO="<$BUGURL>"
7497 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7499 esac;
7504 # Sanity check enable_languages in case someone does not run the toplevel
7505 # configure # script.
7506 # Check whether --enable-languages was given.
7507 if test "${enable_languages+set}" = set; then :
7508 enableval=$enable_languages; case ,${enable_languages}, in
7509 ,,|,yes,)
7510 # go safe -- we cannot be much sure without the toplevel
7511 # configure's
7512 # analysis of which target libs are present and usable
7513 enable_languages=c
7515 *,all,*)
7516 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7518 *,c,*)
7521 enable_languages=c,${enable_languages}
7523 esac
7524 else
7525 enable_languages=c
7529 if test x"$enable_as_accelerator_for" != x; then
7531 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7533 enable_as_accelerator=yes
7534 case "${target}" in
7535 *-intelmicemul-*)
7536 # In this case we expect offload compiler to be built as native, so we
7537 # need to rename the driver to avoid clashes with host's drivers.
7538 program_transform_name="s&^&${target}-&" ;;
7539 esac
7540 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7541 program_transform_name=`echo $program_transform_name | sed $sedscript`
7542 accel_dir_suffix=/accel/${target_noncanonical}
7543 real_target_noncanonical=${enable_as_accelerator_for}
7549 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7550 tgt=`echo $tgt | sed 's/=.*//'`
7551 if test x"$offload_targets" = x; then
7552 offload_targets=$tgt
7553 else
7554 offload_targets="$offload_targets:$tgt"
7556 done
7558 cat >>confdefs.h <<_ACEOF
7559 #define OFFLOAD_TARGETS "$offload_targets"
7560 _ACEOF
7562 if test x"$offload_targets" != x; then
7564 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7569 # Check whether --with-multilib-list was given.
7570 if test "${with_multilib_list+set}" = set; then :
7571 withval=$with_multilib_list; :
7572 else
7573 with_multilib_list=default
7577 # -------------------------
7578 # Checks for other programs
7579 # -------------------------
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7582 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7583 set x ${MAKE-make}
7584 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7585 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat >conftest.make <<\_ACEOF
7589 SHELL = /bin/sh
7590 all:
7591 @echo '@@@%%%=$(MAKE)=@@@%%%'
7592 _ACEOF
7593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7594 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7595 *@@@%%%=?*=@@@%%%*)
7596 eval ac_cv_prog_make_${ac_make}_set=yes;;
7598 eval ac_cv_prog_make_${ac_make}_set=no;;
7599 esac
7600 rm -f conftest.make
7602 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7604 $as_echo "yes" >&6; }
7605 SET_MAKE=
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 SET_MAKE="MAKE=${MAKE-make}"
7613 # Find some useful tools
7614 for ac_prog in gawk mawk nawk awk
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_AWK+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$AWK"; then
7624 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_AWK="$ac_prog"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7637 done
7638 done
7639 IFS=$as_save_IFS
7643 AWK=$ac_cv_prog_AWK
7644 if test -n "$AWK"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7646 $as_echo "$AWK" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7653 test -n "$AWK" && break
7654 done
7656 # We need awk to create options.c and options.h.
7657 # Bail out if it's missing.
7658 case ${AWK} in
7659 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7660 esac
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7663 $as_echo_n "checking whether ln -s works... " >&6; }
7664 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 rm -f conftestdata_t
7668 echo >conftestdata_f
7669 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7670 then
7671 gcc_cv_prog_LN_S="ln -s"
7672 else
7673 if ln conftestdata_f conftestdata_t 2>/dev/null
7674 then
7675 gcc_cv_prog_LN_S=ln
7676 else
7677 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7678 then
7679 gcc_cv_prog_LN_S="cp -p"
7680 else
7681 gcc_cv_prog_LN_S=cp
7685 rm -f conftestdata_f conftestdata_t
7688 LN_S="$gcc_cv_prog_LN_S"
7689 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691 $as_echo "yes" >&6; }
7692 else
7693 if test "$gcc_cv_prog_LN_S" = "ln"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7695 $as_echo "no, using ln" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7698 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7703 $as_echo_n "checking whether ln works... " >&6; }
7704 if test "${acx_cv_prog_LN+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 rm -f conftestdata_t
7708 echo >conftestdata_f
7709 if ln conftestdata_f conftestdata_t 2>/dev/null
7710 then
7711 acx_cv_prog_LN=ln
7712 else
7713 acx_cv_prog_LN=no
7715 rm -f conftestdata_f conftestdata_t
7718 if test $acx_cv_prog_LN = no; then
7719 LN="$LN_S"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7721 $as_echo "no, using $LN" >&6; }
7722 else
7723 LN="$acx_cv_prog_LN"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7725 $as_echo "yes" >&6; }
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 if test -n "$RANLIB"; then
7737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7750 done
7751 done
7752 IFS=$as_save_IFS
7756 RANLIB=$ac_cv_prog_RANLIB
7757 if test -n "$RANLIB"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7759 $as_echo "$RANLIB" >&6; }
7760 else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7767 if test -z "$ac_cv_prog_RANLIB"; then
7768 ac_ct_RANLIB=$RANLIB
7769 # Extract the first word of "ranlib", so it can be a program name with args.
7770 set dummy ranlib; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$ac_ct_RANLIB"; then
7777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_ac_ct_RANLIB="ranlib"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7790 done
7791 done
7792 IFS=$as_save_IFS
7796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7797 if test -n "$ac_ct_RANLIB"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7799 $as_echo "$ac_ct_RANLIB" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7805 if test "x$ac_ct_RANLIB" = x; then
7806 RANLIB=":"
7807 else
7808 case $cross_compiling:$ac_tool_warned in
7809 yes:)
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7813 esac
7814 RANLIB=$ac_ct_RANLIB
7816 else
7817 RANLIB="$ac_cv_prog_RANLIB"
7820 ranlib_flags=""
7823 # Find a good install program. We prefer a C program (faster),
7824 # so one script is as good as another. But avoid the broken or
7825 # incompatible versions:
7826 # SysV /etc/install, /usr/sbin/install
7827 # SunOS /usr/etc/install
7828 # IRIX /sbin/install
7829 # AIX /bin/install
7830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7832 # ./install, which can be erroneously created by make from ./install.sh.
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7834 $as_echo_n "checking for a BSD compatible install... " >&6; }
7835 if test -z "$INSTALL"; then
7836 if test "${ac_cv_path_install+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7840 for ac_dir in $PATH; do
7841 # Account for people who put trailing slashes in PATH elements.
7842 case "$ac_dir/" in
7843 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7845 # OSF1 and SCO ODT 3.0 have their own names for install.
7846 for ac_prog in ginstall scoinst install; do
7847 if test -f $ac_dir/$ac_prog; then
7848 if test $ac_prog = install &&
7849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7850 # AIX install. It has an incompatible calling convention.
7851 # OSF/1 installbsd also uses dspmsg, but is usable.
7853 else
7854 ac_cv_path_install="$ac_dir/$ac_prog -c"
7855 break 2
7858 done
7860 esac
7861 done
7862 IFS="$ac_save_IFS"
7865 if test "${ac_cv_path_install+set}" = set; then
7866 INSTALL="$ac_cv_path_install"
7867 else
7868 # As a last resort, use the slow shell script. We don't cache a
7869 # path for INSTALL within a source directory, because that will
7870 # break other packages using the cache if that directory is
7871 # removed, or if the path is relative.
7872 INSTALL="$ac_install_sh"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7876 $as_echo "$INSTALL" >&6; }
7878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7879 # It thinks the first close brace ends the variable substitution.
7880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7885 # See if cmp has --ignore-initial.
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7887 $as_echo_n "checking for cmp's capabilities... " >&6; }
7888 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 echo abfoo >t1
7892 echo cdfoo >t2
7893 gcc_cv_prog_cmp_skip=slowcompare
7894 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7895 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7897 else
7898 gcc_cv_prog_cmp_skip=gnucompare
7901 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7902 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7903 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7905 else
7906 gcc_cv_prog_cmp_skip=fastcompare
7910 rm t1 t2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7914 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7915 make_compare_target=$gcc_cv_prog_cmp_skip
7919 # See if we have the mktemp command.
7920 # Extract the first word of "mktemp", so it can be a program name with args.
7921 set dummy mktemp; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 if test -n "$have_mktemp_command"; then
7928 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_prog_have_mktemp_command="yes"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7943 IFS=$as_save_IFS
7945 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7948 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7949 if test -n "$have_mktemp_command"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7951 $as_echo "$have_mktemp_command" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7959 # See if makeinfo has been installed and is modern enough
7960 # that we can use it.
7962 # Extract the first word of "makeinfo", so it can be a program name with args.
7963 set dummy makeinfo; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$MAKEINFO"; then
7970 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_MAKEINFO="makeinfo"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7989 MAKEINFO=$ac_cv_prog_MAKEINFO
7990 if test -n "$MAKEINFO"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7992 $as_echo "$MAKEINFO" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7999 if test -n "$MAKEINFO"; then
8000 # Found it, now check the version.
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8002 $as_echo_n "checking for modern makeinfo... " >&6; }
8003 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8007 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8009 case $ac_prog_version in
8010 '') gcc_cv_prog_makeinfo_modern=no;;
8011 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8012 *) gcc_cv_prog_makeinfo_modern=no;;
8013 esac
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8017 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8018 else
8019 gcc_cv_prog_makeinfo_modern=no
8021 if test $gcc_cv_prog_makeinfo_modern = no; then
8022 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8025 if test $gcc_cv_prog_makeinfo_modern = no; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8027 *** Makeinfo is missing or too old.
8028 *** Info documentation will not be built." >&5
8029 $as_echo "$as_me: WARNING:
8030 *** Makeinfo is missing or too old.
8031 *** Info documentation will not be built." >&2;}
8032 BUILD_INFO=
8033 else
8034 BUILD_INFO=info
8038 # Is pod2man recent enough to regenerate manpages?
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8040 $as_echo_n "checking for recent Pod::Man... " >&6; }
8041 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8043 $as_echo "yes" >&6; }
8044 GENERATED_MANPAGES=generated-manpages
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 GENERATED_MANPAGES=
8052 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8054 # How about lex?
8055 for ac_prog in flex
8057 # Extract the first word of "$ac_prog", so it can be a program name with args.
8058 set dummy $ac_prog; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if test "${ac_cv_prog_FLEX+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$FLEX"; then
8065 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_prog_FLEX="$ac_prog"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8078 done
8079 done
8080 IFS=$as_save_IFS
8084 FLEX=$ac_cv_prog_FLEX
8085 if test -n "$FLEX"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8087 $as_echo "$FLEX" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8094 test -n "$FLEX" && break
8095 done
8096 test -n "$FLEX" || FLEX="$MISSING flex"
8099 # Bison?
8100 for ac_prog in bison
8102 # Extract the first word of "$ac_prog", so it can be a program name with args.
8103 set dummy $ac_prog; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if test "${ac_cv_prog_BISON+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 if test -n "$BISON"; then
8110 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_BISON="$ac_prog"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8125 IFS=$as_save_IFS
8129 BISON=$ac_cv_prog_BISON
8130 if test -n "$BISON"; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8132 $as_echo "$BISON" >&6; }
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8139 test -n "$BISON" && break
8140 done
8141 test -n "$BISON" || BISON="$MISSING bison"
8144 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8145 # check for build == host before using them.
8147 # NM
8148 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8149 && test -d ../binutils ; then
8150 NM='${objdir}/../binutils/nm-new'
8151 else
8152 # Extract the first word of "nm", so it can be a program name with args.
8153 set dummy nm; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_NM+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$NM"; then
8160 ac_cv_prog_NM="$NM" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_NM="nm"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8177 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8180 NM=$ac_cv_prog_NM
8181 if test -n "$NM"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8183 $as_echo "$NM" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8192 # AR
8193 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8194 && test -d ../binutils ; then
8195 AR='${objdir}/../binutils/ar'
8196 else
8197 # Extract the first word of "ar", so it can be a program name with args.
8198 set dummy ar; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_AR+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$AR"; then
8205 ac_cv_prog_AR="$AR" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_AR="ar"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8222 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8225 AR=$ac_cv_prog_AR
8226 if test -n "$AR"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8228 $as_echo "$AR" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8237 # The jit documentation looks better if built with sphinx, but can be
8238 # built with texinfo if sphinx is not available.
8239 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8240 # Extract the first word of "sphinx-build", so it can be a program name with args.
8241 set dummy sphinx-build; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 if test -n "$doc_build_sys"; then
8248 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_doc_build_sys="sphinx"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8261 done
8262 done
8263 IFS=$as_save_IFS
8265 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8268 doc_build_sys=$ac_cv_prog_doc_build_sys
8269 if test -n "$doc_build_sys"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8271 $as_echo "$doc_build_sys" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8279 # --------------------
8280 # Checks for C headers
8281 # --------------------
8283 # Need to reject headers which give warnings, so that the -Werror bootstrap
8284 # works later. *sigh* This needs to come before all header checks.
8286 ac_c_preproc_warn_flag=yes
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8289 $as_echo_n "checking for ANSI C header files... " >&6; }
8290 if test "${ac_cv_header_stdc+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <stdlib.h>
8296 #include <stdarg.h>
8297 #include <string.h>
8298 #include <float.h>
8301 main ()
8305 return 0;
8307 _ACEOF
8308 if ac_fn_cxx_try_compile "$LINENO"; then :
8309 ac_cv_header_stdc=yes
8310 else
8311 ac_cv_header_stdc=no
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 if test $ac_cv_header_stdc = yes; then
8316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 #include <string.h>
8321 _ACEOF
8322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8323 $EGREP "memchr" >/dev/null 2>&1; then :
8325 else
8326 ac_cv_header_stdc=no
8328 rm -f conftest*
8332 if test $ac_cv_header_stdc = yes; then
8333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <stdlib.h>
8338 _ACEOF
8339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 $EGREP "free" >/dev/null 2>&1; then :
8342 else
8343 ac_cv_header_stdc=no
8345 rm -f conftest*
8349 if test $ac_cv_header_stdc = yes; then
8350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8351 if test "$cross_compiling" = yes; then :
8353 else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <ctype.h>
8357 #include <stdlib.h>
8358 #if ((' ' & 0x0FF) == 0x020)
8359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8361 #else
8362 # define ISLOWER(c) \
8363 (('a' <= (c) && (c) <= 'i') \
8364 || ('j' <= (c) && (c) <= 'r') \
8365 || ('s' <= (c) && (c) <= 'z'))
8366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8367 #endif
8369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8371 main ()
8373 int i;
8374 for (i = 0; i < 256; i++)
8375 if (XOR (islower (i), ISLOWER (i))
8376 || toupper (i) != TOUPPER (i))
8377 return 2;
8378 return 0;
8380 _ACEOF
8381 if ac_fn_cxx_try_run "$LINENO"; then :
8383 else
8384 ac_cv_header_stdc=no
8386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8387 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8393 $as_echo "$ac_cv_header_stdc" >&6; }
8394 if test $ac_cv_header_stdc = yes; then
8396 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8402 if test "${ac_cv_header_time+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #include <sys/types.h>
8408 #include <sys/time.h>
8409 #include <time.h>
8412 main ()
8414 if ((struct tm *) 0)
8415 return 0;
8417 return 0;
8419 _ACEOF
8420 if ac_fn_cxx_try_compile "$LINENO"; then :
8421 ac_cv_header_time=yes
8422 else
8423 ac_cv_header_time=no
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8428 $as_echo "$ac_cv_header_time" >&6; }
8429 if test $ac_cv_header_time = yes; then
8431 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8436 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8437 if test "${gcc_cv_header_string+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 #include <string.h>
8443 #include <strings.h>
8445 main ()
8449 return 0;
8451 _ACEOF
8452 if ac_fn_cxx_try_compile "$LINENO"; then :
8453 gcc_cv_header_string=yes
8454 else
8455 gcc_cv_header_string=no
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8460 $as_echo "$gcc_cv_header_string" >&6; }
8461 if test $gcc_cv_header_string = yes; then
8463 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8468 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8469 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <sys/types.h>
8475 #include <sys/wait.h>
8476 #ifndef WEXITSTATUS
8477 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8478 #endif
8479 #ifndef WIFEXITED
8480 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8481 #endif
8484 main ()
8486 int s;
8487 wait (&s);
8488 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8490 return 0;
8492 _ACEOF
8493 if ac_fn_cxx_try_compile "$LINENO"; then :
8494 ac_cv_header_sys_wait_h=yes
8495 else
8496 ac_cv_header_sys_wait_h=no
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8501 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8502 if test $ac_cv_header_sys_wait_h = yes; then
8504 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8509 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8510 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 #include <sys/types.h>
8516 #include <termios.h>
8517 #ifdef TIOCGWINSZ
8519 #endif
8521 _ACEOF
8522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8523 $EGREP "yes" >/dev/null 2>&1; then :
8524 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8525 else
8526 ac_cv_sys_tiocgwinsz_in_termios_h=no
8528 rm -f conftest*
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8532 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8534 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8536 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8537 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 #include <sys/types.h>
8543 #include <sys/ioctl.h>
8544 #ifdef TIOCGWINSZ
8546 #endif
8548 _ACEOF
8549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550 $EGREP "yes" >/dev/null 2>&1; then :
8551 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8552 else
8553 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8555 rm -f conftest*
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8559 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8561 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8563 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8568 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8569 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8570 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8571 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8572 do :
8573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8575 eval as_val=\$$as_ac_Header
8576 if test "x$as_val" = x""yes; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 _ACEOF
8582 done
8585 # Check for thread headers.
8586 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8587 if test "x$ac_cv_header_thread_h" = x""yes; then :
8588 have_thread_h=yes
8589 else
8590 have_thread_h=
8593 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8594 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8595 have_pthread_h=yes
8596 else
8597 have_pthread_h=
8601 # These tests can't be done till we know if we have limits.h.
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8603 $as_echo_n "checking for CHAR_BIT... " >&6; }
8604 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 #ifdef HAVE_LIMITS_H
8610 #include <limits.h>
8611 #endif
8612 #ifdef CHAR_BIT
8613 found
8614 #endif
8615 _ACEOF
8616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8617 $EGREP "found" >/dev/null 2>&1; then :
8618 gcc_cv_decl_char_bit=yes
8619 else
8620 gcc_cv_decl_char_bit=no
8622 rm -f conftest*
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8627 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8628 if test $gcc_cv_decl_char_bit = no; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8630 $as_echo_n "checking number of bits in a byte... " >&6; }
8631 if test "${gcc_cv_c_nbby+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8635 gcc_cv_c_nbby=
8636 while test $i -lt 65; do
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8641 main ()
8643 switch(0) {
8644 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8645 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8648 return 0;
8650 _ACEOF
8651 if ac_fn_cxx_try_compile "$LINENO"; then :
8652 gcc_cv_c_nbby=$i; break
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 i=`expr $i + 1`
8656 done
8657 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8661 $as_echo "$gcc_cv_c_nbby" >&6; }
8662 if test $gcc_cv_c_nbby = failed; then
8663 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8664 else
8666 cat >>confdefs.h <<_ACEOF
8667 #define CHAR_BIT $gcc_cv_c_nbby
8668 _ACEOF
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8673 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8674 if test "${ac_cv_c_bigendian+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 ac_cv_c_bigendian=unknown
8678 # See if we're dealing with a universal compiler.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #ifndef __APPLE_CC__
8682 not a universal capable compiler
8683 #endif
8684 typedef int dummy;
8686 _ACEOF
8687 if ac_fn_cxx_try_compile "$LINENO"; then :
8689 # Check for potential -arch flags. It is not universal unless
8690 # there are at least two -arch flags with different values.
8691 ac_arch=
8692 ac_prev=
8693 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8694 if test -n "$ac_prev"; then
8695 case $ac_word in
8696 i?86 | x86_64 | ppc | ppc64)
8697 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8698 ac_arch=$ac_word
8699 else
8700 ac_cv_c_bigendian=universal
8701 break
8704 esac
8705 ac_prev=
8706 elif test "x$ac_word" = "x-arch"; then
8707 ac_prev=arch
8709 done
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 if test $ac_cv_c_bigendian = unknown; then
8713 # See if sys/param.h defines the BYTE_ORDER macro.
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 #include <sys/types.h>
8717 #include <sys/param.h>
8720 main ()
8722 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8723 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8724 && LITTLE_ENDIAN)
8725 bogus endian macros
8726 #endif
8729 return 0;
8731 _ACEOF
8732 if ac_fn_cxx_try_compile "$LINENO"; then :
8733 # It does; now see whether it defined to BIG_ENDIAN or not.
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 #include <sys/types.h>
8737 #include <sys/param.h>
8740 main ()
8742 #if BYTE_ORDER != BIG_ENDIAN
8743 not big endian
8744 #endif
8747 return 0;
8749 _ACEOF
8750 if ac_fn_cxx_try_compile "$LINENO"; then :
8751 ac_cv_c_bigendian=yes
8752 else
8753 ac_cv_c_bigendian=no
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 if test $ac_cv_c_bigendian = unknown; then
8760 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 #include <limits.h>
8766 main ()
8768 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8769 bogus endian macros
8770 #endif
8773 return 0;
8775 _ACEOF
8776 if ac_fn_cxx_try_compile "$LINENO"; then :
8777 # It does; now see whether it defined to _BIG_ENDIAN or not.
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 #include <limits.h>
8783 main ()
8785 #ifndef _BIG_ENDIAN
8786 not big endian
8787 #endif
8790 return 0;
8792 _ACEOF
8793 if ac_fn_cxx_try_compile "$LINENO"; then :
8794 ac_cv_c_bigendian=yes
8795 else
8796 ac_cv_c_bigendian=no
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 if test $ac_cv_c_bigendian = unknown; then
8803 # Compile a test program.
8804 if test "$cross_compiling" = yes; then :
8805 # Try to guess by grepping values from an object file.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 short int ascii_mm[] =
8809 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8810 short int ascii_ii[] =
8811 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8812 int use_ascii (int i) {
8813 return ascii_mm[i] + ascii_ii[i];
8815 short int ebcdic_ii[] =
8816 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8817 short int ebcdic_mm[] =
8818 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8819 int use_ebcdic (int i) {
8820 return ebcdic_mm[i] + ebcdic_ii[i];
8822 extern int foo;
8825 main ()
8827 return use_ascii (foo) == use_ebcdic (foo);
8829 return 0;
8831 _ACEOF
8832 if ac_fn_cxx_try_compile "$LINENO"; then :
8833 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8834 ac_cv_c_bigendian=yes
8836 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8837 if test "$ac_cv_c_bigendian" = unknown; then
8838 ac_cv_c_bigendian=no
8839 else
8840 # finding both strings is unlikely to happen, but who knows?
8841 ac_cv_c_bigendian=unknown
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 $ac_includes_default
8851 main ()
8854 /* Are we little or big endian? From Harbison&Steele. */
8855 union
8857 long int l;
8858 char c[sizeof (long int)];
8859 } u;
8860 u.l = 1;
8861 return u.c[sizeof (long int) - 1] == 1;
8864 return 0;
8866 _ACEOF
8867 if ac_fn_cxx_try_run "$LINENO"; then :
8868 ac_cv_c_bigendian=no
8869 else
8870 ac_cv_c_bigendian=yes
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8879 $as_echo "$ac_cv_c_bigendian" >&6; }
8880 case $ac_cv_c_bigendian in #(
8881 yes)
8882 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8883 ;; #(
8885 ;; #(
8886 universal)
8888 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8890 ;; #(
8892 as_fn_error "unknown endianness
8893 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8894 esac
8897 # ----------------------
8898 # Checks for C++ headers
8899 # ----------------------
8901 ac_ext=cpp
8902 ac_cpp='$CXXCPP $CPPFLAGS'
8903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8908 if test -z "$CXXCPP"; then
8909 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 # Double quotes because CXXCPP needs to be expanded
8913 for CXXCPP in "$CXX -E" "/lib/cpp"
8915 ac_preproc_ok=false
8916 for ac_cxx_preproc_warn_flag in '' yes
8918 # Use a header file that comes with gcc, so configuring glibc
8919 # with a fresh cross-compiler works.
8920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921 # <limits.h> exists even on freestanding compilers.
8922 # On the NeXT, cc -E runs the code through the compiler's parser,
8923 # not just through cpp. "Syntax error" is here to catch this case.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #ifdef __STDC__
8927 # include <limits.h>
8928 #else
8929 # include <assert.h>
8930 #endif
8931 Syntax error
8932 _ACEOF
8933 if ac_fn_cxx_try_cpp "$LINENO"; then :
8935 else
8936 # Broken: fails on valid input.
8937 continue
8939 rm -f conftest.err conftest.$ac_ext
8941 # OK, works on sane cases. Now check whether nonexistent headers
8942 # can be detected and how.
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <ac_nonexistent.h>
8946 _ACEOF
8947 if ac_fn_cxx_try_cpp "$LINENO"; then :
8948 # Broken: success on invalid input.
8949 continue
8950 else
8951 # Passes both tests.
8952 ac_preproc_ok=:
8953 break
8955 rm -f conftest.err conftest.$ac_ext
8957 done
8958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8959 rm -f conftest.err conftest.$ac_ext
8960 if $ac_preproc_ok; then :
8961 break
8964 done
8965 ac_cv_prog_CXXCPP=$CXXCPP
8968 CXXCPP=$ac_cv_prog_CXXCPP
8969 else
8970 ac_cv_prog_CXXCPP=$CXXCPP
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8973 $as_echo "$CXXCPP" >&6; }
8974 ac_preproc_ok=false
8975 for ac_cxx_preproc_warn_flag in '' yes
8977 # Use a header file that comes with gcc, so configuring glibc
8978 # with a fresh cross-compiler works.
8979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8980 # <limits.h> exists even on freestanding compilers.
8981 # On the NeXT, cc -E runs the code through the compiler's parser,
8982 # not just through cpp. "Syntax error" is here to catch this case.
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 #ifdef __STDC__
8986 # include <limits.h>
8987 #else
8988 # include <assert.h>
8989 #endif
8990 Syntax error
8991 _ACEOF
8992 if ac_fn_cxx_try_cpp "$LINENO"; then :
8994 else
8995 # Broken: fails on valid input.
8996 continue
8998 rm -f conftest.err conftest.$ac_ext
9000 # OK, works on sane cases. Now check whether nonexistent headers
9001 # can be detected and how.
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 #include <ac_nonexistent.h>
9005 _ACEOF
9006 if ac_fn_cxx_try_cpp "$LINENO"; then :
9007 # Broken: success on invalid input.
9008 continue
9009 else
9010 # Passes both tests.
9011 ac_preproc_ok=:
9012 break
9014 rm -f conftest.err conftest.$ac_ext
9016 done
9017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9018 rm -f conftest.err conftest.$ac_ext
9019 if $ac_preproc_ok; then :
9021 else
9022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9025 See \`config.log' for more details." >&5
9026 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9027 See \`config.log' for more details." >&2;}; }
9030 ac_ext=cpp
9031 ac_cpp='$CXXCPP $CPPFLAGS'
9032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9037 for ac_header in unordered_map
9038 do :
9039 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9040 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9041 cat >>confdefs.h <<_ACEOF
9042 #define HAVE_UNORDERED_MAP 1
9043 _ACEOF
9046 done
9048 for ac_header in tr1/unordered_map
9049 do :
9050 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9051 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9052 cat >>confdefs.h <<_ACEOF
9053 #define HAVE_TR1_UNORDERED_MAP 1
9054 _ACEOF
9057 done
9059 for ac_header in ext/hash_map
9060 do :
9061 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9062 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_EXT_HASH_MAP 1
9065 _ACEOF
9068 done
9071 # --------
9072 # Dependency checking.
9073 # --------
9075 rm -rf .tst 2>/dev/null
9076 mkdir .tst 2>/dev/null
9077 if test -d .tst; then
9078 am__leading_dot=.
9079 else
9080 am__leading_dot=_
9082 rmdir .tst 2>/dev/null
9084 DEPDIR="${am__leading_dot}deps"
9086 ac_config_commands="$ac_config_commands depdir"
9089 ac_config_commands="$ac_config_commands gccdepdir"
9092 depcc="$CXX" am_compiler_list=
9094 am_depcomp=$ac_aux_dir/depcomp
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9096 $as_echo_n "checking dependency style of $depcc... " >&6; }
9097 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 if test -f "$am_depcomp"; then
9101 # We make a subdir and do the tests there. Otherwise we can end up
9102 # making bogus files that we don't know about and never remove. For
9103 # instance it was reported that on HP-UX the gcc test will end up
9104 # making a dummy file named `D' -- because `-MD' means `put the output
9105 # in D'.
9106 mkdir conftest.dir
9107 # Copy depcomp to subdir because otherwise we won't find it if we're
9108 # using a relative directory.
9109 cp "$am_depcomp" conftest.dir
9110 cd conftest.dir
9111 # We will build objects and dependencies in a subdirectory because
9112 # it helps to detect inapplicable dependency modes. For instance
9113 # both Tru64's cc and ICC support -MD to output dependencies as a
9114 # side effect of compilation, but ICC will put the dependencies in
9115 # the current directory while Tru64 will put them in the object
9116 # directory.
9117 mkdir sub
9119 am_cv_CXX_dependencies_compiler_type=none
9120 if test "$am_compiler_list" = ""; then
9121 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9123 for depmode in $am_compiler_list; do
9124 if test $depmode = none; then break; fi
9126 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9127 # Setup a source with many dependencies, because some compilers
9128 # like to wrap large dependency lists on column 80 (with \), and
9129 # we should not choose a depcomp mode which is confused by this.
9131 # We need to recreate these files for each test, as the compiler may
9132 # overwrite some of them when testing with obscure command lines.
9133 # This happens at least with the AIX C compiler.
9134 : > sub/conftest.c
9135 for i in 1 2 3 4 5 6; do
9136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9138 # Solaris 8's {/usr,}/bin/sh.
9139 touch sub/conftst$i.h
9140 done
9141 echo "include sub/conftest.Po" > confmf
9143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9144 # mode. It turns out that the SunPro C++ compiler does not properly
9145 # handle `-M -o', and we need to detect this.
9146 depcmd="depmode=$depmode \
9147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9150 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9151 if env $depcmd > conftest.err 2>&1 &&
9152 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9153 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9154 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9155 # icc doesn't choke on unknown options, it will just issue warnings
9156 # or remarks (even with -Werror). So we grep stderr for any message
9157 # that says an option was ignored or not supported.
9158 # When given -MP, icc 7.0 and 7.1 complain thusly:
9159 # icc: Command line warning: ignoring option '-M'; no argument required
9160 # The diagnosis changed in icc 8.0:
9161 # icc: Command line remark: option '-MP' not supported
9162 if (grep 'ignoring option' conftest.err ||
9163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9164 am_cv_CXX_dependencies_compiler_type=$depmode
9165 $as_echo "$as_me:$LINENO: success" >&5
9166 break
9169 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9170 sed -e 's/^/| /' < conftest.err >&5
9171 done
9173 cd ..
9174 rm -rf conftest.dir
9175 else
9176 am_cv_CXX_dependencies_compiler_type=none
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9181 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9182 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9183 then as_fn_error "no usable dependency style found" "$LINENO" 5
9184 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9189 # --------
9190 # UNSORTED
9191 # --------
9194 # These libraries may be used by collect2.
9195 # We may need a special search path to get them linked.
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9197 $as_echo_n "checking for collect2 libraries... " >&6; }
9198 if test "${gcc_cv_collect2_libs+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 save_LIBS="$LIBS"
9202 for libs in '' -lld -lmld \
9203 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9204 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9206 LIBS="$libs"
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char ldopen ();
9218 main ()
9220 return ldopen ();
9222 return 0;
9224 _ACEOF
9225 if ac_fn_cxx_try_link "$LINENO"; then :
9226 gcc_cv_collect2_libs="$libs"; break
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 done
9231 LIBS="$save_LIBS"
9232 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9235 $as_echo "$gcc_cv_collect2_libs" >&6; }
9236 case $gcc_cv_collect2_libs in
9237 "none required") ;;
9238 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9239 esac
9242 # When building Ada code on Alpha, we need exc_resume which is usually in
9243 # -lexc. So test for it.
9244 save_LIBS="$LIBS"
9245 LIBS=
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9247 $as_echo_n "checking for library containing exc_resume... " >&6; }
9248 if test "${ac_cv_search_exc_resume+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 ac_func_search_save_LIBS=$LIBS
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char exc_resume ();
9263 main ()
9265 return exc_resume ();
9267 return 0;
9269 _ACEOF
9270 for ac_lib in '' exc; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9273 else
9274 ac_res=-l$ac_lib
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 if ac_fn_cxx_try_link "$LINENO"; then :
9278 ac_cv_search_exc_resume=$ac_res
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext
9282 if test "${ac_cv_search_exc_resume+set}" = set; then :
9283 break
9285 done
9286 if test "${ac_cv_search_exc_resume+set}" = set; then :
9288 else
9289 ac_cv_search_exc_resume=no
9291 rm conftest.$ac_ext
9292 LIBS=$ac_func_search_save_LIBS
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9295 $as_echo "$ac_cv_search_exc_resume" >&6; }
9296 ac_res=$ac_cv_search_exc_resume
9297 if test "$ac_res" != no; then :
9298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9302 GNAT_LIBEXC="$LIBS"
9303 LIBS="$save_LIBS"
9306 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9307 save_LIBS="$LIBS"
9308 LIBS=
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9310 $as_echo_n "checking for library containing kstat_open... " >&6; }
9311 if test "${ac_cv_search_kstat_open+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 ac_func_search_save_LIBS=$LIBS
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char kstat_open ();
9326 main ()
9328 return kstat_open ();
9330 return 0;
9332 _ACEOF
9333 for ac_lib in '' kstat; do
9334 if test -z "$ac_lib"; then
9335 ac_res="none required"
9336 else
9337 ac_res=-l$ac_lib
9338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9340 if ac_fn_cxx_try_link "$LINENO"; then :
9341 ac_cv_search_kstat_open=$ac_res
9343 rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext
9345 if test "${ac_cv_search_kstat_open+set}" = set; then :
9346 break
9348 done
9349 if test "${ac_cv_search_kstat_open+set}" = set; then :
9351 else
9352 ac_cv_search_kstat_open=no
9354 rm conftest.$ac_ext
9355 LIBS=$ac_func_search_save_LIBS
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9358 $as_echo "$ac_cv_search_kstat_open" >&6; }
9359 ac_res=$ac_cv_search_kstat_open
9360 if test "$ac_res" != no; then :
9361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9365 EXTRA_GCC_LIBS="$LIBS"
9366 LIBS="$save_LIBS"
9369 # Some systems put ldexp and frexp in libm instead of libc; assume
9370 # they're both in the same place. jcf-dump needs them.
9371 save_LIBS="$LIBS"
9372 LIBS=
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9374 $as_echo_n "checking for library containing ldexp... " >&6; }
9375 if test "${ac_cv_search_ldexp+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 ac_func_search_save_LIBS=$LIBS
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char ldexp ();
9390 main ()
9392 return ldexp ();
9394 return 0;
9396 _ACEOF
9397 for ac_lib in '' m; do
9398 if test -z "$ac_lib"; then
9399 ac_res="none required"
9400 else
9401 ac_res=-l$ac_lib
9402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9404 if ac_fn_cxx_try_link "$LINENO"; then :
9405 ac_cv_search_ldexp=$ac_res
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext
9409 if test "${ac_cv_search_ldexp+set}" = set; then :
9410 break
9412 done
9413 if test "${ac_cv_search_ldexp+set}" = set; then :
9415 else
9416 ac_cv_search_ldexp=no
9418 rm conftest.$ac_ext
9419 LIBS=$ac_func_search_save_LIBS
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9422 $as_echo "$ac_cv_search_ldexp" >&6; }
9423 ac_res=$ac_cv_search_ldexp
9424 if test "$ac_res" != no; then :
9425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9429 LDEXP_LIB="$LIBS"
9430 LIBS="$save_LIBS"
9433 # Use <inttypes.h> only if it exists,
9434 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9435 # PRId64
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9437 $as_echo_n "checking for inttypes.h... " >&6; }
9438 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #define __STDC_FORMAT_MACROS
9444 #include <sys/types.h>
9445 #include <inttypes.h>
9447 main ()
9449 intmax_t i = -1;
9450 #ifndef PRId64
9451 choke me
9452 #endif
9454 return 0;
9456 _ACEOF
9457 if ac_fn_cxx_try_compile "$LINENO"; then :
9458 gcc_cv_header_inttypes_h=yes
9459 else
9460 gcc_cv_header_inttypes_h=no
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9466 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9467 if test $gcc_cv_header_inttypes_h = yes; then
9469 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9475 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9476 popen sysconf strsignal getrusage nl_langinfo \
9477 gettimeofday mbstowcs wcswidth mmap setlocale \
9478 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
9479 do :
9480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9481 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9482 eval as_val=\$$as_ac_var
9483 if test "x$as_val" = x""yes; then :
9484 cat >>confdefs.h <<_ACEOF
9485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9486 _ACEOF
9489 done
9492 if test x$ac_cv_func_mbstowcs = xyes; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9494 $as_echo_n "checking whether mbstowcs works... " >&6; }
9495 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test "$cross_compiling" = yes; then :
9499 gcc_cv_func_mbstowcs_works=yes
9500 else
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 #include <stdlib.h>
9504 int main()
9506 mbstowcs(0, "", 0);
9507 return 0;
9509 _ACEOF
9510 if ac_fn_cxx_try_run "$LINENO"; then :
9511 gcc_cv_func_mbstowcs_works=yes
9512 else
9513 gcc_cv_func_mbstowcs_works=no
9515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9516 conftest.$ac_objext conftest.beam conftest.$ac_ext
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9521 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9522 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9524 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9529 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9530 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9532 else
9534 cat >>confdefs.h <<_ACEOF
9535 #define ssize_t int
9536 _ACEOF
9540 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9541 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9543 else
9545 cat >>confdefs.h <<_ACEOF
9546 #define caddr_t char *
9547 _ACEOF
9553 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9554 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9555 gcc_header_sys_mman_h=yes
9556 else
9557 gcc_header_sys_mman_h=no
9560 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9561 if test "x$ac_cv_func_mmap" = x""yes; then :
9562 gcc_func_mmap=yes
9563 else
9564 gcc_func_mmap=no
9567 if test "$gcc_header_sys_mman_h" != yes \
9568 || test "$gcc_func_mmap" != yes; then
9569 gcc_cv_func_mmap_file=no
9570 gcc_cv_func_mmap_dev_zero=no
9571 gcc_cv_func_mmap_anon=no
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9574 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9575 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 # Add a system to this blacklist if
9579 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9580 # memory area containing the same data that you'd get if you applied
9581 # read() to the same fd. The only system known to have a problem here
9582 # is VMS, where text files have record structure.
9583 case "$host_os" in
9584 *vms* | ultrix*)
9585 gcc_cv_func_mmap_file=no ;;
9587 gcc_cv_func_mmap_file=yes;;
9588 esac
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9591 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9593 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9594 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 # Add a system to this blacklist if it has mmap() but /dev/zero
9598 # does not exist, or if mmapping /dev/zero does not give anonymous
9599 # zeroed pages with both the following properties:
9600 # 1. If you map N consecutive pages in with one call, and then
9601 # unmap any subset of those pages, the pages that were not
9602 # explicitly unmapped remain accessible.
9603 # 2. If you map two adjacent blocks of memory and then unmap them
9604 # both at once, they must both go away.
9605 # Systems known to be in this category are Windows (all variants),
9606 # VMS, and Darwin.
9607 case "$host_os" in
9608 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9609 gcc_cv_func_mmap_dev_zero=no ;;
9611 gcc_cv_func_mmap_dev_zero=yes;;
9612 esac
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9615 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9617 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9619 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9620 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9625 #include <sys/types.h>
9626 #include <sys/mman.h>
9627 #include <unistd.h>
9629 #ifndef MAP_ANONYMOUS
9630 #define MAP_ANONYMOUS MAP_ANON
9631 #endif
9634 main ()
9636 int n = MAP_ANONYMOUS;
9638 return 0;
9640 _ACEOF
9641 if ac_fn_cxx_try_compile "$LINENO"; then :
9642 gcc_cv_decl_map_anon=yes
9643 else
9644 gcc_cv_decl_map_anon=no
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9649 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9651 if test $gcc_cv_decl_map_anon = no; then
9652 gcc_cv_func_mmap_anon=no
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9655 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9656 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9660 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9661 # doesn't give anonymous zeroed pages with the same properties listed
9662 # above for use of /dev/zero.
9663 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9664 case "$host_os" in
9665 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9666 gcc_cv_func_mmap_anon=no ;;
9668 gcc_cv_func_mmap_anon=yes;;
9669 esac
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9672 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9676 if test $gcc_cv_func_mmap_file = yes; then
9678 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9681 if test $gcc_cv_func_mmap_dev_zero = yes; then
9683 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9686 if test $gcc_cv_func_mmap_anon = yes; then
9688 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9693 case "${host}" in
9694 *-*-*vms*)
9695 # Under VMS, vfork works very differently than on Unix. The standard test
9696 # won't work, and it isn't easily adaptable. It makes more sense to
9697 # just force it.
9698 ac_cv_func_vfork_works=yes
9700 esac
9701 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9702 if test "x$ac_cv_type_pid_t" = x""yes; then :
9704 else
9706 cat >>confdefs.h <<_ACEOF
9707 #define pid_t int
9708 _ACEOF
9712 for ac_header in vfork.h
9713 do :
9714 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9715 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9716 cat >>confdefs.h <<_ACEOF
9717 #define HAVE_VFORK_H 1
9718 _ACEOF
9721 done
9723 for ac_func in fork vfork
9724 do :
9725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9726 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9727 eval as_val=\$$as_ac_var
9728 if test "x$as_val" = x""yes; then :
9729 cat >>confdefs.h <<_ACEOF
9730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9731 _ACEOF
9734 done
9736 if test "x$ac_cv_func_fork" = xyes; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9738 $as_echo_n "checking for working fork... " >&6; }
9739 if test "${ac_cv_func_fork_works+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test "$cross_compiling" = yes; then :
9743 ac_cv_func_fork_works=cross
9744 else
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 $ac_includes_default
9749 main ()
9752 /* By Ruediger Kuhlmann. */
9753 return fork () < 0;
9756 return 0;
9758 _ACEOF
9759 if ac_fn_cxx_try_run "$LINENO"; then :
9760 ac_cv_func_fork_works=yes
9761 else
9762 ac_cv_func_fork_works=no
9764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9765 conftest.$ac_objext conftest.beam conftest.$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9770 $as_echo "$ac_cv_func_fork_works" >&6; }
9772 else
9773 ac_cv_func_fork_works=$ac_cv_func_fork
9775 if test "x$ac_cv_func_fork_works" = xcross; then
9776 case $host in
9777 *-*-amigaos* | *-*-msdosdjgpp*)
9778 # Override, as these systems have only a dummy fork() stub
9779 ac_cv_func_fork_works=no
9782 ac_cv_func_fork_works=yes
9784 esac
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9786 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9788 ac_cv_func_vfork_works=$ac_cv_func_vfork
9789 if test "x$ac_cv_func_vfork" = xyes; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9791 $as_echo_n "checking for working vfork... " >&6; }
9792 if test "${ac_cv_func_vfork_works+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 if test "$cross_compiling" = yes; then :
9796 ac_cv_func_vfork_works=cross
9797 else
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 /* Thanks to Paul Eggert for this test. */
9801 $ac_includes_default
9802 #include <sys/wait.h>
9803 #ifdef HAVE_VFORK_H
9804 # include <vfork.h>
9805 #endif
9806 /* On some sparc systems, changes by the child to local and incoming
9807 argument registers are propagated back to the parent. The compiler
9808 is told about this with #include <vfork.h>, but some compilers
9809 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9810 static variable whose address is put into a register that is
9811 clobbered by the vfork. */
9812 static void
9813 #ifdef __cplusplus
9814 sparc_address_test (int arg)
9815 # else
9816 sparc_address_test (arg) int arg;
9817 #endif
9819 static pid_t child;
9820 if (!child) {
9821 child = vfork ();
9822 if (child < 0) {
9823 perror ("vfork");
9824 _exit(2);
9826 if (!child) {
9827 arg = getpid();
9828 write(-1, "", 0);
9829 _exit (arg);
9835 main ()
9837 pid_t parent = getpid ();
9838 pid_t child;
9840 sparc_address_test (0);
9842 child = vfork ();
9844 if (child == 0) {
9845 /* Here is another test for sparc vfork register problems. This
9846 test uses lots of local variables, at least as many local
9847 variables as main has allocated so far including compiler
9848 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9849 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9850 reuse the register of parent for one of the local variables,
9851 since it will think that parent can't possibly be used any more
9852 in this routine. Assigning to the local variable will thus
9853 munge parent in the parent process. */
9854 pid_t
9855 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9856 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9857 /* Convince the compiler that p..p7 are live; otherwise, it might
9858 use the same hardware register for all 8 local variables. */
9859 if (p != p1 || p != p2 || p != p3 || p != p4
9860 || p != p5 || p != p6 || p != p7)
9861 _exit(1);
9863 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9864 from child file descriptors. If the child closes a descriptor
9865 before it execs or exits, this munges the parent's descriptor
9866 as well. Test for this by closing stdout in the child. */
9867 _exit(close(fileno(stdout)) != 0);
9868 } else {
9869 int status;
9870 struct stat st;
9872 while (wait(&status) != child)
9874 return (
9875 /* Was there some problem with vforking? */
9876 child < 0
9878 /* Did the child fail? (This shouldn't happen.) */
9879 || status
9881 /* Did the vfork/compiler bug occur? */
9882 || parent != getpid()
9884 /* Did the file descriptor bug occur? */
9885 || fstat(fileno(stdout), &st) != 0
9889 _ACEOF
9890 if ac_fn_cxx_try_run "$LINENO"; then :
9891 ac_cv_func_vfork_works=yes
9892 else
9893 ac_cv_func_vfork_works=no
9895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9896 conftest.$ac_objext conftest.beam conftest.$ac_ext
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9901 $as_echo "$ac_cv_func_vfork_works" >&6; }
9904 if test "x$ac_cv_func_fork_works" = xcross; then
9905 ac_cv_func_vfork_works=$ac_cv_func_vfork
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9907 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9910 if test "x$ac_cv_func_vfork_works" = xyes; then
9912 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9914 else
9916 $as_echo "#define vfork fork" >>confdefs.h
9919 if test "x$ac_cv_func_fork_works" = xyes; then
9921 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9927 if test "X$prefix" = "XNONE"; then
9928 acl_final_prefix="$ac_default_prefix"
9929 else
9930 acl_final_prefix="$prefix"
9932 if test "X$exec_prefix" = "XNONE"; then
9933 acl_final_exec_prefix='${prefix}'
9934 else
9935 acl_final_exec_prefix="$exec_prefix"
9937 acl_save_prefix="$prefix"
9938 prefix="$acl_final_prefix"
9939 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9940 prefix="$acl_save_prefix"
9943 # Check whether --with-gnu-ld was given.
9944 if test "${with_gnu_ld+set}" = set; then :
9945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9946 else
9947 with_gnu_ld=no
9950 # Prepare PATH_SEPARATOR.
9951 # The user is always right.
9952 if test "${PATH_SEPARATOR+set}" != set; then
9953 echo "#! /bin/sh" >conf$$.sh
9954 echo "exit 0" >>conf$$.sh
9955 chmod +x conf$$.sh
9956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9957 PATH_SEPARATOR=';'
9958 else
9959 PATH_SEPARATOR=:
9961 rm -f conf$$.sh
9963 ac_prog=ld
9964 if test "$GCC" = yes; then
9965 # Check if gcc -print-prog-name=ld gives a path.
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9967 $as_echo_n "checking for ld used by GCC... " >&6; }
9968 case $host in
9969 *-*-mingw*)
9970 # gcc leaves a trailing carriage return which upsets mingw
9971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9974 esac
9975 case $ac_prog in
9976 # Accept absolute paths.
9977 [\\/]* | [A-Za-z]:[\\/]*)
9978 re_direlt='/[^/][^/]*/\.\./'
9979 # Canonicalize the path of ld
9980 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9981 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9982 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9983 done
9984 test -z "$LD" && LD="$ac_prog"
9987 # If it fails, then pretend we aren't using GCC.
9988 ac_prog=ld
9991 # If it is relative, then search for the first ld in PATH.
9992 with_gnu_ld=unknown
9994 esac
9995 elif test "$with_gnu_ld" = yes; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9997 $as_echo_n "checking for GNU ld... " >&6; }
9998 else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10000 $as_echo_n "checking for non-GNU ld... " >&6; }
10002 if test "${acl_cv_path_LD+set}" = set; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 if test -z "$LD"; then
10006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10007 for ac_dir in $PATH; do
10008 test -z "$ac_dir" && ac_dir=.
10009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10010 acl_cv_path_LD="$ac_dir/$ac_prog"
10011 # Check to see if the program is GNU ld. I'd rather use --version,
10012 # but apparently some GNU ld's only accept -v.
10013 # Break only if it was the GNU/non-GNU ld that we prefer.
10014 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10015 test "$with_gnu_ld" != no && break
10016 else
10017 test "$with_gnu_ld" != yes && break
10020 done
10021 IFS="$ac_save_ifs"
10022 else
10023 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10027 LD="$acl_cv_path_LD"
10028 if test -n "$LD"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10030 $as_echo "$LD" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10035 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10038 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10042 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10043 acl_cv_prog_gnu_ld=yes
10044 else
10045 acl_cv_prog_gnu_ld=no
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10049 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10050 with_gnu_ld=$acl_cv_prog_gnu_ld
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10055 $as_echo_n "checking for shared library run path origin... " >&6; }
10056 if test "${acl_cv_rpath+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10060 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10061 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10062 . ./conftest.sh
10063 rm -f ./conftest.sh
10064 acl_cv_rpath=done
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10068 $as_echo "$acl_cv_rpath" >&6; }
10069 wl="$acl_cv_wl"
10070 libext="$acl_cv_libext"
10071 shlibext="$acl_cv_shlibext"
10072 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10073 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10074 hardcode_direct="$acl_cv_hardcode_direct"
10075 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10076 # Check whether --enable-rpath was given.
10077 if test "${enable_rpath+set}" = set; then :
10078 enableval=$enable_rpath; :
10079 else
10080 enable_rpath=yes
10090 use_additional=yes
10092 acl_save_prefix="$prefix"
10093 prefix="$acl_final_prefix"
10094 acl_save_exec_prefix="$exec_prefix"
10095 exec_prefix="$acl_final_exec_prefix"
10097 eval additional_includedir=\"$includedir\"
10098 eval additional_libdir=\"$libdir\"
10100 exec_prefix="$acl_save_exec_prefix"
10101 prefix="$acl_save_prefix"
10104 # Check whether --with-libiconv-prefix was given.
10105 if test "${with_libiconv_prefix+set}" = set; then :
10106 withval=$with_libiconv_prefix;
10107 if test "X$withval" = "Xno"; then
10108 use_additional=no
10109 else
10110 if test "X$withval" = "X"; then
10112 acl_save_prefix="$prefix"
10113 prefix="$acl_final_prefix"
10114 acl_save_exec_prefix="$exec_prefix"
10115 exec_prefix="$acl_final_exec_prefix"
10117 eval additional_includedir=\"$includedir\"
10118 eval additional_libdir=\"$libdir\"
10120 exec_prefix="$acl_save_exec_prefix"
10121 prefix="$acl_save_prefix"
10123 else
10124 additional_includedir="$withval/include"
10125 additional_libdir="$withval/lib"
10131 LIBICONV=
10132 LTLIBICONV=
10133 INCICONV=
10134 rpathdirs=
10135 ltrpathdirs=
10136 names_already_handled=
10137 names_next_round='iconv '
10138 while test -n "$names_next_round"; do
10139 names_this_round="$names_next_round"
10140 names_next_round=
10141 for name in $names_this_round; do
10142 already_handled=
10143 for n in $names_already_handled; do
10144 if test "$n" = "$name"; then
10145 already_handled=yes
10146 break
10148 done
10149 if test -z "$already_handled"; then
10150 names_already_handled="$names_already_handled $name"
10151 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10152 eval value=\"\$HAVE_LIB$uppername\"
10153 if test -n "$value"; then
10154 if test "$value" = yes; then
10155 eval value=\"\$LIB$uppername\"
10156 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10157 eval value=\"\$LTLIB$uppername\"
10158 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10159 else
10162 else
10163 found_dir=
10164 found_la=
10165 found_so=
10166 found_a=
10167 if test $use_additional = yes; then
10168 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10169 found_dir="$additional_libdir"
10170 found_so="$additional_libdir/lib$name.$shlibext"
10171 if test -f "$additional_libdir/lib$name.la"; then
10172 found_la="$additional_libdir/lib$name.la"
10174 else
10175 if test -f "$additional_libdir/lib$name.$libext"; then
10176 found_dir="$additional_libdir"
10177 found_a="$additional_libdir/lib$name.$libext"
10178 if test -f "$additional_libdir/lib$name.la"; then
10179 found_la="$additional_libdir/lib$name.la"
10184 if test "X$found_dir" = "X"; then
10185 for x in $LDFLAGS $LTLIBICONV; do
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10191 eval x=\"$x\"
10192 exec_prefix="$acl_save_exec_prefix"
10193 prefix="$acl_save_prefix"
10195 case "$x" in
10196 -L*)
10197 dir=`echo "X$x" | sed -e 's/^X-L//'`
10198 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10199 found_dir="$dir"
10200 found_so="$dir/lib$name.$shlibext"
10201 if test -f "$dir/lib$name.la"; then
10202 found_la="$dir/lib$name.la"
10204 else
10205 if test -f "$dir/lib$name.$libext"; then
10206 found_dir="$dir"
10207 found_a="$dir/lib$name.$libext"
10208 if test -f "$dir/lib$name.la"; then
10209 found_la="$dir/lib$name.la"
10214 esac
10215 if test "X$found_dir" != "X"; then
10216 break
10218 done
10220 if test "X$found_dir" != "X"; then
10221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10222 if test "X$found_so" != "X"; then
10223 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10224 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10225 else
10226 haveit=
10227 for x in $ltrpathdirs; do
10228 if test "X$x" = "X$found_dir"; then
10229 haveit=yes
10230 break
10232 done
10233 if test -z "$haveit"; then
10234 ltrpathdirs="$ltrpathdirs $found_dir"
10236 if test "$hardcode_direct" = yes; then
10237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10238 else
10239 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10240 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10241 haveit=
10242 for x in $rpathdirs; do
10243 if test "X$x" = "X$found_dir"; then
10244 haveit=yes
10245 break
10247 done
10248 if test -z "$haveit"; then
10249 rpathdirs="$rpathdirs $found_dir"
10251 else
10252 haveit=
10253 for x in $LDFLAGS $LIBICONV; do
10255 acl_save_prefix="$prefix"
10256 prefix="$acl_final_prefix"
10257 acl_save_exec_prefix="$exec_prefix"
10258 exec_prefix="$acl_final_exec_prefix"
10259 eval x=\"$x\"
10260 exec_prefix="$acl_save_exec_prefix"
10261 prefix="$acl_save_prefix"
10263 if test "X$x" = "X-L$found_dir"; then
10264 haveit=yes
10265 break
10267 done
10268 if test -z "$haveit"; then
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10271 if test "$hardcode_minus_L" != no; then
10272 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10273 else
10274 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10279 else
10280 if test "X$found_a" != "X"; then
10281 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10282 else
10283 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10286 additional_includedir=
10287 case "$found_dir" in
10288 */lib | */lib/)
10289 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10290 additional_includedir="$basedir/include"
10292 esac
10293 if test "X$additional_includedir" != "X"; then
10294 if test "X$additional_includedir" != "X/usr/include"; then
10295 haveit=
10296 if test "X$additional_includedir" = "X/usr/local/include"; then
10297 if test -n "$GCC"; then
10298 case $host_os in
10299 linux*) haveit=yes;;
10300 esac
10303 if test -z "$haveit"; then
10304 for x in $CPPFLAGS $INCICONV; do
10306 acl_save_prefix="$prefix"
10307 prefix="$acl_final_prefix"
10308 acl_save_exec_prefix="$exec_prefix"
10309 exec_prefix="$acl_final_exec_prefix"
10310 eval x=\"$x\"
10311 exec_prefix="$acl_save_exec_prefix"
10312 prefix="$acl_save_prefix"
10314 if test "X$x" = "X-I$additional_includedir"; then
10315 haveit=yes
10316 break
10318 done
10319 if test -z "$haveit"; then
10320 if test -d "$additional_includedir"; then
10321 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10327 if test -n "$found_la"; then
10328 save_libdir="$libdir"
10329 case "$found_la" in
10330 */* | *\\*) . "$found_la" ;;
10331 *) . "./$found_la" ;;
10332 esac
10333 libdir="$save_libdir"
10334 for dep in $dependency_libs; do
10335 case "$dep" in
10336 -L*)
10337 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10338 if test "X$additional_libdir" != "X/usr/lib"; then
10339 haveit=
10340 if test "X$additional_libdir" = "X/usr/local/lib"; then
10341 if test -n "$GCC"; then
10342 case $host_os in
10343 linux*) haveit=yes;;
10344 esac
10347 if test -z "$haveit"; then
10348 haveit=
10349 for x in $LDFLAGS $LIBICONV; do
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 acl_save_exec_prefix="$exec_prefix"
10354 exec_prefix="$acl_final_exec_prefix"
10355 eval x=\"$x\"
10356 exec_prefix="$acl_save_exec_prefix"
10357 prefix="$acl_save_prefix"
10359 if test "X$x" = "X-L$additional_libdir"; then
10360 haveit=yes
10361 break
10363 done
10364 if test -z "$haveit"; then
10365 if test -d "$additional_libdir"; then
10366 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10369 haveit=
10370 for x in $LDFLAGS $LTLIBICONV; do
10372 acl_save_prefix="$prefix"
10373 prefix="$acl_final_prefix"
10374 acl_save_exec_prefix="$exec_prefix"
10375 exec_prefix="$acl_final_exec_prefix"
10376 eval x=\"$x\"
10377 exec_prefix="$acl_save_exec_prefix"
10378 prefix="$acl_save_prefix"
10380 if test "X$x" = "X-L$additional_libdir"; then
10381 haveit=yes
10382 break
10384 done
10385 if test -z "$haveit"; then
10386 if test -d "$additional_libdir"; then
10387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10393 -R*)
10394 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10395 if test "$enable_rpath" != no; then
10396 haveit=
10397 for x in $rpathdirs; do
10398 if test "X$x" = "X$dir"; then
10399 haveit=yes
10400 break
10402 done
10403 if test -z "$haveit"; then
10404 rpathdirs="$rpathdirs $dir"
10406 haveit=
10407 for x in $ltrpathdirs; do
10408 if test "X$x" = "X$dir"; then
10409 haveit=yes
10410 break
10412 done
10413 if test -z "$haveit"; then
10414 ltrpathdirs="$ltrpathdirs $dir"
10418 -l*)
10419 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10421 *.la)
10422 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10425 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10426 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10428 esac
10429 done
10431 else
10432 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10433 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10437 done
10438 done
10439 if test "X$rpathdirs" != "X"; then
10440 if test -n "$hardcode_libdir_separator"; then
10441 alldirs=
10442 for found_dir in $rpathdirs; do
10443 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10444 done
10445 acl_save_libdir="$libdir"
10446 libdir="$alldirs"
10447 eval flag=\"$hardcode_libdir_flag_spec\"
10448 libdir="$acl_save_libdir"
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10450 else
10451 for found_dir in $rpathdirs; do
10452 acl_save_libdir="$libdir"
10453 libdir="$found_dir"
10454 eval flag=\"$hardcode_libdir_flag_spec\"
10455 libdir="$acl_save_libdir"
10456 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10457 done
10460 if test "X$ltrpathdirs" != "X"; then
10461 for found_dir in $ltrpathdirs; do
10462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10463 done
10472 am_save_CPPFLAGS="$CPPFLAGS"
10474 for element in $INCICONV; do
10475 haveit=
10476 for x in $CPPFLAGS; do
10478 acl_save_prefix="$prefix"
10479 prefix="$acl_final_prefix"
10480 acl_save_exec_prefix="$exec_prefix"
10481 exec_prefix="$acl_final_exec_prefix"
10482 eval x=\"$x\"
10483 exec_prefix="$acl_save_exec_prefix"
10484 prefix="$acl_save_prefix"
10486 if test "X$x" = "X$element"; then
10487 haveit=yes
10488 break
10490 done
10491 if test -z "$haveit"; then
10492 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10494 done
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10498 $as_echo_n "checking for iconv... " >&6; }
10499 if test "${am_cv_func_iconv+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10503 am_cv_func_iconv="no, consider installing GNU libiconv"
10504 am_cv_lib_iconv=no
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #include <stdlib.h>
10508 #include <iconv.h>
10510 main ()
10512 iconv_t cd = iconv_open("","");
10513 iconv(cd,NULL,NULL,NULL,NULL);
10514 iconv_close(cd);
10516 return 0;
10518 _ACEOF
10519 if ac_fn_cxx_try_link "$LINENO"; then :
10520 am_cv_func_iconv=yes
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 if test "$am_cv_func_iconv" != yes; then
10525 am_save_LIBS="$LIBS"
10526 LIBS="$LIBS $LIBICONV"
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <stdlib.h>
10530 #include <iconv.h>
10532 main ()
10534 iconv_t cd = iconv_open("","");
10535 iconv(cd,NULL,NULL,NULL,NULL);
10536 iconv_close(cd);
10538 return 0;
10540 _ACEOF
10541 if ac_fn_cxx_try_link "$LINENO"; then :
10542 am_cv_lib_iconv=yes
10543 am_cv_func_iconv=yes
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 LIBS="$am_save_LIBS"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10552 $as_echo "$am_cv_func_iconv" >&6; }
10553 if test "$am_cv_func_iconv" = yes; then
10555 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10558 if test "$am_cv_lib_iconv" = yes; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10560 $as_echo_n "checking how to link with libiconv... " >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10562 $as_echo "$LIBICONV" >&6; }
10563 else
10564 CPPFLAGS="$am_save_CPPFLAGS"
10565 LIBICONV=
10566 LTLIBICONV=
10571 if test "$am_cv_func_iconv" = yes; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10573 $as_echo_n "checking for iconv declaration... " >&6; }
10574 if test "${am_cv_proto_iconv+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 #include <stdlib.h>
10582 #include <iconv.h>
10583 extern
10584 #ifdef __cplusplus
10586 #endif
10587 #if defined(__STDC__) || defined(__cplusplus)
10588 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10589 #else
10590 size_t iconv();
10591 #endif
10594 main ()
10598 return 0;
10600 _ACEOF
10601 if ac_fn_cxx_try_compile "$LINENO"; then :
10602 am_cv_proto_iconv_arg1=""
10603 else
10604 am_cv_proto_iconv_arg1="const"
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 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);"
10610 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10612 }$am_cv_proto_iconv" >&5
10613 $as_echo "${ac_t:-
10614 }$am_cv_proto_iconv" >&6; }
10616 cat >>confdefs.h <<_ACEOF
10617 #define ICONV_CONST $am_cv_proto_iconv_arg1
10618 _ACEOF
10623 # Until we have in-tree GNU iconv:
10624 LIBICONV_DEP=
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10629 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10630 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <locale.h>
10637 main ()
10639 return LC_MESSAGES
10641 return 0;
10643 _ACEOF
10644 if ac_fn_cxx_try_link "$LINENO"; then :
10645 am_cv_val_LC_MESSAGES=yes
10646 else
10647 am_cv_val_LC_MESSAGES=no
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10653 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10654 if test $am_cv_val_LC_MESSAGES = yes; then
10656 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10663 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10664 if test "${am_cv_langinfo_codeset+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <langinfo.h>
10671 main ()
10673 char* cs = nl_langinfo(CODESET);
10675 return 0;
10677 _ACEOF
10678 if ac_fn_cxx_try_link "$LINENO"; then :
10679 am_cv_langinfo_codeset=yes
10680 else
10681 am_cv_langinfo_codeset=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10688 $as_echo "$am_cv_langinfo_codeset" >&6; }
10689 if test $am_cv_langinfo_codeset = yes; then
10691 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10696 # We will need to find libiberty.h and ansidecl.h
10697 saved_CFLAGS="$CFLAGS"
10698 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10699 saved_CXXFLAGS="$CXXFLAGS"
10700 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10702 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10703 # normal autoconf function for these. But force definition of
10704 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10705 # basename handling in libiberty.h.
10706 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10707 #undef HAVE_DECL_BASENAME
10708 #define HAVE_DECL_BASENAME 1
10709 #include \"ansidecl.h\"
10710 #include \"system.h\"
10712 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10713 ac_have_decl=1
10714 else
10715 ac_have_decl=0
10718 cat >>confdefs.h <<_ACEOF
10719 #define HAVE_DECL_BASENAME $ac_have_decl
10720 _ACEOF
10721 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10722 #undef HAVE_DECL_BASENAME
10723 #define HAVE_DECL_BASENAME 1
10724 #include \"ansidecl.h\"
10725 #include \"system.h\"
10727 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10728 ac_have_decl=1
10729 else
10730 ac_have_decl=0
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_DECL_STRSTR $ac_have_decl
10735 _ACEOF
10738 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10739 madvise stpcpy strnlen strsignal strverscmp \
10740 strtol strtoul strtoll strtoull \
10741 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10742 free 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
10744 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10746 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10747 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10752 #undef $ac_tr_decl
10753 #define $ac_tr_decl 1
10755 #include "ansidecl.h"
10756 #include "system.h"
10759 main ()
10761 #ifndef $ac_func
10762 char *(*pfn) = (char *(*)) $ac_func ;
10763 #endif
10765 return 0;
10767 _ACEOF
10768 if ac_fn_cxx_try_compile "$LINENO"; then :
10769 eval "gcc_cv_have_decl_$ac_func=yes"
10770 else
10771 eval "gcc_cv_have_decl_$ac_func=no"
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10779 #define $ac_tr_decl 1
10780 _ACEOF
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10785 #define $ac_tr_decl 0
10786 _ACEOF
10790 done
10793 for ac_func in getrlimit setrlimit getrusage
10795 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10797 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10798 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 #undef $ac_tr_decl
10804 #define $ac_tr_decl 1
10806 #include "ansidecl.h"
10807 #include "system.h"
10808 #ifdef HAVE_SYS_RESOURCE_H
10809 #include <sys/resource.h>
10810 #endif
10814 main ()
10816 #ifndef $ac_func
10817 char *(*pfn) = (char *(*)) $ac_func ;
10818 #endif
10820 return 0;
10822 _ACEOF
10823 if ac_fn_cxx_try_compile "$LINENO"; then :
10824 eval "gcc_cv_have_decl_$ac_func=yes"
10825 else
10826 eval "gcc_cv_have_decl_$ac_func=no"
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10833 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10834 #define $ac_tr_decl 1
10835 _ACEOF
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10840 #define $ac_tr_decl 0
10841 _ACEOF
10845 done
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 #include "ansidecl.h"
10852 #include "system.h"
10853 #ifdef HAVE_SYS_RESOURCE_H
10854 #include <sys/resource.h>
10855 #endif
10858 main ()
10860 rlim_t l = 0;
10862 return 0;
10864 _ACEOF
10865 if ac_fn_cxx_try_compile "$LINENO"; then :
10867 else
10869 $as_echo "#define rlim_t long" >>confdefs.h
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10875 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10876 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10877 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10878 for ac_func in ldgetname
10880 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10882 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10883 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 #undef $ac_tr_decl
10889 #define $ac_tr_decl 1
10891 #include "ansidecl.h"
10892 #include "system.h"
10893 #ifdef HAVE_LDFCN_H
10894 #undef FREAD
10895 #undef FWRITE
10896 #include <ldfcn.h>
10897 #endif
10901 main ()
10903 #ifndef $ac_func
10904 char *(*pfn) = (char *(*)) $ac_func ;
10905 #endif
10907 return 0;
10909 _ACEOF
10910 if ac_fn_cxx_try_compile "$LINENO"; then :
10911 eval "gcc_cv_have_decl_$ac_func=yes"
10912 else
10913 eval "gcc_cv_have_decl_$ac_func=no"
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 1
10922 _ACEOF
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10927 #define $ac_tr_decl 0
10928 _ACEOF
10932 done
10935 for ac_func in times
10937 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10939 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10940 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945 #undef $ac_tr_decl
10946 #define $ac_tr_decl 1
10948 #include "ansidecl.h"
10949 #include "system.h"
10950 #ifdef HAVE_SYS_TIMES_H
10951 #include <sys/times.h>
10952 #endif
10956 main ()
10958 #ifndef $ac_func
10959 char *(*pfn) = (char *(*)) $ac_func ;
10960 #endif
10962 return 0;
10964 _ACEOF
10965 if ac_fn_cxx_try_compile "$LINENO"; then :
10966 eval "gcc_cv_have_decl_$ac_func=yes"
10967 else
10968 eval "gcc_cv_have_decl_$ac_func=no"
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10976 #define $ac_tr_decl 1
10977 _ACEOF
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10982 #define $ac_tr_decl 0
10983 _ACEOF
10987 done
10990 for ac_func in sigaltstack
10992 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10994 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10995 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #undef $ac_tr_decl
11001 #define $ac_tr_decl 1
11003 #include "ansidecl.h"
11004 #include "system.h"
11005 #include <signal.h>
11009 main ()
11011 #ifndef $ac_func
11012 char *(*pfn) = (char *(*)) $ac_func ;
11013 #endif
11015 return 0;
11017 _ACEOF
11018 if ac_fn_cxx_try_compile "$LINENO"; then :
11019 eval "gcc_cv_have_decl_$ac_func=yes"
11020 else
11021 eval "gcc_cv_have_decl_$ac_func=no"
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11028 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11029 #define $ac_tr_decl 1
11030 _ACEOF
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11035 #define $ac_tr_decl 0
11036 _ACEOF
11040 done
11043 # More time-related stuff.
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11045 $as_echo_n "checking for struct tms... " >&6; }
11046 if test "${ac_cv_struct_tms+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11053 #include "ansidecl.h"
11054 #include "system.h"
11055 #ifdef HAVE_SYS_TIMES_H
11056 #include <sys/times.h>
11057 #endif
11060 main ()
11062 struct tms tms;
11064 return 0;
11066 _ACEOF
11067 if ac_fn_cxx_try_compile "$LINENO"; then :
11068 ac_cv_struct_tms=yes
11069 else
11070 ac_cv_struct_tms=no
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11075 $as_echo "$ac_cv_struct_tms" >&6; }
11076 if test $ac_cv_struct_tms = yes; then
11078 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11082 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11083 # revisit after autoconf 2.50.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11085 $as_echo_n "checking for clock_t... " >&6; }
11086 if test "${gcc_cv_type_clock_t+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11093 #include "ansidecl.h"
11094 #include "system.h"
11097 main ()
11099 clock_t x;
11101 return 0;
11103 _ACEOF
11104 if ac_fn_cxx_try_compile "$LINENO"; then :
11105 gcc_cv_type_clock_t=yes
11106 else
11107 gcc_cv_type_clock_t=no
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11112 $as_echo "$gcc_cv_type_clock_t" >&6; }
11113 if test $gcc_cv_type_clock_t = yes; then
11115 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11119 # Check if F_SETLKW is supported by fcntl.
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11121 $as_echo_n "checking for F_SETLKW... " >&6; }
11122 if test "${ac_cv_f_setlkw+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 #include <fcntl.h>
11131 main ()
11134 struct flock fl;
11135 fl.l_whence = 0;
11136 fl.l_start = 0;
11137 fl.l_len = 0;
11138 fl.l_pid = 0;
11139 return fcntl (1, F_SETLKW, &fl);
11141 return 0;
11143 _ACEOF
11144 if ac_fn_cxx_try_compile "$LINENO"; then :
11145 ac_cv_f_setlkw=yes
11146 else
11147 ac_cv_f_setlkw=no
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11152 $as_echo "$ac_cv_f_setlkw" >&6; }
11153 if test $ac_cv_f_setlkw = yes; then
11155 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11159 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11160 CFLAGS="$saved_CFLAGS"
11161 CXXFLAGS="$saved_CXXFLAGS"
11163 # mkdir takes a single argument on some systems.
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11165 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11166 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 #include <sys/types.h>
11173 #ifdef HAVE_SYS_STAT_H
11174 # include <sys/stat.h>
11175 #endif
11176 #ifdef HAVE_UNISTD_H
11177 # include <unistd.h>
11178 #endif
11179 #ifdef HAVE_DIRECT_H
11180 # include <direct.h>
11181 #endif
11183 main ()
11185 mkdir ("foo", 0);
11187 return 0;
11189 _ACEOF
11190 if ac_fn_cxx_try_compile "$LINENO"; then :
11191 gcc_cv_mkdir_takes_one_arg=no
11192 else
11193 gcc_cv_mkdir_takes_one_arg=yes
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11198 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11199 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11201 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11206 # File extensions
11207 manext='.1'
11208 objext='.o'
11212 # With Setjmp/Longjmp based exception handling.
11213 # Check whether --enable-sjlj-exceptions was given.
11214 if test "${enable_sjlj_exceptions+set}" = set; then :
11215 enableval=$enable_sjlj_exceptions; case $target in
11216 *-*-hpux10*)
11217 if test $enableval != yes; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11219 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11220 enableval=yes
11223 esac
11224 force_sjlj_exceptions=yes
11225 else
11226 case $target in
11227 *-*-hpux10*)
11228 force_sjlj_exceptions=yes
11229 enableval=yes
11231 lm32*-*-*)
11232 force_sjlj_exceptions=yes
11233 enableval=yes
11236 force_sjlj_exceptions=no
11238 esac
11241 if test $force_sjlj_exceptions = yes; then
11242 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11244 cat >>confdefs.h <<_ACEOF
11245 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11246 _ACEOF
11250 # --------------------------------------------------------
11251 # Build, host, and target specific configuration fragments
11252 # --------------------------------------------------------
11254 # Collect build-machine-specific information.
11255 . ${srcdir}/config.build
11257 # Collect host-machine-specific information.
11258 . ${srcdir}/config.host
11260 target_gtfiles=
11262 # Collect target-machine-specific information.
11263 . ${srcdir}/config.gcc
11265 extra_objs="${host_extra_objs} ${extra_objs}"
11266 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11268 # Default the target-machine variables that were not explicitly set.
11269 if test x"$tm_file" = x
11270 then tm_file=$cpu_type/$cpu_type.h; fi
11272 if test x"$extra_headers" = x
11273 then extra_headers=; fi
11275 if test x$md_file = x
11276 then md_file=$cpu_type/$cpu_type.md; fi
11278 if test x$out_file = x
11279 then out_file=$cpu_type/$cpu_type.c; fi
11281 if test x"$tmake_file" = x
11282 then tmake_file=$cpu_type/t-$cpu_type
11285 # Support --enable-initfini-array.
11286 if test x$enable_initfini_array != xno; then
11287 tm_file="${tm_file} initfini-array.h"
11290 if test x"$dwarf2" = xyes
11291 then tm_file="$tm_file tm-dwarf2.h"
11294 # Say what files are being used for the output code and MD file.
11295 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11296 echo "Using \`$srcdir/config/$md_file' as machine description file."
11298 # If any of the xm_file variables contain nonexistent files, warn
11299 # about them and drop them.
11302 for x in $build_xm_file; do
11303 if test -f $srcdir/config/$x
11304 then bx="$bx $x"
11305 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11306 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11308 done
11309 build_xm_file="$bx"
11312 for x in $host_xm_file; do
11313 if test -f $srcdir/config/$x
11314 then hx="$hx $x"
11315 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11316 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11318 done
11319 host_xm_file="$hx"
11322 for x in $xm_file; do
11323 if test -f $srcdir/config/$x
11324 then tx="$tx $x"
11325 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11326 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11328 done
11329 xm_file="$tx"
11331 count=a
11332 for f in $tm_file; do
11333 count=${count}x
11334 done
11335 if test $count = ax; then
11336 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11337 else
11338 echo "Using the following target machine macro files:"
11339 for f in $tm_file; do
11340 echo " $srcdir/config/$f"
11341 done
11344 if test x$use_long_long_for_widest_fast_int = xyes; then
11346 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11350 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_GNU_LD $gnu_ld_bool
11354 _ACEOF
11357 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11359 cat >>confdefs.h <<_ACEOF
11360 #define HAVE_GNU_AS $gnu_as_bool
11361 _ACEOF
11364 count=a
11365 for f in $host_xm_file; do
11366 count=${count}x
11367 done
11368 if test $count = a; then
11370 elif test $count = ax; then
11371 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11372 else
11373 echo "Using the following host machine macro files:"
11374 for f in $host_xm_file; do
11375 echo " $srcdir/config/$f"
11376 done
11378 echo "Using ${out_host_hook_obj} for host machine hooks."
11380 if test "$host_xm_file" != "$build_xm_file"; then
11381 count=a
11382 for f in $build_xm_file; do
11383 count=${count}x
11384 done
11385 if test $count = a; then
11387 elif test $count = ax; then
11388 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11389 else
11390 echo "Using the following build machine macro files:"
11391 for f in $build_xm_file; do
11392 echo " $srcdir/config/$f"
11393 done
11397 if test -n "$configured_native_system_header_dir"; then
11398 native_system_header_dir=$configured_native_system_header_dir
11400 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11403 case ${host} in
11404 powerpc*-*-darwin*)
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11406 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11407 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 #include <sys/cdefs.h>
11414 #include <sys/signal.h>
11415 #include <ucontext.h>
11416 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11418 _ACEOF
11419 if ac_fn_cxx_try_compile "$LINENO"; then :
11420 gcc_cv_mcontext_underscores=no
11421 else
11422 gcc_cv_mcontext_underscores=yes
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11427 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11428 if test $gcc_cv_mcontext_underscores = yes; then
11430 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11434 esac
11436 # ---------
11437 # Threading
11438 # ---------
11440 # Check if a valid thread package
11441 case ${enable_threads} in
11442 "" | no)
11443 # No threads
11444 target_thread_file='single'
11446 yes)
11447 # default
11448 target_thread_file='single'
11450 aix | dce | lynx | mipssde | posix | rtems | \
11451 single | tpf | vxworks | win32)
11452 target_thread_file=${enable_threads}
11455 echo "${enable_threads} is an unknown thread package" 1>&2
11456 exit 1
11458 esac
11460 if test x${thread_file} = x; then
11461 # No thread file set by target-specific clauses in config.gcc,
11462 # so use file chosen by default logic above
11463 thread_file=${target_thread_file}
11466 # --------
11467 # UNSORTED
11468 # --------
11470 use_cxa_atexit=no
11471 if test x$enable___cxa_atexit = xyes || \
11472 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11473 if test x$host = x$target; then
11474 case $host in
11475 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11476 # keyed to flag_use_cxa_atexit
11477 *-*-mingw32*)
11478 use_cxa_atexit=yes
11480 powerpc-ibm-aix*)
11481 use_cxa_atexit=yes
11484 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11485 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11486 use_cxa_atexit=yes
11487 else
11488 echo "__cxa_atexit can't be enabled on this target"
11492 esac
11493 else
11494 # We can't check for __cxa_atexit when building a cross, so assume
11495 # it is available
11496 use_cxa_atexit=yes
11498 if test x$use_cxa_atexit = xyes; then
11500 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11505 # Look for a file containing extra machine modes.
11506 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11507 extra_modes_file='$(srcdir)'/config/${extra_modes}
11510 cat >>confdefs.h <<_ACEOF
11511 #define EXTRA_MODES_FILE "config/$extra_modes"
11512 _ACEOF
11516 # Convert extra_options into a form suitable for Makefile use.
11517 extra_opt_files=
11518 all_opt_files=
11519 for f in $extra_options; do
11520 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11521 all_opt_files="$all_opt_files $srcdir/config/$f"
11522 done
11525 # auto-host.h is the file containing items generated by autoconf and is
11526 # the first file included by config.h.
11527 # If host=build, it is correct to have bconfig include auto-host.h
11528 # as well. If host!=build, we are in error and need to do more
11529 # work to find out the build config parameters.
11530 if test x$host = x$build
11531 then
11532 build_auto=auto-host.h
11533 else
11534 # We create a subdir, then run autoconf in the subdir.
11535 # To prevent recursion we set host and build for the new
11536 # invocation of configure to the build for this invocation
11537 # of configure.
11538 tempdir=build.$$
11539 rm -rf $tempdir
11540 mkdir $tempdir
11541 cd $tempdir
11542 case ${srcdir} in
11543 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11544 *) realsrcdir=../${srcdir};;
11545 esac
11546 # Clearing GMPINC is necessary to prevent host headers being
11547 # used by the build compiler. Defining GENERATOR_FILE stops
11548 # system.h from including gmp.h.
11549 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11550 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11551 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11552 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11553 ${realsrcdir}/configure \
11554 --enable-languages=${enable_languages-all} \
11555 --target=$target_alias --host=$build_alias --build=$build_alias
11557 # We just finished tests for the build machine, so rename
11558 # the file auto-build.h in the gcc directory.
11559 mv auto-host.h ../auto-build.h
11560 cd ..
11561 rm -rf $tempdir
11562 build_auto=auto-build.h
11566 tm_file="${tm_file} defaults.h"
11567 tm_p_file="${tm_p_file} tm-preds.h"
11568 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11569 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11570 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11571 # put this back in temporarily.
11572 xm_file="auto-host.h ansidecl.h ${xm_file}"
11574 # --------
11575 # UNSORTED
11576 # --------
11578 # Compile in configure arguments.
11579 if test -f configargs.h ; then
11580 # Being re-configured.
11581 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11582 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11583 else
11584 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11587 # Double all backslashes and backslash all quotes to turn
11588 # gcc_config_arguments into a C string.
11589 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11590 $gcc_config_arguments
11592 gcc_config_arguments_str=`cat conftest.out`
11593 rm -f conftest.out
11595 cat > configargs.h <<EOF
11596 /* Generated automatically. */
11597 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11598 static const char thread_model[] = "$thread_file";
11600 static const struct {
11601 const char *name, *value;
11602 } configure_default_options[] = $configure_default_options;
11605 gcc_BASEVER=`cat $srcdir/BASE-VER`
11606 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11607 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11608 if test -f $srcdir/REVISION ; then
11609 gcc_REVISION=`cat $srcdir/REVISION`
11610 else
11611 gcc_REVISION=""
11613 cat > plugin-version.h <<EOF
11614 #include "configargs.h"
11616 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11617 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11618 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11619 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11621 static char basever[] = "$gcc_BASEVER";
11622 static char datestamp[] = "$gcc_DATESTAMP";
11623 static char devphase[] = "$gcc_DEVPHASE";
11624 static char revision[] = "$gcc_REVISION";
11626 /* FIXME plugins: We should make the version information more precise.
11627 One way to do is to add a checksum. */
11629 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11630 devphase, revision,
11631 configuration_arguments};
11634 # Internationalization
11635 # If we haven't got the data from the intl directory,
11636 # assume NLS is disabled.
11637 USE_NLS=no
11638 LIBINTL=
11639 LIBINTL_DEP=
11640 INCINTL=
11641 XGETTEXT=
11642 GMSGFMT=
11643 POSUB=
11645 if test -f ../intl/config.intl; then
11646 . ../intl/config.intl
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11649 $as_echo_n "checking whether NLS is requested... " >&6; }
11650 if test x"$USE_NLS" != xyes; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11655 $as_echo "yes" >&6; }
11657 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11661 $as_echo_n "checking for catalogs to be installed... " >&6; }
11662 # Look for .po and .gmo files in the source directory.
11663 CATALOGS=
11664 XLINGUAS=
11665 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11666 # If there aren't any .gmo files the shell will give us the
11667 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11668 # weeded out.
11669 case "$cat" in *\**)
11670 continue;;
11671 esac
11672 # The quadruple backslash is collapsed to a double backslash
11673 # by the backticks, then collapsed again by the double quotes,
11674 # leaving us with one backslash in the sed expression (right
11675 # before the dot that mustn't act as a wildcard).
11676 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11677 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11678 # The user is allowed to set LINGUAS to a list of languages to
11679 # install catalogs for. If it's empty that means "all of them."
11680 if test "x$LINGUAS" = x; then
11681 CATALOGS="$CATALOGS $cat"
11682 XLINGUAS="$XLINGUAS $lang"
11683 else
11684 case "$LINGUAS" in *$lang*)
11685 CATALOGS="$CATALOGS $cat"
11686 XLINGUAS="$XLINGUAS $lang"
11688 esac
11690 done
11691 LINGUAS="$XLINGUAS"
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11693 $as_echo "$LINGUAS" >&6; }
11696 DATADIRNAME=share
11698 INSTOBJEXT=.mo
11700 GENCAT=gencat
11702 CATOBJEXT=.gmo
11706 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11707 # -liconv on the link line twice.
11708 case "$LIBINTL" in *$LIBICONV*)
11709 LIBICONV= ;;
11710 esac
11712 # Check whether --enable-secureplt was given.
11713 if test "${enable_secureplt+set}" = set; then :
11714 enableval=$enable_secureplt;
11718 # Check whether --enable-leading-mingw64-underscores was given.
11719 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11720 enableval=$enable_leading_mingw64_underscores;
11723 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11725 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11729 # Check whether --enable-cld was given.
11730 if test "${enable_cld+set}" = set; then :
11731 enableval=$enable_cld;
11732 else
11733 enable_cld=no
11737 # Check whether --enable-frame-pointer was given.
11738 if test "${enable_frame_pointer+set}" = set; then :
11739 enableval=$enable_frame_pointer;
11740 else
11742 case $target_os in
11743 linux* | darwin[8912]*)
11744 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11745 # DWARF2.
11746 enable_frame_pointer=no
11749 enable_frame_pointer=yes
11751 esac
11756 # Windows32 Registry support for specifying GCC installation paths.
11757 # Check whether --enable-win32-registry was given.
11758 if test "${enable_win32_registry+set}" = set; then :
11759 enableval=$enable_win32_registry;
11763 case $host_os in
11764 win32 | pe | cygwin* | mingw32* | uwin*)
11765 if test "x$enable_win32_registry" != xno; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11767 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11768 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 ac_func_search_save_LIBS=$LIBS
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char RegOpenKeyExA ();
11783 main ()
11785 return RegOpenKeyExA ();
11787 return 0;
11789 _ACEOF
11790 for ac_lib in '' advapi32; do
11791 if test -z "$ac_lib"; then
11792 ac_res="none required"
11793 else
11794 ac_res=-l$ac_lib
11795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11797 if ac_fn_cxx_try_link "$LINENO"; then :
11798 ac_cv_search_RegOpenKeyExA=$ac_res
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext
11802 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11803 break
11805 done
11806 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11808 else
11809 ac_cv_search_RegOpenKeyExA=no
11811 rm conftest.$ac_ext
11812 LIBS=$ac_func_search_save_LIBS
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11815 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11816 ac_res=$ac_cv_search_RegOpenKeyExA
11817 if test "$ac_res" != no; then :
11818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11820 else
11821 enable_win32_registry=no
11826 if test "x$enable_win32_registry" != xno; then
11828 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11831 if test "x$enable_win32_registry" != xyes \
11832 && test "x$enable_win32_registry" != x; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11836 _ACEOF
11841 esac
11843 # Get an absolute path to the GCC top-level source directory
11844 holddir=`${PWDCMD-pwd}`
11845 cd $srcdir
11846 topdir=`${PWDCMD-pwd}`
11847 cd $holddir
11849 # Conditionalize the makefile for this host machine.
11850 xmake_file=
11851 for f in ${host_xmake_file}
11853 if test -f ${srcdir}/config/$f
11854 then
11855 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11857 done
11859 # Conditionalize the makefile for this target machine.
11860 tmake_file_=
11861 for f in ${tmake_file}
11863 if test -f ${srcdir}/config/$f
11864 then
11865 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11867 done
11868 tmake_file="${tmake_file_}"
11870 out_object_file=`basename $out_file .c`.o
11871 common_out_object_file=`basename $common_out_file .c`.o
11873 tm_file_list="options.h"
11874 tm_include_list="options.h insn-constants.h"
11875 for f in $tm_file; do
11876 case $f in
11877 ./* )
11878 f=`echo $f | sed 's/^..//'`
11879 tm_file_list="${tm_file_list} $f"
11880 tm_include_list="${tm_include_list} $f"
11882 defaults.h )
11883 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11884 tm_include_list="${tm_include_list} $f"
11887 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11888 tm_include_list="${tm_include_list} config/$f"
11890 esac
11891 done
11893 tm_p_file_list=
11894 tm_p_include_list=
11895 for f in $tm_p_file; do
11896 case $f in
11897 tm-preds.h )
11898 tm_p_file_list="${tm_p_file_list} $f"
11899 tm_p_include_list="${tm_p_include_list} $f"
11902 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11903 tm_p_include_list="${tm_p_include_list} config/$f"
11904 esac
11905 done
11907 xm_file_list=
11908 xm_include_list=
11909 for f in $xm_file; do
11910 case $f in
11911 ansidecl.h )
11912 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11913 xm_include_list="${xm_include_list} $f"
11915 auto-host.h )
11916 xm_file_list="${xm_file_list} $f"
11917 xm_include_list="${xm_include_list} $f"
11920 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11921 xm_include_list="${xm_include_list} config/$f"
11923 esac
11924 done
11926 host_xm_file_list=
11927 host_xm_include_list=
11928 for f in $host_xm_file; do
11929 case $f in
11930 ansidecl.h )
11931 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11932 host_xm_include_list="${host_xm_include_list} $f"
11934 auto-host.h )
11935 host_xm_file_list="${host_xm_file_list} $f"
11936 host_xm_include_list="${host_xm_include_list} $f"
11939 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11940 host_xm_include_list="${host_xm_include_list} config/$f"
11942 esac
11943 done
11945 build_xm_file_list=
11946 for f in $build_xm_file; do
11947 case $f in
11948 ansidecl.h )
11949 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11950 build_xm_include_list="${build_xm_include_list} $f"
11952 auto-build.h | auto-host.h )
11953 build_xm_file_list="${build_xm_file_list} $f"
11954 build_xm_include_list="${build_xm_include_list} $f"
11957 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11958 build_xm_include_list="${build_xm_include_list} config/$f"
11960 esac
11961 done
11963 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11964 # cross-compiler which does not use the native headers and libraries.
11965 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11966 CROSS=
11967 ALL=all.internal
11968 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11970 if test "x$with_build_sysroot" != x; then
11971 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11972 else
11973 # This value is used, even on a native system, because
11974 # CROSS_SYSTEM_HEADER_DIR is just
11975 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11976 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11979 if test x$host != x$target
11980 then
11981 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11982 ALL=all.cross
11983 SYSTEM_HEADER_DIR=$build_system_header_dir
11984 case "$host","$target" in
11985 # Darwin crosses can use the host system's libraries and headers,
11986 # because of the fat library support. Of course, it must be the
11987 # same version of Darwin on both sides. Allow the user to
11988 # just say --target=foo-darwin without a version number to mean
11989 # "the version on this system".
11990 *-*-darwin*,*-*-darwin*)
11991 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11992 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11993 if test $hostos = $targetos -o $targetos = darwin ; then
11994 CROSS=
11995 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11996 with_headers=yes
12000 i?86-*-*,x86_64-*-* \
12001 | powerpc*-*-*,powerpc64*-*-*)
12002 CROSS="$CROSS -DNATIVE_CROSS" ;;
12003 esac
12005 case $target in
12006 *-*-mingw*)
12007 if test "x$with_headers" = x; then
12008 with_headers=yes
12013 esac
12014 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12015 SYSTEM_HEADER_DIR=$build_system_header_dir
12018 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12019 if test "x$with_headers" != x; then
12020 target_header_dir=$with_headers
12021 elif test "x$with_sysroot" = x; then
12022 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12023 elif test "x$with_build_sysroot" != "x"; then
12024 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12025 elif test "x$with_sysroot" = xyes; then
12026 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12027 else
12028 target_header_dir="${with_sysroot}${native_system_header_dir}"
12030 else
12031 target_header_dir=${native_system_header_dir}
12034 # If this is a cross-compiler that does not
12035 # have its own set of headers then define
12036 # inhibit_libc
12038 # If this is using newlib, without having the headers available now,
12039 # then define inhibit_libc in LIBGCC2_CFLAGS.
12040 # This prevents libgcc2 from containing any code which requires libc
12041 # support.
12042 : ${inhibit_libc=false}
12043 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12044 test x$with_newlib = xyes ; } &&
12045 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12046 inhibit_libc=true
12050 # When building gcc with a cross-compiler, we need to adjust things so
12051 # that the generator programs are still built with the native compiler.
12052 # Also, we cannot run fixincludes.
12054 # These are the normal (build=host) settings:
12055 CC_FOR_BUILD='$(CC)'
12056 CXX_FOR_BUILD='$(CXX)'
12057 BUILD_CFLAGS='$(ALL_CFLAGS)'
12058 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12059 BUILD_LDFLAGS='$(LDFLAGS)'
12060 STMP_FIXINC=stmp-fixinc
12062 # And these apply if build != host, or we are generating coverage data
12063 if test x$build != x$host || test "x$coverage_flags" != x
12064 then
12065 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12066 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12067 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12070 # Expand extra_headers to include complete path.
12071 # This substitutes for lots of t-* files.
12072 extra_headers_list=
12073 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12074 for file in ${extra_headers} ; do
12075 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12076 done
12078 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12079 if test x"$use_gcc_tgmath" = xyes
12080 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12083 # Define collect2 in Makefile.
12084 case $host_can_use_collect2 in
12085 no) collect2= ;;
12086 *) collect2='collect2$(exeext)' ;;
12087 esac
12090 # Add a definition of USE_COLLECT2 if system wants one.
12091 case $use_collect2 in
12092 no) use_collect2= ;;
12093 "") ;;
12095 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12096 xm_defines="${xm_defines} USE_COLLECT2"
12097 case $host_can_use_collect2 in
12099 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12101 esac
12103 esac
12106 cat >>confdefs.h <<_ACEOF
12107 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12108 _ACEOF
12111 # ---------------------------
12112 # Assembler & linker features
12113 # ---------------------------
12115 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12116 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12117 # However when ld-new is first executed from the build tree, libtool will
12118 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12119 # to the build tree. While doing this we need to use the previous-stage
12120 # linker, or we have an infinite loop. The presence of a shell script as
12121 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12122 # the gcc/collect-ld script. So we need to know how libtool works, or
12123 # exec-tool will fail.
12126 case `pwd` in
12127 *\ * | *\ *)
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12129 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12130 esac
12134 macro_version='2.2.7a'
12135 macro_revision='1.3134'
12149 ltmain="$ac_aux_dir/ltmain.sh"
12151 # Backslashify metacharacters that are still active within
12152 # double-quoted strings.
12153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12155 # Same as above, but do not quote variable references.
12156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12158 # Sed substitution to delay expansion of an escaped shell variable in a
12159 # double_quote_subst'ed string.
12160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12162 # Sed substitution to delay expansion of an escaped single quote.
12163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12165 # Sed substitution to avoid accidental globbing in evaled expressions
12166 no_glob_subst='s/\*/\\\*/g'
12168 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12173 $as_echo_n "checking how to print strings... " >&6; }
12174 # Test print first, because it will be a builtin if present.
12175 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12176 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12177 ECHO='print -r --'
12178 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12179 ECHO='printf %s\n'
12180 else
12181 # Use this function as a fallback that always works.
12182 func_fallback_echo ()
12184 eval 'cat <<_LTECHO_EOF
12186 _LTECHO_EOF'
12188 ECHO='func_fallback_echo'
12191 # func_echo_all arg...
12192 # Invoke $ECHO with all args, space-separated.
12193 func_echo_all ()
12195 $ECHO ""
12198 case "$ECHO" in
12199 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12200 $as_echo "printf" >&6; } ;;
12201 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12202 $as_echo "print -r" >&6; } ;;
12203 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12204 $as_echo "cat" >&6; } ;;
12205 esac
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12221 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12222 if test "${ac_cv_path_SED+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12226 for ac_i in 1 2 3 4 5 6 7; do
12227 ac_script="$ac_script$as_nl$ac_script"
12228 done
12229 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12230 { ac_script=; unset ac_script;}
12231 if test -z "$SED"; then
12232 ac_path_SED_found=false
12233 # Loop through the user's path and test for each of PROGNAME-LIST
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_prog in sed gsed; do
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12242 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12243 # Check for GNU ac_path_SED and select it if it is found.
12244 # Check for GNU $ac_path_SED
12245 case `"$ac_path_SED" --version 2>&1` in
12246 *GNU*)
12247 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12249 ac_count=0
12250 $as_echo_n 0123456789 >"conftest.in"
12251 while :
12253 cat "conftest.in" "conftest.in" >"conftest.tmp"
12254 mv "conftest.tmp" "conftest.in"
12255 cp "conftest.in" "conftest.nl"
12256 $as_echo '' >> "conftest.nl"
12257 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12259 as_fn_arith $ac_count + 1 && ac_count=$as_val
12260 if test $ac_count -gt ${ac_path_SED_max-0}; then
12261 # Best one so far, save it but keep looking for a better one
12262 ac_cv_path_SED="$ac_path_SED"
12263 ac_path_SED_max=$ac_count
12265 # 10*(2^10) chars as input seems more than enough
12266 test $ac_count -gt 10 && break
12267 done
12268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12269 esac
12271 $ac_path_SED_found && break 3
12272 done
12273 done
12274 done
12275 IFS=$as_save_IFS
12276 if test -z "$ac_cv_path_SED"; then
12277 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12279 else
12280 ac_cv_path_SED=$SED
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12285 $as_echo "$ac_cv_path_SED" >&6; }
12286 SED="$ac_cv_path_SED"
12287 rm -f conftest.sed
12289 test -z "$SED" && SED=sed
12290 Xsed="$SED -e 1s/^X//"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12303 $as_echo_n "checking for fgrep... " >&6; }
12304 if test "${ac_cv_path_FGREP+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12308 then ac_cv_path_FGREP="$GREP -F"
12309 else
12310 if test -z "$FGREP"; then
12311 ac_path_FGREP_found=false
12312 # Loop through the user's path and test for each of PROGNAME-LIST
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_prog in fgrep; do
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12321 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12322 # Check for GNU ac_path_FGREP and select it if it is found.
12323 # Check for GNU $ac_path_FGREP
12324 case `"$ac_path_FGREP" --version 2>&1` in
12325 *GNU*)
12326 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12328 ac_count=0
12329 $as_echo_n 0123456789 >"conftest.in"
12330 while :
12332 cat "conftest.in" "conftest.in" >"conftest.tmp"
12333 mv "conftest.tmp" "conftest.in"
12334 cp "conftest.in" "conftest.nl"
12335 $as_echo 'FGREP' >> "conftest.nl"
12336 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12338 as_fn_arith $ac_count + 1 && ac_count=$as_val
12339 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12340 # Best one so far, save it but keep looking for a better one
12341 ac_cv_path_FGREP="$ac_path_FGREP"
12342 ac_path_FGREP_max=$ac_count
12344 # 10*(2^10) chars as input seems more than enough
12345 test $ac_count -gt 10 && break
12346 done
12347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12348 esac
12350 $ac_path_FGREP_found && break 3
12351 done
12352 done
12353 done
12354 IFS=$as_save_IFS
12355 if test -z "$ac_cv_path_FGREP"; then
12356 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12358 else
12359 ac_cv_path_FGREP=$FGREP
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12365 $as_echo "$ac_cv_path_FGREP" >&6; }
12366 FGREP="$ac_cv_path_FGREP"
12369 test -z "$GREP" && GREP=grep
12389 # Check whether --with-gnu-ld was given.
12390 if test "${with_gnu_ld+set}" = set; then :
12391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12392 else
12393 with_gnu_ld=no
12396 ac_prog=ld
12397 if test "$GCC" = yes; then
12398 # Check if gcc -print-prog-name=ld gives a path.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12400 $as_echo_n "checking for ld used by $CC... " >&6; }
12401 case $host in
12402 *-*-mingw*)
12403 # gcc leaves a trailing carriage return which upsets mingw
12404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12407 esac
12408 case $ac_prog in
12409 # Accept absolute paths.
12410 [\\/]* | ?:[\\/]*)
12411 re_direlt='/[^/][^/]*/\.\./'
12412 # Canonicalize the pathname of ld
12413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12416 done
12417 test -z "$LD" && LD="$ac_prog"
12420 # If it fails, then pretend we aren't using GCC.
12421 ac_prog=ld
12424 # If it is relative, then search for the first ld in PATH.
12425 with_gnu_ld=unknown
12427 esac
12428 elif test "$with_gnu_ld" = yes; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12430 $as_echo_n "checking for GNU ld... " >&6; }
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12433 $as_echo_n "checking for non-GNU ld... " >&6; }
12435 if test "${lt_cv_path_LD+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -z "$LD"; then
12439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12440 for ac_dir in $PATH; do
12441 IFS="$lt_save_ifs"
12442 test -z "$ac_dir" && ac_dir=.
12443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12444 lt_cv_path_LD="$ac_dir/$ac_prog"
12445 # Check to see if the program is GNU ld. I'd rather use --version,
12446 # but apparently some variants of GNU ld only accept -v.
12447 # Break only if it was the GNU/non-GNU ld that we prefer.
12448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12449 *GNU* | *'with BFD'*)
12450 test "$with_gnu_ld" != no && break
12453 test "$with_gnu_ld" != yes && break
12455 esac
12457 done
12458 IFS="$lt_save_ifs"
12459 else
12460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12464 LD="$lt_cv_path_LD"
12465 if test -n "$LD"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12467 $as_echo "$LD" >&6; }
12468 else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12472 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12474 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12475 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12479 case `$LD -v 2>&1 </dev/null` in
12480 *GNU* | *'with BFD'*)
12481 lt_cv_prog_gnu_ld=yes
12484 lt_cv_prog_gnu_ld=no
12486 esac
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12489 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12490 with_gnu_ld=$lt_cv_prog_gnu_ld
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12501 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12502 if test "${lt_cv_path_NM+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 if test -n "$NM"; then
12506 # Let the user override the test.
12507 lt_cv_path_NM="$NM"
12508 else
12509 lt_nm_to_check="${ac_tool_prefix}nm"
12510 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12511 lt_nm_to_check="$lt_nm_to_check nm"
12513 for lt_tmp_nm in $lt_nm_to_check; do
12514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12515 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12516 IFS="$lt_save_ifs"
12517 test -z "$ac_dir" && ac_dir=.
12518 tmp_nm="$ac_dir/$lt_tmp_nm"
12519 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12520 # Check to see if the nm accepts a BSD-compat flag.
12521 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12522 # nm: unknown option "B" ignored
12523 # Tru64's nm complains that /dev/null is an invalid object file
12524 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12525 */dev/null* | *'Invalid file or object type'*)
12526 lt_cv_path_NM="$tmp_nm -B"
12527 break
12530 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12531 */dev/null*)
12532 lt_cv_path_NM="$tmp_nm -p"
12533 break
12536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12537 continue # so that we can try to find one that supports BSD flags
12539 esac
12541 esac
12543 done
12544 IFS="$lt_save_ifs"
12545 done
12546 : ${lt_cv_path_NM=no}
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12550 $as_echo "$lt_cv_path_NM" >&6; }
12551 if test "$lt_cv_path_NM" != "no"; then
12552 NM="$lt_cv_path_NM"
12553 else
12554 # Didn't find any BSD compatible name lister, look for dumpbin.
12555 if test -n "$DUMPBIN"; then :
12556 # Let the user override the test.
12557 else
12558 if test -n "$ac_tool_prefix"; then
12559 for ac_prog in dumpbin "link -dump"
12561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 if test -n "$DUMPBIN"; then
12569 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12570 else
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12578 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12582 done
12583 done
12584 IFS=$as_save_IFS
12588 DUMPBIN=$ac_cv_prog_DUMPBIN
12589 if test -n "$DUMPBIN"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12591 $as_echo "$DUMPBIN" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12598 test -n "$DUMPBIN" && break
12599 done
12601 if test -z "$DUMPBIN"; then
12602 ac_ct_DUMPBIN=$DUMPBIN
12603 for ac_prog in dumpbin "link -dump"
12605 # Extract the first word of "$ac_prog", so it can be a program name with args.
12606 set dummy $ac_prog; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 if test -n "$ac_ct_DUMPBIN"; then
12613 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12626 done
12627 done
12628 IFS=$as_save_IFS
12632 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12633 if test -n "$ac_ct_DUMPBIN"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12635 $as_echo "$ac_ct_DUMPBIN" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12642 test -n "$ac_ct_DUMPBIN" && break
12643 done
12645 if test "x$ac_ct_DUMPBIN" = x; then
12646 DUMPBIN=":"
12647 else
12648 case $cross_compiling:$ac_tool_warned in
12649 yes:)
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12652 ac_tool_warned=yes ;;
12653 esac
12654 DUMPBIN=$ac_ct_DUMPBIN
12658 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12659 *COFF*)
12660 DUMPBIN="$DUMPBIN -symbols"
12663 DUMPBIN=:
12665 esac
12668 if test "$DUMPBIN" != ":"; then
12669 NM="$DUMPBIN"
12672 test -z "$NM" && NM=nm
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12680 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12681 if test "${lt_cv_nm_interface+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 lt_cv_nm_interface="BSD nm"
12685 echo "int some_variable = 0;" > conftest.$ac_ext
12686 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12687 (eval "$ac_compile" 2>conftest.err)
12688 cat conftest.err >&5
12689 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12690 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12691 cat conftest.err >&5
12692 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12693 cat conftest.out >&5
12694 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12695 lt_cv_nm_interface="MS dumpbin"
12697 rm -f conftest*
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12700 $as_echo "$lt_cv_nm_interface" >&6; }
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12703 $as_echo_n "checking whether ln -s works... " >&6; }
12704 LN_S=$as_ln_s
12705 if test "$LN_S" = "ln -s"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12707 $as_echo "yes" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12710 $as_echo "no, using $LN_S" >&6; }
12713 # find the maximum length of command line arguments
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12715 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12720 teststring="ABCD"
12722 case $build_os in
12723 msdosdjgpp*)
12724 # On DJGPP, this test can blow up pretty badly due to problems in libc
12725 # (any single argument exceeding 2000 bytes causes a buffer overrun
12726 # during glob expansion). Even if it were fixed, the result of this
12727 # check would be larger than it should be.
12728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12731 gnu*)
12732 # Under GNU Hurd, this test is not required because there is
12733 # no limit to the length of command line arguments.
12734 # Libtool will interpret -1 as no limit whatsoever
12735 lt_cv_sys_max_cmd_len=-1;
12738 cygwin* | mingw* | cegcc*)
12739 # On Win9x/ME, this test blows up -- it succeeds, but takes
12740 # about 5 minutes as the teststring grows exponentially.
12741 # Worse, since 9x/ME are not pre-emptively multitasking,
12742 # you end up with a "frozen" computer, even though with patience
12743 # the test eventually succeeds (with a max line length of 256k).
12744 # Instead, let's just punt: use the minimum linelength reported by
12745 # all of the supported platforms: 8192 (on NT/2K/XP).
12746 lt_cv_sys_max_cmd_len=8192;
12749 mint*)
12750 # On MiNT this can take a long time and run out of memory.
12751 lt_cv_sys_max_cmd_len=8192;
12754 amigaos*)
12755 # On AmigaOS with pdksh, this test takes hours, literally.
12756 # So we just punt and use a minimum line length of 8192.
12757 lt_cv_sys_max_cmd_len=8192;
12760 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12761 # This has been around since 386BSD, at least. Likely further.
12762 if test -x /sbin/sysctl; then
12763 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12764 elif test -x /usr/sbin/sysctl; then
12765 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12766 else
12767 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12769 # And add a safety zone
12770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12774 interix*)
12775 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12776 lt_cv_sys_max_cmd_len=196608
12779 osf*)
12780 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12781 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12782 # nice to cause kernel panics so lets avoid the loop below.
12783 # First set a reasonable default.
12784 lt_cv_sys_max_cmd_len=16384
12786 if test -x /sbin/sysconfig; then
12787 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12788 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12789 esac
12792 sco3.2v5*)
12793 lt_cv_sys_max_cmd_len=102400
12795 sysv5* | sco5v6* | sysv4.2uw2*)
12796 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12797 if test -n "$kargmax"; then
12798 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12799 else
12800 lt_cv_sys_max_cmd_len=32768
12804 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12805 if test -n "$lt_cv_sys_max_cmd_len"; then
12806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12808 else
12809 # Make teststring a little bigger before we do anything with it.
12810 # a 1K string should be a reasonable start.
12811 for i in 1 2 3 4 5 6 7 8 ; do
12812 teststring=$teststring$teststring
12813 done
12814 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12815 # If test is not a shell built-in, we'll probably end up computing a
12816 # maximum length that is only half of the actual maximum length, but
12817 # we can't tell.
12818 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12819 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12820 test $i != 17 # 1/2 MB should be enough
12822 i=`expr $i + 1`
12823 teststring=$teststring$teststring
12824 done
12825 # Only check the string length outside the loop.
12826 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12827 teststring=
12828 # Add a significant safety factor because C++ compilers can tack on
12829 # massive amounts of additional arguments before passing them to the
12830 # linker. It appears as though 1/2 is a usable value.
12831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12834 esac
12838 if test -n $lt_cv_sys_max_cmd_len ; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12840 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12841 else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12843 $as_echo "none" >&6; }
12845 max_cmd_len=$lt_cv_sys_max_cmd_len
12852 : ${CP="cp -f"}
12853 : ${MV="mv -f"}
12854 : ${RM="rm -f"}
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12857 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12858 # Try some XSI features
12859 xsi_shell=no
12860 ( _lt_dummy="a/b/c"
12861 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12862 = c,a/b,, \
12863 && eval 'test $(( 1 + 1 )) -eq 2 \
12864 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12865 && xsi_shell=yes
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12867 $as_echo "$xsi_shell" >&6; }
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12871 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12872 lt_shell_append=no
12873 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12874 >/dev/null 2>&1 \
12875 && lt_shell_append=yes
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12877 $as_echo "$lt_shell_append" >&6; }
12880 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12881 lt_unset=unset
12882 else
12883 lt_unset=false
12890 # test EBCDIC or ASCII
12891 case `echo X|tr X '\101'` in
12892 A) # ASCII based system
12893 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12894 lt_SP2NL='tr \040 \012'
12895 lt_NL2SP='tr \015\012 \040\040'
12897 *) # EBCDIC based system
12898 lt_SP2NL='tr \100 \n'
12899 lt_NL2SP='tr \r\n \100\100'
12901 esac
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12912 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12913 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 lt_cv_ld_reload_flag='-r'
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12919 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12920 reload_flag=$lt_cv_ld_reload_flag
12921 case $reload_flag in
12922 "" | " "*) ;;
12923 *) reload_flag=" $reload_flag" ;;
12924 esac
12925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12926 case $host_os in
12927 darwin*)
12928 if test "$GCC" = yes; then
12929 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12930 else
12931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12934 esac
12944 if test -n "$ac_tool_prefix"; then
12945 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12946 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test -n "$OBJDUMP"; then
12953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12972 OBJDUMP=$ac_cv_prog_OBJDUMP
12973 if test -n "$OBJDUMP"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12975 $as_echo "$OBJDUMP" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12983 if test -z "$ac_cv_prog_OBJDUMP"; then
12984 ac_ct_OBJDUMP=$OBJDUMP
12985 # Extract the first word of "objdump", so it can be a program name with args.
12986 set dummy objdump; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 if test -n "$ac_ct_OBJDUMP"; then
12993 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13006 done
13007 done
13008 IFS=$as_save_IFS
13012 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13013 if test -n "$ac_ct_OBJDUMP"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13015 $as_echo "$ac_ct_OBJDUMP" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13021 if test "x$ac_ct_OBJDUMP" = x; then
13022 OBJDUMP="false"
13023 else
13024 case $cross_compiling:$ac_tool_warned in
13025 yes:)
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13028 ac_tool_warned=yes ;;
13029 esac
13030 OBJDUMP=$ac_ct_OBJDUMP
13032 else
13033 OBJDUMP="$ac_cv_prog_OBJDUMP"
13036 test -z "$OBJDUMP" && OBJDUMP=objdump
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13047 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13048 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 lt_cv_file_magic_cmd='$MAGIC_CMD'
13052 lt_cv_file_magic_test_file=
13053 lt_cv_deplibs_check_method='unknown'
13054 # Need to set the preceding variable on all platforms that support
13055 # interlibrary dependencies.
13056 # 'none' -- dependencies not supported.
13057 # `unknown' -- same as none, but documents that we really don't know.
13058 # 'pass_all' -- all dependencies passed with no checks.
13059 # 'test_compile' -- check by making test program.
13060 # 'file_magic [[regex]]' -- check by looking for files in library path
13061 # which responds to the $file_magic_cmd with a given extended regex.
13062 # If you have `file' or equivalent on your system and you're not sure
13063 # whether `pass_all' will *always* work, you probably want this one.
13065 case $host_os in
13066 aix[4-9]*)
13067 lt_cv_deplibs_check_method=pass_all
13070 beos*)
13071 lt_cv_deplibs_check_method=pass_all
13074 bsdi[45]*)
13075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13076 lt_cv_file_magic_cmd='/usr/bin/file -L'
13077 lt_cv_file_magic_test_file=/shlib/libc.so
13080 cygwin*)
13081 # func_win32_libid is a shell function defined in ltmain.sh
13082 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13083 lt_cv_file_magic_cmd='func_win32_libid'
13086 mingw* | pw32*)
13087 # Base MSYS/MinGW do not provide the 'file' command needed by
13088 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13089 # unless we find 'file', for example because we are cross-compiling.
13090 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13091 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13093 lt_cv_file_magic_cmd='func_win32_libid'
13094 else
13095 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13096 lt_cv_file_magic_cmd='$OBJDUMP -f'
13100 cegcc*)
13101 # use the weaker test based on 'objdump'. See mingw*.
13102 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13103 lt_cv_file_magic_cmd='$OBJDUMP -f'
13106 darwin* | rhapsody*)
13107 lt_cv_deplibs_check_method=pass_all
13110 freebsd* | dragonfly*)
13111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13112 case $host_cpu in
13113 i*86 )
13114 # Not sure whether the presence of OpenBSD here was a mistake.
13115 # Let's accept both of them until this is cleared up.
13116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13117 lt_cv_file_magic_cmd=/usr/bin/file
13118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13120 esac
13121 else
13122 lt_cv_deplibs_check_method=pass_all
13126 gnu*)
13127 lt_cv_deplibs_check_method=pass_all
13130 haiku*)
13131 lt_cv_deplibs_check_method=pass_all
13134 hpux10.20* | hpux11*)
13135 lt_cv_file_magic_cmd=/usr/bin/file
13136 case $host_cpu in
13137 ia64*)
13138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13141 hppa*64*)
13142 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]'
13143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13149 esac
13152 interix[3-9]*)
13153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13157 irix5* | irix6* | nonstopux*)
13158 case $LD in
13159 *-32|*"-32 ") libmagic=32-bit;;
13160 *-n32|*"-n32 ") libmagic=N32;;
13161 *-64|*"-64 ") libmagic=64-bit;;
13162 *) libmagic=never-match;;
13163 esac
13164 lt_cv_deplibs_check_method=pass_all
13167 # This must be Linux ELF.
13168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13169 lt_cv_deplibs_check_method=pass_all
13172 netbsd*)
13173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13175 else
13176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13180 newos6*)
13181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13182 lt_cv_file_magic_cmd=/usr/bin/file
13183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13186 *nto* | *qnx*)
13187 lt_cv_deplibs_check_method=pass_all
13190 openbsd*)
13191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13193 else
13194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13198 osf3* | osf4* | osf5*)
13199 lt_cv_deplibs_check_method=pass_all
13202 rdos*)
13203 lt_cv_deplibs_check_method=pass_all
13206 solaris*)
13207 lt_cv_deplibs_check_method=pass_all
13210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13211 lt_cv_deplibs_check_method=pass_all
13214 sysv4 | sysv4.3*)
13215 case $host_vendor in
13216 motorola)
13217 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]'
13218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13220 ncr)
13221 lt_cv_deplibs_check_method=pass_all
13223 sequent)
13224 lt_cv_file_magic_cmd='/bin/file'
13225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13227 sni)
13228 lt_cv_file_magic_cmd='/bin/file'
13229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13230 lt_cv_file_magic_test_file=/lib/libc.so
13232 siemens)
13233 lt_cv_deplibs_check_method=pass_all
13236 lt_cv_deplibs_check_method=pass_all
13238 esac
13241 tpf*)
13242 lt_cv_deplibs_check_method=pass_all
13244 esac
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13248 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13249 file_magic_cmd=$lt_cv_file_magic_cmd
13250 deplibs_check_method=$lt_cv_deplibs_check_method
13251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13264 if test -n "$ac_tool_prefix"; then
13265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13266 set dummy ${ac_tool_prefix}ar; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if test "${ac_cv_prog_AR+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 if test -n "$AR"; then
13273 ac_cv_prog_AR="$AR" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13282 ac_cv_prog_AR="${ac_tool_prefix}ar"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13286 done
13287 done
13288 IFS=$as_save_IFS
13292 AR=$ac_cv_prog_AR
13293 if test -n "$AR"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13295 $as_echo "$AR" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13303 if test -z "$ac_cv_prog_AR"; then
13304 ac_ct_AR=$AR
13305 # Extract the first word of "ar", so it can be a program name with args.
13306 set dummy ar; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 if test -n "$ac_ct_AR"; then
13313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_prog_ac_ct_AR="ar"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13326 done
13327 done
13328 IFS=$as_save_IFS
13332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13333 if test -n "$ac_ct_AR"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13335 $as_echo "$ac_ct_AR" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13341 if test "x$ac_ct_AR" = x; then
13342 AR="false"
13343 else
13344 case $cross_compiling:$ac_tool_warned in
13345 yes:)
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13348 ac_tool_warned=yes ;;
13349 esac
13350 AR=$ac_ct_AR
13352 else
13353 AR="$ac_cv_prog_AR"
13356 test -z "$AR" && AR=ar
13357 test -z "$AR_FLAGS" && AR_FLAGS=cru
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}strip; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_STRIP+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$STRIP"; then
13378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13397 STRIP=$ac_cv_prog_STRIP
13398 if test -n "$STRIP"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13400 $as_echo "$STRIP" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13408 if test -z "$ac_cv_prog_STRIP"; then
13409 ac_ct_STRIP=$STRIP
13410 # Extract the first word of "strip", so it can be a program name with args.
13411 set dummy strip; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$ac_ct_STRIP"; then
13418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_STRIP="strip"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13431 done
13432 done
13433 IFS=$as_save_IFS
13437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13438 if test -n "$ac_ct_STRIP"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13440 $as_echo "$ac_ct_STRIP" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13446 if test "x$ac_ct_STRIP" = x; then
13447 STRIP=":"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450 yes:)
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453 ac_tool_warned=yes ;;
13454 esac
13455 STRIP=$ac_ct_STRIP
13457 else
13458 STRIP="$ac_cv_prog_STRIP"
13461 test -z "$STRIP" && STRIP=:
13468 if test -n "$ac_tool_prefix"; then
13469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 if test -n "$RANLIB"; then
13477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13478 else
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 break 2
13490 done
13491 done
13492 IFS=$as_save_IFS
13496 RANLIB=$ac_cv_prog_RANLIB
13497 if test -n "$RANLIB"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13499 $as_echo "$RANLIB" >&6; }
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13507 if test -z "$ac_cv_prog_RANLIB"; then
13508 ac_ct_RANLIB=$RANLIB
13509 # Extract the first word of "ranlib", so it can be a program name with args.
13510 set dummy ranlib; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if test -n "$ac_ct_RANLIB"; then
13517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13518 else
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13526 ac_cv_prog_ac_ct_RANLIB="ranlib"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 break 2
13530 done
13531 done
13532 IFS=$as_save_IFS
13536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13537 if test -n "$ac_ct_RANLIB"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13539 $as_echo "$ac_ct_RANLIB" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13545 if test "x$ac_ct_RANLIB" = x; then
13546 RANLIB=":"
13547 else
13548 case $cross_compiling:$ac_tool_warned in
13549 yes:)
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13552 ac_tool_warned=yes ;;
13553 esac
13554 RANLIB=$ac_ct_RANLIB
13556 else
13557 RANLIB="$ac_cv_prog_RANLIB"
13560 test -z "$RANLIB" && RANLIB=:
13567 # Determine commands to create old-style static archives.
13568 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13569 old_postinstall_cmds='chmod 644 $oldlib'
13570 old_postuninstall_cmds=
13572 if test -n "$RANLIB"; then
13573 case $host_os in
13574 openbsd*)
13575 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13578 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13580 esac
13581 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13584 case $host_os in
13585 darwin*)
13586 lock_old_archive_extraction=yes ;;
13588 lock_old_archive_extraction=no ;;
13589 esac
13629 # If no C compiler was specified, use CC.
13630 LTCC=${LTCC-"$CC"}
13632 # If no C compiler flags were specified, use CFLAGS.
13633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13635 # Allow CC to be a program name with arguments.
13636 compiler=$CC
13639 # Check for command to grab the raw symbol name followed by C symbol from nm.
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13641 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13642 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13646 # These are sane defaults that work on at least a few old systems.
13647 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13649 # Character class describing NM global symbol codes.
13650 symcode='[BCDEGRST]'
13652 # Regexp to match symbols that can be accessed directly from C.
13653 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13655 # Define system-specific variables.
13656 case $host_os in
13657 aix*)
13658 symcode='[BCDT]'
13660 cygwin* | mingw* | pw32* | cegcc*)
13661 symcode='[ABCDGISTW]'
13663 hpux*)
13664 if test "$host_cpu" = ia64; then
13665 symcode='[ABCDEGRST]'
13668 irix* | nonstopux*)
13669 symcode='[BCDEGRST]'
13671 osf*)
13672 symcode='[BCDEGQRST]'
13674 solaris*)
13675 symcode='[BDRT]'
13677 sco3.2v5*)
13678 symcode='[DT]'
13680 sysv4.2uw2*)
13681 symcode='[DT]'
13683 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13684 symcode='[ABDT]'
13686 sysv4)
13687 symcode='[DFNSTU]'
13689 esac
13691 # If we're using GNU nm, then use its standard symbol codes.
13692 case `$NM -V 2>&1` in
13693 *GNU* | *'with BFD'*)
13694 symcode='[ABCDGIRSTW]' ;;
13695 esac
13697 # Transform an extracted symbol line into a proper C declaration.
13698 # Some systems (esp. on ia64) link data and code symbols differently,
13699 # so use this general approach.
13700 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13702 # Transform an extracted symbol line into symbol name and symbol address
13703 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13704 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'"
13706 # Handle CRLF in mingw tool chain
13707 opt_cr=
13708 case $build_os in
13709 mingw*)
13710 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13712 esac
13714 # Try without a prefix underscore, then with it.
13715 for ac_symprfx in "" "_"; do
13717 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13718 symxfrm="\\1 $ac_symprfx\\2 \\2"
13720 # Write the raw and C identifiers.
13721 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13722 # Fake it for dumpbin and say T for any non-static function
13723 # and D for any global variable.
13724 # Also find C++ and __fastcall symbols from MSVC++,
13725 # which start with @ or ?.
13726 lt_cv_sys_global_symbol_pipe="$AWK '"\
13727 " {last_section=section; section=\$ 3};"\
13728 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13729 " \$ 0!~/External *\|/{next};"\
13730 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13731 " {if(hide[section]) next};"\
13732 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13733 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13734 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13735 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13736 " ' prfx=^$ac_symprfx"
13737 else
13738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13741 # Check to see that the pipe works correctly.
13742 pipe_works=no
13744 rm -f conftest*
13745 cat > conftest.$ac_ext <<_LT_EOF
13746 #ifdef __cplusplus
13747 extern "C" {
13748 #endif
13749 char nm_test_var;
13750 void nm_test_func(void);
13751 void nm_test_func(void){}
13752 #ifdef __cplusplus
13754 #endif
13755 int main(){nm_test_var='a';nm_test_func();return(0);}
13756 _LT_EOF
13758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13759 (eval $ac_compile) 2>&5
13760 ac_status=$?
13761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13762 test $ac_status = 0; }; then
13763 # Now try to grab the symbols.
13764 nlist=conftest.nm
13765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13766 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13767 ac_status=$?
13768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769 test $ac_status = 0; } && test -s "$nlist"; then
13770 # Try sorting and uniquifying the output.
13771 if sort "$nlist" | uniq > "$nlist"T; then
13772 mv -f "$nlist"T "$nlist"
13773 else
13774 rm -f "$nlist"T
13777 # Make sure that we snagged all the symbols we need.
13778 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13779 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13780 cat <<_LT_EOF > conftest.$ac_ext
13781 #ifdef __cplusplus
13782 extern "C" {
13783 #endif
13785 _LT_EOF
13786 # Now generate the symbol file.
13787 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13789 cat <<_LT_EOF >> conftest.$ac_ext
13791 /* The mapping between symbol names and symbols. */
13792 const struct {
13793 const char *name;
13794 void *address;
13796 lt__PROGRAM__LTX_preloaded_symbols[] =
13798 { "@PROGRAM@", (void *) 0 },
13799 _LT_EOF
13800 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13801 cat <<\_LT_EOF >> conftest.$ac_ext
13802 {0, (void *) 0}
13805 /* This works around a problem in FreeBSD linker */
13806 #ifdef FREEBSD_WORKAROUND
13807 static const void *lt_preloaded_setup() {
13808 return lt__PROGRAM__LTX_preloaded_symbols;
13810 #endif
13812 #ifdef __cplusplus
13814 #endif
13815 _LT_EOF
13816 # Now try linking the two files.
13817 mv conftest.$ac_objext conftstm.$ac_objext
13818 lt_save_LIBS="$LIBS"
13819 lt_save_CFLAGS="$CFLAGS"
13820 LIBS="conftstm.$ac_objext"
13821 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13823 (eval $ac_link) 2>&5
13824 ac_status=$?
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13827 pipe_works=yes
13829 LIBS="$lt_save_LIBS"
13830 CFLAGS="$lt_save_CFLAGS"
13831 else
13832 echo "cannot find nm_test_func in $nlist" >&5
13834 else
13835 echo "cannot find nm_test_var in $nlist" >&5
13837 else
13838 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13840 else
13841 echo "$progname: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13844 rm -rf conftest* conftst*
13846 # Do not use the global_symbol_pipe unless it works.
13847 if test "$pipe_works" = yes; then
13848 break
13849 else
13850 lt_cv_sys_global_symbol_pipe=
13852 done
13856 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13857 lt_cv_sys_global_symbol_to_cdecl=
13859 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13861 $as_echo "failed" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13864 $as_echo "ok" >&6; }
13889 # Check whether --enable-libtool-lock was given.
13890 if test "${enable_libtool_lock+set}" = set; then :
13891 enableval=$enable_libtool_lock;
13894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13896 # Some flags need to be propagated to the compiler or linker for good
13897 # libtool support.
13898 case $host in
13899 ia64-*-hpux*)
13900 # Find out which ABI we are using.
13901 echo 'int i;' > conftest.$ac_ext
13902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13903 (eval $ac_compile) 2>&5
13904 ac_status=$?
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; }; then
13907 case `/usr/bin/file conftest.$ac_objext` in
13908 *ELF-32*)
13909 HPUX_IA64_MODE="32"
13911 *ELF-64*)
13912 HPUX_IA64_MODE="64"
13914 esac
13916 rm -rf conftest*
13918 *-*-irix6*)
13919 # Find out which ABI we are using.
13920 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13922 (eval $ac_compile) 2>&5
13923 ac_status=$?
13924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925 test $ac_status = 0; }; then
13926 if test "$lt_cv_prog_gnu_ld" = yes; then
13927 case `/usr/bin/file conftest.$ac_objext` in
13928 *32-bit*)
13929 LD="${LD-ld} -melf32bsmip"
13931 *N32*)
13932 LD="${LD-ld} -melf32bmipn32"
13934 *64-bit*)
13935 LD="${LD-ld} -melf64bmip"
13937 esac
13938 else
13939 case `/usr/bin/file conftest.$ac_objext` in
13940 *32-bit*)
13941 LD="${LD-ld} -32"
13943 *N32*)
13944 LD="${LD-ld} -n32"
13946 *64-bit*)
13947 LD="${LD-ld} -64"
13949 esac
13952 rm -rf conftest*
13955 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13956 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13957 # Find out which ABI we are using.
13958 echo 'int i;' > conftest.$ac_ext
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13960 (eval $ac_compile) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; then
13964 case `/usr/bin/file conftest.o` in
13965 *32-bit*)
13966 case $host in
13967 x86_64-*kfreebsd*-gnu)
13968 LD="${LD-ld} -m elf_i386_fbsd"
13970 x86_64-*linux*)
13971 case `/usr/bin/file conftest.o` in
13972 *x86-64*)
13973 LD="${LD-ld} -m elf32_x86_64"
13976 LD="${LD-ld} -m elf_i386"
13978 esac
13980 powerpc64le-*linux*)
13981 LD="${LD-ld} -m elf32lppclinux"
13983 powerpc64-*linux*)
13984 LD="${LD-ld} -m elf32ppclinux"
13986 s390x-*linux*)
13987 LD="${LD-ld} -m elf_s390"
13989 sparc64-*linux*)
13990 LD="${LD-ld} -m elf32_sparc"
13992 esac
13994 *64-bit*)
13995 case $host in
13996 x86_64-*kfreebsd*-gnu)
13997 LD="${LD-ld} -m elf_x86_64_fbsd"
13999 x86_64-*linux*)
14000 LD="${LD-ld} -m elf_x86_64"
14002 powerpcle-*linux*)
14003 LD="${LD-ld} -m elf64lppc"
14005 powerpc-*linux*)
14006 LD="${LD-ld} -m elf64ppc"
14008 s390*-*linux*|s390*-*tpf*)
14009 LD="${LD-ld} -m elf64_s390"
14011 sparc*-*linux*)
14012 LD="${LD-ld} -m elf64_sparc"
14014 esac
14016 esac
14018 rm -rf conftest*
14021 *-*-sco3.2v5*)
14022 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14023 SAVE_CFLAGS="$CFLAGS"
14024 CFLAGS="$CFLAGS -belf"
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14026 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14027 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 ac_ext=c
14031 ac_cpp='$CPP $CPPFLAGS'
14032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14040 main ()
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 lt_cv_cc_needs_belf=yes
14049 else
14050 lt_cv_cc_needs_belf=no
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 ac_ext=c
14055 ac_cpp='$CPP $CPPFLAGS'
14056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14062 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14063 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14064 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14065 CFLAGS="$SAVE_CFLAGS"
14068 sparc*-*solaris*)
14069 # Find out which ABI we are using.
14070 echo 'int i;' > conftest.$ac_ext
14071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14072 (eval $ac_compile) 2>&5
14073 ac_status=$?
14074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14075 test $ac_status = 0; }; then
14076 case `/usr/bin/file conftest.o` in
14077 *64-bit*)
14078 case $lt_cv_prog_gnu_ld in
14079 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14081 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14082 LD="${LD-ld} -64"
14085 esac
14087 esac
14089 rm -rf conftest*
14091 esac
14093 need_locks="$enable_libtool_lock"
14096 case $host_os in
14097 rhapsody* | darwin*)
14098 if test -n "$ac_tool_prefix"; then
14099 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14100 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$DSYMUTIL"; then
14107 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14120 done
14121 done
14122 IFS=$as_save_IFS
14126 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14127 if test -n "$DSYMUTIL"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14129 $as_echo "$DSYMUTIL" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14137 if test -z "$ac_cv_prog_DSYMUTIL"; then
14138 ac_ct_DSYMUTIL=$DSYMUTIL
14139 # Extract the first word of "dsymutil", so it can be a program name with args.
14140 set dummy dsymutil; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 if test -n "$ac_ct_DSYMUTIL"; then
14147 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14160 done
14161 done
14162 IFS=$as_save_IFS
14166 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14167 if test -n "$ac_ct_DSYMUTIL"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14169 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14170 else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14175 if test "x$ac_ct_DSYMUTIL" = x; then
14176 DSYMUTIL=":"
14177 else
14178 case $cross_compiling:$ac_tool_warned in
14179 yes:)
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14182 ac_tool_warned=yes ;;
14183 esac
14184 DSYMUTIL=$ac_ct_DSYMUTIL
14186 else
14187 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14190 if test -n "$ac_tool_prefix"; then
14191 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14192 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194 $as_echo_n "checking for $ac_word... " >&6; }
14195 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 if test -n "$NMEDIT"; then
14199 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14200 else
14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14204 IFS=$as_save_IFS
14205 test -z "$as_dir" && as_dir=.
14206 for ac_exec_ext in '' $ac_executable_extensions; do
14207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14208 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 break 2
14212 done
14213 done
14214 IFS=$as_save_IFS
14218 NMEDIT=$ac_cv_prog_NMEDIT
14219 if test -n "$NMEDIT"; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14221 $as_echo "$NMEDIT" >&6; }
14222 else
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14229 if test -z "$ac_cv_prog_NMEDIT"; then
14230 ac_ct_NMEDIT=$NMEDIT
14231 # Extract the first word of "nmedit", so it can be a program name with args.
14232 set dummy nmedit; ac_word=$2
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14234 $as_echo_n "checking for $ac_word... " >&6; }
14235 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14236 $as_echo_n "(cached) " >&6
14237 else
14238 if test -n "$ac_ct_NMEDIT"; then
14239 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14240 else
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14248 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14252 done
14253 done
14254 IFS=$as_save_IFS
14258 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14259 if test -n "$ac_ct_NMEDIT"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14261 $as_echo "$ac_ct_NMEDIT" >&6; }
14262 else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14267 if test "x$ac_ct_NMEDIT" = x; then
14268 NMEDIT=":"
14269 else
14270 case $cross_compiling:$ac_tool_warned in
14271 yes:)
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14274 ac_tool_warned=yes ;;
14275 esac
14276 NMEDIT=$ac_ct_NMEDIT
14278 else
14279 NMEDIT="$ac_cv_prog_NMEDIT"
14282 if test -n "$ac_tool_prefix"; then
14283 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14284 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14286 $as_echo_n "checking for $ac_word... " >&6; }
14287 if test "${ac_cv_prog_LIPO+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 if test -n "$LIPO"; then
14291 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14304 done
14305 done
14306 IFS=$as_save_IFS
14310 LIPO=$ac_cv_prog_LIPO
14311 if test -n "$LIPO"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14313 $as_echo "$LIPO" >&6; }
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14321 if test -z "$ac_cv_prog_LIPO"; then
14322 ac_ct_LIPO=$LIPO
14323 # Extract the first word of "lipo", so it can be a program name with args.
14324 set dummy lipo; ac_word=$2
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326 $as_echo_n "checking for $ac_word... " >&6; }
14327 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 if test -n "$ac_ct_LIPO"; then
14331 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14332 else
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $PATH
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14340 ac_cv_prog_ac_ct_LIPO="lipo"
14341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 break 2
14344 done
14345 done
14346 IFS=$as_save_IFS
14350 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14351 if test -n "$ac_ct_LIPO"; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14353 $as_echo "$ac_ct_LIPO" >&6; }
14354 else
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356 $as_echo "no" >&6; }
14359 if test "x$ac_ct_LIPO" = x; then
14360 LIPO=":"
14361 else
14362 case $cross_compiling:$ac_tool_warned in
14363 yes:)
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14366 ac_tool_warned=yes ;;
14367 esac
14368 LIPO=$ac_ct_LIPO
14370 else
14371 LIPO="$ac_cv_prog_LIPO"
14374 if test -n "$ac_tool_prefix"; then
14375 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14376 set dummy ${ac_tool_prefix}otool; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 if test -n "$OTOOL"; then
14383 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14388 IFS=$as_save_IFS
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14392 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394 break 2
14396 done
14397 done
14398 IFS=$as_save_IFS
14402 OTOOL=$ac_cv_prog_OTOOL
14403 if test -n "$OTOOL"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14405 $as_echo "$OTOOL" >&6; }
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14413 if test -z "$ac_cv_prog_OTOOL"; then
14414 ac_ct_OTOOL=$OTOOL
14415 # Extract the first word of "otool", so it can be a program name with args.
14416 set dummy otool; ac_word=$2
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14418 $as_echo_n "checking for $ac_word... " >&6; }
14419 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 if test -n "$ac_ct_OTOOL"; then
14423 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14424 else
14425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14428 IFS=$as_save_IFS
14429 test -z "$as_dir" && as_dir=.
14430 for ac_exec_ext in '' $ac_executable_extensions; do
14431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14432 ac_cv_prog_ac_ct_OTOOL="otool"
14433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14434 break 2
14436 done
14437 done
14438 IFS=$as_save_IFS
14442 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14443 if test -n "$ac_ct_OTOOL"; then
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14445 $as_echo "$ac_ct_OTOOL" >&6; }
14446 else
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14451 if test "x$ac_ct_OTOOL" = x; then
14452 OTOOL=":"
14453 else
14454 case $cross_compiling:$ac_tool_warned in
14455 yes:)
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14458 ac_tool_warned=yes ;;
14459 esac
14460 OTOOL=$ac_ct_OTOOL
14462 else
14463 OTOOL="$ac_cv_prog_OTOOL"
14466 if test -n "$ac_tool_prefix"; then
14467 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14468 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470 $as_echo_n "checking for $ac_word... " >&6; }
14471 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 if test -n "$OTOOL64"; then
14475 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14476 else
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14480 IFS=$as_save_IFS
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14484 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14486 break 2
14488 done
14489 done
14490 IFS=$as_save_IFS
14494 OTOOL64=$ac_cv_prog_OTOOL64
14495 if test -n "$OTOOL64"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14497 $as_echo "$OTOOL64" >&6; }
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14505 if test -z "$ac_cv_prog_OTOOL64"; then
14506 ac_ct_OTOOL64=$OTOOL64
14507 # Extract the first word of "otool64", so it can be a program name with args.
14508 set dummy otool64; ac_word=$2
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14510 $as_echo_n "checking for $ac_word... " >&6; }
14511 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 if test -n "$ac_ct_OTOOL64"; then
14515 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14516 else
14517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518 for as_dir in $PATH
14520 IFS=$as_save_IFS
14521 test -z "$as_dir" && as_dir=.
14522 for ac_exec_ext in '' $ac_executable_extensions; do
14523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14524 ac_cv_prog_ac_ct_OTOOL64="otool64"
14525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14526 break 2
14528 done
14529 done
14530 IFS=$as_save_IFS
14534 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14535 if test -n "$ac_ct_OTOOL64"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14537 $as_echo "$ac_ct_OTOOL64" >&6; }
14538 else
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14543 if test "x$ac_ct_OTOOL64" = x; then
14544 OTOOL64=":"
14545 else
14546 case $cross_compiling:$ac_tool_warned in
14547 yes:)
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14550 ac_tool_warned=yes ;;
14551 esac
14552 OTOOL64=$ac_ct_OTOOL64
14554 else
14555 OTOOL64="$ac_cv_prog_OTOOL64"
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14585 $as_echo_n "checking for -single_module linker flag... " >&6; }
14586 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14587 $as_echo_n "(cached) " >&6
14588 else
14589 lt_cv_apple_cc_single_mod=no
14590 if test -z "${LT_MULTI_MODULE}"; then
14591 # By default we will add the -single_module flag. You can override
14592 # by either setting the environment variable LT_MULTI_MODULE
14593 # non-empty at configure time, or by adding -multi_module to the
14594 # link flags.
14595 rm -rf libconftest.dylib*
14596 echo "int foo(void){return 1;}" > conftest.c
14597 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14598 -dynamiclib -Wl,-single_module conftest.c" >&5
14599 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14600 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14601 _lt_result=$?
14602 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14603 lt_cv_apple_cc_single_mod=yes
14604 else
14605 cat conftest.err >&5
14607 rm -rf libconftest.dylib*
14608 rm -f conftest.*
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14612 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14614 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14615 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 lt_cv_ld_exported_symbols_list=no
14619 save_LDFLAGS=$LDFLAGS
14620 echo "_main" > conftest.sym
14621 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14626 main ()
14630 return 0;
14632 _ACEOF
14633 if ac_fn_c_try_link "$LINENO"; then :
14634 lt_cv_ld_exported_symbols_list=yes
14635 else
14636 lt_cv_ld_exported_symbols_list=no
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 LDFLAGS="$save_LDFLAGS"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14644 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14646 $as_echo_n "checking for -force_load linker flag... " >&6; }
14647 if test "${lt_cv_ld_force_load+set}" = set; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14650 lt_cv_ld_force_load=no
14651 cat > conftest.c << _LT_EOF
14652 int forced_loaded() { return 2;}
14653 _LT_EOF
14654 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14655 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14656 echo "$AR cru libconftest.a conftest.o" >&5
14657 $AR cru libconftest.a conftest.o 2>&5
14658 cat > conftest.c << _LT_EOF
14659 int main() { return 0;}
14660 _LT_EOF
14661 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14662 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14663 _lt_result=$?
14664 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14665 lt_cv_ld_force_load=yes
14666 else
14667 cat conftest.err >&5
14669 rm -f conftest.err libconftest.a conftest conftest.c
14670 rm -rf conftest.dSYM
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14674 $as_echo "$lt_cv_ld_force_load" >&6; }
14675 case $host_os in
14676 rhapsody* | darwin1.[012])
14677 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14678 darwin1.*)
14679 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14680 darwin*) # darwin 5.x on
14681 # if running on 10.5 or later, the deployment target defaults
14682 # to the OS version, if on x86, and 10.4, the deployment
14683 # target defaults to 10.4. Don't you love it?
14684 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14685 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14686 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14687 10.[012][,.]*)
14688 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14689 10.*)
14690 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14691 esac
14693 esac
14694 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14695 _lt_dar_single_mod='$single_module'
14697 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14698 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14699 else
14700 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14702 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14703 _lt_dsymutil='~$DSYMUTIL $lib || :'
14704 else
14705 _lt_dsymutil=
14708 esac
14711 for ac_header in dlfcn.h
14712 do :
14713 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14714 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_DLFCN_H 1
14717 _ACEOF
14720 done
14726 # Set options
14730 enable_dlopen=no
14733 enable_win32_dll=no
14736 # Check whether --enable-shared was given.
14737 if test "${enable_shared+set}" = set; then :
14738 enableval=$enable_shared; p=${PACKAGE-default}
14739 case $enableval in
14740 yes) enable_shared=yes ;;
14741 no) enable_shared=no ;;
14743 enable_shared=no
14744 # Look at the argument we got. We use all the common list separators.
14745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14746 for pkg in $enableval; do
14747 IFS="$lt_save_ifs"
14748 if test "X$pkg" = "X$p"; then
14749 enable_shared=yes
14751 done
14752 IFS="$lt_save_ifs"
14754 esac
14755 else
14756 enable_shared=yes
14767 # Check whether --enable-static was given.
14768 if test "${enable_static+set}" = set; then :
14769 enableval=$enable_static; p=${PACKAGE-default}
14770 case $enableval in
14771 yes) enable_static=yes ;;
14772 no) enable_static=no ;;
14774 enable_static=no
14775 # Look at the argument we got. We use all the common list separators.
14776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14777 for pkg in $enableval; do
14778 IFS="$lt_save_ifs"
14779 if test "X$pkg" = "X$p"; then
14780 enable_static=yes
14782 done
14783 IFS="$lt_save_ifs"
14785 esac
14786 else
14787 enable_static=yes
14799 # Check whether --with-pic was given.
14800 if test "${with_pic+set}" = set; then :
14801 withval=$with_pic; pic_mode="$withval"
14802 else
14803 pic_mode=default
14807 test -z "$pic_mode" && pic_mode=default
14815 # Check whether --enable-fast-install was given.
14816 if test "${enable_fast_install+set}" = set; then :
14817 enableval=$enable_fast_install; p=${PACKAGE-default}
14818 case $enableval in
14819 yes) enable_fast_install=yes ;;
14820 no) enable_fast_install=no ;;
14822 enable_fast_install=no
14823 # Look at the argument we got. We use all the common list separators.
14824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14825 for pkg in $enableval; do
14826 IFS="$lt_save_ifs"
14827 if test "X$pkg" = "X$p"; then
14828 enable_fast_install=yes
14830 done
14831 IFS="$lt_save_ifs"
14833 esac
14834 else
14835 enable_fast_install=yes
14848 # This can be used to rebuild libtool when needed
14849 LIBTOOL_DEPS="$ltmain"
14851 # Always use our own libtool.
14852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14879 test -z "$LN_S" && LN_S="ln -s"
14894 if test -n "${ZSH_VERSION+set}" ; then
14895 setopt NO_GLOB_SUBST
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14899 $as_echo_n "checking for objdir... " >&6; }
14900 if test "${lt_cv_objdir+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 rm -f .libs 2>/dev/null
14904 mkdir .libs 2>/dev/null
14905 if test -d .libs; then
14906 lt_cv_objdir=.libs
14907 else
14908 # MS-DOS does not allow filenames that begin with a dot.
14909 lt_cv_objdir=_libs
14911 rmdir .libs 2>/dev/null
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14914 $as_echo "$lt_cv_objdir" >&6; }
14915 objdir=$lt_cv_objdir
14921 cat >>confdefs.h <<_ACEOF
14922 #define LT_OBJDIR "$lt_cv_objdir/"
14923 _ACEOF
14928 case $host_os in
14929 aix3*)
14930 # AIX sometimes has problems with the GCC collect2 program. For some
14931 # reason, if we set the COLLECT_NAMES environment variable, the problems
14932 # vanish in a puff of smoke.
14933 if test "X${COLLECT_NAMES+set}" != Xset; then
14934 COLLECT_NAMES=
14935 export COLLECT_NAMES
14938 esac
14940 # Global variables:
14941 ofile=libtool
14942 can_build_shared=yes
14944 # All known linkers require a `.a' archive for static linking (except MSVC,
14945 # which needs '.lib').
14946 libext=a
14948 with_gnu_ld="$lt_cv_prog_gnu_ld"
14950 old_CC="$CC"
14951 old_CFLAGS="$CFLAGS"
14953 # Set sane defaults for various variables
14954 test -z "$CC" && CC=cc
14955 test -z "$LTCC" && LTCC=$CC
14956 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14957 test -z "$LD" && LD=ld
14958 test -z "$ac_objext" && ac_objext=o
14960 for cc_temp in $compiler""; do
14961 case $cc_temp in
14962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14964 \-*) ;;
14965 *) break;;
14966 esac
14967 done
14968 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14971 # Only perform the check for file, if the check method requires it
14972 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14973 case $deplibs_check_method in
14974 file_magic*)
14975 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14977 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14978 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 case $MAGIC_CMD in
14982 [\\/*] | ?:[\\/]*)
14983 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14986 lt_save_MAGIC_CMD="$MAGIC_CMD"
14987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14988 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14989 for ac_dir in $ac_dummy; do
14990 IFS="$lt_save_ifs"
14991 test -z "$ac_dir" && ac_dir=.
14992 if test -f $ac_dir/${ac_tool_prefix}file; then
14993 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14994 if test -n "$file_magic_test_file"; then
14995 case $deplibs_check_method in
14996 "file_magic "*)
14997 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14999 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15000 $EGREP "$file_magic_regex" > /dev/null; then
15002 else
15003 cat <<_LT_EOF 1>&2
15005 *** Warning: the command libtool uses to detect shared libraries,
15006 *** $file_magic_cmd, produces output that libtool cannot recognize.
15007 *** The result is that libtool may fail to recognize shared libraries
15008 *** as such. This will affect the creation of libtool libraries that
15009 *** depend on shared libraries, but programs linked with such libtool
15010 *** libraries will work regardless of this problem. Nevertheless, you
15011 *** may want to report the problem to your system manager and/or to
15012 *** bug-libtool@gnu.org
15014 _LT_EOF
15015 fi ;;
15016 esac
15018 break
15020 done
15021 IFS="$lt_save_ifs"
15022 MAGIC_CMD="$lt_save_MAGIC_CMD"
15024 esac
15027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15028 if test -n "$MAGIC_CMD"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15030 $as_echo "$MAGIC_CMD" >&6; }
15031 else
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15040 if test -z "$lt_cv_path_MAGIC_CMD"; then
15041 if test -n "$ac_tool_prefix"; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15043 $as_echo_n "checking for file... " >&6; }
15044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 case $MAGIC_CMD in
15048 [\\/*] | ?:[\\/]*)
15049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15052 lt_save_MAGIC_CMD="$MAGIC_CMD"
15053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15055 for ac_dir in $ac_dummy; do
15056 IFS="$lt_save_ifs"
15057 test -z "$ac_dir" && ac_dir=.
15058 if test -f $ac_dir/file; then
15059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15060 if test -n "$file_magic_test_file"; then
15061 case $deplibs_check_method in
15062 "file_magic "*)
15063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15066 $EGREP "$file_magic_regex" > /dev/null; then
15068 else
15069 cat <<_LT_EOF 1>&2
15071 *** Warning: the command libtool uses to detect shared libraries,
15072 *** $file_magic_cmd, produces output that libtool cannot recognize.
15073 *** The result is that libtool may fail to recognize shared libraries
15074 *** as such. This will affect the creation of libtool libraries that
15075 *** depend on shared libraries, but programs linked with such libtool
15076 *** libraries will work regardless of this problem. Nevertheless, you
15077 *** may want to report the problem to your system manager and/or to
15078 *** bug-libtool@gnu.org
15080 _LT_EOF
15081 fi ;;
15082 esac
15084 break
15086 done
15087 IFS="$lt_save_ifs"
15088 MAGIC_CMD="$lt_save_MAGIC_CMD"
15090 esac
15093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15094 if test -n "$MAGIC_CMD"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15096 $as_echo "$MAGIC_CMD" >&6; }
15097 else
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15103 else
15104 MAGIC_CMD=:
15110 esac
15112 # Use C for the default configuration in the libtool script
15114 lt_save_CC="$CC"
15115 ac_ext=c
15116 ac_cpp='$CPP $CPPFLAGS'
15117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15122 # Source file extension for C test sources.
15123 ac_ext=c
15125 # Object file extension for compiled C test sources.
15126 objext=o
15127 objext=$objext
15129 # Code to be used in simple compile tests
15130 lt_simple_compile_test_code="int some_variable = 0;"
15132 # Code to be used in simple link tests
15133 lt_simple_link_test_code='int main(){return(0);}'
15141 # If no C compiler was specified, use CC.
15142 LTCC=${LTCC-"$CC"}
15144 # If no C compiler flags were specified, use CFLAGS.
15145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15147 # Allow CC to be a program name with arguments.
15148 compiler=$CC
15150 # Save the default compiler, since it gets overwritten when the other
15151 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15152 compiler_DEFAULT=$CC
15154 # save warnings/boilerplate of simple test code
15155 ac_outfile=conftest.$ac_objext
15156 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15157 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15158 _lt_compiler_boilerplate=`cat conftest.err`
15159 $RM conftest*
15161 ac_outfile=conftest.$ac_objext
15162 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15163 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15164 _lt_linker_boilerplate=`cat conftest.err`
15165 $RM -r conftest*
15168 ## CAVEAT EMPTOR:
15169 ## There is no encapsulation within the following macros, do not change
15170 ## the running order or otherwise move them around unless you know exactly
15171 ## what you are doing...
15172 if test -n "$compiler"; then
15174 lt_prog_compiler_no_builtin_flag=
15176 if test "$GCC" = yes; then
15177 case $cc_basename in
15178 nvcc*)
15179 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15181 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15182 esac
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15185 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15186 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 lt_cv_prog_compiler_rtti_exceptions=no
15190 ac_outfile=conftest.$ac_objext
15191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15192 lt_compiler_flag="-fno-rtti -fno-exceptions"
15193 # Insert the option either (1) after the last *FLAGS variable, or
15194 # (2) before a word containing "conftest.", or (3) at the end.
15195 # Note that $ac_compile itself does not contain backslashes and begins
15196 # with a dollar sign (not a hyphen), so the echo should work correctly.
15197 # The option is referenced via a variable to avoid confusing sed.
15198 lt_compile=`echo "$ac_compile" | $SED \
15199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15201 -e 's:$: $lt_compiler_flag:'`
15202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15203 (eval "$lt_compile" 2>conftest.err)
15204 ac_status=$?
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 if (exit $ac_status) && test -s "$ac_outfile"; then
15208 # The compiler can only warn and ignore the option if not recognized
15209 # So say no if there are warnings other than the usual output.
15210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15213 lt_cv_prog_compiler_rtti_exceptions=yes
15216 $RM conftest*
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15222 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15223 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15224 else
15235 lt_prog_compiler_wl=
15236 lt_prog_compiler_pic=
15237 lt_prog_compiler_static=
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15240 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15242 if test "$GCC" = yes; then
15243 lt_prog_compiler_wl='-Wl,'
15244 lt_prog_compiler_static='-static'
15246 case $host_os in
15247 aix*)
15248 # All AIX code is PIC.
15249 if test "$host_cpu" = ia64; then
15250 # AIX 5 now supports IA64 processor
15251 lt_prog_compiler_static='-Bstatic'
15253 lt_prog_compiler_pic='-fPIC'
15256 amigaos*)
15257 case $host_cpu in
15258 powerpc)
15259 # see comment about AmigaOS4 .so support
15260 lt_prog_compiler_pic='-fPIC'
15262 m68k)
15263 # FIXME: we need at least 68020 code to build shared libraries, but
15264 # adding the `-m68020' flag to GCC prevents building anything better,
15265 # like `-m68040'.
15266 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15268 esac
15271 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15272 # PIC is the default for these OSes.
15275 mingw* | cygwin* | pw32* | os2* | cegcc*)
15276 # This hack is so that the source file can tell whether it is being
15277 # built for inclusion in a dll (and should export symbols for example).
15278 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15279 # (--disable-auto-import) libraries
15280 lt_prog_compiler_pic='-DDLL_EXPORT'
15283 darwin* | rhapsody*)
15284 # PIC is the default on this platform
15285 # Common symbols not allowed in MH_DYLIB files
15286 lt_prog_compiler_pic='-fno-common'
15289 haiku*)
15290 # PIC is the default for Haiku.
15291 # The "-static" flag exists, but is broken.
15292 lt_prog_compiler_static=
15295 hpux*)
15296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15298 # sets the default TLS model and affects inlining.
15299 case $host_cpu in
15300 hppa*64*)
15301 # +Z the default
15304 lt_prog_compiler_pic='-fPIC'
15306 esac
15309 interix[3-9]*)
15310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15311 # Instead, we relocate shared libraries at runtime.
15314 msdosdjgpp*)
15315 # Just because we use GCC doesn't mean we suddenly get shared libraries
15316 # on systems that don't support them.
15317 lt_prog_compiler_can_build_shared=no
15318 enable_shared=no
15321 *nto* | *qnx*)
15322 # QNX uses GNU C++, but need to define -shared option too, otherwise
15323 # it will coredump.
15324 lt_prog_compiler_pic='-fPIC -shared'
15327 sysv4*MP*)
15328 if test -d /usr/nec; then
15329 lt_prog_compiler_pic=-Kconform_pic
15334 lt_prog_compiler_pic='-fPIC'
15336 esac
15338 case $cc_basename in
15339 nvcc*) # Cuda Compiler Driver 2.2
15340 lt_prog_compiler_wl='-Xlinker '
15341 lt_prog_compiler_pic='-Xcompiler -fPIC'
15343 esac
15344 else
15345 # PORTME Check for flag to pass linker flags through the system compiler.
15346 case $host_os in
15347 aix*)
15348 lt_prog_compiler_wl='-Wl,'
15349 if test "$host_cpu" = ia64; then
15350 # AIX 5 now supports IA64 processor
15351 lt_prog_compiler_static='-Bstatic'
15352 else
15353 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15357 mingw* | cygwin* | pw32* | os2* | cegcc*)
15358 # This hack is so that the source file can tell whether it is being
15359 # built for inclusion in a dll (and should export symbols for example).
15360 lt_prog_compiler_pic='-DDLL_EXPORT'
15363 hpux9* | hpux10* | hpux11*)
15364 lt_prog_compiler_wl='-Wl,'
15365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15366 # not for PA HP-UX.
15367 case $host_cpu in
15368 hppa*64*|ia64*)
15369 # +Z the default
15372 lt_prog_compiler_pic='+Z'
15374 esac
15375 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15376 lt_prog_compiler_static='${wl}-a ${wl}archive'
15379 irix5* | irix6* | nonstopux*)
15380 lt_prog_compiler_wl='-Wl,'
15381 # PIC (with -KPIC) is the default.
15382 lt_prog_compiler_static='-non_shared'
15385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15386 case $cc_basename in
15387 # old Intel for x86_64 which still supported -KPIC.
15388 ecc*)
15389 lt_prog_compiler_wl='-Wl,'
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-static'
15393 # icc used to be incompatible with GCC.
15394 # ICC 10 doesn't accept -KPIC any more.
15395 icc* | ifort*)
15396 lt_prog_compiler_wl='-Wl,'
15397 lt_prog_compiler_pic='-fPIC'
15398 lt_prog_compiler_static='-static'
15400 # Lahey Fortran 8.1.
15401 lf95*)
15402 lt_prog_compiler_wl='-Wl,'
15403 lt_prog_compiler_pic='--shared'
15404 lt_prog_compiler_static='--static'
15406 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15407 # Portland Group compilers (*not* the Pentium gcc compiler,
15408 # which looks to be a dead project)
15409 lt_prog_compiler_wl='-Wl,'
15410 lt_prog_compiler_pic='-fpic'
15411 lt_prog_compiler_static='-Bstatic'
15413 ccc*)
15414 lt_prog_compiler_wl='-Wl,'
15415 # All Alpha code is PIC.
15416 lt_prog_compiler_static='-non_shared'
15418 xl* | bgxl* | bgf* | mpixl*)
15419 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15420 lt_prog_compiler_wl='-Wl,'
15421 lt_prog_compiler_pic='-qpic'
15422 lt_prog_compiler_static='-qstaticlink'
15425 case `$CC -V 2>&1 | sed 5q` in
15426 *Sun\ F* | *Sun*Fortran*)
15427 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15428 lt_prog_compiler_pic='-KPIC'
15429 lt_prog_compiler_static='-Bstatic'
15430 lt_prog_compiler_wl=''
15432 *Sun\ C*)
15433 # Sun C 5.9
15434 lt_prog_compiler_pic='-KPIC'
15435 lt_prog_compiler_static='-Bstatic'
15436 lt_prog_compiler_wl='-Wl,'
15438 esac
15440 esac
15443 newsos6)
15444 lt_prog_compiler_pic='-KPIC'
15445 lt_prog_compiler_static='-Bstatic'
15448 *nto* | *qnx*)
15449 # QNX uses GNU C++, but need to define -shared option too, otherwise
15450 # it will coredump.
15451 lt_prog_compiler_pic='-fPIC -shared'
15454 osf3* | osf4* | osf5*)
15455 lt_prog_compiler_wl='-Wl,'
15456 # All OSF/1 code is PIC.
15457 lt_prog_compiler_static='-non_shared'
15460 rdos*)
15461 lt_prog_compiler_static='-non_shared'
15464 solaris*)
15465 lt_prog_compiler_pic='-KPIC'
15466 lt_prog_compiler_static='-Bstatic'
15467 case $cc_basename in
15468 f77* | f90* | f95*)
15469 lt_prog_compiler_wl='-Qoption ld ';;
15471 lt_prog_compiler_wl='-Wl,';;
15472 esac
15475 sunos4*)
15476 lt_prog_compiler_wl='-Qoption ld '
15477 lt_prog_compiler_pic='-PIC'
15478 lt_prog_compiler_static='-Bstatic'
15481 sysv4 | sysv4.2uw2* | sysv4.3*)
15482 lt_prog_compiler_wl='-Wl,'
15483 lt_prog_compiler_pic='-KPIC'
15484 lt_prog_compiler_static='-Bstatic'
15487 sysv4*MP*)
15488 if test -d /usr/nec ;then
15489 lt_prog_compiler_pic='-Kconform_pic'
15490 lt_prog_compiler_static='-Bstatic'
15494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15495 lt_prog_compiler_wl='-Wl,'
15496 lt_prog_compiler_pic='-KPIC'
15497 lt_prog_compiler_static='-Bstatic'
15500 unicos*)
15501 lt_prog_compiler_wl='-Wl,'
15502 lt_prog_compiler_can_build_shared=no
15505 uts4*)
15506 lt_prog_compiler_pic='-pic'
15507 lt_prog_compiler_static='-Bstatic'
15511 lt_prog_compiler_can_build_shared=no
15513 esac
15516 case $host_os in
15517 # For platforms which do not support PIC, -DPIC is meaningless:
15518 *djgpp*)
15519 lt_prog_compiler_pic=
15522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15524 esac
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15526 $as_echo "$lt_prog_compiler_pic" >&6; }
15534 # Check to make sure the PIC flag actually works.
15536 if test -n "$lt_prog_compiler_pic"; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15539 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 lt_cv_prog_compiler_pic_works=no
15543 ac_outfile=conftest.$ac_objext
15544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15545 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15546 # Insert the option either (1) after the last *FLAGS variable, or
15547 # (2) before a word containing "conftest.", or (3) at the end.
15548 # Note that $ac_compile itself does not contain backslashes and begins
15549 # with a dollar sign (not a hyphen), so the echo should work correctly.
15550 # The option is referenced via a variable to avoid confusing sed.
15551 lt_compile=`echo "$ac_compile" | $SED \
15552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15554 -e 's:$: $lt_compiler_flag:'`
15555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15556 (eval "$lt_compile" 2>conftest.err)
15557 ac_status=$?
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 if (exit $ac_status) && test -s "$ac_outfile"; then
15561 # The compiler can only warn and ignore the option if not recognized
15562 # So say no if there are warnings other than the usual output.
15563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15566 lt_cv_prog_compiler_pic_works=yes
15569 $RM conftest*
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15573 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15575 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15576 case $lt_prog_compiler_pic in
15577 "" | " "*) ;;
15578 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15579 esac
15580 else
15581 lt_prog_compiler_pic=
15582 lt_prog_compiler_can_build_shared=no
15593 # Check to make sure the static flag actually works.
15595 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15598 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 lt_cv_prog_compiler_static_works=no
15602 save_LDFLAGS="$LDFLAGS"
15603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15606 # The linker can only warn and ignore the option if not recognized
15607 # So say no if there are warnings
15608 if test -s conftest.err; then
15609 # Append any errors to the config.log.
15610 cat conftest.err 1>&5
15611 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15613 if diff conftest.exp conftest.er2 >/dev/null; then
15614 lt_cv_prog_compiler_static_works=yes
15616 else
15617 lt_cv_prog_compiler_static_works=yes
15620 $RM -r conftest*
15621 LDFLAGS="$save_LDFLAGS"
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15625 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15627 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15629 else
15630 lt_prog_compiler_static=
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15641 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 lt_cv_prog_compiler_c_o=no
15645 $RM -r conftest 2>/dev/null
15646 mkdir conftest
15647 cd conftest
15648 mkdir out
15649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15651 lt_compiler_flag="-o out/conftest2.$ac_objext"
15652 # Insert the option either (1) after the last *FLAGS variable, or
15653 # (2) before a word containing "conftest.", or (3) at the end.
15654 # Note that $ac_compile itself does not contain backslashes and begins
15655 # with a dollar sign (not a hyphen), so the echo should work correctly.
15656 lt_compile=`echo "$ac_compile" | $SED \
15657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15659 -e 's:$: $lt_compiler_flag:'`
15660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15661 (eval "$lt_compile" 2>out/conftest.err)
15662 ac_status=$?
15663 cat out/conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15666 then
15667 # The compiler can only warn and ignore the option if not recognized
15668 # So say no if there are warnings
15669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15672 lt_cv_prog_compiler_c_o=yes
15675 chmod u+w . 2>&5
15676 $RM conftest*
15677 # SGI C++ compiler will create directory out/ii_files/ for
15678 # template instantiation
15679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15680 $RM out/* && rmdir out
15681 cd ..
15682 $RM -r conftest
15683 $RM conftest*
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15687 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15697 $as_echo_n "(cached) " >&6
15698 else
15699 lt_cv_prog_compiler_c_o=no
15700 $RM -r conftest 2>/dev/null
15701 mkdir conftest
15702 cd conftest
15703 mkdir out
15704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15706 lt_compiler_flag="-o out/conftest2.$ac_objext"
15707 # Insert the option either (1) after the last *FLAGS variable, or
15708 # (2) before a word containing "conftest.", or (3) at the end.
15709 # Note that $ac_compile itself does not contain backslashes and begins
15710 # with a dollar sign (not a hyphen), so the echo should work correctly.
15711 lt_compile=`echo "$ac_compile" | $SED \
15712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15714 -e 's:$: $lt_compiler_flag:'`
15715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15716 (eval "$lt_compile" 2>out/conftest.err)
15717 ac_status=$?
15718 cat out/conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15721 then
15722 # The compiler can only warn and ignore the option if not recognized
15723 # So say no if there are warnings
15724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15727 lt_cv_prog_compiler_c_o=yes
15730 chmod u+w . 2>&5
15731 $RM conftest*
15732 # SGI C++ compiler will create directory out/ii_files/ for
15733 # template instantiation
15734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15735 $RM out/* && rmdir out
15736 cd ..
15737 $RM -r conftest
15738 $RM conftest*
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15742 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15747 hard_links="nottested"
15748 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15749 # do not overwrite the value of need_locks provided by the user
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15751 $as_echo_n "checking if we can lock with hard links... " >&6; }
15752 hard_links=yes
15753 $RM conftest*
15754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15755 touch conftest.a
15756 ln conftest.a conftest.b 2>&5 || hard_links=no
15757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15759 $as_echo "$hard_links" >&6; }
15760 if test "$hard_links" = no; then
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15762 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15763 need_locks=warn
15765 else
15766 need_locks=no
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15775 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15777 runpath_var=
15778 allow_undefined_flag=
15779 always_export_symbols=no
15780 archive_cmds=
15781 archive_expsym_cmds=
15782 compiler_needs_object=no
15783 enable_shared_with_static_runtimes=no
15784 export_dynamic_flag_spec=
15785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15786 hardcode_automatic=no
15787 hardcode_direct=no
15788 hardcode_direct_absolute=no
15789 hardcode_libdir_flag_spec=
15790 hardcode_libdir_flag_spec_ld=
15791 hardcode_libdir_separator=
15792 hardcode_minus_L=no
15793 hardcode_shlibpath_var=unsupported
15794 inherit_rpath=no
15795 link_all_deplibs=unknown
15796 module_cmds=
15797 module_expsym_cmds=
15798 old_archive_from_new_cmds=
15799 old_archive_from_expsyms_cmds=
15800 thread_safe_flag_spec=
15801 whole_archive_flag_spec=
15802 # include_expsyms should be a list of space-separated symbols to be *always*
15803 # included in the symbol list
15804 include_expsyms=
15805 # exclude_expsyms can be an extended regexp of symbols to exclude
15806 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15807 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15808 # as well as any symbol that contains `d'.
15809 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15811 # platforms (ab)use it in PIC code, but their linkers get confused if
15812 # the symbol is explicitly referenced. Since portable code cannot
15813 # rely on this symbol name, it's probably fine to never include it in
15814 # preloaded symbol tables.
15815 # Exclude shared library initialization/finalization symbols.
15816 extract_expsyms_cmds=
15818 case $host_os in
15819 cygwin* | mingw* | pw32* | cegcc*)
15820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15821 # When not using gcc, we currently assume that we are using
15822 # Microsoft Visual C++.
15823 if test "$GCC" != yes; then
15824 with_gnu_ld=no
15827 interix*)
15828 # we just hope/assume this is gcc and not c89 (= MSVC++)
15829 with_gnu_ld=yes
15831 openbsd*)
15832 with_gnu_ld=no
15834 esac
15836 ld_shlibs=yes
15838 # On some targets, GNU ld is compatible enough with the native linker
15839 # that we're better off using the native interface for both.
15840 lt_use_gnu_ld_interface=no
15841 if test "$with_gnu_ld" = yes; then
15842 case $host_os in
15843 aix*)
15844 # The AIX port of GNU ld has always aspired to compatibility
15845 # with the native linker. However, as the warning in the GNU ld
15846 # block says, versions before 2.19.5* couldn't really create working
15847 # shared libraries, regardless of the interface used.
15848 case `$LD -v 2>&1` in
15849 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15850 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15851 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15853 lt_use_gnu_ld_interface=yes
15855 esac
15858 lt_use_gnu_ld_interface=yes
15860 esac
15863 if test "$lt_use_gnu_ld_interface" = yes; then
15864 # If archive_cmds runs LD, not CC, wlarc should be empty
15865 wlarc='${wl}'
15867 # Set some defaults for GNU ld with shared library support. These
15868 # are reset later if shared libraries are not supported. Putting them
15869 # here allows them to be overridden if necessary.
15870 runpath_var=LD_RUN_PATH
15871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15872 export_dynamic_flag_spec='${wl}--export-dynamic'
15873 # ancient GNU ld didn't support --whole-archive et. al.
15874 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15876 else
15877 whole_archive_flag_spec=
15879 supports_anon_versioning=no
15880 case `$LD -v 2>&1` in
15881 *GNU\ gold*) supports_anon_versioning=yes ;;
15882 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15883 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15884 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15885 *\ 2.11.*) ;; # other 2.11 versions
15886 *) supports_anon_versioning=yes ;;
15887 esac
15889 # See if GNU ld supports shared libraries.
15890 case $host_os in
15891 aix[3-9]*)
15892 # On AIX/PPC, the GNU linker is very broken
15893 if test "$host_cpu" != ia64; then
15894 ld_shlibs=no
15895 cat <<_LT_EOF 1>&2
15897 *** Warning: the GNU linker, at least up to release 2.19, is reported
15898 *** to be unable to reliably create shared libraries on AIX.
15899 *** Therefore, libtool is disabling shared libraries support. If you
15900 *** really care for shared libraries, you may want to install binutils
15901 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15902 *** You will then need to restart the configuration process.
15904 _LT_EOF
15908 amigaos*)
15909 case $host_cpu in
15910 powerpc)
15911 # see comment about AmigaOS4 .so support
15912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913 archive_expsym_cmds=''
15915 m68k)
15916 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)'
15917 hardcode_libdir_flag_spec='-L$libdir'
15918 hardcode_minus_L=yes
15920 esac
15923 beos*)
15924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15925 allow_undefined_flag=unsupported
15926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15927 # support --undefined. This deserves some investigation. FIXME
15928 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 else
15930 ld_shlibs=no
15934 cygwin* | mingw* | pw32* | cegcc*)
15935 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15936 # as there is no search path for DLLs.
15937 hardcode_libdir_flag_spec='-L$libdir'
15938 export_dynamic_flag_spec='${wl}--export-all-symbols'
15939 allow_undefined_flag=unsupported
15940 always_export_symbols=no
15941 enable_shared_with_static_runtimes=yes
15942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15944 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15946 # If the export-symbols file already is a .def file (1st line
15947 # is EXPORTS), use it as is; otherwise, prepend...
15948 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15949 cp $export_symbols $output_objdir/$soname.def;
15950 else
15951 echo EXPORTS > $output_objdir/$soname.def;
15952 cat $export_symbols >> $output_objdir/$soname.def;
15954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15955 else
15956 ld_shlibs=no
15960 haiku*)
15961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 link_all_deplibs=yes
15965 interix[3-9]*)
15966 hardcode_direct=no
15967 hardcode_shlibpath_var=no
15968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15969 export_dynamic_flag_spec='${wl}-E'
15970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15971 # Instead, shared libraries are loaded at an image base (0x10000000 by
15972 # default) and relocated if they conflict, which is a slow very memory
15973 # consuming and fragmenting process. To avoid this, we pick a random,
15974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15977 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'
15980 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15981 tmp_diet=no
15982 if test "$host_os" = linux-dietlibc; then
15983 case $cc_basename in
15984 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15985 esac
15987 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15988 && test "$tmp_diet" = no
15989 then
15990 tmp_addflag=' $pic_flag'
15991 tmp_sharedflag='-shared'
15992 case $cc_basename,$host_cpu in
15993 pgcc*) # Portland Group C compiler
15994 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'
15995 tmp_addflag=' $pic_flag'
15997 pgf77* | pgf90* | pgf95* | pgfortran*)
15998 # Portland Group f77 and f90 compilers
15999 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'
16000 tmp_addflag=' $pic_flag -Mnomain' ;;
16001 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16002 tmp_addflag=' -i_dynamic' ;;
16003 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16004 tmp_addflag=' -i_dynamic -nofor_main' ;;
16005 ifc* | ifort*) # Intel Fortran compiler
16006 tmp_addflag=' -nofor_main' ;;
16007 lf95*) # Lahey Fortran 8.1
16008 whole_archive_flag_spec=
16009 tmp_sharedflag='--shared' ;;
16010 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16011 tmp_sharedflag='-qmkshrobj'
16012 tmp_addflag= ;;
16013 nvcc*) # Cuda Compiler Driver 2.2
16014 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'
16015 compiler_needs_object=yes
16017 esac
16018 case `$CC -V 2>&1 | sed 5q` in
16019 *Sun\ C*) # Sun C 5.9
16020 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'
16021 compiler_needs_object=yes
16022 tmp_sharedflag='-G' ;;
16023 *Sun\ F*) # Sun Fortran 8.3
16024 tmp_sharedflag='-G' ;;
16025 esac
16026 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16028 if test "x$supports_anon_versioning" = xyes; then
16029 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16031 echo "local: *; };" >> $output_objdir/$libname.ver~
16032 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16035 case $cc_basename in
16036 xlf* | bgf* | bgxlf* | mpixlf*)
16037 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16038 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16039 hardcode_libdir_flag_spec=
16040 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16041 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16042 if test "x$supports_anon_versioning" = xyes; then
16043 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16045 echo "local: *; };" >> $output_objdir/$libname.ver~
16046 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16049 esac
16050 else
16051 ld_shlibs=no
16055 netbsd*)
16056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16057 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16058 wlarc=
16059 else
16060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16065 solaris*)
16066 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16067 ld_shlibs=no
16068 cat <<_LT_EOF 1>&2
16070 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16071 *** create shared libraries on Solaris systems. Therefore, libtool
16072 *** is disabling shared libraries support. We urge you to upgrade GNU
16073 *** binutils to release 2.9.1 or newer. Another option is to modify
16074 *** your PATH or compiler configuration so that the native linker is
16075 *** used, and then restart.
16077 _LT_EOF
16078 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16081 else
16082 ld_shlibs=no
16086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16087 case `$LD -v 2>&1` in
16088 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16089 ld_shlibs=no
16090 cat <<_LT_EOF 1>&2
16092 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16093 *** reliably create shared libraries on SCO systems. Therefore, libtool
16094 *** is disabling shared libraries support. We urge you to upgrade GNU
16095 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16096 *** your PATH or compiler configuration so that the native linker is
16097 *** used, and then restart.
16099 _LT_EOF
16102 # For security reasons, it is highly recommended that you always
16103 # use absolute paths for naming shared libraries, and exclude the
16104 # DT_RUNPATH tag from executables and libraries. But doing so
16105 # requires that you compile everything twice, which is a pain.
16106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16110 else
16111 ld_shlibs=no
16114 esac
16117 sunos4*)
16118 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16119 wlarc=
16120 hardcode_direct=yes
16121 hardcode_shlibpath_var=no
16125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16128 else
16129 ld_shlibs=no
16132 esac
16134 if test "$ld_shlibs" = no; then
16135 runpath_var=
16136 hardcode_libdir_flag_spec=
16137 export_dynamic_flag_spec=
16138 whole_archive_flag_spec=
16140 else
16141 # PORTME fill in a description of your system's linker (not GNU ld)
16142 case $host_os in
16143 aix3*)
16144 allow_undefined_flag=unsupported
16145 always_export_symbols=yes
16146 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'
16147 # Note: this linker hardcodes the directories in LIBPATH if there
16148 # are no directories specified by -L.
16149 hardcode_minus_L=yes
16150 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16151 # Neither direct hardcoding nor static linking is supported with a
16152 # broken collect2.
16153 hardcode_direct=unsupported
16157 aix[4-9]*)
16158 if test "$host_cpu" = ia64; then
16159 # On IA64, the linker does run time linking by default, so we don't
16160 # have to do anything special.
16161 aix_use_runtimelinking=no
16162 exp_sym_flag='-Bexport'
16163 no_entry_flag=""
16164 else
16165 # If we're using GNU nm, then we don't want the "-C" option.
16166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16167 # Also, AIX nm treats weak defined symbols like other global
16168 # defined symbols, whereas GNU nm marks them as "W".
16169 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16170 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'
16171 else
16172 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'
16174 aix_use_runtimelinking=no
16176 # Test if we are trying to use run time linking or normal
16177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16178 # need to do runtime linking.
16179 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16180 for ld_flag in $LDFLAGS; do
16181 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16182 aix_use_runtimelinking=yes
16183 break
16185 done
16187 esac
16189 exp_sym_flag='-bexport'
16190 no_entry_flag='-bnoentry'
16193 # When large executables or shared objects are built, AIX ld can
16194 # have problems creating the table of contents. If linking a library
16195 # or program results in "error TOC overflow" add -mminimal-toc to
16196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16199 archive_cmds=''
16200 hardcode_direct=yes
16201 hardcode_direct_absolute=yes
16202 hardcode_libdir_separator=':'
16203 link_all_deplibs=yes
16204 file_list_spec='${wl}-f,'
16206 if test "$GCC" = yes; then
16207 case $host_os in aix4.[012]|aix4.[012].*)
16208 # We only want to do this on AIX 4.2 and lower, the check
16209 # below for broken collect2 doesn't work under 4.3+
16210 collect2name=`${CC} -print-prog-name=collect2`
16211 if test -f "$collect2name" &&
16212 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16213 then
16214 # We have reworked collect2
16216 else
16217 # We have old collect2
16218 hardcode_direct=unsupported
16219 # It fails to find uninstalled libraries when the uninstalled
16220 # path is not listed in the libpath. Setting hardcode_minus_L
16221 # to unsupported forces relinking
16222 hardcode_minus_L=yes
16223 hardcode_libdir_flag_spec='-L$libdir'
16224 hardcode_libdir_separator=
16227 esac
16228 shared_flag='-shared'
16229 if test "$aix_use_runtimelinking" = yes; then
16230 shared_flag="$shared_flag "'${wl}-G'
16232 else
16233 # not using gcc
16234 if test "$host_cpu" = ia64; then
16235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16236 # chokes on -Wl,-G. The following line is correct:
16237 shared_flag='-G'
16238 else
16239 if test "$aix_use_runtimelinking" = yes; then
16240 shared_flag='${wl}-G'
16241 else
16242 shared_flag='${wl}-bM:SRE'
16247 export_dynamic_flag_spec='${wl}-bexpall'
16248 # It seems that -bexpall does not export symbols beginning with
16249 # underscore (_), so it is better to generate a list of symbols to export.
16250 always_export_symbols=yes
16251 if test "$aix_use_runtimelinking" = yes; then
16252 # Warning - without using the other runtime loading flags (-brtl),
16253 # -berok will link without error, but may produce a broken library.
16254 allow_undefined_flag='-berok'
16255 # Determine the default libpath from the value encoded in an
16256 # empty executable.
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16261 main ()
16265 return 0;
16267 _ACEOF
16268 if ac_fn_c_try_link "$LINENO"; then :
16270 lt_aix_libpath_sed='
16271 /Import File Strings/,/^$/ {
16272 /^0/ {
16273 s/^0 *\(.*\)$/\1/
16277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16278 # Check for a 64-bit object if we didn't find anything.
16279 if test -z "$aix_libpath"; then
16280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16283 rm -f core conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16288 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"
16289 else
16290 if test "$host_cpu" = ia64; then
16291 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16292 allow_undefined_flag="-z nodefs"
16293 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"
16294 else
16295 # Determine the default libpath from the value encoded in an
16296 # empty executable.
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16301 main ()
16305 return 0;
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16310 lt_aix_libpath_sed='
16311 /Import File Strings/,/^$/ {
16312 /^0/ {
16313 s/^0 *\(.*\)$/\1/
16317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16318 # Check for a 64-bit object if we didn't find anything.
16319 if test -z "$aix_libpath"; then
16320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16323 rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16328 # Warning - without using the other run time loading flags,
16329 # -berok will link without error, but may produce a broken library.
16330 no_undefined_flag=' ${wl}-bernotok'
16331 allow_undefined_flag=' ${wl}-berok'
16332 if test "$with_gnu_ld" = yes; then
16333 # We only use this code for GNU lds that support --whole-archive.
16334 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16335 else
16336 # Exported symbols can be pulled into shared objects from archives
16337 whole_archive_flag_spec='$convenience'
16339 archive_cmds_need_lc=yes
16340 # This is similar to how AIX traditionally builds its shared libraries.
16341 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'
16346 amigaos*)
16347 case $host_cpu in
16348 powerpc)
16349 # see comment about AmigaOS4 .so support
16350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16351 archive_expsym_cmds=''
16353 m68k)
16354 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)'
16355 hardcode_libdir_flag_spec='-L$libdir'
16356 hardcode_minus_L=yes
16358 esac
16361 bsdi[45]*)
16362 export_dynamic_flag_spec=-rdynamic
16365 cygwin* | mingw* | pw32* | cegcc*)
16366 # When not using gcc, we currently assume that we are using
16367 # Microsoft Visual C++.
16368 # hardcode_libdir_flag_spec is actually meaningless, as there is
16369 # no search path for DLLs.
16370 hardcode_libdir_flag_spec=' '
16371 allow_undefined_flag=unsupported
16372 # Tell ltmain to make .lib files, not .a files.
16373 libext=lib
16374 # Tell ltmain to make .dll files, not .so files.
16375 shrext_cmds=".dll"
16376 # FIXME: Setting linknames here is a bad hack.
16377 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16378 # The linker will automatically build a .lib file if we build a DLL.
16379 old_archive_from_new_cmds='true'
16380 # FIXME: Should let the user specify the lib program.
16381 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16382 fix_srcfile_path='`cygpath -w "$srcfile"`'
16383 enable_shared_with_static_runtimes=yes
16386 darwin* | rhapsody*)
16389 archive_cmds_need_lc=no
16390 hardcode_direct=no
16391 hardcode_automatic=yes
16392 hardcode_shlibpath_var=unsupported
16393 if test "$lt_cv_ld_force_load" = "yes"; then
16394 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\"`'
16395 else
16396 whole_archive_flag_spec=''
16398 link_all_deplibs=yes
16399 allow_undefined_flag="$_lt_dar_allow_undefined"
16400 case $cc_basename in
16401 ifort*) _lt_dar_can_shared=yes ;;
16402 *) _lt_dar_can_shared=$GCC ;;
16403 esac
16404 if test "$_lt_dar_can_shared" = "yes"; then
16405 output_verbose_link_cmd=func_echo_all
16406 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16407 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16408 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}"
16409 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}"
16411 else
16412 ld_shlibs=no
16417 dgux*)
16418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16419 hardcode_libdir_flag_spec='-L$libdir'
16420 hardcode_shlibpath_var=no
16423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16424 # support. Future versions do this automatically, but an explicit c++rt0.o
16425 # does not break anything, and helps significantly (at the cost of a little
16426 # extra space).
16427 freebsd2.2*)
16428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16429 hardcode_libdir_flag_spec='-R$libdir'
16430 hardcode_direct=yes
16431 hardcode_shlibpath_var=no
16434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16435 freebsd2.*)
16436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_direct=yes
16438 hardcode_minus_L=yes
16439 hardcode_shlibpath_var=no
16442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16443 freebsd* | dragonfly*)
16444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16445 hardcode_libdir_flag_spec='-R$libdir'
16446 hardcode_direct=yes
16447 hardcode_shlibpath_var=no
16450 hpux9*)
16451 if test "$GCC" = yes; then
16452 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'
16453 else
16454 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'
16456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16457 hardcode_libdir_separator=:
16458 hardcode_direct=yes
16460 # hardcode_minus_L: Not really in the search PATH,
16461 # but as the default location of the library.
16462 hardcode_minus_L=yes
16463 export_dynamic_flag_spec='${wl}-E'
16466 hpux10*)
16467 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16469 else
16470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16472 if test "$with_gnu_ld" = no; then
16473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16474 hardcode_libdir_flag_spec_ld='+b $libdir'
16475 hardcode_libdir_separator=:
16476 hardcode_direct=yes
16477 hardcode_direct_absolute=yes
16478 export_dynamic_flag_spec='${wl}-E'
16479 # hardcode_minus_L: Not really in the search PATH,
16480 # but as the default location of the library.
16481 hardcode_minus_L=yes
16485 hpux11*)
16486 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16487 case $host_cpu in
16488 hppa*64*)
16489 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 ia64*)
16492 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16497 esac
16498 else
16499 case $host_cpu in
16500 hppa*64*)
16501 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16503 ia64*)
16504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16508 # Older versions of the 11.00 compiler do not understand -b yet
16509 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16511 $as_echo_n "checking if $CC understands -b... " >&6; }
16512 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 lt_cv_prog_compiler__b=no
16516 save_LDFLAGS="$LDFLAGS"
16517 LDFLAGS="$LDFLAGS -b"
16518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16520 # The linker can only warn and ignore the option if not recognized
16521 # So say no if there are warnings
16522 if test -s conftest.err; then
16523 # Append any errors to the config.log.
16524 cat conftest.err 1>&5
16525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16527 if diff conftest.exp conftest.er2 >/dev/null; then
16528 lt_cv_prog_compiler__b=yes
16530 else
16531 lt_cv_prog_compiler__b=yes
16534 $RM -r conftest*
16535 LDFLAGS="$save_LDFLAGS"
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16539 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16541 if test x"$lt_cv_prog_compiler__b" = xyes; then
16542 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16543 else
16544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16548 esac
16550 if test "$with_gnu_ld" = no; then
16551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16552 hardcode_libdir_separator=:
16554 case $host_cpu in
16555 hppa*64*|ia64*)
16556 hardcode_direct=no
16557 hardcode_shlibpath_var=no
16560 hardcode_direct=yes
16561 hardcode_direct_absolute=yes
16562 export_dynamic_flag_spec='${wl}-E'
16564 # hardcode_minus_L: Not really in the search PATH,
16565 # but as the default location of the library.
16566 hardcode_minus_L=yes
16568 esac
16572 irix5* | irix6* | nonstopux*)
16573 if test "$GCC" = yes; then
16574 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'
16575 # Try to use the -exported_symbol ld option, if it does not
16576 # work, assume that -exports_file does not work either and
16577 # implicitly export all symbols.
16578 save_LDFLAGS="$LDFLAGS"
16579 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 int foo(void) {}
16583 _ACEOF
16584 if ac_fn_c_try_link "$LINENO"; then :
16585 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'
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16590 LDFLAGS="$save_LDFLAGS"
16591 else
16592 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'
16593 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'
16595 archive_cmds_need_lc='no'
16596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16597 hardcode_libdir_separator=:
16598 inherit_rpath=yes
16599 link_all_deplibs=yes
16602 netbsd*)
16603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16605 else
16606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16608 hardcode_libdir_flag_spec='-R$libdir'
16609 hardcode_direct=yes
16610 hardcode_shlibpath_var=no
16613 newsos6)
16614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_direct=yes
16616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16617 hardcode_libdir_separator=:
16618 hardcode_shlibpath_var=no
16621 *nto* | *qnx*)
16624 openbsd*)
16625 if test -f /usr/libexec/ld.so; then
16626 hardcode_direct=yes
16627 hardcode_shlibpath_var=no
16628 hardcode_direct_absolute=yes
16629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16633 export_dynamic_flag_spec='${wl}-E'
16634 else
16635 case $host_os in
16636 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_libdir_flag_spec='-R$libdir'
16641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16644 esac
16646 else
16647 ld_shlibs=no
16651 os2*)
16652 hardcode_libdir_flag_spec='-L$libdir'
16653 hardcode_minus_L=yes
16654 allow_undefined_flag=unsupported
16655 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'
16656 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16659 osf3*)
16660 if test "$GCC" = yes; then
16661 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16662 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'
16663 else
16664 allow_undefined_flag=' -expect_unresolved \*'
16665 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'
16667 archive_cmds_need_lc='no'
16668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16669 hardcode_libdir_separator=:
16672 osf4* | osf5*) # as osf3* with the addition of -msym flag
16673 if test "$GCC" = yes; then
16674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16675 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'
16676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16677 else
16678 allow_undefined_flag=' -expect_unresolved \*'
16679 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'
16680 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~
16681 $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'
16683 # Both c and cxx compiler support -rpath directly
16684 hardcode_libdir_flag_spec='-rpath $libdir'
16686 archive_cmds_need_lc='no'
16687 hardcode_libdir_separator=:
16690 solaris*)
16691 no_undefined_flag=' -z defs'
16692 if test "$GCC" = yes; then
16693 wlarc='${wl}'
16694 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16696 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16697 else
16698 case `$CC -V 2>&1` in
16699 *"Compilers 5.0"*)
16700 wlarc=''
16701 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16706 wlarc='${wl}'
16707 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16708 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16709 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16711 esac
16713 hardcode_libdir_flag_spec='-R$libdir'
16714 hardcode_shlibpath_var=no
16715 case $host_os in
16716 solaris2.[0-5] | solaris2.[0-5].*) ;;
16718 # The compiler driver will combine and reorder linker options,
16719 # but understands `-z linker_flag'. GCC discards it without `$wl',
16720 # but is careful enough not to reorder.
16721 # Supported since Solaris 2.6 (maybe 2.5.1?)
16722 if test "$GCC" = yes; then
16723 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16724 else
16725 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16728 esac
16729 link_all_deplibs=yes
16732 sunos4*)
16733 if test "x$host_vendor" = xsequent; then
16734 # Use $CC to link under sequent, because it throws in some extra .o
16735 # files that make .init and .fini sections work.
16736 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16737 else
16738 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16740 hardcode_libdir_flag_spec='-L$libdir'
16741 hardcode_direct=yes
16742 hardcode_minus_L=yes
16743 hardcode_shlibpath_var=no
16746 sysv4)
16747 case $host_vendor in
16748 sni)
16749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750 hardcode_direct=yes # is this really true???
16752 siemens)
16753 ## LD is ld it makes a PLAMLIB
16754 ## CC just makes a GrossModule.
16755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16756 reload_cmds='$CC -r -o $output$reload_objs'
16757 hardcode_direct=no
16759 motorola)
16760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16763 esac
16764 runpath_var='LD_RUN_PATH'
16765 hardcode_shlibpath_var=no
16768 sysv4.3*)
16769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 hardcode_shlibpath_var=no
16771 export_dynamic_flag_spec='-Bexport'
16774 sysv4*MP*)
16775 if test -d /usr/nec; then
16776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_shlibpath_var=no
16778 runpath_var=LD_RUN_PATH
16779 hardcode_runpath_var=yes
16780 ld_shlibs=yes
16784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16785 no_undefined_flag='${wl}-z,text'
16786 archive_cmds_need_lc=no
16787 hardcode_shlibpath_var=no
16788 runpath_var='LD_RUN_PATH'
16790 if test "$GCC" = yes; then
16791 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 else
16794 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16799 sysv5* | sco3.2v5* | sco5v6*)
16800 # Note: We can NOT use -z defs as we might desire, because we do not
16801 # link with -lc, and that would cause any symbols used from libc to
16802 # always be unresolved, which means just about no library would
16803 # ever link correctly. If we're not using GNU ld we use -z text
16804 # though, which does catch some bad symbols but isn't as heavy-handed
16805 # as -z defs.
16806 no_undefined_flag='${wl}-z,text'
16807 allow_undefined_flag='${wl}-z,nodefs'
16808 archive_cmds_need_lc=no
16809 hardcode_shlibpath_var=no
16810 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16811 hardcode_libdir_separator=':'
16812 link_all_deplibs=yes
16813 export_dynamic_flag_spec='${wl}-Bexport'
16814 runpath_var='LD_RUN_PATH'
16816 if test "$GCC" = yes; then
16817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819 else
16820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 uts4*)
16826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16827 hardcode_libdir_flag_spec='-L$libdir'
16828 hardcode_shlibpath_var=no
16832 ld_shlibs=no
16834 esac
16836 if test x$host_vendor = xsni; then
16837 case $host in
16838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16839 export_dynamic_flag_spec='${wl}-Blargedynsym'
16841 esac
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16846 $as_echo "$ld_shlibs" >&6; }
16847 test "$ld_shlibs" = no && can_build_shared=no
16849 with_gnu_ld=$with_gnu_ld
16866 # Do we need to explicitly link libc?
16868 case "x$archive_cmds_need_lc" in
16869 x|xyes)
16870 # Assume -lc should be added
16871 archive_cmds_need_lc=yes
16873 if test "$enable_shared" = yes && test "$GCC" = yes; then
16874 case $archive_cmds in
16875 *'~'*)
16876 # FIXME: we may have to deal with multi-command sequences.
16878 '$CC '*)
16879 # Test whether the compiler implicitly links with -lc since on some
16880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16881 # to ld, don't add -lc before -lgcc.
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16883 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16884 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16885 $as_echo_n "(cached) " >&6
16886 else
16887 $RM conftest*
16888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16891 (eval $ac_compile) 2>&5
16892 ac_status=$?
16893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16894 test $ac_status = 0; } 2>conftest.err; then
16895 soname=conftest
16896 lib=conftest
16897 libobjs=conftest.$ac_objext
16898 deplibs=
16899 wl=$lt_prog_compiler_wl
16900 pic_flag=$lt_prog_compiler_pic
16901 compiler_flags=-v
16902 linker_flags=-v
16903 verstring=
16904 output_objdir=.
16905 libname=conftest
16906 lt_save_allow_undefined_flag=$allow_undefined_flag
16907 allow_undefined_flag=
16908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16909 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16910 ac_status=$?
16911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16912 test $ac_status = 0; }
16913 then
16914 lt_cv_archive_cmds_need_lc=no
16915 else
16916 lt_cv_archive_cmds_need_lc=yes
16918 allow_undefined_flag=$lt_save_allow_undefined_flag
16919 else
16920 cat conftest.err 1>&5
16922 $RM conftest*
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16926 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16927 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16929 esac
16932 esac
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17091 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17093 if test "$GCC" = yes; then
17094 case $host_os in
17095 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17096 *) lt_awk_arg="/^libraries:/" ;;
17097 esac
17098 case $host_os in
17099 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17100 *) lt_sed_strip_eq="s,=/,/,g" ;;
17101 esac
17102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17103 case $lt_search_path_spec in
17104 *\;*)
17105 # if the path contains ";" then we assume it to be the separator
17106 # otherwise default to the standard path separator (i.e. ":") - it is
17107 # assumed that no part of a normal pathname contains ";" but that should
17108 # okay in the real world where ";" in dirpaths is itself problematic.
17109 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17112 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17114 esac
17115 # Ok, now we have the path, separated by spaces, we can step through it
17116 # and add multilib dir if necessary.
17117 lt_tmp_lt_search_path_spec=
17118 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17119 for lt_sys_path in $lt_search_path_spec; do
17120 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17122 else
17123 test -d "$lt_sys_path" && \
17124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17126 done
17127 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17128 BEGIN {RS=" "; FS="/|\n";} {
17129 lt_foo="";
17130 lt_count=0;
17131 for (lt_i = NF; lt_i > 0; lt_i--) {
17132 if ($lt_i != "" && $lt_i != ".") {
17133 if ($lt_i == "..") {
17134 lt_count++;
17135 } else {
17136 if (lt_count == 0) {
17137 lt_foo="/" $lt_i lt_foo;
17138 } else {
17139 lt_count--;
17144 if (lt_foo != "") { lt_freq[lt_foo]++; }
17145 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17147 # AWK program above erroneously prepends '/' to C:/dos/paths
17148 # for these hosts.
17149 case $host_os in
17150 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17151 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17152 esac
17153 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17154 else
17155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17157 library_names_spec=
17158 libname_spec='lib$name'
17159 soname_spec=
17160 shrext_cmds=".so"
17161 postinstall_cmds=
17162 postuninstall_cmds=
17163 finish_cmds=
17164 finish_eval=
17165 shlibpath_var=
17166 shlibpath_overrides_runpath=unknown
17167 version_type=none
17168 dynamic_linker="$host_os ld.so"
17169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17170 need_lib_prefix=unknown
17171 hardcode_into_libs=no
17173 # when you set need_version to no, make sure it does not cause -set_version
17174 # flags to be left without arguments
17175 need_version=unknown
17177 case $host_os in
17178 aix3*)
17179 version_type=linux
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17181 shlibpath_var=LIBPATH
17183 # AIX 3 has no versioning support, so we append a major version to the name.
17184 soname_spec='${libname}${release}${shared_ext}$major'
17187 aix[4-9]*)
17188 version_type=linux
17189 need_lib_prefix=no
17190 need_version=no
17191 hardcode_into_libs=yes
17192 if test "$host_cpu" = ia64; then
17193 # AIX 5 supports IA64
17194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 else
17197 # With GCC up to 2.95.x, collect2 would create an import file
17198 # for dependence libraries. The import file would start with
17199 # the line `#! .'. This would cause the generated library to
17200 # depend on `.', always an invalid library. This was fixed in
17201 # development snapshots of GCC prior to 3.0.
17202 case $host_os in
17203 aix4 | aix4.[01] | aix4.[01].*)
17204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17205 echo ' yes '
17206 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17208 else
17209 can_build_shared=no
17212 esac
17213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17214 # soname into executable. Probably we can add versioning support to
17215 # collect2, so additional links can be useful in future.
17216 if test "$aix_use_runtimelinking" = yes; then
17217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17218 # instead of lib<name>.a to let people know that these are not
17219 # typical AIX shared libraries.
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 else
17222 # We preserve .a as extension for shared libraries through AIX4.2
17223 # and later when we are not doing run time linking.
17224 library_names_spec='${libname}${release}.a $libname.a'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LIBPATH
17231 amigaos*)
17232 case $host_cpu in
17233 powerpc)
17234 # Since July 2007 AmigaOS4 officially supports .so libraries.
17235 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 m68k)
17239 library_names_spec='$libname.ixlibrary $libname.a'
17240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17241 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'
17243 esac
17246 beos*)
17247 library_names_spec='${libname}${shared_ext}'
17248 dynamic_linker="$host_os ld.so"
17249 shlibpath_var=LIBRARY_PATH
17252 bsdi[45]*)
17253 version_type=linux
17254 need_version=no
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17261 # the default ld.so.conf also contains /usr/contrib/lib and
17262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17263 # libtool to hard-code these into programs
17266 cygwin* | mingw* | pw32* | cegcc*)
17267 version_type=windows
17268 shrext_cmds=".dll"
17269 need_version=no
17270 need_lib_prefix=no
17272 case $GCC,$host_os in
17273 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17274 library_names_spec='$libname.dll.a'
17275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17276 postinstall_cmds='base_file=`basename \${file}`~
17277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17278 dldir=$destdir/`dirname \$dlpath`~
17279 test -d \$dldir || mkdir -p \$dldir~
17280 $install_prog $dir/$dlname \$dldir/$dlname~
17281 chmod a+x \$dldir/$dlname~
17282 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17283 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286 dlpath=$dir/\$dldll~
17287 $RM \$dlpath'
17288 shlibpath_overrides_runpath=yes
17290 case $host_os in
17291 cygwin*)
17292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17295 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17297 mingw* | cegcc*)
17298 # MinGW DLLs use traditional 'lib' prefix
17299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17301 pw32*)
17302 # pw32 DLLs use 'pw' prefix rather than 'lib'
17303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17305 esac
17309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17311 esac
17312 dynamic_linker='Win32 ld.exe'
17313 # FIXME: first we should search . and the directory the executable is in
17314 shlibpath_var=PATH
17317 darwin* | rhapsody*)
17318 dynamic_linker="$host_os dyld"
17319 version_type=darwin
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17323 soname_spec='${libname}${release}${major}$shared_ext'
17324 shlibpath_overrides_runpath=yes
17325 shlibpath_var=DYLD_LIBRARY_PATH
17326 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17332 dgux*)
17333 version_type=linux
17334 need_lib_prefix=no
17335 need_version=no
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 shlibpath_var=LD_LIBRARY_PATH
17341 freebsd* | dragonfly*)
17342 # DragonFly does not have aout. When/if they implement a new
17343 # versioning mechanism, adjust this.
17344 if test -x /usr/bin/objformat; then
17345 objformat=`/usr/bin/objformat`
17346 else
17347 case $host_os in
17348 freebsd[23].*) objformat=aout ;;
17349 *) objformat=elf ;;
17350 esac
17352 version_type=freebsd-$objformat
17353 case $version_type in
17354 freebsd-elf*)
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17356 need_version=no
17357 need_lib_prefix=no
17359 freebsd-*)
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17361 need_version=yes
17363 esac
17364 shlibpath_var=LD_LIBRARY_PATH
17365 case $host_os in
17366 freebsd2.*)
17367 shlibpath_overrides_runpath=yes
17369 freebsd3.[01]* | freebsdelf3.[01]*)
17370 shlibpath_overrides_runpath=yes
17371 hardcode_into_libs=yes
17373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17375 shlibpath_overrides_runpath=no
17376 hardcode_into_libs=yes
17378 *) # from 4.6 on, and DragonFly
17379 shlibpath_overrides_runpath=yes
17380 hardcode_into_libs=yes
17382 esac
17385 gnu*)
17386 version_type=linux
17387 need_lib_prefix=no
17388 need_version=no
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17390 soname_spec='${libname}${release}${shared_ext}$major'
17391 shlibpath_var=LD_LIBRARY_PATH
17392 hardcode_into_libs=yes
17395 haiku*)
17396 version_type=linux
17397 need_lib_prefix=no
17398 need_version=no
17399 dynamic_linker="$host_os runtime_loader"
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LIBRARY_PATH
17403 shlibpath_overrides_runpath=yes
17404 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17405 hardcode_into_libs=yes
17408 hpux9* | hpux10* | hpux11*)
17409 # Give a soname corresponding to the major version so that dld.sl refuses to
17410 # link against other versions.
17411 version_type=sunos
17412 need_lib_prefix=no
17413 need_version=no
17414 case $host_cpu in
17415 ia64*)
17416 shrext_cmds='.so'
17417 hardcode_into_libs=yes
17418 dynamic_linker="$host_os dld.so"
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422 soname_spec='${libname}${release}${shared_ext}$major'
17423 if test "X$HPUX_IA64_MODE" = X32; then
17424 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17425 else
17426 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17430 hppa*64*)
17431 shrext_cmds='.sl'
17432 hardcode_into_libs=yes
17433 dynamic_linker="$host_os dld.sl"
17434 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17442 shrext_cmds='.sl'
17443 dynamic_linker="$host_os dld.sl"
17444 shlibpath_var=SHLIB_PATH
17445 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 soname_spec='${libname}${release}${shared_ext}$major'
17449 esac
17450 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17451 postinstall_cmds='chmod 555 $lib'
17452 # or fails outright, so override atomically:
17453 install_override_mode=555
17456 interix[3-9]*)
17457 version_type=linux
17458 need_lib_prefix=no
17459 need_version=no
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=no
17465 hardcode_into_libs=yes
17468 irix5* | irix6* | nonstopux*)
17469 case $host_os in
17470 nonstopux*) version_type=nonstopux ;;
17472 if test "$lt_cv_prog_gnu_ld" = yes; then
17473 version_type=linux
17474 else
17475 version_type=irix
17476 fi ;;
17477 esac
17478 need_lib_prefix=no
17479 need_version=no
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17482 case $host_os in
17483 irix5* | nonstopux*)
17484 libsuff= shlibsuff=
17487 case $LD in # libtool.m4 will add one of these switches to LD
17488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17489 libsuff= shlibsuff= libmagic=32-bit;;
17490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17491 libsuff=32 shlibsuff=N32 libmagic=N32;;
17492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17493 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17494 *) libsuff= shlibsuff= libmagic=never-match;;
17495 esac
17497 esac
17498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17499 shlibpath_overrides_runpath=no
17500 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17501 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17502 hardcode_into_libs=yes
17505 # No shared lib support for Linux oldld, aout, or coff.
17506 linux*oldld* | linux*aout* | linux*coff*)
17507 dynamic_linker=no
17510 # This must be Linux ELF.
17511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17512 version_type=linux
17513 need_lib_prefix=no
17514 need_version=no
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516 soname_spec='${libname}${release}${shared_ext}$major'
17517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=no
17521 # Some binutils ld are patched to set DT_RUNPATH
17522 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17523 $as_echo_n "(cached) " >&6
17524 else
17525 lt_cv_shlibpath_overrides_runpath=no
17526 save_LDFLAGS=$LDFLAGS
17527 save_libdir=$libdir
17528 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17529 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17534 main ()
17538 return 0;
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17543 lt_cv_shlibpath_overrides_runpath=yes
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LDFLAGS=$save_LDFLAGS
17549 libdir=$save_libdir
17553 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17555 # This implies no fast_install, which is unacceptable.
17556 # Some rework will be needed to allow for fast_install
17557 # before this can be enabled.
17558 hardcode_into_libs=yes
17560 # Append ld.so.conf contents to the search path
17561 if test -f /etc/ld.so.conf; then
17562 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' ' '`
17563 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17566 # We used to test for /lib/ld.so.1 and disable shared libraries on
17567 # powerpc, because MkLinux only supported shared libraries with the
17568 # GNU dynamic linker. Since this was broken with cross compilers,
17569 # most powerpc-linux boxes support dynamic linking these days and
17570 # people can always --disable-shared, the test was removed, and we
17571 # assume the GNU/Linux dynamic linker is in use.
17572 dynamic_linker='GNU/Linux ld.so'
17575 netbsd*)
17576 version_type=sunos
17577 need_lib_prefix=no
17578 need_version=no
17579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17582 dynamic_linker='NetBSD (a.out) ld.so'
17583 else
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17586 dynamic_linker='NetBSD ld.elf_so'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=yes
17590 hardcode_into_libs=yes
17593 newsos6)
17594 version_type=linux
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=yes
17600 *nto* | *qnx*)
17601 version_type=qnx
17602 need_lib_prefix=no
17603 need_version=no
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17605 soname_spec='${libname}${release}${shared_ext}$major'
17606 shlibpath_var=LD_LIBRARY_PATH
17607 shlibpath_overrides_runpath=no
17608 hardcode_into_libs=yes
17609 dynamic_linker='ldqnx.so'
17612 openbsd*)
17613 version_type=sunos
17614 sys_lib_dlsearch_path_spec="/usr/lib"
17615 need_lib_prefix=no
17616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17617 case $host_os in
17618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17619 *) need_version=no ;;
17620 esac
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17625 case $host_os in
17626 openbsd2.[89] | openbsd2.[89].*)
17627 shlibpath_overrides_runpath=no
17630 shlibpath_overrides_runpath=yes
17632 esac
17633 else
17634 shlibpath_overrides_runpath=yes
17638 os2*)
17639 libname_spec='$name'
17640 shrext_cmds=".dll"
17641 need_lib_prefix=no
17642 library_names_spec='$libname${shared_ext} $libname.a'
17643 dynamic_linker='OS/2 ld.exe'
17644 shlibpath_var=LIBPATH
17647 osf3* | osf4* | osf5*)
17648 version_type=osf
17649 need_lib_prefix=no
17650 need_version=no
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17658 rdos*)
17659 dynamic_linker=no
17662 solaris*)
17663 version_type=linux
17664 need_lib_prefix=no
17665 need_version=no
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 shlibpath_var=LD_LIBRARY_PATH
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17671 # ldd complains unless libraries are executable
17672 postinstall_cmds='chmod +x $lib'
17675 sunos4*)
17676 version_type=sunos
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath=yes
17681 if test "$with_gnu_ld" = yes; then
17682 need_lib_prefix=no
17684 need_version=yes
17687 sysv4 | sysv4.3*)
17688 version_type=linux
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 case $host_vendor in
17693 sni)
17694 shlibpath_overrides_runpath=no
17695 need_lib_prefix=no
17696 runpath_var=LD_RUN_PATH
17698 siemens)
17699 need_lib_prefix=no
17701 motorola)
17702 need_lib_prefix=no
17703 need_version=no
17704 shlibpath_overrides_runpath=no
17705 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17707 esac
17710 sysv4*MP*)
17711 if test -d /usr/nec ;then
17712 version_type=linux
17713 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17714 soname_spec='$libname${shared_ext}.$major'
17715 shlibpath_var=LD_LIBRARY_PATH
17719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17720 version_type=freebsd-elf
17721 need_lib_prefix=no
17722 need_version=no
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 shlibpath_overrides_runpath=yes
17727 hardcode_into_libs=yes
17728 if test "$with_gnu_ld" = yes; then
17729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17730 else
17731 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17732 case $host_os in
17733 sco3.2v5*)
17734 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17736 esac
17738 sys_lib_dlsearch_path_spec='/usr/lib'
17741 tpf*)
17742 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17743 version_type=linux
17744 need_lib_prefix=no
17745 need_version=no
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=no
17749 hardcode_into_libs=yes
17752 uts4*)
17753 version_type=linux
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 shlibpath_var=LD_LIBRARY_PATH
17760 dynamic_linker=no
17762 esac
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17764 $as_echo "$dynamic_linker" >&6; }
17765 test "$dynamic_linker" = no && can_build_shared=no
17767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17768 if test "$GCC" = yes; then
17769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17772 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17773 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17775 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17776 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17871 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17872 hardcode_action=
17873 if test -n "$hardcode_libdir_flag_spec" ||
17874 test -n "$runpath_var" ||
17875 test "X$hardcode_automatic" = "Xyes" ; then
17877 # We can hardcode non-existent directories.
17878 if test "$hardcode_direct" != no &&
17879 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17880 # have to relink, otherwise we might link with an installed library
17881 # when we should be linking with a yet-to-be-installed one
17882 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17883 test "$hardcode_minus_L" != no; then
17884 # Linking always hardcodes the temporary library directory.
17885 hardcode_action=relink
17886 else
17887 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17888 hardcode_action=immediate
17890 else
17891 # We cannot hardcode anything, or else we can only hardcode existing
17892 # directories.
17893 hardcode_action=unsupported
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17896 $as_echo "$hardcode_action" >&6; }
17898 if test "$hardcode_action" = relink ||
17899 test "$inherit_rpath" = yes; then
17900 # Fast installation is not supported
17901 enable_fast_install=no
17902 elif test "$shlibpath_overrides_runpath" = yes ||
17903 test "$enable_shared" = no; then
17904 # Fast installation is not necessary
17905 enable_fast_install=needless
17913 if test "x$enable_dlopen" != xyes; then
17914 enable_dlopen=unknown
17915 enable_dlopen_self=unknown
17916 enable_dlopen_self_static=unknown
17917 else
17918 lt_cv_dlopen=no
17919 lt_cv_dlopen_libs=
17921 case $host_os in
17922 beos*)
17923 lt_cv_dlopen="load_add_on"
17924 lt_cv_dlopen_libs=
17925 lt_cv_dlopen_self=yes
17928 mingw* | pw32* | cegcc*)
17929 lt_cv_dlopen="LoadLibrary"
17930 lt_cv_dlopen_libs=
17933 cygwin*)
17934 lt_cv_dlopen="dlopen"
17935 lt_cv_dlopen_libs=
17938 darwin*)
17939 # if libdl is installed we need to link against it
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17943 $as_echo_n "(cached) " >&6
17944 else
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ldl $LIBS"
17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h. */
17950 /* Override any GCC internal prototype to avoid an error.
17951 Use char because int might match the return type of a GCC
17952 builtin and then its argument prototype would still apply. */
17953 #ifdef __cplusplus
17954 extern "C"
17955 #endif
17956 char dlopen ();
17958 main ()
17960 return dlopen ();
17962 return 0;
17964 _ACEOF
17965 if ac_fn_c_try_link "$LINENO"; then :
17966 ac_cv_lib_dl_dlopen=yes
17967 else
17968 ac_cv_lib_dl_dlopen=no
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17976 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17978 else
17980 lt_cv_dlopen="dyld"
17981 lt_cv_dlopen_libs=
17982 lt_cv_dlopen_self=yes
17989 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17990 if test "x$ac_cv_func_shl_load" = x""yes; then :
17991 lt_cv_dlopen="shl_load"
17992 else
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17994 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17997 else
17998 ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-ldld $LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char shl_load ();
18011 main ()
18013 return shl_load ();
18015 return 0;
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 ac_cv_lib_dld_shl_load=yes
18020 else
18021 ac_cv_lib_dld_shl_load=no
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18028 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18029 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18030 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18031 else
18032 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18033 if test "x$ac_cv_func_dlopen" = x""yes; then :
18034 lt_cv_dlopen="dlopen"
18035 else
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18037 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18040 else
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-ldl $LIBS"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18049 #ifdef __cplusplus
18050 extern "C"
18051 #endif
18052 char dlopen ();
18054 main ()
18056 return dlopen ();
18058 return 0;
18060 _ACEOF
18061 if ac_fn_c_try_link "$LINENO"; then :
18062 ac_cv_lib_dl_dlopen=yes
18063 else
18064 ac_cv_lib_dl_dlopen=no
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18071 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18072 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18074 else
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18076 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18078 $as_echo_n "(cached) " >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lsvld $LIBS"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char dlopen ();
18093 main ()
18095 return dlopen ();
18097 return 0;
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"; then :
18101 ac_cv_lib_svld_dlopen=yes
18102 else
18103 ac_cv_lib_svld_dlopen=no
18105 rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18110 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18111 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18113 else
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18115 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18116 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-ldld $LIBS"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char dld_link ();
18132 main ()
18134 return dld_link ();
18136 return 0;
18138 _ACEOF
18139 if ac_fn_c_try_link "$LINENO"; then :
18140 ac_cv_lib_dld_dld_link=yes
18141 else
18142 ac_cv_lib_dld_dld_link=no
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18149 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18150 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18170 esac
18172 if test "x$lt_cv_dlopen" != xno; then
18173 enable_dlopen=yes
18174 else
18175 enable_dlopen=no
18178 case $lt_cv_dlopen in
18179 dlopen)
18180 save_CPPFLAGS="$CPPFLAGS"
18181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18183 save_LDFLAGS="$LDFLAGS"
18184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18186 save_LIBS="$LIBS"
18187 LIBS="$lt_cv_dlopen_libs $LIBS"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18190 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18191 if test "${lt_cv_dlopen_self+set}" = set; then :
18192 $as_echo_n "(cached) " >&6
18193 else
18194 if test "$cross_compiling" = yes; then :
18195 lt_cv_dlopen_self=cross
18196 else
18197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18198 lt_status=$lt_dlunknown
18199 cat > conftest.$ac_ext <<_LT_EOF
18200 #line 18200 "configure"
18201 #include "confdefs.h"
18203 #if HAVE_DLFCN_H
18204 #include <dlfcn.h>
18205 #endif
18207 #include <stdio.h>
18209 #ifdef RTLD_GLOBAL
18210 # define LT_DLGLOBAL RTLD_GLOBAL
18211 #else
18212 # ifdef DL_GLOBAL
18213 # define LT_DLGLOBAL DL_GLOBAL
18214 # else
18215 # define LT_DLGLOBAL 0
18216 # endif
18217 #endif
18219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18220 find out it does not work in some platform. */
18221 #ifndef LT_DLLAZY_OR_NOW
18222 # ifdef RTLD_LAZY
18223 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18224 # else
18225 # ifdef DL_LAZY
18226 # define LT_DLLAZY_OR_NOW DL_LAZY
18227 # else
18228 # ifdef RTLD_NOW
18229 # define LT_DLLAZY_OR_NOW RTLD_NOW
18230 # else
18231 # ifdef DL_NOW
18232 # define LT_DLLAZY_OR_NOW DL_NOW
18233 # else
18234 # define LT_DLLAZY_OR_NOW 0
18235 # endif
18236 # endif
18237 # endif
18238 # endif
18239 #endif
18241 /* When -fvisbility=hidden is used, assume the code has been annotated
18242 correspondingly for the symbols needed. */
18243 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18244 void fnord () __attribute__((visibility("default")));
18245 #endif
18247 void fnord () { int i=42; }
18248 int main ()
18250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18251 int status = $lt_dlunknown;
18253 if (self)
18255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18256 else
18258 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18259 else puts (dlerror ());
18261 /* dlclose (self); */
18263 else
18264 puts (dlerror ());
18266 return status;
18268 _LT_EOF
18269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18270 (eval $ac_link) 2>&5
18271 ac_status=$?
18272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18273 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18274 (./conftest; exit; ) >&5 2>/dev/null
18275 lt_status=$?
18276 case x$lt_status in
18277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18279 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18280 esac
18281 else :
18282 # compilation failed
18283 lt_cv_dlopen_self=no
18286 rm -fr conftest*
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18291 $as_echo "$lt_cv_dlopen_self" >&6; }
18293 if test "x$lt_cv_dlopen_self" = xyes; then
18294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18296 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18297 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 if test "$cross_compiling" = yes; then :
18301 lt_cv_dlopen_self_static=cross
18302 else
18303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18304 lt_status=$lt_dlunknown
18305 cat > conftest.$ac_ext <<_LT_EOF
18306 #line 18306 "configure"
18307 #include "confdefs.h"
18309 #if HAVE_DLFCN_H
18310 #include <dlfcn.h>
18311 #endif
18313 #include <stdio.h>
18315 #ifdef RTLD_GLOBAL
18316 # define LT_DLGLOBAL RTLD_GLOBAL
18317 #else
18318 # ifdef DL_GLOBAL
18319 # define LT_DLGLOBAL DL_GLOBAL
18320 # else
18321 # define LT_DLGLOBAL 0
18322 # endif
18323 #endif
18325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18326 find out it does not work in some platform. */
18327 #ifndef LT_DLLAZY_OR_NOW
18328 # ifdef RTLD_LAZY
18329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18330 # else
18331 # ifdef DL_LAZY
18332 # define LT_DLLAZY_OR_NOW DL_LAZY
18333 # else
18334 # ifdef RTLD_NOW
18335 # define LT_DLLAZY_OR_NOW RTLD_NOW
18336 # else
18337 # ifdef DL_NOW
18338 # define LT_DLLAZY_OR_NOW DL_NOW
18339 # else
18340 # define LT_DLLAZY_OR_NOW 0
18341 # endif
18342 # endif
18343 # endif
18344 # endif
18345 #endif
18347 /* When -fvisbility=hidden is used, assume the code has been annotated
18348 correspondingly for the symbols needed. */
18349 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18350 void fnord () __attribute__((visibility("default")));
18351 #endif
18353 void fnord () { int i=42; }
18354 int main ()
18356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18357 int status = $lt_dlunknown;
18359 if (self)
18361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18362 else
18364 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18365 else puts (dlerror ());
18367 /* dlclose (self); */
18369 else
18370 puts (dlerror ());
18372 return status;
18374 _LT_EOF
18375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18376 (eval $ac_link) 2>&5
18377 ac_status=$?
18378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18379 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18380 (./conftest; exit; ) >&5 2>/dev/null
18381 lt_status=$?
18382 case x$lt_status in
18383 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18384 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18385 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18386 esac
18387 else :
18388 # compilation failed
18389 lt_cv_dlopen_self_static=no
18392 rm -fr conftest*
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18397 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18400 CPPFLAGS="$save_CPPFLAGS"
18401 LDFLAGS="$save_LDFLAGS"
18402 LIBS="$save_LIBS"
18404 esac
18406 case $lt_cv_dlopen_self in
18407 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18408 *) enable_dlopen_self=unknown ;;
18409 esac
18411 case $lt_cv_dlopen_self_static in
18412 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18413 *) enable_dlopen_self_static=unknown ;;
18414 esac
18433 striplib=
18434 old_striplib=
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18436 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18437 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18438 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18439 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18441 $as_echo "yes" >&6; }
18442 else
18443 # FIXME - insert some real tests, host_os isn't really good enough
18444 case $host_os in
18445 darwin*)
18446 if test -n "$STRIP" ; then
18447 striplib="$STRIP -x"
18448 old_striplib="$STRIP -S"
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450 $as_echo "yes" >&6; }
18451 else
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18453 $as_echo "no" >&6; }
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 $as_echo "no" >&6; }
18460 esac
18474 # Report which library types will actually be built
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18476 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18478 $as_echo "$can_build_shared" >&6; }
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18481 $as_echo_n "checking whether to build shared libraries... " >&6; }
18482 test "$can_build_shared" = "no" && enable_shared=no
18484 # On AIX, shared libraries and static libraries use the same namespace, and
18485 # are all built from PIC.
18486 case $host_os in
18487 aix3*)
18488 test "$enable_shared" = yes && enable_static=no
18489 if test -n "$RANLIB"; then
18490 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18491 postinstall_cmds='$RANLIB $lib'
18495 aix[4-9]*)
18496 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18497 test "$enable_shared" = yes && enable_static=no
18500 esac
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18502 $as_echo "$enable_shared" >&6; }
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18505 $as_echo_n "checking whether to build static libraries... " >&6; }
18506 # Make sure either enable_shared or enable_static is yes.
18507 test "$enable_shared" = yes || enable_static=yes
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18509 $as_echo "$enable_static" >&6; }
18515 ac_ext=cpp
18516 ac_cpp='$CXXCPP $CPPFLAGS'
18517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18521 CC="$lt_save_CC"
18523 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18524 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18525 (test "X$CXX" != "Xg++"))) ; then
18526 ac_ext=cpp
18527 ac_cpp='$CXXCPP $CPPFLAGS'
18528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18532 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18533 if test -z "$CXXCPP"; then
18534 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18535 $as_echo_n "(cached) " >&6
18536 else
18537 # Double quotes because CXXCPP needs to be expanded
18538 for CXXCPP in "$CXX -E" "/lib/cpp"
18540 ac_preproc_ok=false
18541 for ac_cxx_preproc_warn_flag in '' yes
18543 # Use a header file that comes with gcc, so configuring glibc
18544 # with a fresh cross-compiler works.
18545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18546 # <limits.h> exists even on freestanding compilers.
18547 # On the NeXT, cc -E runs the code through the compiler's parser,
18548 # not just through cpp. "Syntax error" is here to catch this case.
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550 /* end confdefs.h. */
18551 #ifdef __STDC__
18552 # include <limits.h>
18553 #else
18554 # include <assert.h>
18555 #endif
18556 Syntax error
18557 _ACEOF
18558 if ac_fn_cxx_try_cpp "$LINENO"; then :
18560 else
18561 # Broken: fails on valid input.
18562 continue
18564 rm -f conftest.err conftest.$ac_ext
18566 # OK, works on sane cases. Now check whether nonexistent headers
18567 # can be detected and how.
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h. */
18570 #include <ac_nonexistent.h>
18571 _ACEOF
18572 if ac_fn_cxx_try_cpp "$LINENO"; then :
18573 # Broken: success on invalid input.
18574 continue
18575 else
18576 # Passes both tests.
18577 ac_preproc_ok=:
18578 break
18580 rm -f conftest.err conftest.$ac_ext
18582 done
18583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18584 rm -f conftest.err conftest.$ac_ext
18585 if $ac_preproc_ok; then :
18586 break
18589 done
18590 ac_cv_prog_CXXCPP=$CXXCPP
18593 CXXCPP=$ac_cv_prog_CXXCPP
18594 else
18595 ac_cv_prog_CXXCPP=$CXXCPP
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18598 $as_echo "$CXXCPP" >&6; }
18599 ac_preproc_ok=false
18600 for ac_cxx_preproc_warn_flag in '' yes
18602 # Use a header file that comes with gcc, so configuring glibc
18603 # with a fresh cross-compiler works.
18604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 # <limits.h> exists even on freestanding compilers.
18606 # On the NeXT, cc -E runs the code through the compiler's parser,
18607 # not just through cpp. "Syntax error" is here to catch this case.
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18610 #ifdef __STDC__
18611 # include <limits.h>
18612 #else
18613 # include <assert.h>
18614 #endif
18615 Syntax error
18616 _ACEOF
18617 if ac_fn_cxx_try_cpp "$LINENO"; then :
18619 else
18620 # Broken: fails on valid input.
18621 continue
18623 rm -f conftest.err conftest.$ac_ext
18625 # OK, works on sane cases. Now check whether nonexistent headers
18626 # can be detected and how.
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18629 #include <ac_nonexistent.h>
18630 _ACEOF
18631 if ac_fn_cxx_try_cpp "$LINENO"; then :
18632 # Broken: success on invalid input.
18633 continue
18634 else
18635 # Passes both tests.
18636 ac_preproc_ok=:
18637 break
18639 rm -f conftest.err conftest.$ac_ext
18641 done
18642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18643 rm -f conftest.err conftest.$ac_ext
18644 if $ac_preproc_ok; then :
18646 else
18647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18649 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18650 See \`config.log' for more details." "$LINENO" 5; }
18653 ac_ext=cpp
18654 ac_cpp='$CXXCPP $CPPFLAGS'
18655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659 else
18660 _lt_caught_CXX_error=yes
18663 ac_ext=cpp
18664 ac_cpp='$CXXCPP $CPPFLAGS'
18665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18669 archive_cmds_need_lc_CXX=no
18670 allow_undefined_flag_CXX=
18671 always_export_symbols_CXX=no
18672 archive_expsym_cmds_CXX=
18673 compiler_needs_object_CXX=no
18674 export_dynamic_flag_spec_CXX=
18675 hardcode_direct_CXX=no
18676 hardcode_direct_absolute_CXX=no
18677 hardcode_libdir_flag_spec_CXX=
18678 hardcode_libdir_flag_spec_ld_CXX=
18679 hardcode_libdir_separator_CXX=
18680 hardcode_minus_L_CXX=no
18681 hardcode_shlibpath_var_CXX=unsupported
18682 hardcode_automatic_CXX=no
18683 inherit_rpath_CXX=no
18684 module_cmds_CXX=
18685 module_expsym_cmds_CXX=
18686 link_all_deplibs_CXX=unknown
18687 old_archive_cmds_CXX=$old_archive_cmds
18688 reload_flag_CXX=$reload_flag
18689 reload_cmds_CXX=$reload_cmds
18690 no_undefined_flag_CXX=
18691 whole_archive_flag_spec_CXX=
18692 enable_shared_with_static_runtimes_CXX=no
18694 # Source file extension for C++ test sources.
18695 ac_ext=cpp
18697 # Object file extension for compiled C++ test sources.
18698 objext=o
18699 objext_CXX=$objext
18701 # No sense in running all these tests if we already determined that
18702 # the CXX compiler isn't working. Some variables (like enable_shared)
18703 # are currently assumed to apply to all compilers on this platform,
18704 # and will be corrupted by setting them based on a non-working compiler.
18705 if test "$_lt_caught_CXX_error" != yes; then
18706 # Code to be used in simple compile tests
18707 lt_simple_compile_test_code="int some_variable = 0;"
18709 # Code to be used in simple link tests
18710 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18719 # If no C compiler was specified, use CC.
18720 LTCC=${LTCC-"$CC"}
18722 # If no C compiler flags were specified, use CFLAGS.
18723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18725 # Allow CC to be a program name with arguments.
18726 compiler=$CC
18729 # save warnings/boilerplate of simple test code
18730 ac_outfile=conftest.$ac_objext
18731 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18733 _lt_compiler_boilerplate=`cat conftest.err`
18734 $RM conftest*
18736 ac_outfile=conftest.$ac_objext
18737 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18739 _lt_linker_boilerplate=`cat conftest.err`
18740 $RM -r conftest*
18743 # Allow CC to be a program name with arguments.
18744 lt_save_CC=$CC
18745 lt_save_LD=$LD
18746 lt_save_GCC=$GCC
18747 GCC=$GXX
18748 lt_save_with_gnu_ld=$with_gnu_ld
18749 lt_save_path_LD=$lt_cv_path_LD
18750 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18751 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18752 else
18753 $as_unset lt_cv_prog_gnu_ld
18755 if test -n "${lt_cv_path_LDCXX+set}"; then
18756 lt_cv_path_LD=$lt_cv_path_LDCXX
18757 else
18758 $as_unset lt_cv_path_LD
18760 test -z "${LDCXX+set}" || LD=$LDCXX
18761 CC=${CXX-"c++"}
18762 compiler=$CC
18763 compiler_CXX=$CC
18764 for cc_temp in $compiler""; do
18765 case $cc_temp in
18766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18768 \-*) ;;
18769 *) break;;
18770 esac
18771 done
18772 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18775 if test -n "$compiler"; then
18776 # We don't want -fno-exception when compiling C++ code, so set the
18777 # no_builtin_flag separately
18778 if test "$GXX" = yes; then
18779 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18780 else
18781 lt_prog_compiler_no_builtin_flag_CXX=
18784 if test "$GXX" = yes; then
18785 # Set up default GNU C++ configuration
18789 # Check whether --with-gnu-ld was given.
18790 if test "${with_gnu_ld+set}" = set; then :
18791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18792 else
18793 with_gnu_ld=no
18796 ac_prog=ld
18797 if test "$GCC" = yes; then
18798 # Check if gcc -print-prog-name=ld gives a path.
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18800 $as_echo_n "checking for ld used by $CC... " >&6; }
18801 case $host in
18802 *-*-mingw*)
18803 # gcc leaves a trailing carriage return which upsets mingw
18804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18807 esac
18808 case $ac_prog in
18809 # Accept absolute paths.
18810 [\\/]* | ?:[\\/]*)
18811 re_direlt='/[^/][^/]*/\.\./'
18812 # Canonicalize the pathname of ld
18813 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18814 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18815 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18816 done
18817 test -z "$LD" && LD="$ac_prog"
18820 # If it fails, then pretend we aren't using GCC.
18821 ac_prog=ld
18824 # If it is relative, then search for the first ld in PATH.
18825 with_gnu_ld=unknown
18827 esac
18828 elif test "$with_gnu_ld" = yes; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18830 $as_echo_n "checking for GNU ld... " >&6; }
18831 else
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18833 $as_echo_n "checking for non-GNU ld... " >&6; }
18835 if test "${lt_cv_path_LD+set}" = set; then :
18836 $as_echo_n "(cached) " >&6
18837 else
18838 if test -z "$LD"; then
18839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18840 for ac_dir in $PATH; do
18841 IFS="$lt_save_ifs"
18842 test -z "$ac_dir" && ac_dir=.
18843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18844 lt_cv_path_LD="$ac_dir/$ac_prog"
18845 # Check to see if the program is GNU ld. I'd rather use --version,
18846 # but apparently some variants of GNU ld only accept -v.
18847 # Break only if it was the GNU/non-GNU ld that we prefer.
18848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18849 *GNU* | *'with BFD'*)
18850 test "$with_gnu_ld" != no && break
18853 test "$with_gnu_ld" != yes && break
18855 esac
18857 done
18858 IFS="$lt_save_ifs"
18859 else
18860 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18864 LD="$lt_cv_path_LD"
18865 if test -n "$LD"; then
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18867 $as_echo "$LD" >&6; }
18868 else
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18870 $as_echo "no" >&6; }
18872 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18875 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18876 $as_echo_n "(cached) " >&6
18877 else
18878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18879 case `$LD -v 2>&1 </dev/null` in
18880 *GNU* | *'with BFD'*)
18881 lt_cv_prog_gnu_ld=yes
18884 lt_cv_prog_gnu_ld=no
18886 esac
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18889 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18890 with_gnu_ld=$lt_cv_prog_gnu_ld
18898 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18899 # archiving commands below assume that GNU ld is being used.
18900 if test "$with_gnu_ld" = yes; then
18901 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902 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'
18904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18905 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18907 # If archive_cmds runs LD, not CC, wlarc should be empty
18908 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18909 # investigate it a little bit more. (MM)
18910 wlarc='${wl}'
18912 # ancient GNU ld didn't support --whole-archive et. al.
18913 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18914 $GREP 'no-whole-archive' > /dev/null; then
18915 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18916 else
18917 whole_archive_flag_spec_CXX=
18919 else
18920 with_gnu_ld=no
18921 wlarc=
18923 # A generic and very simple default shared library creation
18924 # command for GNU C++ for the case where it uses the native
18925 # linker, instead of GNU ld. If possible, this setting should
18926 # overridden to take advantage of the native linker features on
18927 # the platform it is being used on.
18928 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18931 # Commands to make compiler produce verbose output that lists
18932 # what "hidden" libraries, object files and flags are used when
18933 # linking a shared library.
18934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18936 else
18937 GXX=no
18938 with_gnu_ld=no
18939 wlarc=
18942 # PORTME: fill in a description of your system's C++ link characteristics
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18945 ld_shlibs_CXX=yes
18946 case $host_os in
18947 aix3*)
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18951 aix[4-9]*)
18952 if test "$host_cpu" = ia64; then
18953 # On IA64, the linker does run time linking by default, so we don't
18954 # have to do anything special.
18955 aix_use_runtimelinking=no
18956 exp_sym_flag='-Bexport'
18957 no_entry_flag=""
18958 else
18959 aix_use_runtimelinking=no
18961 # Test if we are trying to use run time linking or normal
18962 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18963 # need to do runtime linking.
18964 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18965 for ld_flag in $LDFLAGS; do
18966 case $ld_flag in
18967 *-brtl*)
18968 aix_use_runtimelinking=yes
18969 break
18971 esac
18972 done
18974 esac
18976 exp_sym_flag='-bexport'
18977 no_entry_flag='-bnoentry'
18980 # When large executables or shared objects are built, AIX ld can
18981 # have problems creating the table of contents. If linking a library
18982 # or program results in "error TOC overflow" add -mminimal-toc to
18983 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18984 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18986 archive_cmds_CXX=''
18987 hardcode_direct_CXX=yes
18988 hardcode_direct_absolute_CXX=yes
18989 hardcode_libdir_separator_CXX=':'
18990 link_all_deplibs_CXX=yes
18991 file_list_spec_CXX='${wl}-f,'
18993 if test "$GXX" = yes; then
18994 case $host_os in aix4.[012]|aix4.[012].*)
18995 # We only want to do this on AIX 4.2 and lower, the check
18996 # below for broken collect2 doesn't work under 4.3+
18997 collect2name=`${CC} -print-prog-name=collect2`
18998 if test -f "$collect2name" &&
18999 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19000 then
19001 # We have reworked collect2
19003 else
19004 # We have old collect2
19005 hardcode_direct_CXX=unsupported
19006 # It fails to find uninstalled libraries when the uninstalled
19007 # path is not listed in the libpath. Setting hardcode_minus_L
19008 # to unsupported forces relinking
19009 hardcode_minus_L_CXX=yes
19010 hardcode_libdir_flag_spec_CXX='-L$libdir'
19011 hardcode_libdir_separator_CXX=
19013 esac
19014 shared_flag='-shared'
19015 if test "$aix_use_runtimelinking" = yes; then
19016 shared_flag="$shared_flag "'${wl}-G'
19018 else
19019 # not using gcc
19020 if test "$host_cpu" = ia64; then
19021 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19022 # chokes on -Wl,-G. The following line is correct:
19023 shared_flag='-G'
19024 else
19025 if test "$aix_use_runtimelinking" = yes; then
19026 shared_flag='${wl}-G'
19027 else
19028 shared_flag='${wl}-bM:SRE'
19033 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19034 # It seems that -bexpall does not export symbols beginning with
19035 # underscore (_), so it is better to generate a list of symbols to
19036 # export.
19037 always_export_symbols_CXX=yes
19038 if test "$aix_use_runtimelinking" = yes; then
19039 # Warning - without using the other runtime loading flags (-brtl),
19040 # -berok will link without error, but may produce a broken library.
19041 allow_undefined_flag_CXX='-berok'
19042 # Determine the default libpath from the value encoded in an empty
19043 # executable.
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19048 main ()
19052 return 0;
19054 _ACEOF
19055 if ac_fn_cxx_try_link "$LINENO"; then :
19057 lt_aix_libpath_sed='
19058 /Import File Strings/,/^$/ {
19059 /^0/ {
19060 s/^0 *\(.*\)$/\1/
19064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19065 # Check for a 64-bit object if we didn't find anything.
19066 if test -z "$aix_libpath"; then
19067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19076 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"
19077 else
19078 if test "$host_cpu" = ia64; then
19079 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19080 allow_undefined_flag_CXX="-z nodefs"
19081 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"
19082 else
19083 # Determine the default libpath from the value encoded in an
19084 # empty executable.
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19089 main ()
19093 return 0;
19095 _ACEOF
19096 if ac_fn_cxx_try_link "$LINENO"; then :
19098 lt_aix_libpath_sed='
19099 /Import File Strings/,/^$/ {
19100 /^0/ {
19101 s/^0 *\(.*\)$/\1/
19105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19106 # Check for a 64-bit object if we didn't find anything.
19107 if test -z "$aix_libpath"; then
19108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19111 rm -f core conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
19113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19115 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19116 # Warning - without using the other run time loading flags,
19117 # -berok will link without error, but may produce a broken library.
19118 no_undefined_flag_CXX=' ${wl}-bernotok'
19119 allow_undefined_flag_CXX=' ${wl}-berok'
19120 if test "$with_gnu_ld" = yes; then
19121 # We only use this code for GNU lds that support --whole-archive.
19122 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19123 else
19124 # Exported symbols can be pulled into shared objects from archives
19125 whole_archive_flag_spec_CXX='$convenience'
19127 archive_cmds_need_lc_CXX=yes
19128 # This is similar to how AIX traditionally builds its shared
19129 # libraries.
19130 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'
19135 beos*)
19136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19137 allow_undefined_flag_CXX=unsupported
19138 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19139 # support --undefined. This deserves some investigation. FIXME
19140 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19141 else
19142 ld_shlibs_CXX=no
19146 chorus*)
19147 case $cc_basename in
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19152 esac
19155 cygwin* | mingw* | pw32* | cegcc*)
19156 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19157 # as there is no search path for DLLs.
19158 hardcode_libdir_flag_spec_CXX='-L$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19160 allow_undefined_flag_CXX=unsupported
19161 always_export_symbols_CXX=no
19162 enable_shared_with_static_runtimes_CXX=yes
19164 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19165 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'
19166 # If the export-symbols file already is a .def file (1st line
19167 # is EXPORTS), use it as is; otherwise, prepend...
19168 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19169 cp $export_symbols $output_objdir/$soname.def;
19170 else
19171 echo EXPORTS > $output_objdir/$soname.def;
19172 cat $export_symbols >> $output_objdir/$soname.def;
19174 $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'
19175 else
19176 ld_shlibs_CXX=no
19179 darwin* | rhapsody*)
19182 archive_cmds_need_lc_CXX=no
19183 hardcode_direct_CXX=no
19184 hardcode_automatic_CXX=yes
19185 hardcode_shlibpath_var_CXX=unsupported
19186 if test "$lt_cv_ld_force_load" = "yes"; then
19187 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\"`'
19188 else
19189 whole_archive_flag_spec_CXX=''
19191 link_all_deplibs_CXX=yes
19192 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19193 case $cc_basename in
19194 ifort*) _lt_dar_can_shared=yes ;;
19195 *) _lt_dar_can_shared=$GCC ;;
19196 esac
19197 if test "$_lt_dar_can_shared" = "yes"; then
19198 output_verbose_link_cmd=func_echo_all
19199 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}"
19200 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19201 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}"
19202 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}"
19203 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19204 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}"
19205 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}"
19208 else
19209 ld_shlibs_CXX=no
19214 dgux*)
19215 case $cc_basename in
19216 ec++*)
19217 # FIXME: insert proper C++ library support
19218 ld_shlibs_CXX=no
19220 ghcx*)
19221 # Green Hills C++ Compiler
19222 # FIXME: insert proper C++ library support
19223 ld_shlibs_CXX=no
19226 # FIXME: insert proper C++ library support
19227 ld_shlibs_CXX=no
19229 esac
19232 freebsd2.*)
19233 # C++ shared libraries reported to be fairly broken before
19234 # switch to ELF
19235 ld_shlibs_CXX=no
19238 freebsd-elf*)
19239 archive_cmds_need_lc_CXX=no
19242 freebsd* | dragonfly*)
19243 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19244 # conventions
19245 ld_shlibs_CXX=yes
19248 gnu*)
19251 haiku*)
19252 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19253 link_all_deplibs_CXX=yes
19256 hpux9*)
19257 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19258 hardcode_libdir_separator_CXX=:
19259 export_dynamic_flag_spec_CXX='${wl}-E'
19260 hardcode_direct_CXX=yes
19261 hardcode_minus_L_CXX=yes # Not in the search PATH,
19262 # but as the default
19263 # location of the library.
19265 case $cc_basename in
19266 CC*)
19267 # FIXME: insert proper C++ library support
19268 ld_shlibs_CXX=no
19270 aCC*)
19271 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'
19272 # Commands to make compiler produce verbose output that lists
19273 # what "hidden" libraries, object files and flags are used when
19274 # linking a shared library.
19276 # There doesn't appear to be a way to prevent this compiler from
19277 # explicitly linking system object files so we need to strip them
19278 # from the output so that they don't get included in the library
19279 # dependencies.
19280 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"'
19283 if test "$GXX" = yes; then
19284 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'
19285 else
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19290 esac
19293 hpux10*|hpux11*)
19294 if test $with_gnu_ld = no; then
19295 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19296 hardcode_libdir_separator_CXX=:
19298 case $host_cpu in
19299 hppa*64*|ia64*)
19302 export_dynamic_flag_spec_CXX='${wl}-E'
19304 esac
19306 case $host_cpu in
19307 hppa*64*|ia64*)
19308 hardcode_direct_CXX=no
19309 hardcode_shlibpath_var_CXX=no
19312 hardcode_direct_CXX=yes
19313 hardcode_direct_absolute_CXX=yes
19314 hardcode_minus_L_CXX=yes # Not in the search PATH,
19315 # but as the default
19316 # location of the library.
19318 esac
19320 case $cc_basename in
19321 CC*)
19322 # FIXME: insert proper C++ library support
19323 ld_shlibs_CXX=no
19325 aCC*)
19326 case $host_cpu in
19327 hppa*64*)
19328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19330 ia64*)
19331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19334 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19336 esac
19337 # Commands to make compiler produce verbose output that lists
19338 # what "hidden" libraries, object files and flags are used when
19339 # linking a shared library.
19341 # There doesn't appear to be a way to prevent this compiler from
19342 # explicitly linking system object files so we need to strip them
19343 # from the output so that they don't get included in the library
19344 # dependencies.
19345 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"'
19348 if test "$GXX" = yes; then
19349 if test $with_gnu_ld = no; then
19350 case $host_cpu in
19351 hppa*64*)
19352 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19354 ia64*)
19355 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19358 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'
19360 esac
19362 else
19363 # FIXME: insert proper C++ library support
19364 ld_shlibs_CXX=no
19367 esac
19370 interix[3-9]*)
19371 hardcode_direct_CXX=no
19372 hardcode_shlibpath_var_CXX=no
19373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19374 export_dynamic_flag_spec_CXX='${wl}-E'
19375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19376 # Instead, shared libraries are loaded at an image base (0x10000000 by
19377 # default) and relocated if they conflict, which is a slow very memory
19378 # consuming and fragmenting process. To avoid this, we pick a random,
19379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19381 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'
19382 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'
19384 irix5* | irix6*)
19385 case $cc_basename in
19386 CC*)
19387 # SGI C++
19388 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'
19390 # Archives containing C++ object files must be created using
19391 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19392 # necessary to make sure instantiated templates are included
19393 # in the archive.
19394 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19397 if test "$GXX" = yes; then
19398 if test "$with_gnu_ld" = no; then
19399 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'
19400 else
19401 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'
19404 link_all_deplibs_CXX=yes
19406 esac
19407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19408 hardcode_libdir_separator_CXX=:
19409 inherit_rpath_CXX=yes
19412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19413 case $cc_basename in
19414 KCC*)
19415 # Kuck and Associates, Inc. (KAI) C++ Compiler
19417 # KCC will only create a shared library if the output file
19418 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19419 # to its proper name (with version) after linking.
19420 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'
19421 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'
19422 # Commands to make compiler produce verbose output that lists
19423 # what "hidden" libraries, object files and flags are used when
19424 # linking a shared library.
19426 # There doesn't appear to be a way to prevent this compiler from
19427 # explicitly linking system object files so we need to strip them
19428 # from the output so that they don't get included in the library
19429 # dependencies.
19430 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"'
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435 # Archives containing C++ object files must be created using
19436 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19437 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19439 icpc* | ecpc* )
19440 # Intel C++
19441 with_gnu_ld=yes
19442 # version 8.0 and above of icpc choke on multiply defined symbols
19443 # if we add $predep_objects and $postdep_objects, however 7.1 and
19444 # earlier do not add the objects themselves.
19445 case `$CC -V 2>&1` in
19446 *"Version 7."*)
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19450 *) # Version 8.0 or newer
19451 tmp_idyn=
19452 case $host_cpu in
19453 ia64*) tmp_idyn=' -i_dynamic';;
19454 esac
19455 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19456 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'
19458 esac
19459 archive_cmds_need_lc_CXX=no
19460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19462 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19464 pgCC* | pgcpp*)
19465 # Portland Group C++ compiler
19466 case `$CC -V` in
19467 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19468 prelink_cmds_CXX='tpldir=Template.dir~
19469 rm -rf $tpldir~
19470 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19471 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19472 old_archive_cmds_CXX='tpldir=Template.dir~
19473 rm -rf $tpldir~
19474 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19475 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19476 $RANLIB $oldlib'
19477 archive_cmds_CXX='tpldir=Template.dir~
19478 rm -rf $tpldir~
19479 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19480 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19481 archive_expsym_cmds_CXX='tpldir=Template.dir~
19482 rm -rf $tpldir~
19483 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19484 $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'
19486 *) # Version 6 and above use weak symbols
19487 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19488 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'
19490 esac
19492 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19494 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'
19496 cxx*)
19497 # Compaq C++
19498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499 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'
19501 runpath_var=LD_RUN_PATH
19502 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19503 hardcode_libdir_separator_CXX=:
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19509 # There doesn't appear to be a way to prevent this compiler from
19510 # explicitly linking system object files so we need to strip them
19511 # from the output so that they don't get included in the library
19512 # dependencies.
19513 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'
19515 xl* | mpixl* | bgxl*)
19516 # IBM XL 8.0 on PPC, with GNU ld
19517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19519 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19520 if test "x$supports_anon_versioning" = xyes; then
19521 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19523 echo "local: *; };" >> $output_objdir/$libname.ver~
19524 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19528 case `$CC -V 2>&1 | sed 5q` in
19529 *Sun\ C*)
19530 # Sun C++ 5.9
19531 no_undefined_flag_CXX=' -zdefs'
19532 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19533 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'
19534 hardcode_libdir_flag_spec_CXX='-R$libdir'
19535 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'
19536 compiler_needs_object_CXX=yes
19538 # Not sure whether something based on
19539 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19540 # would be better.
19541 output_verbose_link_cmd='func_echo_all'
19543 # Archives containing C++ object files must be created using
19544 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19545 # necessary to make sure instantiated templates are included
19546 # in the archive.
19547 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19549 esac
19551 esac
19554 lynxos*)
19555 # FIXME: insert proper C++ library support
19556 ld_shlibs_CXX=no
19559 m88k*)
19560 # FIXME: insert proper C++ library support
19561 ld_shlibs_CXX=no
19564 mvs*)
19565 case $cc_basename in
19566 cxx*)
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19571 # FIXME: insert proper C++ library support
19572 ld_shlibs_CXX=no
19574 esac
19577 netbsd*)
19578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19579 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19580 wlarc=
19581 hardcode_libdir_flag_spec_CXX='-R$libdir'
19582 hardcode_direct_CXX=yes
19583 hardcode_shlibpath_var_CXX=no
19585 # Workaround some broken pre-1.5 toolchains
19586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19589 *nto* | *qnx*)
19590 ld_shlibs_CXX=yes
19593 openbsd2*)
19594 # C++ shared libraries are fairly broken
19595 ld_shlibs_CXX=no
19598 openbsd*)
19599 if test -f /usr/libexec/ld.so; then
19600 hardcode_direct_CXX=yes
19601 hardcode_shlibpath_var_CXX=no
19602 hardcode_direct_absolute_CXX=yes
19603 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19606 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19607 export_dynamic_flag_spec_CXX='${wl}-E'
19608 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19610 output_verbose_link_cmd=func_echo_all
19611 else
19612 ld_shlibs_CXX=no
19616 osf3* | osf4* | osf5*)
19617 case $cc_basename in
19618 KCC*)
19619 # Kuck and Associates, Inc. (KAI) C++ Compiler
19621 # KCC will only create a shared library if the output file
19622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19623 # to its proper name (with version) after linking.
19624 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'
19626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19627 hardcode_libdir_separator_CXX=:
19629 # Archives containing C++ object files must be created using
19630 # the KAI C++ compiler.
19631 case $host in
19632 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19633 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19634 esac
19636 RCC*)
19637 # Rational C++ 2.4.1
19638 # FIXME: insert proper C++ library support
19639 ld_shlibs_CXX=no
19641 cxx*)
19642 case $host in
19643 osf3*)
19644 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19645 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'
19646 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19649 allow_undefined_flag_CXX=' -expect_unresolved \*'
19650 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'
19651 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19652 echo "-hidden">> $lib.exp~
19653 $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~
19654 $RM $lib.exp'
19655 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19657 esac
19659 hardcode_libdir_separator_CXX=:
19661 # Commands to make compiler produce verbose output that lists
19662 # what "hidden" libraries, object files and flags are used when
19663 # linking a shared library.
19665 # There doesn't appear to be a way to prevent this compiler from
19666 # explicitly linking system object files so we need to strip them
19667 # from the output so that they don't get included in the library
19668 # dependencies.
19669 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"'
19672 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19673 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19674 case $host in
19675 osf3*)
19676 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'
19679 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'
19681 esac
19683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19684 hardcode_libdir_separator_CXX=:
19686 # Commands to make compiler produce verbose output that lists
19687 # what "hidden" libraries, object files and flags are used when
19688 # linking a shared library.
19689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19691 else
19692 # FIXME: insert proper C++ library support
19693 ld_shlibs_CXX=no
19696 esac
19699 psos*)
19700 # FIXME: insert proper C++ library support
19701 ld_shlibs_CXX=no
19704 sunos4*)
19705 case $cc_basename in
19706 CC*)
19707 # Sun C++ 4.x
19708 # FIXME: insert proper C++ library support
19709 ld_shlibs_CXX=no
19711 lcc*)
19712 # Lucid
19713 # FIXME: insert proper C++ library support
19714 ld_shlibs_CXX=no
19717 # FIXME: insert proper C++ library support
19718 ld_shlibs_CXX=no
19720 esac
19723 solaris*)
19724 case $cc_basename in
19725 CC*)
19726 # Sun C++ 4.2, 5.x and Centerline C++
19727 archive_cmds_need_lc_CXX=yes
19728 no_undefined_flag_CXX=' -zdefs'
19729 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19730 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19731 $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'
19733 hardcode_libdir_flag_spec_CXX='-R$libdir'
19734 hardcode_shlibpath_var_CXX=no
19735 case $host_os in
19736 solaris2.[0-5] | solaris2.[0-5].*) ;;
19738 # The compiler driver will combine and reorder linker options,
19739 # but understands `-z linker_flag'.
19740 # Supported since Solaris 2.6 (maybe 2.5.1?)
19741 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19743 esac
19744 link_all_deplibs_CXX=yes
19746 output_verbose_link_cmd='func_echo_all'
19748 # Archives containing C++ object files must be created using
19749 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19750 # necessary to make sure instantiated templates are included
19751 # in the archive.
19752 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19754 gcx*)
19755 # Green Hills C++ Compiler
19756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19758 # The C++ compiler must be used to create the archive.
19759 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19762 # GNU C++ compiler with Solaris linker
19763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19764 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19765 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19766 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19768 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19770 # Commands to make compiler produce verbose output that lists
19771 # what "hidden" libraries, object files and flags are used when
19772 # linking a shared library.
19773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19774 else
19775 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19776 # platform.
19777 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19778 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19779 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19781 # Commands to make compiler produce verbose output that lists
19782 # what "hidden" libraries, object files and flags are used when
19783 # linking a shared library.
19784 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19787 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19788 case $host_os in
19789 solaris2.[0-5] | solaris2.[0-5].*) ;;
19791 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19793 esac
19796 esac
19799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19800 no_undefined_flag_CXX='${wl}-z,text'
19801 archive_cmds_need_lc_CXX=no
19802 hardcode_shlibpath_var_CXX=no
19803 runpath_var='LD_RUN_PATH'
19805 case $cc_basename in
19806 CC*)
19807 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19808 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19812 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19814 esac
19817 sysv5* | sco3.2v5* | sco5v6*)
19818 # Note: We can NOT use -z defs as we might desire, because we do not
19819 # link with -lc, and that would cause any symbols used from libc to
19820 # always be unresolved, which means just about no library would
19821 # ever link correctly. If we're not using GNU ld we use -z text
19822 # though, which does catch some bad symbols but isn't as heavy-handed
19823 # as -z defs.
19824 no_undefined_flag_CXX='${wl}-z,text'
19825 allow_undefined_flag_CXX='${wl}-z,nodefs'
19826 archive_cmds_need_lc_CXX=no
19827 hardcode_shlibpath_var_CXX=no
19828 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19829 hardcode_libdir_separator_CXX=':'
19830 link_all_deplibs_CXX=yes
19831 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19832 runpath_var='LD_RUN_PATH'
19834 case $cc_basename in
19835 CC*)
19836 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19837 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19838 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19839 '"$old_archive_cmds_CXX"
19840 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19841 '"$reload_cmds_CXX"
19844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19847 esac
19850 tandem*)
19851 case $cc_basename in
19852 NCC*)
19853 # NonStop-UX NCC 3.20
19854 # FIXME: insert proper C++ library support
19855 ld_shlibs_CXX=no
19858 # FIXME: insert proper C++ library support
19859 ld_shlibs_CXX=no
19861 esac
19864 vxworks*)
19865 # FIXME: insert proper C++ library support
19866 ld_shlibs_CXX=no
19870 # FIXME: insert proper C++ library support
19871 ld_shlibs_CXX=no
19873 esac
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19876 $as_echo "$ld_shlibs_CXX" >&6; }
19877 test "$ld_shlibs_CXX" = no && can_build_shared=no
19879 GCC_CXX="$GXX"
19880 LD_CXX="$LD"
19882 ## CAVEAT EMPTOR:
19883 ## There is no encapsulation within the following macros, do not change
19884 ## the running order or otherwise move them around unless you know exactly
19885 ## what you are doing...
19886 # Dependencies to place before and after the object being linked:
19887 predep_objects_CXX=
19888 postdep_objects_CXX=
19889 predeps_CXX=
19890 postdeps_CXX=
19891 compiler_lib_search_path_CXX=
19893 cat > conftest.$ac_ext <<_LT_EOF
19894 class Foo
19896 public:
19897 Foo (void) { a = 0; }
19898 private:
19899 int a;
19901 _LT_EOF
19903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19904 (eval $ac_compile) 2>&5
19905 ac_status=$?
19906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19907 test $ac_status = 0; }; then
19908 # Parse the compiler output and extract the necessary
19909 # objects, libraries and library flags.
19911 # Sentinel used to keep track of whether or not we are before
19912 # the conftest object file.
19913 pre_test_object_deps_done=no
19915 for p in `eval "$output_verbose_link_cmd"`; do
19916 case $p in
19918 -L* | -R* | -l*)
19919 # Some compilers place space between "-{L,R}" and the path.
19920 # Remove the space.
19921 if test $p = "-L" ||
19922 test $p = "-R"; then
19923 prev=$p
19924 continue
19925 else
19926 prev=
19929 if test "$pre_test_object_deps_done" = no; then
19930 case $p in
19931 -L* | -R*)
19932 # Internal compiler library paths should come after those
19933 # provided the user. The postdeps already come after the
19934 # user supplied libs so there is no need to process them.
19935 if test -z "$compiler_lib_search_path_CXX"; then
19936 compiler_lib_search_path_CXX="${prev}${p}"
19937 else
19938 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19941 # The "-l" case would never come before the object being
19942 # linked, so don't bother handling this case.
19943 esac
19944 else
19945 if test -z "$postdeps_CXX"; then
19946 postdeps_CXX="${prev}${p}"
19947 else
19948 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19953 *.$objext)
19954 # This assumes that the test object file only shows up
19955 # once in the compiler output.
19956 if test "$p" = "conftest.$objext"; then
19957 pre_test_object_deps_done=yes
19958 continue
19961 if test "$pre_test_object_deps_done" = no; then
19962 if test -z "$predep_objects_CXX"; then
19963 predep_objects_CXX="$p"
19964 else
19965 predep_objects_CXX="$predep_objects_CXX $p"
19967 else
19968 if test -z "$postdep_objects_CXX"; then
19969 postdep_objects_CXX="$p"
19970 else
19971 postdep_objects_CXX="$postdep_objects_CXX $p"
19976 *) ;; # Ignore the rest.
19978 esac
19979 done
19981 # Clean up.
19982 rm -f a.out a.exe
19983 else
19984 echo "libtool.m4: error: problem compiling CXX test program"
19987 $RM -f confest.$objext
19989 # PORTME: override above test on systems where it is broken
19990 case $host_os in
19991 interix[3-9]*)
19992 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19993 # hack all around it, let's just trust "g++" to DTRT.
19994 predep_objects_CXX=
19995 postdep_objects_CXX=
19996 postdeps_CXX=
19999 linux*)
20000 case `$CC -V 2>&1 | sed 5q` in
20001 *Sun\ C*)
20002 # Sun C++ 5.9
20004 # The more standards-conforming stlport4 library is
20005 # incompatible with the Cstd library. Avoid specifying
20006 # it if it's in CXXFLAGS. Ignore libCrun as
20007 # -library=stlport4 depends on it.
20008 case " $CXX $CXXFLAGS " in
20009 *" -library=stlport4 "*)
20010 solaris_use_stlport4=yes
20012 esac
20014 if test "$solaris_use_stlport4" != yes; then
20015 postdeps_CXX='-library=Cstd -library=Crun'
20018 esac
20021 solaris*)
20022 case $cc_basename in
20023 CC*)
20024 # The more standards-conforming stlport4 library is
20025 # incompatible with the Cstd library. Avoid specifying
20026 # it if it's in CXXFLAGS. Ignore libCrun as
20027 # -library=stlport4 depends on it.
20028 case " $CXX $CXXFLAGS " in
20029 *" -library=stlport4 "*)
20030 solaris_use_stlport4=yes
20032 esac
20034 # Adding this requires a known-good setup of shared libraries for
20035 # Sun compiler versions before 5.6, else PIC objects from an old
20036 # archive will be linked into the output, leading to subtle bugs.
20037 if test "$solaris_use_stlport4" != yes; then
20038 postdeps_CXX='-library=Cstd -library=Crun'
20041 esac
20043 esac
20046 case " $postdeps_CXX " in
20047 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20048 esac
20049 compiler_lib_search_dirs_CXX=
20050 if test -n "${compiler_lib_search_path_CXX}"; then
20051 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20084 lt_prog_compiler_wl_CXX=
20085 lt_prog_compiler_pic_CXX=
20086 lt_prog_compiler_static_CXX=
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20091 # C++ specific cases for pic, static, wl, etc.
20092 if test "$GXX" = yes; then
20093 lt_prog_compiler_wl_CXX='-Wl,'
20094 lt_prog_compiler_static_CXX='-static'
20096 case $host_os in
20097 aix*)
20098 # All AIX code is PIC.
20099 if test "$host_cpu" = ia64; then
20100 # AIX 5 now supports IA64 processor
20101 lt_prog_compiler_static_CXX='-Bstatic'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20106 amigaos*)
20107 case $host_cpu in
20108 powerpc)
20109 # see comment about AmigaOS4 .so support
20110 lt_prog_compiler_pic_CXX='-fPIC'
20112 m68k)
20113 # FIXME: we need at least 68020 code to build shared libraries, but
20114 # adding the `-m68020' flag to GCC prevents building anything better,
20115 # like `-m68040'.
20116 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20118 esac
20121 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20122 # PIC is the default for these OSes.
20124 mingw* | cygwin* | os2* | pw32* | cegcc*)
20125 # This hack is so that the source file can tell whether it is being
20126 # built for inclusion in a dll (and should export symbols for example).
20127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20128 # (--disable-auto-import) libraries
20129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20131 darwin* | rhapsody*)
20132 # PIC is the default on this platform
20133 # Common symbols not allowed in MH_DYLIB files
20134 lt_prog_compiler_pic_CXX='-fno-common'
20136 *djgpp*)
20137 # DJGPP does not support shared libraries at all
20138 lt_prog_compiler_pic_CXX=
20140 haiku*)
20141 # PIC is the default for Haiku.
20142 # The "-static" flag exists, but is broken.
20143 lt_prog_compiler_static_CXX=
20145 interix[3-9]*)
20146 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20147 # Instead, we relocate shared libraries at runtime.
20149 sysv4*MP*)
20150 if test -d /usr/nec; then
20151 lt_prog_compiler_pic_CXX=-Kconform_pic
20154 hpux*)
20155 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20156 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20157 # sets the default TLS model and affects inlining.
20158 case $host_cpu in
20159 hppa*64*)
20162 lt_prog_compiler_pic_CXX='-fPIC'
20164 esac
20166 *qnx* | *nto*)
20167 # QNX uses GNU C++, but need to define -shared option too, otherwise
20168 # it will coredump.
20169 lt_prog_compiler_pic_CXX='-fPIC -shared'
20172 lt_prog_compiler_pic_CXX='-fPIC'
20174 esac
20175 else
20176 case $host_os in
20177 aix[4-9]*)
20178 # All AIX code is PIC.
20179 if test "$host_cpu" = ia64; then
20180 # AIX 5 now supports IA64 processor
20181 lt_prog_compiler_static_CXX='-Bstatic'
20182 else
20183 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20186 chorus*)
20187 case $cc_basename in
20188 cxch68*)
20189 # Green Hills C++ Compiler
20190 # _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"
20192 esac
20194 dgux*)
20195 case $cc_basename in
20196 ec++*)
20197 lt_prog_compiler_pic_CXX='-KPIC'
20199 ghcx*)
20200 # Green Hills C++ Compiler
20201 lt_prog_compiler_pic_CXX='-pic'
20205 esac
20207 freebsd* | dragonfly*)
20208 # FreeBSD uses GNU C++
20210 hpux9* | hpux10* | hpux11*)
20211 case $cc_basename in
20212 CC*)
20213 lt_prog_compiler_wl_CXX='-Wl,'
20214 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20215 if test "$host_cpu" != ia64; then
20216 lt_prog_compiler_pic_CXX='+Z'
20219 aCC*)
20220 lt_prog_compiler_wl_CXX='-Wl,'
20221 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20222 case $host_cpu in
20223 hppa*64*|ia64*)
20224 # +Z the default
20227 lt_prog_compiler_pic_CXX='+Z'
20229 esac
20233 esac
20235 interix*)
20236 # This is c89, which is MS Visual C++ (no shared libs)
20237 # Anyone wants to do a port?
20239 irix5* | irix6* | nonstopux*)
20240 case $cc_basename in
20241 CC*)
20242 lt_prog_compiler_wl_CXX='-Wl,'
20243 lt_prog_compiler_static_CXX='-non_shared'
20244 # CC pic flag -KPIC is the default.
20248 esac
20250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20251 case $cc_basename in
20252 KCC*)
20253 # KAI C++ Compiler
20254 lt_prog_compiler_wl_CXX='--backend -Wl,'
20255 lt_prog_compiler_pic_CXX='-fPIC'
20257 ecpc* )
20258 # old Intel C++ for x86_64 which still supported -KPIC.
20259 lt_prog_compiler_wl_CXX='-Wl,'
20260 lt_prog_compiler_pic_CXX='-KPIC'
20261 lt_prog_compiler_static_CXX='-static'
20263 icpc* )
20264 # Intel C++, used to be incompatible with GCC.
20265 # ICC 10 doesn't accept -KPIC any more.
20266 lt_prog_compiler_wl_CXX='-Wl,'
20267 lt_prog_compiler_pic_CXX='-fPIC'
20268 lt_prog_compiler_static_CXX='-static'
20270 pgCC* | pgcpp*)
20271 # Portland Group C++ compiler
20272 lt_prog_compiler_wl_CXX='-Wl,'
20273 lt_prog_compiler_pic_CXX='-fpic'
20274 lt_prog_compiler_static_CXX='-Bstatic'
20276 cxx*)
20277 # Compaq C++
20278 # Make sure the PIC flag is empty. It appears that all Alpha
20279 # Linux and Compaq Tru64 Unix objects are PIC.
20280 lt_prog_compiler_pic_CXX=
20281 lt_prog_compiler_static_CXX='-non_shared'
20283 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20284 # IBM XL 8.0, 9.0 on PPC and BlueGene
20285 lt_prog_compiler_wl_CXX='-Wl,'
20286 lt_prog_compiler_pic_CXX='-qpic'
20287 lt_prog_compiler_static_CXX='-qstaticlink'
20290 case `$CC -V 2>&1 | sed 5q` in
20291 *Sun\ C*)
20292 # Sun C++ 5.9
20293 lt_prog_compiler_pic_CXX='-KPIC'
20294 lt_prog_compiler_static_CXX='-Bstatic'
20295 lt_prog_compiler_wl_CXX='-Qoption ld '
20297 esac
20299 esac
20301 lynxos*)
20303 m88k*)
20305 mvs*)
20306 case $cc_basename in
20307 cxx*)
20308 lt_prog_compiler_pic_CXX='-W c,exportall'
20312 esac
20314 netbsd*)
20316 *qnx* | *nto*)
20317 # QNX uses GNU C++, but need to define -shared option too, otherwise
20318 # it will coredump.
20319 lt_prog_compiler_pic_CXX='-fPIC -shared'
20321 osf3* | osf4* | osf5*)
20322 case $cc_basename in
20323 KCC*)
20324 lt_prog_compiler_wl_CXX='--backend -Wl,'
20326 RCC*)
20327 # Rational C++ 2.4.1
20328 lt_prog_compiler_pic_CXX='-pic'
20330 cxx*)
20331 # Digital/Compaq C++
20332 lt_prog_compiler_wl_CXX='-Wl,'
20333 # Make sure the PIC flag is empty. It appears that all Alpha
20334 # Linux and Compaq Tru64 Unix objects are PIC.
20335 lt_prog_compiler_pic_CXX=
20336 lt_prog_compiler_static_CXX='-non_shared'
20340 esac
20342 psos*)
20344 solaris*)
20345 case $cc_basename in
20346 CC*)
20347 # Sun C++ 4.2, 5.x and Centerline C++
20348 lt_prog_compiler_pic_CXX='-KPIC'
20349 lt_prog_compiler_static_CXX='-Bstatic'
20350 lt_prog_compiler_wl_CXX='-Qoption ld '
20352 gcx*)
20353 # Green Hills C++ Compiler
20354 lt_prog_compiler_pic_CXX='-PIC'
20358 esac
20360 sunos4*)
20361 case $cc_basename in
20362 CC*)
20363 # Sun C++ 4.x
20364 lt_prog_compiler_pic_CXX='-pic'
20365 lt_prog_compiler_static_CXX='-Bstatic'
20367 lcc*)
20368 # Lucid
20369 lt_prog_compiler_pic_CXX='-pic'
20373 esac
20375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20376 case $cc_basename in
20377 CC*)
20378 lt_prog_compiler_wl_CXX='-Wl,'
20379 lt_prog_compiler_pic_CXX='-KPIC'
20380 lt_prog_compiler_static_CXX='-Bstatic'
20382 esac
20384 tandem*)
20385 case $cc_basename in
20386 NCC*)
20387 # NonStop-UX NCC 3.20
20388 lt_prog_compiler_pic_CXX='-KPIC'
20392 esac
20394 vxworks*)
20397 lt_prog_compiler_can_build_shared_CXX=no
20399 esac
20402 case $host_os in
20403 # For platforms which do not support PIC, -DPIC is meaningless:
20404 *djgpp*)
20405 lt_prog_compiler_pic_CXX=
20408 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20410 esac
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20412 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20417 # Check to make sure the PIC flag actually works.
20419 if test -n "$lt_prog_compiler_pic_CXX"; then
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20421 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20422 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20423 $as_echo_n "(cached) " >&6
20424 else
20425 lt_cv_prog_compiler_pic_works_CXX=no
20426 ac_outfile=conftest.$ac_objext
20427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20429 # Insert the option either (1) after the last *FLAGS variable, or
20430 # (2) before a word containing "conftest.", or (3) at the end.
20431 # Note that $ac_compile itself does not contain backslashes and begins
20432 # with a dollar sign (not a hyphen), so the echo should work correctly.
20433 # The option is referenced via a variable to avoid confusing sed.
20434 lt_compile=`echo "$ac_compile" | $SED \
20435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20437 -e 's:$: $lt_compiler_flag:'`
20438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20439 (eval "$lt_compile" 2>conftest.err)
20440 ac_status=$?
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 if (exit $ac_status) && test -s "$ac_outfile"; then
20444 # The compiler can only warn and ignore the option if not recognized
20445 # So say no if there are warnings other than the usual output.
20446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20449 lt_cv_prog_compiler_pic_works_CXX=yes
20452 $RM conftest*
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20456 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20458 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20459 case $lt_prog_compiler_pic_CXX in
20460 "" | " "*) ;;
20461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20462 esac
20463 else
20464 lt_prog_compiler_pic_CXX=
20465 lt_prog_compiler_can_build_shared_CXX=no
20473 # Check to make sure the static flag actually works.
20475 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20477 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20478 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20479 $as_echo_n "(cached) " >&6
20480 else
20481 lt_cv_prog_compiler_static_works_CXX=no
20482 save_LDFLAGS="$LDFLAGS"
20483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20486 # The linker can only warn and ignore the option if not recognized
20487 # So say no if there are warnings
20488 if test -s conftest.err; then
20489 # Append any errors to the config.log.
20490 cat conftest.err 1>&5
20491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20493 if diff conftest.exp conftest.er2 >/dev/null; then
20494 lt_cv_prog_compiler_static_works_CXX=yes
20496 else
20497 lt_cv_prog_compiler_static_works_CXX=yes
20500 $RM -r conftest*
20501 LDFLAGS="$save_LDFLAGS"
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20505 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20507 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20509 else
20510 lt_prog_compiler_static_CXX=
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20518 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20519 $as_echo_n "(cached) " >&6
20520 else
20521 lt_cv_prog_compiler_c_o_CXX=no
20522 $RM -r conftest 2>/dev/null
20523 mkdir conftest
20524 cd conftest
20525 mkdir out
20526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20528 lt_compiler_flag="-o out/conftest2.$ac_objext"
20529 # Insert the option either (1) after the last *FLAGS variable, or
20530 # (2) before a word containing "conftest.", or (3) at the end.
20531 # Note that $ac_compile itself does not contain backslashes and begins
20532 # with a dollar sign (not a hyphen), so the echo should work correctly.
20533 lt_compile=`echo "$ac_compile" | $SED \
20534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20536 -e 's:$: $lt_compiler_flag:'`
20537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20538 (eval "$lt_compile" 2>out/conftest.err)
20539 ac_status=$?
20540 cat out/conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20543 then
20544 # The compiler can only warn and ignore the option if not recognized
20545 # So say no if there are warnings
20546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20549 lt_cv_prog_compiler_c_o_CXX=yes
20552 chmod u+w . 2>&5
20553 $RM conftest*
20554 # SGI C++ compiler will create directory out/ii_files/ for
20555 # template instantiation
20556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20557 $RM out/* && rmdir out
20558 cd ..
20559 $RM -r conftest
20560 $RM conftest*
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20564 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20569 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20570 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20571 $as_echo_n "(cached) " >&6
20572 else
20573 lt_cv_prog_compiler_c_o_CXX=no
20574 $RM -r conftest 2>/dev/null
20575 mkdir conftest
20576 cd conftest
20577 mkdir out
20578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20580 lt_compiler_flag="-o out/conftest2.$ac_objext"
20581 # Insert the option either (1) after the last *FLAGS variable, or
20582 # (2) before a word containing "conftest.", or (3) at the end.
20583 # Note that $ac_compile itself does not contain backslashes and begins
20584 # with a dollar sign (not a hyphen), so the echo should work correctly.
20585 lt_compile=`echo "$ac_compile" | $SED \
20586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20588 -e 's:$: $lt_compiler_flag:'`
20589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20590 (eval "$lt_compile" 2>out/conftest.err)
20591 ac_status=$?
20592 cat out/conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20595 then
20596 # The compiler can only warn and ignore the option if not recognized
20597 # So say no if there are warnings
20598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20601 lt_cv_prog_compiler_c_o_CXX=yes
20604 chmod u+w . 2>&5
20605 $RM conftest*
20606 # SGI C++ compiler will create directory out/ii_files/ for
20607 # template instantiation
20608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20609 $RM out/* && rmdir out
20610 cd ..
20611 $RM -r conftest
20612 $RM conftest*
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20616 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20621 hard_links="nottested"
20622 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20623 # do not overwrite the value of need_locks provided by the user
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20625 $as_echo_n "checking if we can lock with hard links... " >&6; }
20626 hard_links=yes
20627 $RM conftest*
20628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20629 touch conftest.a
20630 ln conftest.a conftest.b 2>&5 || hard_links=no
20631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20633 $as_echo "$hard_links" >&6; }
20634 if test "$hard_links" = no; then
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20636 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20637 need_locks=warn
20639 else
20640 need_locks=no
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20648 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20649 case $host_os in
20650 aix[4-9]*)
20651 # If we're using GNU nm, then we don't want the "-C" option.
20652 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20653 # Also, AIX nm treats weak defined symbols like other global defined
20654 # symbols, whereas GNU nm marks them as "W".
20655 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20656 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'
20657 else
20658 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'
20661 pw32*)
20662 export_symbols_cmds_CXX="$ltdll_cmds"
20664 cygwin* | mingw* | cegcc*)
20665 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'
20668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20670 esac
20671 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20674 $as_echo "$ld_shlibs_CXX" >&6; }
20675 test "$ld_shlibs_CXX" = no && can_build_shared=no
20677 with_gnu_ld_CXX=$with_gnu_ld
20685 # Do we need to explicitly link libc?
20687 case "x$archive_cmds_need_lc_CXX" in
20688 x|xyes)
20689 # Assume -lc should be added
20690 archive_cmds_need_lc_CXX=yes
20692 if test "$enable_shared" = yes && test "$GCC" = yes; then
20693 case $archive_cmds_CXX in
20694 *'~'*)
20695 # FIXME: we may have to deal with multi-command sequences.
20697 '$CC '*)
20698 # Test whether the compiler implicitly links with -lc since on some
20699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20700 # to ld, don't add -lc before -lgcc.
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20702 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20703 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20705 else
20706 $RM conftest*
20707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20710 (eval $ac_compile) 2>&5
20711 ac_status=$?
20712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20713 test $ac_status = 0; } 2>conftest.err; then
20714 soname=conftest
20715 lib=conftest
20716 libobjs=conftest.$ac_objext
20717 deplibs=
20718 wl=$lt_prog_compiler_wl_CXX
20719 pic_flag=$lt_prog_compiler_pic_CXX
20720 compiler_flags=-v
20721 linker_flags=-v
20722 verstring=
20723 output_objdir=.
20724 libname=conftest
20725 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20726 allow_undefined_flag_CXX=
20727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20728 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20729 ac_status=$?
20730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20731 test $ac_status = 0; }
20732 then
20733 lt_cv_archive_cmds_need_lc_CXX=no
20734 else
20735 lt_cv_archive_cmds_need_lc_CXX=yes
20737 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20738 else
20739 cat conftest.err 1>&5
20741 $RM conftest*
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20745 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20746 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20748 esac
20751 esac
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20817 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20819 library_names_spec=
20820 libname_spec='lib$name'
20821 soname_spec=
20822 shrext_cmds=".so"
20823 postinstall_cmds=
20824 postuninstall_cmds=
20825 finish_cmds=
20826 finish_eval=
20827 shlibpath_var=
20828 shlibpath_overrides_runpath=unknown
20829 version_type=none
20830 dynamic_linker="$host_os ld.so"
20831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20832 need_lib_prefix=unknown
20833 hardcode_into_libs=no
20835 # when you set need_version to no, make sure it does not cause -set_version
20836 # flags to be left without arguments
20837 need_version=unknown
20839 case $host_os in
20840 aix3*)
20841 version_type=linux
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20843 shlibpath_var=LIBPATH
20845 # AIX 3 has no versioning support, so we append a major version to the name.
20846 soname_spec='${libname}${release}${shared_ext}$major'
20849 aix[4-9]*)
20850 version_type=linux
20851 need_lib_prefix=no
20852 need_version=no
20853 hardcode_into_libs=yes
20854 if test "$host_cpu" = ia64; then
20855 # AIX 5 supports IA64
20856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20857 shlibpath_var=LD_LIBRARY_PATH
20858 else
20859 # With GCC up to 2.95.x, collect2 would create an import file
20860 # for dependence libraries. The import file would start with
20861 # the line `#! .'. This would cause the generated library to
20862 # depend on `.', always an invalid library. This was fixed in
20863 # development snapshots of GCC prior to 3.0.
20864 case $host_os in
20865 aix4 | aix4.[01] | aix4.[01].*)
20866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20867 echo ' yes '
20868 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20870 else
20871 can_build_shared=no
20874 esac
20875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20876 # soname into executable. Probably we can add versioning support to
20877 # collect2, so additional links can be useful in future.
20878 if test "$aix_use_runtimelinking" = yes; then
20879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20880 # instead of lib<name>.a to let people know that these are not
20881 # typical AIX shared libraries.
20882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20883 else
20884 # We preserve .a as extension for shared libraries through AIX4.2
20885 # and later when we are not doing run time linking.
20886 library_names_spec='${libname}${release}.a $libname.a'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20889 shlibpath_var=LIBPATH
20893 amigaos*)
20894 case $host_cpu in
20895 powerpc)
20896 # Since July 2007 AmigaOS4 officially supports .so libraries.
20897 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 m68k)
20901 library_names_spec='$libname.ixlibrary $libname.a'
20902 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20903 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'
20905 esac
20908 beos*)
20909 library_names_spec='${libname}${shared_ext}'
20910 dynamic_linker="$host_os ld.so"
20911 shlibpath_var=LIBRARY_PATH
20914 bsdi[45]*)
20915 version_type=linux
20916 need_version=no
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20918 soname_spec='${libname}${release}${shared_ext}$major'
20919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20923 # the default ld.so.conf also contains /usr/contrib/lib and
20924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20925 # libtool to hard-code these into programs
20928 cygwin* | mingw* | pw32* | cegcc*)
20929 version_type=windows
20930 shrext_cmds=".dll"
20931 need_version=no
20932 need_lib_prefix=no
20934 case $GCC,$host_os in
20935 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20936 library_names_spec='$libname.dll.a'
20937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20938 postinstall_cmds='base_file=`basename \${file}`~
20939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20940 dldir=$destdir/`dirname \$dlpath`~
20941 test -d \$dldir || mkdir -p \$dldir~
20942 $install_prog $dir/$dlname \$dldir/$dlname~
20943 chmod a+x \$dldir/$dlname~
20944 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20945 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20948 dlpath=$dir/\$dldll~
20949 $RM \$dlpath'
20950 shlibpath_overrides_runpath=yes
20952 case $host_os in
20953 cygwin*)
20954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20958 mingw* | cegcc*)
20959 # MinGW DLLs use traditional 'lib' prefix
20960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20962 pw32*)
20963 # pw32 DLLs use 'pw' prefix rather than 'lib'
20964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20966 esac
20970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20972 esac
20973 dynamic_linker='Win32 ld.exe'
20974 # FIXME: first we should search . and the directory the executable is in
20975 shlibpath_var=PATH
20978 darwin* | rhapsody*)
20979 dynamic_linker="$host_os dyld"
20980 version_type=darwin
20981 need_lib_prefix=no
20982 need_version=no
20983 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20984 soname_spec='${libname}${release}${major}$shared_ext'
20985 shlibpath_overrides_runpath=yes
20986 shlibpath_var=DYLD_LIBRARY_PATH
20987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20992 dgux*)
20993 version_type=linux
20994 need_lib_prefix=no
20995 need_version=no
20996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20997 soname_spec='${libname}${release}${shared_ext}$major'
20998 shlibpath_var=LD_LIBRARY_PATH
21001 freebsd* | dragonfly*)
21002 # DragonFly does not have aout. When/if they implement a new
21003 # versioning mechanism, adjust this.
21004 if test -x /usr/bin/objformat; then
21005 objformat=`/usr/bin/objformat`
21006 else
21007 case $host_os in
21008 freebsd[23].*) objformat=aout ;;
21009 *) objformat=elf ;;
21010 esac
21012 version_type=freebsd-$objformat
21013 case $version_type in
21014 freebsd-elf*)
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21016 need_version=no
21017 need_lib_prefix=no
21019 freebsd-*)
21020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21021 need_version=yes
21023 esac
21024 shlibpath_var=LD_LIBRARY_PATH
21025 case $host_os in
21026 freebsd2.*)
21027 shlibpath_overrides_runpath=yes
21029 freebsd3.[01]* | freebsdelf3.[01]*)
21030 shlibpath_overrides_runpath=yes
21031 hardcode_into_libs=yes
21033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21035 shlibpath_overrides_runpath=no
21036 hardcode_into_libs=yes
21038 *) # from 4.6 on, and DragonFly
21039 shlibpath_overrides_runpath=yes
21040 hardcode_into_libs=yes
21042 esac
21045 gnu*)
21046 version_type=linux
21047 need_lib_prefix=no
21048 need_version=no
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 shlibpath_var=LD_LIBRARY_PATH
21052 hardcode_into_libs=yes
21055 haiku*)
21056 version_type=linux
21057 need_lib_prefix=no
21058 need_version=no
21059 dynamic_linker="$host_os runtime_loader"
21060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21061 soname_spec='${libname}${release}${shared_ext}$major'
21062 shlibpath_var=LIBRARY_PATH
21063 shlibpath_overrides_runpath=yes
21064 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21065 hardcode_into_libs=yes
21068 hpux9* | hpux10* | hpux11*)
21069 # Give a soname corresponding to the major version so that dld.sl refuses to
21070 # link against other versions.
21071 version_type=sunos
21072 need_lib_prefix=no
21073 need_version=no
21074 case $host_cpu in
21075 ia64*)
21076 shrext_cmds='.so'
21077 hardcode_into_libs=yes
21078 dynamic_linker="$host_os dld.so"
21079 shlibpath_var=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082 soname_spec='${libname}${release}${shared_ext}$major'
21083 if test "X$HPUX_IA64_MODE" = X32; then
21084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21085 else
21086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21090 hppa*64*)
21091 shrext_cmds='.sl'
21092 hardcode_into_libs=yes
21093 dynamic_linker="$host_os dld.sl"
21094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21097 soname_spec='${libname}${release}${shared_ext}$major'
21098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21102 shrext_cmds='.sl'
21103 dynamic_linker="$host_os dld.sl"
21104 shlibpath_var=SHLIB_PATH
21105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107 soname_spec='${libname}${release}${shared_ext}$major'
21109 esac
21110 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21111 postinstall_cmds='chmod 555 $lib'
21112 # or fails outright, so override atomically:
21113 install_override_mode=555
21116 interix[3-9]*)
21117 version_type=linux
21118 need_lib_prefix=no
21119 need_version=no
21120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21121 soname_spec='${libname}${release}${shared_ext}$major'
21122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21123 shlibpath_var=LD_LIBRARY_PATH
21124 shlibpath_overrides_runpath=no
21125 hardcode_into_libs=yes
21128 irix5* | irix6* | nonstopux*)
21129 case $host_os in
21130 nonstopux*) version_type=nonstopux ;;
21132 if test "$lt_cv_prog_gnu_ld" = yes; then
21133 version_type=linux
21134 else
21135 version_type=irix
21136 fi ;;
21137 esac
21138 need_lib_prefix=no
21139 need_version=no
21140 soname_spec='${libname}${release}${shared_ext}$major'
21141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21142 case $host_os in
21143 irix5* | nonstopux*)
21144 libsuff= shlibsuff=
21147 case $LD in # libtool.m4 will add one of these switches to LD
21148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21149 libsuff= shlibsuff= libmagic=32-bit;;
21150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21151 libsuff=32 shlibsuff=N32 libmagic=N32;;
21152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21154 *) libsuff= shlibsuff= libmagic=never-match;;
21155 esac
21157 esac
21158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21159 shlibpath_overrides_runpath=no
21160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21162 hardcode_into_libs=yes
21165 # No shared lib support for Linux oldld, aout, or coff.
21166 linux*oldld* | linux*aout* | linux*coff*)
21167 dynamic_linker=no
21170 # This must be Linux ELF.
21171 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21172 version_type=linux
21173 need_lib_prefix=no
21174 need_version=no
21175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21176 soname_spec='${libname}${release}${shared_ext}$major'
21177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21178 shlibpath_var=LD_LIBRARY_PATH
21179 shlibpath_overrides_runpath=no
21181 # Some binutils ld are patched to set DT_RUNPATH
21182 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21183 $as_echo_n "(cached) " >&6
21184 else
21185 lt_cv_shlibpath_overrides_runpath=no
21186 save_LDFLAGS=$LDFLAGS
21187 save_libdir=$libdir
21188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21194 main ()
21198 return 0;
21200 _ACEOF
21201 if ac_fn_cxx_try_link "$LINENO"; then :
21202 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21203 lt_cv_shlibpath_overrides_runpath=yes
21206 rm -f core conftest.err conftest.$ac_objext \
21207 conftest$ac_exeext conftest.$ac_ext
21208 LDFLAGS=$save_LDFLAGS
21209 libdir=$save_libdir
21213 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21215 # This implies no fast_install, which is unacceptable.
21216 # Some rework will be needed to allow for fast_install
21217 # before this can be enabled.
21218 hardcode_into_libs=yes
21220 # Append ld.so.conf contents to the search path
21221 if test -f /etc/ld.so.conf; then
21222 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' ' '`
21223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21226 # We used to test for /lib/ld.so.1 and disable shared libraries on
21227 # powerpc, because MkLinux only supported shared libraries with the
21228 # GNU dynamic linker. Since this was broken with cross compilers,
21229 # most powerpc-linux boxes support dynamic linking these days and
21230 # people can always --disable-shared, the test was removed, and we
21231 # assume the GNU/Linux dynamic linker is in use.
21232 dynamic_linker='GNU/Linux ld.so'
21235 netbsd*)
21236 version_type=sunos
21237 need_lib_prefix=no
21238 need_version=no
21239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21242 dynamic_linker='NetBSD (a.out) ld.so'
21243 else
21244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21245 soname_spec='${libname}${release}${shared_ext}$major'
21246 dynamic_linker='NetBSD ld.elf_so'
21248 shlibpath_var=LD_LIBRARY_PATH
21249 shlibpath_overrides_runpath=yes
21250 hardcode_into_libs=yes
21253 newsos6)
21254 version_type=linux
21255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21256 shlibpath_var=LD_LIBRARY_PATH
21257 shlibpath_overrides_runpath=yes
21260 *nto* | *qnx*)
21261 version_type=qnx
21262 need_lib_prefix=no
21263 need_version=no
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 shlibpath_var=LD_LIBRARY_PATH
21267 shlibpath_overrides_runpath=no
21268 hardcode_into_libs=yes
21269 dynamic_linker='ldqnx.so'
21272 openbsd*)
21273 version_type=sunos
21274 sys_lib_dlsearch_path_spec="/usr/lib"
21275 need_lib_prefix=no
21276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21277 case $host_os in
21278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21279 *) need_version=no ;;
21280 esac
21281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21283 shlibpath_var=LD_LIBRARY_PATH
21284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21285 case $host_os in
21286 openbsd2.[89] | openbsd2.[89].*)
21287 shlibpath_overrides_runpath=no
21290 shlibpath_overrides_runpath=yes
21292 esac
21293 else
21294 shlibpath_overrides_runpath=yes
21298 os2*)
21299 libname_spec='$name'
21300 shrext_cmds=".dll"
21301 need_lib_prefix=no
21302 library_names_spec='$libname${shared_ext} $libname.a'
21303 dynamic_linker='OS/2 ld.exe'
21304 shlibpath_var=LIBPATH
21307 osf3* | osf4* | osf5*)
21308 version_type=osf
21309 need_lib_prefix=no
21310 need_version=no
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21313 shlibpath_var=LD_LIBRARY_PATH
21314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21318 rdos*)
21319 dynamic_linker=no
21322 solaris*)
21323 version_type=linux
21324 need_lib_prefix=no
21325 need_version=no
21326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21327 soname_spec='${libname}${release}${shared_ext}$major'
21328 shlibpath_var=LD_LIBRARY_PATH
21329 shlibpath_overrides_runpath=yes
21330 hardcode_into_libs=yes
21331 # ldd complains unless libraries are executable
21332 postinstall_cmds='chmod +x $lib'
21335 sunos4*)
21336 version_type=sunos
21337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21338 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21339 shlibpath_var=LD_LIBRARY_PATH
21340 shlibpath_overrides_runpath=yes
21341 if test "$with_gnu_ld" = yes; then
21342 need_lib_prefix=no
21344 need_version=yes
21347 sysv4 | sysv4.3*)
21348 version_type=linux
21349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 soname_spec='${libname}${release}${shared_ext}$major'
21351 shlibpath_var=LD_LIBRARY_PATH
21352 case $host_vendor in
21353 sni)
21354 shlibpath_overrides_runpath=no
21355 need_lib_prefix=no
21356 runpath_var=LD_RUN_PATH
21358 siemens)
21359 need_lib_prefix=no
21361 motorola)
21362 need_lib_prefix=no
21363 need_version=no
21364 shlibpath_overrides_runpath=no
21365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21367 esac
21370 sysv4*MP*)
21371 if test -d /usr/nec ;then
21372 version_type=linux
21373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21374 soname_spec='$libname${shared_ext}.$major'
21375 shlibpath_var=LD_LIBRARY_PATH
21379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21380 version_type=freebsd-elf
21381 need_lib_prefix=no
21382 need_version=no
21383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21384 soname_spec='${libname}${release}${shared_ext}$major'
21385 shlibpath_var=LD_LIBRARY_PATH
21386 shlibpath_overrides_runpath=yes
21387 hardcode_into_libs=yes
21388 if test "$with_gnu_ld" = yes; then
21389 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21390 else
21391 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21392 case $host_os in
21393 sco3.2v5*)
21394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21396 esac
21398 sys_lib_dlsearch_path_spec='/usr/lib'
21401 tpf*)
21402 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21403 version_type=linux
21404 need_lib_prefix=no
21405 need_version=no
21406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21407 shlibpath_var=LD_LIBRARY_PATH
21408 shlibpath_overrides_runpath=no
21409 hardcode_into_libs=yes
21412 uts4*)
21413 version_type=linux
21414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21415 soname_spec='${libname}${release}${shared_ext}$major'
21416 shlibpath_var=LD_LIBRARY_PATH
21420 dynamic_linker=no
21422 esac
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21424 $as_echo "$dynamic_linker" >&6; }
21425 test "$dynamic_linker" = no && can_build_shared=no
21427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21428 if test "$GCC" = yes; then
21429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21432 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21433 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21435 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21436 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21478 hardcode_action_CXX=
21479 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21480 test -n "$runpath_var_CXX" ||
21481 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21483 # We can hardcode non-existent directories.
21484 if test "$hardcode_direct_CXX" != no &&
21485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21486 # have to relink, otherwise we might link with an installed library
21487 # when we should be linking with a yet-to-be-installed one
21488 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21489 test "$hardcode_minus_L_CXX" != no; then
21490 # Linking always hardcodes the temporary library directory.
21491 hardcode_action_CXX=relink
21492 else
21493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21494 hardcode_action_CXX=immediate
21496 else
21497 # We cannot hardcode anything, or else we can only hardcode existing
21498 # directories.
21499 hardcode_action_CXX=unsupported
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21502 $as_echo "$hardcode_action_CXX" >&6; }
21504 if test "$hardcode_action_CXX" = relink ||
21505 test "$inherit_rpath_CXX" = yes; then
21506 # Fast installation is not supported
21507 enable_fast_install=no
21508 elif test "$shlibpath_overrides_runpath" = yes ||
21509 test "$enable_shared" = no; then
21510 # Fast installation is not necessary
21511 enable_fast_install=needless
21520 fi # test -n "$compiler"
21522 CC=$lt_save_CC
21523 LDCXX=$LD
21524 LD=$lt_save_LD
21525 GCC=$lt_save_GCC
21526 with_gnu_ld=$lt_save_with_gnu_ld
21527 lt_cv_path_LDCXX=$lt_cv_path_LD
21528 lt_cv_path_LD=$lt_save_path_LD
21529 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21530 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21531 fi # test "$_lt_caught_CXX_error" != yes
21533 ac_ext=cpp
21534 ac_cpp='$CXXCPP $CPPFLAGS'
21535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21554 # Only expand once:
21560 # Identify the assembler which will work hand-in-glove with the newly
21561 # built GCC, so that we can examine its features. This is the assembler
21562 # which will be driven by the driver program.
21564 # If build != host, and we aren't building gas in-tree, we identify a
21565 # build->target assembler and hope that it will have the same features
21566 # as the host->target assembler we'll be using.
21567 gcc_cv_gas_major_version=
21568 gcc_cv_gas_minor_version=
21569 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21571 if test "${gcc_cv_as+set}" = set; then :
21573 else
21575 if test -x "$DEFAULT_ASSEMBLER"; then
21576 gcc_cv_as="$DEFAULT_ASSEMBLER"
21577 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21578 && test -f ../gas/Makefile \
21579 && test x$build = x$host; then
21580 gcc_cv_as=../gas/as-new$build_exeext
21581 elif test -x as$build_exeext; then
21582 # Build using assembler in the current directory.
21583 gcc_cv_as=./as$build_exeext
21584 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21585 gcc_cv_as="$AS_FOR_TARGET"
21586 else
21587 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21588 set dummy $AS_FOR_TARGET; ac_word=$2
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21590 $as_echo_n "checking for $ac_word... " >&6; }
21591 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21593 else
21594 case $gcc_cv_as in
21595 [\\/]* | ?:[\\/]*)
21596 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21600 for as_dir in $PATH
21602 IFS=$as_save_IFS
21603 test -z "$as_dir" && as_dir=.
21604 for ac_exec_ext in '' $ac_executable_extensions; do
21605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21606 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21608 break 2
21610 done
21611 done
21612 IFS=$as_save_IFS
21615 esac
21617 gcc_cv_as=$ac_cv_path_gcc_cv_as
21618 if test -n "$gcc_cv_as"; then
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21620 $as_echo "$gcc_cv_as" >&6; }
21621 else
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21623 $as_echo "no" >&6; }
21630 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21632 case "$ORIGINAL_AS_FOR_TARGET" in
21633 ./as | ./as$build_exeext) ;;
21634 *) ac_config_files="$ac_config_files as:exec-tool.in"
21636 esac
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21639 $as_echo_n "checking what assembler to use... " >&6; }
21640 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21641 # Single tree build which includes gas. We want to prefer it
21642 # over whatever linker top-level may have detected, since
21643 # we'll use what we're building after installation anyway.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21645 $as_echo "newly built gas" >&6; }
21646 in_tree_gas=yes
21647 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21648 for f in $gcc_cv_as_bfd_srcdir/configure \
21649 $gcc_cv_as_gas_srcdir/configure \
21650 $gcc_cv_as_gas_srcdir/configure.in \
21651 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21652 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21653 if test x$gcc_cv_gas_version != x; then
21654 break
21656 done
21657 case $gcc_cv_gas_version in
21658 VERSION=[0-9]*) ;;
21659 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21660 esac
21661 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21662 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21663 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21664 case $gcc_cv_gas_patch_version in
21665 "") gcc_cv_gas_patch_version="0" ;;
21666 esac
21667 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21668 + $gcc_cv_gas_minor_version \) \* 1000 \
21669 + $gcc_cv_gas_patch_version`
21671 in_tree_gas_is_elf=no
21672 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21673 || (grep 'obj_format = multi' ../gas/Makefile \
21674 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21675 then
21676 in_tree_gas_is_elf=yes
21678 else
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21680 $as_echo "$gcc_cv_as" >&6; }
21681 in_tree_gas=no
21684 default_ld=
21685 # Check whether --enable-ld was given.
21686 if test "${enable_ld+set}" = set; then :
21687 enableval=$enable_ld; case "${enableval}" in
21689 default_ld=ld.gold
21691 esac
21695 install_gold_as_default=no
21696 # Check whether --enable-gold was given.
21697 if test "${enable_gold+set}" = set; then :
21698 enableval=$enable_gold; case "${enableval}" in
21699 default)
21700 install_gold_as_default=yes
21702 yes)
21703 if test x${default_ld} != x; then
21704 install_gold_as_default=yes
21710 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21712 esac
21716 # Identify the linker which will work hand-in-glove with the newly
21717 # built GCC, so that we can examine its features. This is the linker
21718 # which will be driven by the driver program.
21720 # If build != host, and we aren't building gas in-tree, we identify a
21721 # build->target linker and hope that it will have the same features
21722 # as the host->target linker we'll be using.
21723 gcc_cv_gld_major_version=
21724 gcc_cv_gld_minor_version=
21725 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21726 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21727 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21729 if test "${gcc_cv_ld+set}" = set; then :
21731 else
21733 if test -x "$DEFAULT_LINKER"; then
21734 gcc_cv_ld="$DEFAULT_LINKER"
21735 elif test $install_gold_as_default = yes \
21736 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21737 && test -f ../gold/Makefile \
21738 && test x$build = x$host; then
21739 gcc_cv_ld=../gold/ld-new$build_exeext
21740 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21741 && test -f ../ld/Makefile \
21742 && test x$build = x$host; then
21743 gcc_cv_ld=../ld/ld-new$build_exeext
21744 elif test -x collect-ld$build_exeext; then
21745 # Build using linker in the current directory.
21746 gcc_cv_ld=./collect-ld$build_exeext
21747 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21748 gcc_cv_ld="$LD_FOR_TARGET"
21749 else
21750 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21751 set dummy $LD_FOR_TARGET; ac_word=$2
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21753 $as_echo_n "checking for $ac_word... " >&6; }
21754 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21756 else
21757 case $gcc_cv_ld in
21758 [\\/]* | ?:[\\/]*)
21759 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21765 IFS=$as_save_IFS
21766 test -z "$as_dir" && as_dir=.
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21769 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21771 break 2
21773 done
21774 done
21775 IFS=$as_save_IFS
21778 esac
21780 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21781 if test -n "$gcc_cv_ld"; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21783 $as_echo "$gcc_cv_ld" >&6; }
21784 else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21793 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21794 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21795 # if the PLUGIN_LD is set ld-new, just have it as ld
21796 # as that is the installed named.
21797 if test x$PLUGIN_LD_SUFFIX = xld-new \
21798 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21799 PLUGIN_LD_SUFFIX=ld
21802 # Check whether --with-plugin-ld was given.
21803 if test "${with_plugin_ld+set}" = set; then :
21804 withval=$with_plugin_ld; if test x"$withval" != x; then
21805 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21806 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21812 cat >>confdefs.h <<_ACEOF
21813 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21814 _ACEOF
21817 # Check to see if we are using gold instead of ld
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21819 $as_echo_n "checking whether we are using gold... " >&6; }
21820 ld_is_gold=no
21821 if test x$gcc_cv_ld != x; then
21822 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21823 | grep "GNU gold" > /dev/null; then
21824 ld_is_gold=yes
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21828 $as_echo "$ld_is_gold" >&6; }
21830 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21832 case "$ORIGINAL_LD_FOR_TARGET" in
21833 ./collect-ld | ./collect-ld$build_exeext) ;;
21834 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21836 esac
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21839 $as_echo_n "checking what linker to use... " >&6; }
21840 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21841 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21842 # Single tree build which includes ld. We want to prefer it
21843 # over whatever linker top-level may have detected, since
21844 # we'll use what we're building after installation anyway.
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21846 $as_echo "newly built ld" >&6; }
21847 in_tree_ld=yes
21848 in_tree_ld_is_elf=no
21849 if (grep 'EMUL = .*elf' ../ld/Makefile \
21850 || grep 'EMUL = .*linux' ../ld/Makefile \
21851 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21852 in_tree_ld_is_elf=yes
21853 elif test "$ld_is_gold" = yes; then
21854 in_tree_ld_is_elf=yes
21856 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
21858 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21859 if test x$gcc_cv_gld_version != x; then
21860 break
21862 done
21863 case $gcc_cv_gld_version in
21864 VERSION=[0-9]*) ;;
21865 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21866 esac
21867 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21868 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21869 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21870 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21871 else
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21873 $as_echo "$gcc_cv_ld" >&6; }
21874 in_tree_ld=no
21875 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21876 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21877 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21883 # Figure out what nm we will be using.
21884 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21885 if test "${gcc_cv_nm+set}" = set; then :
21887 else
21889 if test -f $gcc_cv_binutils_srcdir/configure.in \
21890 && test -f ../binutils/Makefile \
21891 && test x$build = x$host; then
21892 gcc_cv_nm=../binutils/nm-new$build_exeext
21893 elif test -x nm$build_exeext; then
21894 gcc_cv_nm=./nm$build_exeext
21895 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21896 gcc_cv_nm="$NM_FOR_TARGET"
21897 else
21898 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21899 set dummy $NM_FOR_TARGET; ac_word=$2
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21901 $as_echo_n "checking for $ac_word... " >&6; }
21902 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21904 else
21905 case $gcc_cv_nm in
21906 [\\/]* | ?:[\\/]*)
21907 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21911 for as_dir in $PATH
21913 IFS=$as_save_IFS
21914 test -z "$as_dir" && as_dir=.
21915 for ac_exec_ext in '' $ac_executable_extensions; do
21916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21917 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21919 break 2
21921 done
21922 done
21923 IFS=$as_save_IFS
21926 esac
21928 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21929 if test -n "$gcc_cv_nm"; then
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21931 $as_echo "$gcc_cv_nm" >&6; }
21932 else
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934 $as_echo "no" >&6; }
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21942 $as_echo_n "checking what nm to use... " >&6; }
21943 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21944 # Single tree build which includes binutils.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21946 $as_echo "newly built nm" >&6; }
21947 in_tree_nm=yes
21948 else
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21950 $as_echo "$gcc_cv_nm" >&6; }
21951 in_tree_nm=no
21954 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21956 case "$ORIGINAL_NM_FOR_TARGET" in
21957 ./nm | ./nm$build_exeext) ;;
21958 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21960 esac
21963 # Figure out what objdump we will be using.
21964 if test "${gcc_cv_objdump+set}" = set; then :
21966 else
21968 if test -f $gcc_cv_binutils_srcdir/configure.in \
21969 && test -f ../binutils/Makefile \
21970 && test x$build = x$host; then
21971 # Single tree build which includes binutils.
21972 gcc_cv_objdump=../binutils/objdump$build_exeext
21973 elif test -x objdump$build_exeext; then
21974 gcc_cv_objdump=./objdump$build_exeext
21975 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21976 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21977 else
21978 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21979 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981 $as_echo_n "checking for $ac_word... " >&6; }
21982 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21983 $as_echo_n "(cached) " >&6
21984 else
21985 case $gcc_cv_objdump in
21986 [\\/]* | ?:[\\/]*)
21987 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991 for as_dir in $PATH
21993 IFS=$as_save_IFS
21994 test -z "$as_dir" && as_dir=.
21995 for ac_exec_ext in '' $ac_executable_extensions; do
21996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21997 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21999 break 2
22001 done
22002 done
22003 IFS=$as_save_IFS
22006 esac
22008 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22009 if test -n "$gcc_cv_objdump"; then
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22011 $as_echo "$gcc_cv_objdump" >&6; }
22012 else
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22022 $as_echo_n "checking what objdump to use... " >&6; }
22023 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22024 # Single tree build which includes binutils.
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22026 $as_echo "newly built objdump" >&6; }
22027 elif test x$gcc_cv_objdump = x; then
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22029 $as_echo "not found" >&6; }
22030 else
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22032 $as_echo "$gcc_cv_objdump" >&6; }
22035 # Figure out what readelf we will be using.
22036 if test "${gcc_cv_readelf+set}" = set; then :
22038 else
22040 if test -f $gcc_cv_binutils_srcdir/configure.in \
22041 && test -f ../binutils/Makefile \
22042 && test x$build = x$host; then
22043 # Single tree build which includes binutils.
22044 gcc_cv_readelf=../binutils/readelf$build_exeext
22045 elif test -x readelf$build_exeext; then
22046 gcc_cv_readelf=./readelf$build_exeext
22047 else
22048 # Extract the first word of "readelf", so it can be a program name with args.
22049 set dummy readelf; ac_word=$2
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22051 $as_echo_n "checking for $ac_word... " >&6; }
22052 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22053 $as_echo_n "(cached) " >&6
22054 else
22055 case $gcc_cv_readelf in
22056 [\\/]* | ?:[\\/]*)
22057 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22061 for as_dir in $PATH
22063 IFS=$as_save_IFS
22064 test -z "$as_dir" && as_dir=.
22065 for ac_exec_ext in '' $ac_executable_extensions; do
22066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22067 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22069 break 2
22071 done
22072 done
22073 IFS=$as_save_IFS
22076 esac
22078 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22079 if test -n "$gcc_cv_readelf"; then
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22081 $as_echo "$gcc_cv_readelf" >&6; }
22082 else
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22092 $as_echo_n "checking what readelf to use... " >&6; }
22093 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22094 # Single tree build which includes binutils.
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22096 $as_echo "newly built readelf" >&6; }
22097 elif test x$gcc_cv_readelf = x; then
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22099 $as_echo "not found" >&6; }
22100 else
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22102 $as_echo "$gcc_cv_readelf" >&6; }
22105 # Figure out what assembler alignment features are present.
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22107 $as_echo_n "checking assembler flags... " >&6; }
22108 if test "${gcc_cv_as_flags+set}" = set; then :
22109 $as_echo_n "(cached) " >&6
22110 else
22111 case "$target" in
22112 i[34567]86-*-linux*)
22113 gcc_cv_as_flags=--32
22115 x86_64-*-linux-gnux32)
22116 gcc_cv_as_flags=--x32
22118 x86_64-*-linux*)
22119 gcc_cv_as_flags=--64
22121 powerpc*-*-darwin*)
22122 gcc_cv_as_flags="-arch ppc"
22125 gcc_cv_as_flags=" "
22127 esac
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22130 $as_echo "$gcc_cv_as_flags" >&6; }
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22133 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22134 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22136 else
22137 gcc_cv_as_balign_and_p2align=no
22138 if test $in_tree_gas = yes; then
22139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22140 then gcc_cv_as_balign_and_p2align=yes
22142 elif test x$gcc_cv_as != x; then
22143 $as_echo '.balign 4
22144 .p2align 2' > conftest.s
22145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22151 then
22152 gcc_cv_as_balign_and_p2align=yes
22153 else
22154 echo "configure: failed program was" >&5
22155 cat conftest.s >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22161 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22162 if test $gcc_cv_as_balign_and_p2align = yes; then
22164 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22169 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22170 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 gcc_cv_as_max_skip_p2align=no
22174 if test $in_tree_gas = yes; then
22175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22176 then gcc_cv_as_max_skip_p2align=yes
22178 elif test x$gcc_cv_as != x; then
22179 $as_echo '.p2align 4,,7' > conftest.s
22180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22185 test $ac_status = 0; }; }
22186 then
22187 gcc_cv_as_max_skip_p2align=yes
22188 else
22189 echo "configure: failed program was" >&5
22190 cat conftest.s >&5
22192 rm -f conftest.o conftest.s
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22196 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22197 if test $gcc_cv_as_max_skip_p2align = yes; then
22199 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22204 $as_echo_n "checking assembler for .literal16... " >&6; }
22205 if test "${gcc_cv_as_literal16+set}" = set; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 gcc_cv_as_literal16=no
22209 if test $in_tree_gas = yes; then
22210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22211 then gcc_cv_as_literal16=yes
22213 elif test x$gcc_cv_as != x; then
22214 $as_echo '.literal16' > conftest.s
22215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22220 test $ac_status = 0; }; }
22221 then
22222 gcc_cv_as_literal16=yes
22223 else
22224 echo "configure: failed program was" >&5
22225 cat conftest.s >&5
22227 rm -f conftest.o conftest.s
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22231 $as_echo "$gcc_cv_as_literal16" >&6; }
22232 if test $gcc_cv_as_literal16 = yes; then
22234 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22239 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22240 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22242 else
22243 gcc_cv_as_subsection_m1=no
22244 if test $in_tree_gas = yes; then
22245 if test $in_tree_gas_is_elf = yes \
22246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22247 then gcc_cv_as_subsection_m1=yes
22249 elif test x$gcc_cv_as != x; then
22250 $as_echo 'conftest_label1: .word 0
22251 .subsection -1
22252 conftest_label2: .word 0
22253 .previous' > conftest.s
22254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22259 test $ac_status = 0; }; }
22260 then
22261 if test x$gcc_cv_nm != x; then
22262 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22263 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22264 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22265 then :
22266 else gcc_cv_as_subsection_m1=yes
22268 rm -f conftest.nm1 conftest.nm2
22270 else
22271 echo "configure: failed program was" >&5
22272 cat conftest.s >&5
22274 rm -f conftest.o conftest.s
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22278 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22279 if test $gcc_cv_as_subsection_m1 = yes; then
22281 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22286 $as_echo_n "checking assembler for .weak... " >&6; }
22287 if test "${gcc_cv_as_weak+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22289 else
22290 gcc_cv_as_weak=no
22291 if test $in_tree_gas = yes; then
22292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22293 then gcc_cv_as_weak=yes
22295 elif test x$gcc_cv_as != x; then
22296 $as_echo ' .weak foobar' > conftest.s
22297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302 test $ac_status = 0; }; }
22303 then
22304 gcc_cv_as_weak=yes
22305 else
22306 echo "configure: failed program was" >&5
22307 cat conftest.s >&5
22309 rm -f conftest.o conftest.s
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22313 $as_echo "$gcc_cv_as_weak" >&6; }
22314 if test $gcc_cv_as_weak = yes; then
22316 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22321 $as_echo_n "checking assembler for .weakref... " >&6; }
22322 if test "${gcc_cv_as_weakref+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 gcc_cv_as_weakref=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22328 then gcc_cv_as_weakref=yes
22330 elif test x$gcc_cv_as != x; then
22331 $as_echo ' .weakref foobar, barfnot' > conftest.s
22332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22334 (eval $ac_try) 2>&5
22335 ac_status=$?
22336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22337 test $ac_status = 0; }; }
22338 then
22339 gcc_cv_as_weakref=yes
22340 else
22341 echo "configure: failed program was" >&5
22342 cat conftest.s >&5
22344 rm -f conftest.o conftest.s
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22348 $as_echo "$gcc_cv_as_weakref" >&6; }
22349 if test $gcc_cv_as_weakref = yes; then
22351 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22356 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22357 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22359 else
22360 gcc_cv_as_nsubspa_comdat=no
22361 if test $in_tree_gas = yes; then
22362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22363 then gcc_cv_as_nsubspa_comdat=yes
22365 elif test x$gcc_cv_as != x; then
22366 $as_echo ' .SPACE $TEXT$
22367 .NSUBSPA $CODE$,COMDAT' > conftest.s
22368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22374 then
22375 gcc_cv_as_nsubspa_comdat=yes
22376 else
22377 echo "configure: failed program was" >&5
22378 cat conftest.s >&5
22380 rm -f conftest.o conftest.s
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22384 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22385 if test $gcc_cv_as_nsubspa_comdat = yes; then
22387 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22391 # .hidden needs to be supported in both the assembler and the linker,
22392 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22393 # This is irritatingly difficult to feature test for; we have to check the
22394 # date string after the version number. If we've got an in-tree
22395 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22396 # to be safe.
22397 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22399 $as_echo_n "checking assembler for .hidden... " >&6; }
22400 if test "${gcc_cv_as_hidden+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22402 else
22403 gcc_cv_as_hidden=no
22404 if test $in_tree_gas = yes; then
22405 if test $in_tree_gas_is_elf = yes \
22406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22407 then gcc_cv_as_hidden=yes
22409 elif test x$gcc_cv_as != x; then
22410 $as_echo ' .hidden foobar
22411 foobar:' > conftest.s
22412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22417 test $ac_status = 0; }; }
22418 then
22419 gcc_cv_as_hidden=yes
22420 else
22421 echo "configure: failed program was" >&5
22422 cat conftest.s >&5
22424 rm -f conftest.o conftest.s
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22428 $as_echo "$gcc_cv_as_hidden" >&6; }
22430 case "${target}" in
22431 *-*-darwin*)
22432 # Darwin as has some visibility support, though with a different syntax.
22433 gcc_cv_as_hidden=yes
22435 esac
22437 # gnu_indirect_function type is an extension proposed at
22438 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22439 # selection of function implementation
22440 # Check whether --enable-gnu-indirect-function was given.
22441 if test "${enable_gnu_indirect_function+set}" = set; then :
22442 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22443 yes | no) ;;
22444 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22445 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22446 esac
22447 else
22448 enable_gnu_indirect_function="$default_gnu_indirect_function"
22452 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22456 _ACEOF
22460 if test $in_tree_ld != yes ; then
22461 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22462 if echo "$ld_ver" | grep GNU > /dev/null; then
22463 if test x"$ld_is_gold" = xyes; then
22464 # GNU gold --version looks like this:
22466 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22468 # We extract the binutils version which is more familiar and specific
22469 # than the gold version.
22470 ld_vers=`echo $ld_ver | sed -n \
22471 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22472 else
22473 # GNU ld --version looks like this:
22475 # GNU ld (GNU Binutils) 2.21.51.20110225
22476 ld_vers=`echo $ld_ver | sed -n \
22477 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22479 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'`
22480 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22481 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22482 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22483 else
22484 case "${target}" in
22485 *-*-solaris2*)
22486 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22487 # format.
22489 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22490 # /usr/ccs/bin/ld has been configured.
22491 ld_ver=`$gcc_cv_ld -V 2>&1`
22492 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22493 ld_vers=`echo $ld_ver | sed -n \
22494 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22495 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22496 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22499 esac
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22504 $as_echo_n "checking linker for .hidden support... " >&6; }
22505 if test "${gcc_cv_ld_hidden+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 if test $in_tree_ld = yes ; then
22509 gcc_cv_ld_hidden=no
22510 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 \
22511 && test $in_tree_ld_is_elf = yes; then
22512 gcc_cv_ld_hidden=yes
22514 else
22515 gcc_cv_ld_hidden=yes
22516 if test x"$ld_is_gold" = xyes; then
22518 elif echo "$ld_ver" | grep GNU > /dev/null; then
22519 case "${target}" in
22520 mmix-knuth-mmixware)
22521 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22522 gcc_cv_ld_hidden=no
22524 esac
22525 if test 0"$ld_date" -lt 20020404; then
22526 if test -n "$ld_date"; then
22527 # If there was date string, but was earlier than 2002-04-04, fail
22528 gcc_cv_ld_hidden=no
22529 elif test -z "$ld_vers"; then
22530 # If there was no date string nor ld version number, something is wrong
22531 gcc_cv_ld_hidden=no
22532 else
22533 test -z "$ld_vers_patch" && ld_vers_patch=0
22534 if test "$ld_vers_major" -lt 2; then
22535 gcc_cv_ld_hidden=no
22536 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22537 gcc_cv_ld_hidden="no"
22538 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22539 gcc_cv_ld_hidden=no
22543 else
22544 case "${target}" in
22545 *-*-darwin*)
22546 # Darwin ld has some visibility support.
22547 gcc_cv_ld_hidden=yes
22549 hppa64*-*-hpux* | ia64*-*-hpux*)
22550 gcc_cv_ld_hidden=yes
22552 *-*-solaris2.1[0-9]*)
22553 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22554 # .symbolic was only added in Solaris 9 12/02.
22555 gcc_cv_ld_hidden=yes
22558 gcc_cv_ld_hidden=no
22560 esac
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22565 $as_echo "$gcc_cv_ld_hidden" >&6; }
22566 libgcc_visibility=no
22569 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22570 libgcc_visibility=yes
22572 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22577 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22578 gcc_cv_ld_ro_rw_mix=unknown
22579 if test $in_tree_ld = yes ; then
22580 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 \
22581 && test $in_tree_ld_is_elf = yes; then
22582 gcc_cv_ld_ro_rw_mix=read-write
22584 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22585 echo '.section myfoosect, "a"' > conftest1.s
22586 echo '.section myfoosect, "aw"' > conftest2.s
22587 echo '.byte 1' >> conftest2.s
22588 echo '.section myfoosect, "a"' > conftest3.s
22589 echo '.byte 0' >> conftest3.s
22590 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22591 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22592 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22593 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22594 conftest2.o conftest3.o > /dev/null 2>&1; then
22595 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22596 | sed -e '/myfoosect/!d' -e N`
22597 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22598 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22599 gcc_cv_ld_ro_rw_mix=read-only
22600 else
22601 gcc_cv_ld_ro_rw_mix=read-write
22605 rm -f conftest.* conftest[123].*
22607 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22609 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22613 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22615 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22616 case "${target}" in
22617 *-*-solaris2*)
22619 # Solaris 2 ld -V output looks like this for a regular version:
22621 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22623 # but test versions add stuff at the end:
22625 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22627 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22628 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22629 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22630 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22631 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22632 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22635 esac
22638 # Check whether --enable-initfini-array was given.
22639 if test "${enable_initfini_array+set}" = set; then :
22640 enableval=$enable_initfini_array;
22641 else
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22644 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22645 if test "${gcc_cv_initfini_array+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22649 case "${target}" in
22650 ia64-*)
22651 if test "$cross_compiling" = yes; then :
22652 gcc_cv_initfini_array=no
22653 else
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h. */
22657 #ifndef __ELF__
22658 #error Not an ELF OS
22659 #endif
22660 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22661 if it can be used. */
22662 static int x = -1;
22663 int main (void) { return x; }
22664 int foo (void) { x = 0; }
22665 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22667 _ACEOF
22668 if ac_fn_cxx_try_run "$LINENO"; then :
22669 gcc_cv_initfini_array=yes
22670 else
22671 gcc_cv_initfini_array=no
22673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22674 conftest.$ac_objext conftest.beam conftest.$ac_ext
22678 gcc_cv_initfini_array=no
22679 if test $in_tree_ld = yes ; then
22680 if test "$gcc_cv_gld_major_version" -eq 2 \
22681 -a "$gcc_cv_gld_minor_version" -ge 22 \
22682 -o "$gcc_cv_gld_major_version" -gt 2 \
22683 && test $in_tree_ld_is_elf = yes; then
22684 gcc_cv_initfini_array=yes
22686 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22687 cat > conftest.s <<\EOF
22688 .section .dtors,"a",%progbits
22689 .balign 4
22690 .byte 'A', 'A', 'A', 'A'
22691 .section .ctors,"a",%progbits
22692 .balign 4
22693 .byte 'B', 'B', 'B', 'B'
22694 .section .fini_array.65530,"a",%progbits
22695 .balign 4
22696 .byte 'C', 'C', 'C', 'C'
22697 .section .init_array.65530,"a",%progbits
22698 .balign 4
22699 .byte 'D', 'D', 'D', 'D'
22700 .section .dtors.64528,"a",%progbits
22701 .balign 4
22702 .byte 'E', 'E', 'E', 'E'
22703 .section .ctors.64528,"a",%progbits
22704 .balign 4
22705 .byte 'F', 'F', 'F', 'F'
22706 .section .fini_array.01005,"a",%progbits
22707 .balign 4
22708 .byte 'G', 'G', 'G', 'G'
22709 .section .init_array.01005,"a",%progbits
22710 .balign 4
22711 .byte 'H', 'H', 'H', 'H'
22712 .text
22713 .globl _start
22714 _start:
22716 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22717 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22718 && $gcc_cv_objdump -s -j .init_array conftest \
22719 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22720 && $gcc_cv_objdump -s -j .fini_array conftest \
22721 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22722 gcc_cv_initfini_array=yes
22724 rm -f conftest conftest.*
22726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h. */
22729 #ifndef __ELF__
22730 # error Not an ELF OS
22731 #endif
22732 #include <stdlib.h>
22733 #if defined __GLIBC_PREREQ
22734 # if __GLIBC_PREREQ (2, 4)
22735 # else
22736 # error GLIBC 2.4 required
22737 # endif
22738 #else
22739 # if defined __sun__ && defined __svr4__
22740 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22741 # else
22742 # error The C library not known to support .init_array/.fini_array
22743 # endif
22744 #endif
22746 _ACEOF
22747 if ac_fn_cxx_try_cpp "$LINENO"; then :
22749 else
22750 gcc_cv_initfini_array=no
22752 rm -f conftest.err conftest.$ac_ext;;
22753 esac
22754 else
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22756 $as_echo_n "checking cross compile... guessing... " >&6; }
22757 gcc_cv_initfini_array=no
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22761 $as_echo "$gcc_cv_initfini_array" >&6; }
22762 enable_initfini_array=$gcc_cv_initfini_array
22766 if test $enable_initfini_array = yes; then
22768 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22772 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22774 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22775 if test "${gcc_cv_as_leb128+set}" = set; then :
22776 $as_echo_n "(cached) " >&6
22777 else
22778 gcc_cv_as_leb128=no
22779 if test $in_tree_gas = yes; then
22780 if test $in_tree_gas_is_elf = yes \
22781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22782 then gcc_cv_as_leb128=yes
22784 elif test x$gcc_cv_as != x; then
22785 $as_echo ' .data
22786 .uleb128 L2 - L1
22788 .uleb128 1280
22789 .sleb128 -1010
22790 L2:' > conftest.s
22791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22796 test $ac_status = 0; }; }
22797 then
22798 # GAS versions before 2.11 do not support uleb128,
22799 # despite appearing to.
22800 # ??? There exists an elf-specific test that will crash
22801 # the assembler. Perhaps it's better to figure out whether
22802 # arbitrary sections are supported and try the test.
22803 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22804 if echo "$as_ver" | grep GNU > /dev/null; then
22805 as_vers=`echo $as_ver | sed -n \
22806 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22807 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22808 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22809 if test $as_major -eq 2 && test $as_minor -lt 11
22810 then :
22811 else gcc_cv_as_leb128=yes
22814 else
22815 echo "configure: failed program was" >&5
22816 cat conftest.s >&5
22818 rm -f conftest.o conftest.s
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22822 $as_echo "$gcc_cv_as_leb128" >&6; }
22823 if test $gcc_cv_as_leb128 = yes; then
22825 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22829 # Check if we have assembler support for unwind directives.
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22831 $as_echo_n "checking assembler for cfi directives... " >&6; }
22832 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 gcc_cv_as_cfi_directive=no
22836 if test x$gcc_cv_as != x; then
22837 $as_echo ' .text
22838 .cfi_startproc
22839 .cfi_offset 0, 0
22840 .cfi_same_value 1
22841 .cfi_def_cfa 1, 2
22842 .cfi_escape 1, 2, 3, 4, 5
22843 .cfi_endproc' > conftest.s
22844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849 test $ac_status = 0; }; }
22850 then
22851 case "$target" in
22852 *-*-solaris*)
22853 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22854 # read-only and read-write sections, we need to make sure that the
22855 # assembler used emits read-write .eh_frame sections.
22856 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22857 if test "x$gcc_cv_objdump" != x; then
22858 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22859 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22860 gcc_cv_as_cfi_directive=no
22861 else
22862 case "$target" in
22863 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22864 # On Solaris/x86, make sure that GCC and assembler agree on using
22865 # read-only .eh_frame sections for 64-bit.
22866 if test x$gas = xyes; then
22867 as_ix86_64_opt="--64"
22868 else
22869 as_ix86_64_opt="-xarch=amd64"
22871 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22872 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22873 sed -e /.eh_frame/!d -e N | \
22874 grep READONLY > /dev/null; then
22875 gcc_cv_as_cfi_directive=yes
22876 else
22877 gcc_cv_as_cfi_directive=no
22881 gcc_cv_as_cfi_directive=yes
22883 esac
22885 else
22886 # no objdump, err on the side of caution
22887 gcc_cv_as_cfi_directive=no
22889 else
22890 gcc_cv_as_cfi_directive=yes
22893 *-*-*)
22894 gcc_cv_as_cfi_directive=yes
22896 esac
22897 else
22898 echo "configure: failed program was" >&5
22899 cat conftest.s >&5
22901 rm -f conftest.o conftest.s
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22905 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22907 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22909 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22910 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_cfi_advance_working=no
22914 if test x$gcc_cv_as != x; then
22915 $as_echo ' .text
22916 .cfi_startproc
22917 .cfi_adjust_cfa_offset 64
22918 .skip 75040, 0
22919 .cfi_adjust_cfa_offset 128
22920 .cfi_endproc' > conftest.s
22921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22927 then
22929 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22930 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22931 gcc_cv_as_cfi_advance_working=yes
22934 else
22935 echo "configure: failed program was" >&5
22936 cat conftest.s >&5
22938 rm -f conftest.o conftest.s
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22942 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22944 else
22945 # no objdump, err on the side of caution
22946 gcc_cv_as_cfi_advance_working=no
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22952 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22953 _ACEOF
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22958 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22959 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22960 $as_echo_n "(cached) " >&6
22961 else
22962 gcc_cv_as_cfi_personality_directive=no
22963 if test x$gcc_cv_as != x; then
22964 $as_echo ' .text
22965 .cfi_startproc
22966 .cfi_personality 0, symbol
22967 .cfi_endproc' > conftest.s
22968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973 test $ac_status = 0; }; }
22974 then
22975 gcc_cv_as_cfi_personality_directive=yes
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_personality_directive" >&5
22984 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22987 cat >>confdefs.h <<_ACEOF
22988 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22989 then echo 1; else echo 0; fi`
22990 _ACEOF
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22994 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22995 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22997 else
22998 gcc_cv_as_cfi_sections_directive=no
22999 if test x$gcc_cv_as != x; then
23000 $as_echo ' .text
23001 .cfi_sections .debug_frame, .eh_frame
23002 .cfi_startproc
23003 .cfi_endproc' > conftest.s
23004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23006 (eval $ac_try) 2>&5
23007 ac_status=$?
23008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23009 test $ac_status = 0; }; }
23010 then
23011 case $target_os in
23012 win32 | pe | cygwin* | mingw32* | uwin*)
23013 # Need to check that we generated the correct relocation for the
23014 # .debug_frame section. This was fixed for binutils 2.21.
23015 gcc_cv_as_cfi_sections_directive=no
23016 if test "x$gcc_cv_objdump" != x; then
23017 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23018 grep secrel > /dev/null; then
23019 gcc_cv_as_cfi_sections_directive=yes
23024 gcc_cv_as_cfi_sections_directive=yes
23026 esac
23027 else
23028 echo "configure: failed program was" >&5
23029 cat conftest.s >&5
23031 rm -f conftest.o conftest.s
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23035 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23039 cat >>confdefs.h <<_ACEOF
23040 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23041 then echo 1; else echo 0; fi`
23042 _ACEOF
23045 # GAS versions up to and including 2.11.0 may mis-optimize
23046 # .eh_frame data.
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23048 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23049 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23050 $as_echo_n "(cached) " >&6
23051 else
23052 gcc_cv_as_eh_frame=no
23053 if test $in_tree_gas = yes; then
23054 if test $in_tree_gas_is_elf = yes \
23055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23056 then gcc_cv_as_eh_frame=yes
23058 elif test x$gcc_cv_as != x; then
23059 $as_echo ' .text
23060 .LFB1:
23061 .4byte 0
23062 .L1:
23063 .4byte 0
23064 .LFE1:
23065 .section .eh_frame,"aw",@progbits
23066 __FRAME_BEGIN__:
23067 .4byte .LECIE1-.LSCIE1
23068 .LSCIE1:
23069 .4byte 0x0
23070 .byte 0x1
23071 .ascii "z\0"
23072 .byte 0x1
23073 .byte 0x78
23074 .byte 0x1a
23075 .byte 0x0
23076 .byte 0x4
23077 .4byte 1
23078 .p2align 1
23079 .LECIE1:
23080 .LSFDE1:
23081 .4byte .LEFDE1-.LASFDE1
23082 .LASFDE1:
23083 .4byte .LASFDE1-__FRAME_BEGIN__
23084 .4byte .LFB1
23085 .4byte .LFE1-.LFB1
23086 .byte 0x4
23087 .4byte .LFE1-.LFB1
23088 .byte 0x4
23089 .4byte .L1-.LFB1
23090 .LEFDE1:' > conftest.s
23091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23093 (eval $ac_try) 2>&5
23094 ac_status=$?
23095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23096 test $ac_status = 0; }; }
23097 then
23098 cat > conftest.lit <<EOF
23099 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23100 0010 01000000 12000000 18000000 00000000 ................
23101 0020 08000000 04080000 0044 .........D
23103 cat > conftest.big <<EOF
23104 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23105 0010 00000001 00000012 00000018 00000000 ................
23106 0020 00000008 04000000 0844 .........D
23108 # If the assembler didn't choke, and we can objdump,
23109 # and we got the correct data, then succeed.
23110 # The text in the here-document typically retains its unix-style line
23111 # endings, while the output of objdump will use host line endings.
23112 # Therefore, use diff -b for the comparisons.
23113 if test x$gcc_cv_objdump != x \
23114 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23115 | tail -3 > conftest.got \
23116 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23117 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23118 then
23119 gcc_cv_as_eh_frame=yes
23120 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }; }; then
23126 gcc_cv_as_eh_frame=buggy
23127 else
23128 # Uh oh, what do we do now?
23129 gcc_cv_as_eh_frame=no
23131 else
23132 echo "configure: failed program was" >&5
23133 cat conftest.s >&5
23135 rm -f conftest.o conftest.s
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23139 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23142 if test $gcc_cv_as_eh_frame = buggy; then
23144 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23149 $as_echo_n "checking assembler for section merging support... " >&6; }
23150 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23151 $as_echo_n "(cached) " >&6
23152 else
23153 gcc_cv_as_shf_merge=no
23154 if test $in_tree_gas = yes; then
23155 if test $in_tree_gas_is_elf = yes \
23156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23157 then gcc_cv_as_shf_merge=yes
23159 elif test x$gcc_cv_as != x; then
23160 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23166 test $ac_status = 0; }; }
23167 then
23168 gcc_cv_as_shf_merge=yes
23169 else
23170 echo "configure: failed program was" >&5
23171 cat conftest.s >&5
23173 rm -f conftest.o conftest.s
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23177 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23179 if test $gcc_cv_as_shf_merge = no; then
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23181 $as_echo_n "checking assembler for section merging support... " >&6; }
23182 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23184 else
23185 gcc_cv_as_shf_merge=no
23186 if test $in_tree_gas = yes; then
23187 if test $in_tree_gas_is_elf = yes \
23188 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23189 then gcc_cv_as_shf_merge=yes
23191 elif test x$gcc_cv_as != x; then
23192 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23199 then
23200 gcc_cv_as_shf_merge=yes
23201 else
23202 echo "configure: failed program was" >&5
23203 cat conftest.s >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23209 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23215 _ACEOF
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23219 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23220 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23221 $as_echo_n "(cached) " >&6
23222 else
23223 gcc_cv_as_comdat_group=no
23224 if test $in_tree_gas = yes; then
23225 if test $in_tree_gas_is_elf = yes \
23226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23227 then gcc_cv_as_comdat_group=yes
23229 elif test x$gcc_cv_as != x; then
23230 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23236 test $ac_status = 0; }; }
23237 then
23238 gcc_cv_as_comdat_group=yes
23239 else
23240 echo "configure: failed program was" >&5
23241 cat conftest.s >&5
23243 rm -f conftest.o conftest.s
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23247 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23249 if test $gcc_cv_as_comdat_group = yes; then
23250 gcc_cv_as_comdat_group_percent=no
23251 gcc_cv_as_comdat_group_group=no
23252 else
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23254 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23255 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23257 else
23258 gcc_cv_as_comdat_group_percent=no
23259 if test $in_tree_gas = yes; then
23260 if test $in_tree_gas_is_elf = yes \
23261 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23262 then gcc_cv_as_comdat_group_percent=yes
23264 elif test x$gcc_cv_as != x; then
23265 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23272 then
23273 gcc_cv_as_comdat_group_percent=yes
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23282 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23284 if test $gcc_cv_as_comdat_group_percent = yes; then
23285 gcc_cv_as_comdat_group_group=no
23286 else
23287 case "${target}" in
23288 # Sun as uses a completely different syntax.
23289 *-*-solaris2*)
23290 case "${target}" in
23291 sparc*-*-solaris2*)
23292 conftest_s='
23293 .group foo,".text%foo",#comdat
23294 .section ".text%foo", #alloc,#execinstr,#progbits
23295 .globl foo
23296 foo:
23299 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23300 conftest_s='
23301 .group foo,.text%foo,#comdat
23302 .section .text%foo, "ax", @progbits
23303 .globl foo
23304 foo:
23307 esac
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23309 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23310 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23311 $as_echo_n "(cached) " >&6
23312 else
23313 gcc_cv_as_comdat_group_group=no
23314 if test x$gcc_cv_as != x; then
23315 $as_echo "$conftest_s" > conftest.s
23316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }
23322 then
23323 gcc_cv_as_comdat_group_group=yes
23324 else
23325 echo "configure: failed program was" >&5
23326 cat conftest.s >&5
23328 rm -f conftest.o conftest.s
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23332 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23335 esac
23336 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23337 gcc_cv_as_comdat_group_group=no
23341 if test x"$ld_is_gold" = xyes; then
23342 comdat_group=yes
23343 elif test $in_tree_ld = yes ; then
23344 comdat_group=no
23345 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 \
23346 && test $in_tree_ld_is_elf = yes; then
23347 comdat_group=yes
23349 elif echo "$ld_ver" | grep GNU > /dev/null; then
23350 comdat_group=yes
23351 if test 0"$ld_date" -lt 20050308; then
23352 if test -n "$ld_date"; then
23353 # If there was date string, but was earlier than 2005-03-08, fail
23354 comdat_group=no
23355 elif test "$ld_vers_major" -lt 2; then
23356 comdat_group=no
23357 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23358 comdat_group=no
23361 else
23362 case "${target}" in
23363 *-*-solaris2.1[1-9]*)
23364 comdat_group=no
23365 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23366 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23367 # version 1.688.
23369 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23370 # least ld version 1.2267.
23371 if test "$ld_vers_major" -gt 1; then
23372 comdat_group=yes
23373 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23374 comdat_group=yes
23375 elif test "$ld_vers_minor" -ge 2267; then
23376 comdat_group=yes
23380 # Assume linkers other than GNU ld don't support COMDAT group.
23381 comdat_group=no
23383 esac
23385 # Allow overriding the automatic COMDAT group tests above.
23386 # Check whether --enable-comdat was given.
23387 if test "${enable_comdat+set}" = set; then :
23388 enableval=$enable_comdat; comdat_group="$enable_comdat"
23391 if test $comdat_group = no; then
23392 gcc_cv_as_comdat_group=no
23393 gcc_cv_as_comdat_group_percent=no
23394 gcc_cv_as_comdat_group_group=no
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23399 || test $gcc_cv_as_comdat_group_percent = yes \
23400 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23401 _ACEOF
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23405 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23406 if test "${gcc_cv_as_discriminator+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23409 gcc_cv_as_discriminator=no
23410 if test $in_tree_gas = yes; then
23411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23412 then gcc_cv_as_discriminator=yes
23414 elif test x$gcc_cv_as != x; then
23415 $as_echo ' .text
23416 .file 1 "conf.c"
23417 .loc 1 1 0 discriminator 1' > conftest.s
23418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }
23424 then
23425 gcc_cv_as_discriminator=yes
23426 else
23427 echo "configure: failed program was" >&5
23428 cat conftest.s >&5
23430 rm -f conftest.o conftest.s
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23434 $as_echo "$gcc_cv_as_discriminator" >&6; }
23435 if test $gcc_cv_as_discriminator = yes; then
23437 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23441 # Thread-local storage - the check is heavily parameterized.
23442 conftest_s=
23443 tls_first_major=
23444 tls_first_minor=
23445 tls_as_opt=
23446 case "$target" in
23447 alpha*-*-*)
23448 conftest_s='
23449 .section ".tdata","awT",@progbits
23450 foo: .long 25
23451 .text
23452 ldq $27,__tls_get_addr($29) !literal!1
23453 lda $16,foo($29) !tlsgd!1
23454 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23455 ldq $27,__tls_get_addr($29) !literal!2
23456 lda $16,foo($29) !tlsldm!2
23457 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23458 ldq $1,foo($29) !gotdtprel
23459 ldah $2,foo($29) !dtprelhi
23460 lda $3,foo($2) !dtprello
23461 lda $4,foo($29) !dtprel
23462 ldq $1,foo($29) !gottprel
23463 ldah $2,foo($29) !tprelhi
23464 lda $3,foo($2) !tprello
23465 lda $4,foo($29) !tprel'
23466 tls_first_major=2
23467 tls_first_minor=13
23468 tls_as_opt=--fatal-warnings
23470 cris-*-*|crisv32-*-*)
23471 conftest_s='
23472 .section ".tdata","awT",@progbits
23473 x: .long 25
23474 .text
23475 move.d x:IE,$r10
23476 nop'
23477 tls_first_major=2
23478 tls_first_minor=20
23479 tls_as_opt=--fatal-warnings
23481 frv*-*-*)
23482 conftest_s='
23483 .section ".tdata","awT",@progbits
23484 x: .long 25
23485 .text
23486 call #gettlsoff(x)'
23487 tls_first_major=2
23488 tls_first_minor=14
23490 hppa*-*-linux*)
23491 conftest_s='
23492 t1: .reg %r20
23493 t2: .reg %r21
23494 gp: .reg %r19
23495 .section ".tdata","awT",@progbits
23496 foo: .long 25
23497 .text
23498 .align 4
23499 addil LT%foo-$tls_gdidx$,gp
23500 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23501 b __tls_get_addr
23503 addil LT%foo-$tls_ldidx$,gp
23504 b __tls_get_addr
23505 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23506 addil LR%foo-$tls_dtpoff$,%ret0
23507 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23508 mfctl %cr27,%t1
23509 addil LT%foo-$tls_ieoff$,gp
23510 ldw RT%foo-$tls_ieoff$(%r1),%t2
23511 add %t1,%t2,%t3
23512 mfctl %cr27,%t1
23513 addil LR%foo-$tls_leoff$,%t1
23514 ldo RR%foo-$tls_leoff$(%r1),%t2'
23515 tls_first_major=2
23516 tls_first_minor=15
23517 tls_as_opt=--fatal-warnings
23519 arm*-*-*)
23520 conftest_s='
23521 .section ".tdata","awT",%progbits
23522 foo: .long 25
23523 .text
23524 .word foo(gottpoff)
23525 .word foo(tpoff)
23526 .word foo(tlsgd)
23527 .word foo(tlsldm)
23528 .word foo(tlsldo)'
23529 tls_first_major=2
23530 tls_first_minor=17
23532 i[34567]86-*-* | x86_64-*-*)
23533 case "$target" in
23534 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23535 on_solaris=yes
23538 on_solaris=no
23540 esac
23541 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23542 conftest_s='
23543 .section .tdata,"awt",@progbits'
23544 tls_first_major=0
23545 tls_first_minor=0
23546 tls_section_flag=t
23548 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23550 else
23551 conftest_s='
23552 .section ".tdata","awT",@progbits'
23553 tls_first_major=2
23554 tls_first_minor=14
23555 tls_section_flag=T
23556 tls_as_opt="--fatal-warnings"
23558 case "$target" in
23559 i[34567]86-*-*)
23560 conftest_s="$conftest_s
23561 foo: .long 25
23562 .text
23563 movl %gs:0, %eax
23564 leal foo@tlsgd(,%ebx,1), %eax
23565 leal foo@tlsldm(%ebx), %eax
23566 leal foo@dtpoff(%eax), %edx
23567 movl foo@gottpoff(%ebx), %eax
23568 subl foo@gottpoff(%ebx), %eax
23569 addl foo@gotntpoff(%ebx), %eax
23570 movl foo@indntpoff, %eax
23571 movl \$foo@tpoff, %eax
23572 subl \$foo@tpoff, %eax
23573 leal foo@ntpoff(%ecx), %eax"
23575 x86_64-*-*)
23576 if test x$on_solaris = xyes; then
23577 case $gas_flag in
23578 yes) tls_as_opt="$tls_as_opt --64" ;;
23579 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23580 esac
23582 conftest_s="$conftest_s
23583 foo: .long 25
23584 .text
23585 movq %fs:0, %rax
23586 leaq foo@tlsgd(%rip), %rdi
23587 leaq foo@tlsld(%rip), %rdi
23588 leaq foo@dtpoff(%rax), %rdx
23589 movq foo@gottpoff(%rip), %rax
23590 movq \$foo@tpoff, %rax"
23592 esac
23594 ia64-*-*)
23595 conftest_s='
23596 .section ".tdata","awT",@progbits
23597 foo: data8 25
23598 .text
23599 addl r16 = @ltoff(@dtpmod(foo#)), gp
23600 addl r17 = @ltoff(@dtprel(foo#)), gp
23601 addl r18 = @ltoff(@tprel(foo#)), gp
23602 addl r19 = @dtprel(foo#), gp
23603 adds r21 = @dtprel(foo#), r13
23604 movl r23 = @dtprel(foo#)
23605 addl r20 = @tprel(foo#), gp
23606 adds r22 = @tprel(foo#), r13
23607 movl r24 = @tprel(foo#)'
23608 tls_first_major=2
23609 tls_first_minor=13
23610 tls_as_opt=--fatal-warnings
23612 microblaze*-*-*)
23613 conftest_s='
23614 .section .tdata,"awT",@progbits
23616 .word 2
23617 .text
23618 addik r5,r20,x@TLSGD
23619 addik r5,r20,x@TLSLDM'
23620 tls_first_major=2
23621 tls_first_minor=20
23622 tls_as_opt='--fatal-warnings'
23624 mips*-*-*)
23625 conftest_s='
23626 .section .tdata,"awT",@progbits
23628 .word 2
23629 .text
23630 addiu $4, $28, %tlsgd(x)
23631 addiu $4, $28, %tlsldm(x)
23632 lui $4, %dtprel_hi(x)
23633 addiu $4, $4, %dtprel_lo(x)
23634 lw $4, %gottprel(x)($28)
23635 lui $4, %tprel_hi(x)
23636 addiu $4, $4, %tprel_lo(x)'
23637 tls_first_major=2
23638 tls_first_minor=16
23639 tls_as_opt='-32 --fatal-warnings'
23641 m68k-*-*)
23642 conftest_s='
23643 .section .tdata,"awT",@progbits
23645 .word 2
23646 .text
23647 foo:
23648 move.l x@TLSGD(%a5),%a0
23649 move.l x@TLSLDM(%a5),%a0
23650 move.l x@TLSLDO(%a5),%a0
23651 move.l x@TLSIE(%a5),%a0
23652 move.l x@TLSLE(%a5),%a0'
23653 tls_first_major=2
23654 tls_first_minor=19
23655 tls_as_opt='--fatal-warnings'
23657 nios2-*-*)
23658 conftest_s='
23659 .section ".tdata","awT",@progbits'
23660 tls_first_major=2
23661 tls_first_minor=23
23662 tls_as_opt="--fatal-warnings"
23664 aarch64*-*-*)
23665 conftest_s='
23666 .section ".tdata","awT",%progbits
23667 foo: .long 25
23668 .text
23669 adrp x0, :tlsgd:x
23670 add x0, x0, #:tlsgd_lo12:x
23671 bl __tls_get_addr
23672 nop'
23673 tls_first_major=2
23674 tls_first_minor=20
23675 tls_as_opt='--fatal-warnings'
23677 powerpc-ibm-aix*)
23678 conftest_s='
23679 .extern __get_tpointer
23680 .toc
23681 LC..1:
23682 .tc a[TC],a[TL]@le
23683 .csect .text[PR]
23684 .tlstest:
23685 lwz 9,LC..1(2)
23686 bla __get_tpointer
23687 lwzx 3,9,3
23688 .globl a
23689 .csect a[TL],4
23691 .space 4'
23692 tls_first_major=0
23693 tls_first_minor=0
23695 powerpc64*-*-*)
23696 conftest_s='
23697 .section ".tdata","awT",@progbits
23698 .align 3
23699 ld0: .space 8
23700 ld1: .space 8
23701 x1: .space 8
23702 x2: .space 8
23703 x3: .space 8
23704 .text
23705 addi 3,2,ld0@got@tlsgd
23706 bl .__tls_get_addr
23708 addi 3,2,ld1@toc
23709 bl .__tls_get_addr
23711 addi 3,2,x1@got@tlsld
23712 bl .__tls_get_addr
23714 addi 9,3,x1@dtprel
23715 bl .__tls_get_addr
23717 addis 9,3,x2@dtprel@ha
23718 addi 9,9,x2@dtprel@l
23719 bl .__tls_get_addr
23721 ld 9,x3@got@dtprel(2)
23722 add 9,9,3
23723 bl .__tls_get_addr
23724 nop'
23725 tls_first_major=2
23726 tls_first_minor=14
23727 tls_as_opt="-a64 --fatal-warnings"
23729 powerpc*-*-*)
23730 conftest_s='
23731 .section ".tdata","awT",@progbits
23732 .align 2
23733 ld0: .space 4
23734 ld1: .space 4
23735 x1: .space 4
23736 x2: .space 4
23737 x3: .space 4
23738 .text
23739 addi 3,31,ld0@got@tlsgd
23740 bl __tls_get_addr
23741 addi 3,31,x1@got@tlsld
23742 bl __tls_get_addr
23743 addi 9,3,x1@dtprel
23744 addis 9,3,x2@dtprel@ha
23745 addi 9,9,x2@dtprel@l
23746 lwz 9,x3@got@tprel(31)
23747 add 9,9,x@tls
23748 addi 9,2,x1@tprel
23749 addis 9,2,x2@tprel@ha
23750 addi 9,9,x2@tprel@l'
23751 tls_first_major=2
23752 tls_first_minor=14
23753 tls_as_opt="-a32 --fatal-warnings"
23755 s390-*-*)
23756 conftest_s='
23757 .section ".tdata","awT",@progbits
23758 foo: .long 25
23759 .text
23760 .long foo@TLSGD
23761 .long foo@TLSLDM
23762 .long foo@DTPOFF
23763 .long foo@NTPOFF
23764 .long foo@GOTNTPOFF
23765 .long foo@INDNTPOFF
23766 l %r1,foo@GOTNTPOFF(%r12)
23767 l %r1,0(%r1):tls_load:foo
23768 bas %r14,0(%r1,%r13):tls_gdcall:foo
23769 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23770 tls_first_major=2
23771 tls_first_minor=14
23772 tls_as_opt="-m31 --fatal-warnings"
23774 s390x-*-*)
23775 conftest_s='
23776 .section ".tdata","awT",@progbits
23777 foo: .long 25
23778 .text
23779 .quad foo@TLSGD
23780 .quad foo@TLSLDM
23781 .quad foo@DTPOFF
23782 .quad foo@NTPOFF
23783 .quad foo@GOTNTPOFF
23784 lg %r1,foo@GOTNTPOFF(%r12)
23785 larl %r1,foo@INDNTPOFF
23786 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23787 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23788 tls_first_major=2
23789 tls_first_minor=14
23790 tls_as_opt="-m64 -Aesame --fatal-warnings"
23792 sh-*-* | sh[34]-*-*)
23793 conftest_s='
23794 .section ".tdata","awT",@progbits
23795 foo: .long 25
23796 .text
23797 .long foo@TLSGD
23798 .long foo@TLSLDM
23799 .long foo@DTPOFF
23800 .long foo@GOTTPOFF
23801 .long foo@TPOFF'
23802 tls_first_major=2
23803 tls_first_minor=13
23804 tls_as_opt=--fatal-warnings
23806 sparc*-*-*)
23807 case "$target" in
23808 sparc*-sun-solaris2.*)
23809 on_solaris=yes
23812 on_solaris=no
23814 esac
23815 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23816 conftest_s='
23817 .section ".tdata",#alloc,#write,#tls'
23818 tls_first_major=0
23819 tls_first_minor=0
23820 else
23821 conftest_s='
23822 .section ".tdata","awT",@progbits'
23823 tls_first_major=2
23824 tls_first_minor=14
23825 tls_as_opt="-32 --fatal-warnings"
23827 conftest_s="$conftest_s
23828 foo: .long 25
23829 .text
23830 sethi %tgd_hi22(foo), %o0
23831 add %o0, %tgd_lo10(foo), %o1
23832 add %l7, %o1, %o0, %tgd_add(foo)
23833 call __tls_get_addr, %tgd_call(foo)
23834 sethi %tldm_hi22(foo), %l1
23835 add %l1, %tldm_lo10(foo), %l2
23836 add %l7, %l2, %o0, %tldm_add(foo)
23837 call __tls_get_addr, %tldm_call(foo)
23838 sethi %tldo_hix22(foo), %l3
23839 xor %l3, %tldo_lox10(foo), %l4
23840 add %o0, %l4, %l5, %tldo_add(foo)
23841 sethi %tie_hi22(foo), %o3
23842 add %o3, %tie_lo10(foo), %o3
23843 ld [%l7 + %o3], %o2, %tie_ld(foo)
23844 add %g7, %o2, %o4, %tie_add(foo)
23845 sethi %tle_hix22(foo), %l1
23846 xor %l1, %tle_lox10(foo), %o5
23847 ld [%g7 + %o5], %o1"
23849 tilepro*-*-*)
23850 conftest_s='
23851 .section ".tdata","awT",@progbits
23852 foo: .long 25
23853 .text
23854 addli r0, zero, tls_gd(foo)
23855 auli r0, zero, tls_gd_ha16(foo)
23856 addli r0, r0, tls_gd_lo16(foo)
23857 jal __tls_get_addr
23858 addli r0, zero, tls_ie(foo)
23859 auli r0, r0, tls_ie_ha16(foo)
23860 addli r0, r0, tls_ie_lo16(foo)'
23861 tls_first_major=2
23862 tls_first_minor=22
23863 tls_as_opt="--fatal-warnings"
23865 tilegx*-*-*)
23866 conftest_s='
23867 .section ".tdata","awT",@progbits
23868 foo: .long 25
23869 .text
23870 shl16insli r0, zero, hw0_last_tls_gd(foo)
23871 shl16insli r0, zero, hw1_last_tls_gd(foo)
23872 shl16insli r0, r0, hw0_tls_gd(foo)
23873 jal __tls_get_addr
23874 shl16insli r0, zero, hw1_last_tls_ie(foo)
23875 shl16insli r0, r0, hw0_tls_ie(foo)'
23876 tls_first_major=2
23877 tls_first_minor=22
23878 tls_as_opt="--fatal-warnings"
23880 xtensa*-*-*)
23881 conftest_s='
23882 .section ".tdata","awT",@progbits
23883 foo: .long 25
23884 .text
23885 movi a8, foo@TLSFUNC
23886 movi a10, foo@TLSARG
23887 callx8.tls a8, foo@TLSCALL'
23888 tls_first_major=2
23889 tls_first_minor=19
23891 esac
23892 set_have_as_tls=no
23893 if test "x$enable_tls" = xno ; then
23894 : # TLS explicitly disabled.
23895 elif test "x$enable_tls" = xyes ; then
23896 set_have_as_tls=yes # TLS explicitly enabled.
23897 elif test -z "$tls_first_major"; then
23898 : # If we don't have a check, assume no support.
23899 else
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23901 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23902 if test "${gcc_cv_as_tls+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 gcc_cv_as_tls=no
23906 if test $in_tree_gas = yes; then
23907 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23908 then gcc_cv_as_tls=yes
23910 elif test x$gcc_cv_as != x; then
23911 $as_echo "$conftest_s" > conftest.s
23912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23917 test $ac_status = 0; }; }
23918 then
23919 gcc_cv_as_tls=yes
23920 else
23921 echo "configure: failed program was" >&5
23922 cat conftest.s >&5
23924 rm -f conftest.o conftest.s
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23928 $as_echo "$gcc_cv_as_tls" >&6; }
23929 if test $gcc_cv_as_tls = yes; then
23930 set_have_as_tls=yes
23933 if test $set_have_as_tls = yes ; then
23935 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23939 # Target-specific assembler checks.
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23942 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23943 gcc_cv_ld_static_dynamic=no
23944 gcc_cv_ld_static_option='-Bstatic'
23945 gcc_cv_ld_dynamic_option='-Bdynamic'
23946 if test $in_tree_ld = yes ; then
23947 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
23948 gcc_cv_ld_static_dynamic=yes
23950 elif test x$gcc_cv_ld != x; then
23951 # Check if linker supports -Bstatic/-Bdynamic option
23952 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23953 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23954 gcc_cv_ld_static_dynamic=yes
23955 else
23956 case "$target" in
23957 # AIX ld uses -b flags
23958 *-*-aix4.[23]* | *-*-aix[5-9]*)
23959 gcc_cv_ld_static_dynamic=yes
23960 gcc_cv_ld_static_option="-bstatic"
23961 gcc_cv_ld_dynamic_option="-bdynamic"
23963 # HP-UX ld uses -a flags to select between shared and archive.
23964 *-*-hpux*)
23965 if test x"$gnu_ld" = xno; then
23966 gcc_cv_ld_static_dynamic=yes
23967 gcc_cv_ld_static_option="-aarchive_shared"
23968 gcc_cv_ld_dynamic_option="-adefault"
23971 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23972 *-*-solaris2*)
23973 gcc_cv_ld_static_dynamic=yes
23975 esac
23978 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23980 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23983 cat >>confdefs.h <<_ACEOF
23984 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23985 _ACEOF
23988 cat >>confdefs.h <<_ACEOF
23989 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23990 _ACEOF
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23994 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23996 if test x"$demangler_in_ld" = xyes; then
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23998 $as_echo_n "checking linker --demangle support... " >&6; }
23999 gcc_cv_ld_demangle=no
24000 if test $in_tree_ld = yes; then
24001 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 \
24002 gcc_cv_ld_demangle=yes
24004 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24005 # Check if the GNU linker supports --demangle option
24006 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24007 gcc_cv_ld_demangle=yes
24010 if test x"$gcc_cv_ld_demangle" = xyes; then
24012 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24016 $as_echo "$gcc_cv_ld_demangle" >&6; }
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24020 $as_echo_n "checking linker plugin support... " >&6; }
24021 gcc_cv_lto_plugin=0
24022 if test -f liblto_plugin.la; then
24023 save_ld_ver="$ld_ver"
24024 save_ld_vers_major="$ld_vers_major"
24025 save_ld_vers_minor="$ld_vers_minor"
24026 save_ld_is_gold="$ld_is_gold"
24028 ld_is_gold=no
24030 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24031 ld_ver="GNU ld"
24032 # FIXME: ld_is_gold?
24033 ld_vers_major="$gcc_cv_gld_major_version"
24034 ld_vers_minor="$gcc_cv_gld_minor_version"
24035 else
24036 # Determine plugin linker version.
24037 # FIXME: Partial duplicate from above, generalize.
24038 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24039 if echo "$ld_ver" | grep GNU > /dev/null; then
24040 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24041 ld_is_gold=yes
24042 ld_vers=`echo $ld_ver | sed -n \
24043 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24044 else
24045 ld_vers=`echo $ld_ver | sed -n \
24046 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24048 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24049 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24053 # Determine plugin support.
24054 if echo "$ld_ver" | grep GNU > /dev/null; then
24055 # Require GNU ld or gold 2.21+ for plugin support by default.
24056 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24057 gcc_cv_lto_plugin=2
24058 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24059 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24060 gcc_cv_lto_plugin=1
24064 ld_ver="$save_ld_ver"
24065 ld_vers_major="$save_ld_vers_major"
24066 ld_vers_minor="$save_ld_vers_minor"
24067 ld_is_gold="$save_ld_is_gold"
24070 cat >>confdefs.h <<_ACEOF
24071 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24072 _ACEOF
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24075 $as_echo "$gcc_cv_lto_plugin" >&6; }
24077 case "$target" in
24078 aarch64*-*-*)
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24080 $as_echo_n "checking assembler for -mabi option... " >&6; }
24081 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24082 $as_echo_n "(cached) " >&6
24083 else
24084 gcc_cv_as_aarch64_mabi=no
24085 if test x$gcc_cv_as != x; then
24086 $as_echo '.text' > conftest.s
24087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24093 then
24094 gcc_cv_as_aarch64_mabi=yes
24095 else
24096 echo "configure: failed program was" >&5
24097 cat conftest.s >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24103 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24105 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24107 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24109 else
24110 if test x$with_abi = xilp32; then
24111 as_fn_error "Assembler does not support -mabi=ilp32.\
24112 Upgrade the Assembler." "$LINENO" 5
24114 if test x"$with_multilib_list" = xdefault; then
24115 TM_MULTILIB_CONFIG=lp64
24116 else
24117 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24118 for aarch64_multilib in ${aarch64_multilibs}; do
24119 case ${aarch64_multilib} in
24120 ilp32)
24121 as_fn_error "Assembler does not support -mabi=ilp32.\
24122 Upgrade the Assembler." "$LINENO" 5
24126 esac
24127 done
24130 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24131 # Check whether --enable-fix-cortex-a53-835769 was given.
24132 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24133 enableval=$enable_fix_cortex_a53_835769;
24134 case $enableval in
24135 yes)
24136 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24141 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24142 Valid choices are 'yes' and 'no'." "$LINENO" 5
24145 esac
24149 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24150 # Check whether --enable-fix-cortex-a53-843419 was given.
24151 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24152 enableval=$enable_fix_cortex_a53_843419;
24153 case $enableval in
24154 yes)
24155 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24160 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24161 Valid choices are 'yes' and 'no'." "$LINENO" 5
24164 esac
24170 # All TARGET_ABI_OSF targets.
24171 alpha*-*-linux* | alpha*-*-*bsd*)
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24173 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24174 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24175 $as_echo_n "(cached) " >&6
24176 else
24177 gcc_cv_as_alpha_explicit_relocs=no
24178 if test $in_tree_gas = yes; then
24179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24180 then gcc_cv_as_alpha_explicit_relocs=yes
24182 elif test x$gcc_cv_as != x; then
24183 $as_echo ' .set nomacro
24184 .text
24185 extbl $3, $2, $3 !lituse_bytoff!1
24186 ldq $2, a($29) !literal!1
24187 ldq $4, b($29) !literal!2
24188 ldq_u $3, 0($2) !lituse_base!1
24189 ldq $27, f($29) !literal!5
24190 jsr $26, ($27), f !lituse_jsr!5
24191 ldah $29, 0($26) !gpdisp!3
24192 lda $0, c($29) !gprel
24193 ldah $1, d($29) !gprelhigh
24194 lda $1, d($1) !gprellow
24195 lda $29, 0($29) !gpdisp!3' > conftest.s
24196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201 test $ac_status = 0; }; }
24202 then
24203 gcc_cv_as_alpha_explicit_relocs=yes
24204 else
24205 echo "configure: failed program was" >&5
24206 cat conftest.s >&5
24208 rm -f conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24212 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24213 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24215 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24219 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24220 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 gcc_cv_as_alpha_jsrdirect_relocs=no
24224 if test $in_tree_gas = yes; then
24225 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24226 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24228 elif test x$gcc_cv_as != x; then
24229 $as_echo ' .set nomacro
24230 .text
24231 ldq $27, a($29) !literal!1
24232 jsr $26, ($27), a !lituse_jsrdirect!1' > 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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
24249 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24250 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24252 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24257 avr-*-*)
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24259 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24260 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24262 else
24263 gcc_cv_as_avr_mlink_relax=no
24264 if test x$gcc_cv_as != x; then
24265 $as_echo '.text' > conftest.s
24266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }
24272 then
24273 gcc_cv_as_avr_mlink_relax=yes
24274 else
24275 echo "configure: failed program was" >&5
24276 cat conftest.s >&5
24278 rm -f conftest.o conftest.s
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24282 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24283 if test $gcc_cv_as_avr_mlink_relax = yes; then
24285 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24290 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24291 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24293 else
24294 gcc_cv_as_avr_mrmw=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 -mrmw -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_avr_mrmw=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_avr_mrmw" >&5
24313 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24314 if test $gcc_cv_as_avr_mrmw = yes; then
24316 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24321 cris-*-*)
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24323 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24324 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_cris_no_mul_bug=no
24328 if test $in_tree_gas = yes; then
24329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24330 then gcc_cv_as_cris_no_mul_bug=yes
24332 elif test x$gcc_cv_as != x; then
24333 $as_echo '.text' > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24340 then
24341 gcc_cv_as_cris_no_mul_bug=yes
24342 else
24343 echo "configure: failed program was" >&5
24344 cat conftest.s >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24350 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24351 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24353 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24358 sparc*-*-*)
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24360 $as_echo_n "checking assembler for .register... " >&6; }
24361 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_sparc_register_op=no
24365 if test x$gcc_cv_as != x; then
24366 $as_echo '.register %g2, #scratch' > conftest.s
24367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372 test $ac_status = 0; }; }
24373 then
24374 gcc_cv_as_sparc_register_op=yes
24375 else
24376 echo "configure: failed program was" >&5
24377 cat conftest.s >&5
24379 rm -f conftest.o conftest.s
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24383 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24384 if test $gcc_cv_as_sparc_register_op = yes; then
24386 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24391 $as_echo_n "checking assembler for #nobits... " >&6; }
24392 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24393 $as_echo_n "(cached) " >&6
24394 else
24395 gcc_cv_as_sparc_nobits=no
24396 if test x$gcc_cv_as != x; then
24397 $as_echo '.section "nobits",#alloc,#write,#nobits
24398 .section "progbits",#alloc,#write,#progbits' > conftest.s
24399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24401 (eval $ac_try) 2>&5
24402 ac_status=$?
24403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24404 test $ac_status = 0; }; }
24405 then
24406 gcc_cv_as_sparc_nobits=yes
24407 else
24408 echo "configure: failed program was" >&5
24409 cat conftest.s >&5
24411 rm -f conftest.o conftest.s
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24415 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24418 cat >>confdefs.h <<_ACEOF
24419 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24420 _ACEOF
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24424 $as_echo_n "checking assembler for -relax option... " >&6; }
24425 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24426 $as_echo_n "(cached) " >&6
24427 else
24428 gcc_cv_as_sparc_relax=no
24429 if test x$gcc_cv_as != x; then
24430 $as_echo '.text' > conftest.s
24431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24436 test $ac_status = 0; }; }
24437 then
24438 gcc_cv_as_sparc_relax=yes
24439 else
24440 echo "configure: failed program was" >&5
24441 cat conftest.s >&5
24443 rm -f conftest.o conftest.s
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24447 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24448 if test $gcc_cv_as_sparc_relax = yes; then
24450 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24455 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24456 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24457 $as_echo_n "(cached) " >&6
24458 else
24459 gcc_cv_as_sparc_gotdata_op=no
24460 if test x$gcc_cv_as != x; then
24461 $as_echo '.text
24462 .align 4
24463 foo:
24465 bar:
24466 sethi %gdop_hix22(foo), %g1
24467 xor %g1, %gdop_lox10(foo), %g1
24468 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24475 then
24476 if test x$gcc_cv_ld != x \
24477 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24478 if test x$gcc_cv_objdump != x; then
24479 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24480 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24481 gcc_cv_as_sparc_gotdata_op=no
24482 else
24483 gcc_cv_as_sparc_gotdata_op=yes
24487 rm -f conftest
24488 else
24489 echo "configure: failed program was" >&5
24490 cat conftest.s >&5
24492 rm -f conftest.o conftest.s
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24496 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24497 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24499 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24504 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24505 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 gcc_cv_as_sparc_ua_pcrel=no
24509 if test x$gcc_cv_as != x; then
24510 $as_echo '.text
24511 foo:
24513 .data
24514 .align 4
24515 .byte 0
24516 .uaword %r_disp32(foo)' > conftest.s
24517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24522 test $ac_status = 0; }; }
24523 then
24524 if test x$gcc_cv_ld != x \
24525 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24526 gcc_cv_as_sparc_ua_pcrel=yes
24528 rm -f conftest
24529 else
24530 echo "configure: failed program was" >&5
24531 cat conftest.s >&5
24533 rm -f conftest.o conftest.s
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24537 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24538 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24540 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24544 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24545 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24547 else
24548 gcc_cv_as_sparc_ua_pcrel_hidden=no
24549 if test x$gcc_cv_as != x; then
24550 $as_echo '.data
24551 .align 4
24552 .byte 0x31
24553 .uaword %r_disp32(foo)
24554 .byte 0x32, 0x33, 0x34
24555 .global foo
24556 .hidden foo
24557 foo:
24558 .skip 4' > conftest.s
24559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24561 (eval $ac_try) 2>&5
24562 ac_status=$?
24563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24564 test $ac_status = 0; }; }
24565 then
24566 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24567 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24568 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24569 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24570 if $gcc_cv_objdump -R conftest 2> /dev/null \
24571 | grep 'DISP32' > /dev/null 2>&1; then
24573 else
24574 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24577 rm -f conftest
24578 else
24579 echo "configure: failed program was" >&5
24580 cat conftest.s >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24586 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24587 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24589 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24593 fi # unaligned pcrel relocs
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24596 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24597 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24599 else
24600 gcc_cv_as_sparc_offsetable_lo10=no
24601 if test x$gcc_cv_as != x; then
24602 $as_echo '.text
24603 or %g1, %lo(ab) + 12, %g1
24604 or %g1, %lo(ab + 12), %g1' > conftest.s
24605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }
24611 then
24612 if test x$gcc_cv_objdump != x \
24613 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24614 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24615 gcc_cv_as_sparc_offsetable_lo10=yes
24617 else
24618 echo "configure: failed program was" >&5
24619 cat conftest.s >&5
24621 rm -f conftest.o conftest.s
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24625 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24626 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24628 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24633 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24634 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_sparc_fmaf=no
24638 if test x$gcc_cv_as != x; then
24639 $as_echo '.text
24640 .register %g2, #scratch
24641 .register %g3, #scratch
24642 .align 4
24643 fmaddd %f0, %f2, %f4, %f6
24644 addxccc %g1, %g2, %g3
24645 fsrl32 %f2, %f4, %f8
24646 fnaddd %f10, %f12, %f14' > conftest.s
24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24653 then
24654 gcc_cv_as_sparc_fmaf=yes
24655 else
24656 echo "configure: failed program was" >&5
24657 cat conftest.s >&5
24659 rm -f conftest.o conftest.s
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24663 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24664 if test $gcc_cv_as_sparc_fmaf = yes; then
24666 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24671 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24672 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24674 else
24675 gcc_cv_as_sparc_sparc4=no
24676 if test x$gcc_cv_as != x; then
24677 $as_echo '.text
24678 .register %g2, #scratch
24679 .register %g3, #scratch
24680 .align 4
24681 cxbe %g2, %g3, 1f
24682 1: cwbneg %g2, %g3, 1f
24683 1: sha1
24685 aes_kexpand0 %f4, %f6, %f8
24686 des_round %f38, %f40, %f42, %f44
24687 camellia_f %f54, %f56, %f58, %f60
24688 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24695 then
24696 gcc_cv_as_sparc_sparc4=yes
24697 else
24698 echo "configure: failed program was" >&5
24699 cat conftest.s >&5
24701 rm -f conftest.o conftest.s
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24705 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24706 if test $gcc_cv_as_sparc_sparc4 = yes; then
24708 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24713 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24714 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24715 $as_echo_n "(cached) " >&6
24716 else
24717 gcc_cv_as_sparc_leon=no
24718 if test x$gcc_cv_as != x; then
24719 $as_echo '.text
24720 .register %g2, #scratch
24721 .register %g3, #scratch
24722 .align 4
24723 smac %g2, %g3, %g1
24724 umac %g2, %g3, %g1
24725 casa [%g2] 0xb, %g3, %g1' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 gcc_cv_as_sparc_leon=yes
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24742 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24743 if test $gcc_cv_as_sparc_leon = yes; then
24745 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24750 i[34567]86-*-* | x86_64-*-*)
24751 case $target_os in
24752 cygwin*)
24753 # Full C++ conformance when using a shared libstdc++-v3 requires some
24754 # support from the Cygwin DLL, which in more recent versions exports
24755 # wrappers to aid in interposing and redirecting operators new, delete,
24756 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24757 # are configuring for a version of Cygwin that exports the wrappers.
24758 if test x$host = x$target && test x$host_cpu = xi686; then
24759 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24760 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24761 gcc_ac_cygwin_dll_wrappers=yes
24762 else
24763 gcc_ac_cygwin_dll_wrappers=no
24766 else
24767 # Can't check presence of libc functions during cross-compile, so
24768 # we just have to assume we're building for an up-to-date target.
24769 gcc_ac_cygwin_dll_wrappers=yes
24772 cat >>confdefs.h <<_ACEOF
24773 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24774 _ACEOF
24776 esac
24777 case $target_os in
24778 cygwin* | pe | mingw32* | interix*)
24779 # Recent binutils allows the three-operand form of ".comm" on PE. This
24780 # definition is used unconditionally to initialise the default state of
24781 # the target option variable that governs usage of the feature.
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24783 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24784 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24786 else
24787 gcc_cv_as_comm_has_align=no
24788 if test $in_tree_gas = yes; then
24789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24790 then gcc_cv_as_comm_has_align=yes
24792 elif test x$gcc_cv_as != x; then
24793 $as_echo '.comm foo,1,32' > conftest.s
24794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24799 test $ac_status = 0; }; }
24800 then
24801 gcc_cv_as_comm_has_align=yes
24802 else
24803 echo "configure: failed program was" >&5
24804 cat conftest.s >&5
24806 rm -f conftest.o conftest.s
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24810 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24813 cat >>confdefs.h <<_ACEOF
24814 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24815 _ACEOF
24817 # Used for DWARF 2 in PE
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24819 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24820 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 gcc_cv_as_ix86_pe_secrel32=no
24824 if test $in_tree_gas = yes; then
24825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24826 then gcc_cv_as_ix86_pe_secrel32=yes
24828 elif test x$gcc_cv_as != x; then
24829 $as_echo '.text
24830 foo: nop
24831 .data
24832 .secrel32 foo' > conftest.s
24833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; }
24839 then
24840 if test x$gcc_cv_ld != x \
24841 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24842 gcc_cv_as_ix86_pe_secrel32=yes
24844 rm -f conftest
24845 else
24846 echo "configure: failed program was" >&5
24847 cat conftest.s >&5
24849 rm -f conftest.o conftest.s
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24853 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24854 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24856 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24859 # Test if the assembler supports the extended form of the .section
24860 # directive that specifies section alignment. LTO support uses this,
24861 # but normally only after installation, so we warn but don't fail the
24862 # configure if LTO is enabled but the assembler does not support it.
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24864 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24865 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_section_has_align=no
24869 if test $in_tree_gas = yes; then
24870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24871 then gcc_cv_as_section_has_align=yes
24873 elif test x$gcc_cv_as != x; then
24874 $as_echo '.section lto_test,"dr0"' > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 gcc_cv_as_section_has_align=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24891 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24893 if test x$gcc_cv_as_section_has_align != xyes; then
24894 case ",$enable_languages," in
24895 *,lto,*)
24896 { $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
24897 $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;}
24899 esac
24902 esac
24904 # Test if the assembler supports the section flag 'e' for specifying
24905 # an excluded section.
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24907 $as_echo_n "checking assembler for .section with e... " >&6; }
24908 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24909 $as_echo_n "(cached) " >&6
24910 else
24911 gcc_cv_as_section_has_e=no
24912 if test $in_tree_gas = yes; then
24913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24914 then gcc_cv_as_section_has_e=yes
24916 elif test x$gcc_cv_as != x; then
24917 $as_echo '.section foo1,"e"
24918 .byte 0,0,0,0' > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24925 then
24926 gcc_cv_as_section_has_e=yes
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24935 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24938 cat >>confdefs.h <<_ACEOF
24939 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24940 _ACEOF
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24944 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24945 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 gcc_cv_as_ix86_filds=no
24949 if test x$gcc_cv_as != x; then
24950 $as_echo 'filds mem; fists mem' > conftest.s
24951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24953 (eval $ac_try) 2>&5
24954 ac_status=$?
24955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24956 test $ac_status = 0; }; }
24957 then
24958 gcc_cv_as_ix86_filds=yes
24959 else
24960 echo "configure: failed program was" >&5
24961 cat conftest.s >&5
24963 rm -f conftest.o conftest.s
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24967 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24968 if test $gcc_cv_as_ix86_filds = yes; then
24970 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24975 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24976 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24977 $as_echo_n "(cached) " >&6
24978 else
24979 gcc_cv_as_ix86_fildq=no
24980 if test x$gcc_cv_as != x; then
24981 $as_echo 'fildq mem; fistpq mem' > conftest.s
24982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24987 test $ac_status = 0; }; }
24988 then
24989 gcc_cv_as_ix86_fildq=yes
24990 else
24991 echo "configure: failed program was" >&5
24992 cat conftest.s >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24998 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24999 if test $gcc_cv_as_ix86_fildq = yes; then
25001 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25006 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25007 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25009 else
25010 gcc_cv_as_ix86_cmov_sun_syntax=no
25011 if test x$gcc_cv_as != x; then
25012 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25016 ac_status=$?
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25019 then
25020 gcc_cv_as_ix86_cmov_sun_syntax=yes
25021 else
25022 echo "configure: failed program was" >&5
25023 cat conftest.s >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25029 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25030 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25032 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25037 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25038 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25040 else
25041 gcc_cv_as_ix86_ffreep=no
25042 if test x$gcc_cv_as != x; then
25043 $as_echo 'ffreep %st(1)' > conftest.s
25044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25050 then
25051 gcc_cv_as_ix86_ffreep=yes
25052 else
25053 echo "configure: failed program was" >&5
25054 cat conftest.s >&5
25056 rm -f conftest.o conftest.s
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25060 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25061 if test $gcc_cv_as_ix86_ffreep = yes; then
25063 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25068 $as_echo_n "checking assembler for .quad directive... " >&6; }
25069 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_ix86_quad=no
25073 if test x$gcc_cv_as != x; then
25074 $as_echo '.quad 0' > conftest.s
25075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25081 then
25082 gcc_cv_as_ix86_quad=yes
25083 else
25084 echo "configure: failed program was" >&5
25085 cat conftest.s >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25091 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25092 if test $gcc_cv_as_ix86_quad = yes; then
25094 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25099 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25100 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 gcc_cv_as_ix86_sahf=no
25104 if test x$gcc_cv_as != x; then
25105 $as_echo '.code64
25106 sahf' > conftest.s
25107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25112 test $ac_status = 0; }; }
25113 then
25114 gcc_cv_as_ix86_sahf=yes
25115 else
25116 echo "configure: failed program was" >&5
25117 cat conftest.s >&5
25119 rm -f conftest.o conftest.s
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25123 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25124 if test $gcc_cv_as_ix86_sahf = yes; then
25126 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25131 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25132 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25133 $as_echo_n "(cached) " >&6
25134 else
25135 gcc_cv_as_ix86_interunit_movq=no
25136 if test x$gcc_cv_as != x; then
25137 $as_echo '.code64
25138 movq %mm0, %rax
25139 movq %rax, %xmm0' > conftest.s
25140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25146 then
25147 gcc_cv_as_ix86_interunit_movq=yes
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25156 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25159 cat >>confdefs.h <<_ACEOF
25160 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25161 _ACEOF
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25165 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25166 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25168 else
25169 gcc_cv_as_ix86_hle=no
25170 if test x$gcc_cv_as != x; then
25171 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 then
25179 gcc_cv_as_ix86_hle=yes
25180 else
25181 echo "configure: failed program was" >&5
25182 cat conftest.s >&5
25184 rm -f conftest.o conftest.s
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25188 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25189 if test $gcc_cv_as_ix86_hle = yes; then
25191 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25196 $as_echo_n "checking assembler for swap suffix... " >&6; }
25197 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_ix86_swap=no
25201 if test x$gcc_cv_as != x; then
25202 $as_echo 'movl.s %esp, %ebp' > conftest.s
25203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25209 then
25210 gcc_cv_as_ix86_swap=yes
25211 else
25212 echo "configure: failed program was" >&5
25213 cat conftest.s >&5
25215 rm -f conftest.o conftest.s
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25219 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25220 if test $gcc_cv_as_ix86_swap = yes; then
25222 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25227 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25228 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25229 $as_echo_n "(cached) " >&6
25230 else
25231 gcc_cv_as_ix86_diff_sect_delta=no
25232 if test x$gcc_cv_as != x; then
25233 $as_echo '.section .rodata
25234 .L1:
25235 .long .L2-.L1
25236 .long .L3-.L1
25237 .text
25238 .L3: nop
25239 .L2: nop' > conftest.s
25240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25246 then
25247 gcc_cv_as_ix86_diff_sect_delta=yes
25248 else
25249 echo "configure: failed program was" >&5
25250 cat conftest.s >&5
25252 rm -f conftest.o conftest.s
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25256 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25257 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25259 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25263 # These two are used unconditionally by i386.[ch]; it is to be defined
25264 # to 1 if the feature is present, 0 otherwise.
25265 as_ix86_gotoff_in_data_opt=
25266 if test x$gas = xyes; then
25267 as_ix86_gotoff_in_data_opt="--32"
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25270 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25271 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25273 else
25274 gcc_cv_as_ix86_gotoff_in_data=no
25275 if test $in_tree_gas = yes; then
25276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25277 then gcc_cv_as_ix86_gotoff_in_data=yes
25279 elif test x$gcc_cv_as != x; then
25280 $as_echo ' .text
25281 .L0:
25283 .data
25284 .long .L0@GOTOFF' > conftest.s
25285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25291 then
25292 gcc_cv_as_ix86_gotoff_in_data=yes
25293 else
25294 echo "configure: failed program was" >&5
25295 cat conftest.s >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25301 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25304 cat >>confdefs.h <<_ACEOF
25305 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25306 _ACEOF
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25310 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25311 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25312 $as_echo_n "(cached) " >&6
25313 else
25314 gcc_cv_as_ix86_rep_lock_prefix=no
25315 if test x$gcc_cv_as != x; then
25316 $as_echo 'rep movsl
25317 rep ret
25318 rep nop
25319 rep bsf %ecx, %eax
25320 rep bsr %ecx, %eax
25321 lock addl %edi, (%eax,%esi)
25322 lock orl $0, (%esp)' > conftest.s
25323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25329 then
25330 gcc_cv_as_ix86_rep_lock_prefix=yes
25331 else
25332 echo "configure: failed program was" >&5
25333 cat conftest.s >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25339 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25340 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25342 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25347 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25348 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25349 $as_echo_n "(cached) " >&6
25350 else
25351 gcc_cv_as_ix86_ud2=no
25352 if test x$gcc_cv_as != x; then
25353 $as_echo 'ud2' > conftest.s
25354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25359 test $ac_status = 0; }; }
25360 then
25361 gcc_cv_as_ix86_ud2=yes
25362 else
25363 echo "configure: failed program was" >&5
25364 cat conftest.s >&5
25366 rm -f conftest.o conftest.s
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25370 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25371 if test $gcc_cv_as_ix86_ud2 = yes; then
25373 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25378 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25379 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25381 else
25382 gcc_cv_as_ix86_tlsgdplt=no
25383 if test x$gcc_cv_as != x; then
25384 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25391 then
25392 if test x$gcc_cv_ld != x \
25393 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25394 gcc_cv_as_ix86_tlsgdplt=yes
25396 rm -f conftest
25397 else
25398 echo "configure: failed program was" >&5
25399 cat conftest.s >&5
25401 rm -f conftest.o conftest.s
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25405 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25406 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25408 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25412 conftest_s='
25413 .section .tdata,"aw'$tls_section_flag'",@progbits
25414 tls_ld:
25415 .section .text,"ax",@progbits
25416 call tls_ld@tlsldmplt'
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25418 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25419 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25422 gcc_cv_as_ix86_tlsldmplt=no
25423 if test x$gcc_cv_as != x; then
25424 $as_echo "$conftest_s" > conftest.s
25425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; }
25431 then
25432 if test x$gcc_cv_ld != x \
25433 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25434 gcc_cv_as_ix86_tlsldmplt=yes
25436 rm -f conftest
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25441 rm -f conftest.o conftest.s
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25445 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25448 cat >>confdefs.h <<_ACEOF
25449 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25450 _ACEOF
25453 # Enforce 32-bit output with gas and gld.
25454 if test x$gas = xyes; then
25455 as_ix86_tls_ldm_opt="--32"
25457 if echo "$ld_ver" | grep GNU > /dev/null; then
25458 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25459 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25460 else
25461 ld_ix86_tls_ldm_opt="-melf_i386"
25464 conftest_s='
25465 .section .text,"ax",@progbits
25466 .globl _start
25467 .type _start, @function
25468 _start:
25469 leal value@tlsldm(%ebx), %eax
25470 call ___tls_get_addr@plt
25472 .section .tdata,"aw'$tls_section_flag'",@progbits
25473 .type value, @object
25474 value:'
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25476 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25477 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25479 else
25480 gcc_cv_as_ix86_tlsldm=no
25481 if test x$gcc_cv_as != x; then
25482 $as_echo "$conftest_s" > conftest.s
25483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25489 then
25490 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25491 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25492 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25493 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25494 gcc_cv_as_ix86_tlsldm=yes
25497 rm -f conftest
25498 else
25499 echo "configure: failed program was" >&5
25500 cat conftest.s >&5
25502 rm -f conftest.o conftest.s
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25506 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25509 cat >>confdefs.h <<_ACEOF
25510 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25511 _ACEOF
25516 ia64*-*-*)
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25518 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25519 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25520 $as_echo_n "(cached) " >&6
25521 else
25522 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25523 if test $in_tree_gas = yes; then
25524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25525 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25527 elif test x$gcc_cv_as != x; then
25528 $as_echo ' .text
25529 addl r15 = @ltoffx(x#), gp
25531 ld8.mov r16 = [r15], x#' > conftest.s
25532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25537 test $ac_status = 0; }; }
25538 then
25539 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25540 else
25541 echo "configure: failed program was" >&5
25542 cat conftest.s >&5
25544 rm -f conftest.o conftest.s
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25548 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25549 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25551 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25557 powerpc*-*-*)
25558 case $target in
25559 *-*-aix*) conftest_s=' .machine "pwr5"
25560 .csect .text[PR]
25561 mfcr 3,128';;
25562 *-*-darwin*)
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25564 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25565 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25568 gcc_cv_as_machine_directive=no
25569 if test x$gcc_cv_as != x; then
25570 $as_echo ' .machine ppc7400' > conftest.s
25571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25577 then
25578 gcc_cv_as_machine_directive=yes
25579 else
25580 echo "configure: failed program was" >&5
25581 cat conftest.s >&5
25583 rm -f conftest.o conftest.s
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25587 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25589 if test x$gcc_cv_as_machine_directive != xyes; then
25590 echo "*** This target requires an assembler supporting \".machine\"" >&2
25591 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25592 test x$build = x$target && exit 1
25594 conftest_s=' .text
25595 mfcr r3,128';;
25596 *) conftest_s=' .machine power4
25597 .text
25598 mfcr 3,128';;
25599 esac
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25602 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25603 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25605 else
25606 gcc_cv_as_powerpc_mfcrf=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25609 then gcc_cv_as_powerpc_mfcrf=yes
25611 elif test x$gcc_cv_as != x; then
25612 $as_echo "$conftest_s" > conftest.s
25613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25616 ac_status=$?
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; }
25619 then
25620 gcc_cv_as_powerpc_mfcrf=yes
25621 else
25622 echo "configure: failed program was" >&5
25623 cat conftest.s >&5
25625 rm -f conftest.o conftest.s
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25629 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25630 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25632 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25636 case $target in
25637 *-*-aix*) conftest_s=' .machine "pwr5"
25638 .csect .text[PR]
25639 popcntb 3,3';;
25640 *) conftest_s=' .machine power5
25641 .text
25642 popcntb 3,3';;
25643 esac
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25646 $as_echo_n "checking assembler for popcntb support... " >&6; }
25647 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_powerpc_popcntb=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25653 then gcc_cv_as_powerpc_popcntb=yes
25655 elif test x$gcc_cv_as != x; then
25656 $as_echo "$conftest_s" > conftest.s
25657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25663 then
25664 gcc_cv_as_powerpc_popcntb=yes
25665 else
25666 echo "configure: failed program was" >&5
25667 cat conftest.s >&5
25669 rm -f conftest.o conftest.s
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25673 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25674 if test $gcc_cv_as_powerpc_popcntb = yes; then
25676 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25680 case $target in
25681 *-*-aix*) conftest_s=' .machine "pwr5x"
25682 .csect .text[PR]
25683 frin 1,1';;
25684 *) conftest_s=' .machine power5
25685 .text
25686 frin 1,1';;
25687 esac
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25690 $as_echo_n "checking assembler for fp round support... " >&6; }
25691 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25692 $as_echo_n "(cached) " >&6
25693 else
25694 gcc_cv_as_powerpc_fprnd=no
25695 if test $in_tree_gas = yes; then
25696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25697 then gcc_cv_as_powerpc_fprnd=yes
25699 elif test x$gcc_cv_as != x; then
25700 $as_echo "$conftest_s" > conftest.s
25701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706 test $ac_status = 0; }; }
25707 then
25708 gcc_cv_as_powerpc_fprnd=yes
25709 else
25710 echo "configure: failed program was" >&5
25711 cat conftest.s >&5
25713 rm -f conftest.o conftest.s
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25717 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25718 if test $gcc_cv_as_powerpc_fprnd = yes; then
25720 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25724 case $target in
25725 *-*-aix*) conftest_s=' .machine "pwr6"
25726 .csect .text[PR]
25727 mffgpr 1,3';;
25728 *) conftest_s=' .machine power6
25729 .text
25730 mffgpr 1,3';;
25731 esac
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25734 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25735 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25736 $as_echo_n "(cached) " >&6
25737 else
25738 gcc_cv_as_powerpc_mfpgpr=no
25739 if test $in_tree_gas = yes; then
25740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25741 then gcc_cv_as_powerpc_mfpgpr=yes
25743 elif test x$gcc_cv_as != x; then
25744 $as_echo "$conftest_s" > conftest.s
25745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25751 then
25752 gcc_cv_as_powerpc_mfpgpr=yes
25753 else
25754 echo "configure: failed program was" >&5
25755 cat conftest.s >&5
25757 rm -f conftest.o conftest.s
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25761 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25762 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25764 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25768 case $target in
25769 *-*-aix*) conftest_s=' .csect .text[PR]
25770 LCF..0:
25771 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25772 *-*-darwin*)
25773 conftest_s=' .text
25774 LCF0:
25775 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25776 *) conftest_s=' .text
25777 .LCF0:
25778 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25779 esac
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25782 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25783 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25784 $as_echo_n "(cached) " >&6
25785 else
25786 gcc_cv_as_powerpc_rel16=no
25787 if test $in_tree_gas = yes; then
25788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25789 then gcc_cv_as_powerpc_rel16=yes
25791 elif test x$gcc_cv_as != x; then
25792 $as_echo "$conftest_s" > conftest.s
25793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25799 then
25800 gcc_cv_as_powerpc_rel16=yes
25801 else
25802 echo "configure: failed program was" >&5
25803 cat conftest.s >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25809 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25810 if test $gcc_cv_as_powerpc_rel16 = yes; then
25812 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25816 case $target in
25817 *-*-aix*) conftest_s=' .machine "pwr6"
25818 .csect .text[PR]
25819 cmpb 3,4,5';;
25820 *) conftest_s=' .machine power6
25821 .text
25822 cmpb 3,4,5';;
25823 esac
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25826 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25827 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_powerpc_cmpb=no
25831 if test $in_tree_gas = yes; then
25832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25833 then gcc_cv_as_powerpc_cmpb=yes
25835 elif test x$gcc_cv_as != x; then
25836 $as_echo "$conftest_s" > conftest.s
25837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }
25843 then
25844 gcc_cv_as_powerpc_cmpb=yes
25845 else
25846 echo "configure: failed program was" >&5
25847 cat conftest.s >&5
25849 rm -f conftest.o conftest.s
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25853 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25854 if test $gcc_cv_as_powerpc_cmpb = yes; then
25856 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25860 case $target in
25861 *-*-aix*) conftest_s=' .machine "pwr6"
25862 .csect .text[PR]
25863 dadd 1,2,3';;
25864 *) conftest_s=' .machine power6
25865 .text
25866 dadd 1,2,3';;
25867 esac
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25870 $as_echo_n "checking assembler for decimal float support... " >&6; }
25871 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_powerpc_dfp=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25877 then gcc_cv_as_powerpc_dfp=yes
25879 elif test x$gcc_cv_as != x; then
25880 $as_echo "$conftest_s" > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_powerpc_dfp=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25897 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25898 if test $gcc_cv_as_powerpc_dfp = yes; then
25900 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25904 case $target in
25905 *-*-aix*) conftest_s=' .machine "pwr7"
25906 .csect .text[PR]
25907 lxvd2x 1,2,3';;
25908 *) conftest_s=' .machine power7
25909 .text
25910 lxvd2x 1,2,3';;
25911 esac
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25914 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25915 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25917 else
25918 gcc_cv_as_powerpc_vsx=no
25919 if test $in_tree_gas = yes; then
25920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25921 then gcc_cv_as_powerpc_vsx=yes
25923 elif test x$gcc_cv_as != x; then
25924 $as_echo "$conftest_s" > conftest.s
25925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25930 test $ac_status = 0; }; }
25931 then
25932 gcc_cv_as_powerpc_vsx=yes
25933 else
25934 echo "configure: failed program was" >&5
25935 cat conftest.s >&5
25937 rm -f conftest.o conftest.s
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25941 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25942 if test $gcc_cv_as_powerpc_vsx = yes; then
25944 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25948 case $target in
25949 *-*-aix*) conftest_s=' .machine "pwr7"
25950 .csect .text[PR]
25951 popcntd 3,3';;
25952 *) conftest_s=' .machine power7
25953 .text
25954 popcntd 3,3';;
25955 esac
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25958 $as_echo_n "checking assembler for popcntd support... " >&6; }
25959 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25960 $as_echo_n "(cached) " >&6
25961 else
25962 gcc_cv_as_powerpc_popcntd=no
25963 if test $in_tree_gas = yes; then
25964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25965 then gcc_cv_as_powerpc_popcntd=yes
25967 elif test x$gcc_cv_as != x; then
25968 $as_echo "$conftest_s" > conftest.s
25969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25974 test $ac_status = 0; }; }
25975 then
25976 gcc_cv_as_powerpc_popcntd=yes
25977 else
25978 echo "configure: failed program was" >&5
25979 cat conftest.s >&5
25981 rm -f conftest.o conftest.s
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25985 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25986 if test $gcc_cv_as_powerpc_popcntd = yes; then
25988 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25992 case $target in
25993 *-*-aix*) conftest_s=' .machine "pwr8"
25994 .csect .text[PR]';;
25995 *) conftest_s=' .machine power8
25996 .text';;
25997 esac
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26000 $as_echo_n "checking assembler for power8 support... " >&6; }
26001 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26002 $as_echo_n "(cached) " >&6
26003 else
26004 gcc_cv_as_powerpc_power8=no
26005 if test $in_tree_gas = yes; then
26006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26007 then gcc_cv_as_powerpc_power8=yes
26009 elif test x$gcc_cv_as != x; then
26010 $as_echo "$conftest_s" > conftest.s
26011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016 test $ac_status = 0; }; }
26017 then
26018 gcc_cv_as_powerpc_power8=yes
26019 else
26020 echo "configure: failed program was" >&5
26021 cat conftest.s >&5
26023 rm -f conftest.o conftest.s
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26027 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26028 if test $gcc_cv_as_powerpc_power8 = yes; then
26030 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26034 case $target in
26035 *-*-aix*) conftest_s=' .csect .text[PR]
26036 lwsync';;
26037 *) conftest_s=' .text
26038 lwsync';;
26039 esac
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26042 $as_echo_n "checking assembler for lwsync support... " >&6; }
26043 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_powerpc_lwsync=no
26047 if test $in_tree_gas = yes; then
26048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26049 then gcc_cv_as_powerpc_lwsync=yes
26051 elif test x$gcc_cv_as != x; then
26052 $as_echo "$conftest_s" > conftest.s
26053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26058 test $ac_status = 0; }; }
26059 then
26060 gcc_cv_as_powerpc_lwsync=yes
26061 else
26062 echo "configure: failed program was" >&5
26063 cat conftest.s >&5
26065 rm -f conftest.o conftest.s
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26069 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26070 if test $gcc_cv_as_powerpc_lwsync = yes; then
26072 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26076 case $target in
26077 *-*-aix*) conftest_s=' .machine "476"
26078 .csect .text[PR]
26079 dci 0';;
26080 *) conftest_s=' .machine "476"
26081 .text
26082 dci 0';;
26083 esac
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26086 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26087 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_powerpc_dci=no
26091 if test $in_tree_gas = yes; then
26092 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26093 then gcc_cv_as_powerpc_dci=yes
26095 elif test x$gcc_cv_as != x; then
26096 $as_echo "$conftest_s" > conftest.s
26097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26102 test $ac_status = 0; }; }
26103 then
26104 gcc_cv_as_powerpc_dci=yes
26105 else
26106 echo "configure: failed program was" >&5
26107 cat conftest.s >&5
26109 rm -f conftest.o conftest.s
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26113 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26114 if test $gcc_cv_as_powerpc_dci = yes; then
26116 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26121 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26122 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26124 else
26125 gcc_cv_as_powerpc_gnu_attribute=no
26126 if test $in_tree_gas = yes; then
26127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26128 then gcc_cv_as_powerpc_gnu_attribute=yes
26130 elif test x$gcc_cv_as != x; then
26131 $as_echo '.gnu_attribute 4,1' > conftest.s
26132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26134 (eval $ac_try) 2>&5
26135 ac_status=$?
26136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26137 test $ac_status = 0; }; }
26138 then
26139 gcc_cv_as_powerpc_gnu_attribute=yes
26140 else
26141 echo "configure: failed program was" >&5
26142 cat conftest.s >&5
26144 rm -f conftest.o conftest.s
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26148 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26149 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26151 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26156 $as_echo_n "checking assembler for tls marker support... " >&6; }
26157 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26158 $as_echo_n "(cached) " >&6
26159 else
26160 gcc_cv_as_powerpc_tls_markers=no
26161 if test $in_tree_gas = yes; then
26162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26163 then gcc_cv_as_powerpc_tls_markers=yes
26165 elif test x$gcc_cv_as != x; then
26166 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; }
26173 then
26174 gcc_cv_as_powerpc_tls_markers=yes
26175 else
26176 echo "configure: failed program was" >&5
26177 cat conftest.s >&5
26179 rm -f conftest.o conftest.s
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26183 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26184 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26186 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26190 case $target in
26191 *-*-aix*)
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26193 $as_echo_n "checking assembler for .ref support... " >&6; }
26194 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26195 $as_echo_n "(cached) " >&6
26196 else
26197 gcc_cv_as_aix_ref=no
26198 if test $in_tree_gas = yes; then
26199 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26200 then gcc_cv_as_aix_ref=yes
26202 elif test x$gcc_cv_as != x; then
26203 $as_echo ' .csect stuff[rw]
26204 stuff:
26205 .long 1
26206 .extern sym
26207 .ref sym
26208 ' > conftest.s
26209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26214 test $ac_status = 0; }; }
26215 then
26216 gcc_cv_as_aix_ref=yes
26217 else
26218 echo "configure: failed program was" >&5
26219 cat conftest.s >&5
26221 rm -f conftest.o conftest.s
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26225 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26226 if test $gcc_cv_as_aix_ref = yes; then
26228 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26232 esac
26235 mips*-*-*)
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26237 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26238 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26239 $as_echo_n "(cached) " >&6
26240 else
26241 gcc_cv_as_mips_explicit_relocs=no
26242 if test $in_tree_gas = yes; then
26243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26244 then gcc_cv_as_mips_explicit_relocs=yes
26246 elif test x$gcc_cv_as != x; then
26247 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26253 test $ac_status = 0; }; }
26254 then
26255 gcc_cv_as_mips_explicit_relocs=yes
26256 else
26257 echo "configure: failed program was" >&5
26258 cat conftest.s >&5
26260 rm -f conftest.o conftest.s
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26264 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26265 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26266 if test x$target_cpu_default = x
26267 then target_cpu_default=MASK_EXPLICIT_RELOCS
26268 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26272 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26273 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26274 $as_echo_n "(cached) " >&6
26275 else
26276 gcc_cv_as_mips_no_shared=no
26277 if test $in_tree_gas = yes; then
26278 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26279 then gcc_cv_as_mips_no_shared=yes
26281 elif test x$gcc_cv_as != x; then
26282 $as_echo 'nop' > conftest.s
26283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26288 test $ac_status = 0; }; }
26289 then
26290 gcc_cv_as_mips_no_shared=yes
26291 else
26292 echo "configure: failed program was" >&5
26293 cat conftest.s >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26299 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26300 if test $gcc_cv_as_mips_no_shared = yes; then
26302 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26307 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26308 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_mips_gnu_attribute=no
26312 if test $in_tree_gas = yes; then
26313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26314 then gcc_cv_as_mips_gnu_attribute=yes
26316 elif test x$gcc_cv_as != x; then
26317 $as_echo '.gnu_attribute 4,1' > conftest.s
26318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26324 then
26325 gcc_cv_as_mips_gnu_attribute=yes
26326 else
26327 echo "configure: failed program was" >&5
26328 cat conftest.s >&5
26330 rm -f conftest.o conftest.s
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26334 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26335 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26337 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26342 $as_echo_n "checking assembler for .module support... " >&6; }
26343 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26344 $as_echo_n "(cached) " >&6
26345 else
26346 gcc_cv_as_mips_dot_module=no
26347 if test x$gcc_cv_as != x; then
26348 $as_echo '.module mips2
26349 .module fp=xx' > conftest.s
26350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26356 then
26357 gcc_cv_as_mips_dot_module=yes
26358 else
26359 echo "configure: failed program was" >&5
26360 cat conftest.s >&5
26362 rm -f conftest.o conftest.s
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26366 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26367 if test $gcc_cv_as_mips_dot_module = yes; then
26369 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26372 if test x$gcc_cv_as_mips_dot_module = xno \
26373 && test x$with_fp_32 != x; then
26374 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26378 $as_echo_n "checking assembler for .micromips support... " >&6; }
26379 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_micromips_support=no
26383 if test x$gcc_cv_as != x; then
26384 $as_echo '.set micromips' > conftest.s
26385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26391 then
26392 gcc_cv_as_micromips_support=yes
26393 else
26394 echo "configure: failed program was" >&5
26395 cat conftest.s >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26401 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26402 if test $gcc_cv_as_micromips_support = yes; then
26404 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26409 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26410 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26411 $as_echo_n "(cached) " >&6
26412 else
26413 gcc_cv_as_mips_dtprelword=no
26414 if test $in_tree_gas = yes; then
26415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26416 then gcc_cv_as_mips_dtprelword=yes
26418 elif test x$gcc_cv_as != x; then
26419 $as_echo '.section .tdata,"awT",@progbits
26421 .word 2
26422 .text
26423 .dtprelword x+0x8000' > conftest.s
26424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26429 test $ac_status = 0; }; }
26430 then
26431 gcc_cv_as_mips_dtprelword=yes
26432 else
26433 echo "configure: failed program was" >&5
26434 cat conftest.s >&5
26436 rm -f conftest.o conftest.s
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26440 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26441 if test $gcc_cv_as_mips_dtprelword = yes; then
26443 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26448 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26449 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26450 $as_echo_n "(cached) " >&6
26451 else
26452 gcc_cv_as_mips_dspr1_mult=no
26453 if test x$gcc_cv_as != x; then
26454 $as_echo ' .set mips32r2
26455 .set nodspr2
26456 .set dsp
26457 madd $ac3,$4,$5
26458 maddu $ac3,$4,$5
26459 msub $ac3,$4,$5
26460 msubu $ac3,$4,$5
26461 mult $ac3,$4,$5
26462 multu $ac3,$4,$5' > conftest.s
26463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26465 (eval $ac_try) 2>&5
26466 ac_status=$?
26467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26468 test $ac_status = 0; }; }
26469 then
26470 gcc_cv_as_mips_dspr1_mult=yes
26471 else
26472 echo "configure: failed program was" >&5
26473 cat conftest.s >&5
26475 rm -f conftest.o conftest.s
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26479 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26480 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26482 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26487 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26488 gcc_cv_as_ld_jalr_reloc=no
26489 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26490 if test $in_tree_ld = yes ; then
26491 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 \
26492 && test $in_tree_ld_is_elf = yes; then
26493 gcc_cv_as_ld_jalr_reloc=yes
26495 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26496 echo ' .ent x' > conftest.s
26497 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26498 echo ' lw $25,%call16(y)($28)' >> conftest.s
26499 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26500 echo '1: jalr $25' >> conftest.s
26501 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26502 echo '1: jalr $25' >> conftest.s
26503 echo ' .end x' >> conftest.s
26504 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26505 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26506 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26507 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26508 gcc_cv_as_ld_jalr_reloc=yes
26511 rm -f conftest.*
26514 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26515 if test x$target_cpu_default = x; then
26516 target_cpu_default=MASK_RELAX_PIC_CALLS
26517 else
26518 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26522 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26525 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26526 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26527 $as_echo_n "(cached) " >&6
26528 else
26529 gcc_cv_ld_mips_personality_relaxation=no
26530 if test $in_tree_ld = yes ; then
26531 if test "$gcc_cv_gld_major_version" -eq 2 \
26532 -a "$gcc_cv_gld_minor_version" -ge 21 \
26533 -o "$gcc_cv_gld_major_version" -gt 2; then
26534 gcc_cv_ld_mips_personality_relaxation=yes
26536 elif test x$gcc_cv_as != x \
26537 -a x$gcc_cv_ld != x \
26538 -a x$gcc_cv_readelf != x ; then
26539 cat > conftest.s <<EOF
26540 .cfi_startproc
26541 .cfi_personality 0x80,indirect_ptr
26542 .ent test
26543 test:
26545 .end test
26546 .cfi_endproc
26548 .section .data,"aw",@progbits
26549 indirect_ptr:
26550 .dc.a personality
26552 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26553 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26554 if $gcc_cv_readelf -d conftest 2>&1 \
26555 | grep TEXTREL > /dev/null 2>&1; then
26557 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26558 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26560 else
26561 gcc_cv_ld_mips_personality_relaxation=yes
26565 rm -f conftest.s conftest.o conftest
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26568 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26569 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26571 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26576 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26577 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26579 else
26580 gcc_cv_as_mips_nan=no
26581 if test x$gcc_cv_as != x; then
26582 $as_echo '' > conftest.s
26583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26588 test $ac_status = 0; }; }
26589 then
26590 gcc_cv_as_mips_nan=yes
26591 else
26592 echo "configure: failed program was" >&5
26593 cat conftest.s >&5
26595 rm -f conftest.o conftest.s
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26599 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26600 if test $gcc_cv_as_mips_nan = yes; then
26602 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26605 if test x$gcc_cv_as_mips_nan = xno \
26606 && test x$with_nan != x; then
26607 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26610 esac
26612 # Mips and HP-UX need the GNU assembler.
26613 # Linux on IA64 might be able to use the Intel assembler.
26615 case "$target" in
26616 mips*-*-* | *-*-hpux* )
26617 if test x$gas_flag = xyes \
26618 || test x"$host" != x"$build" \
26619 || test ! -x "$gcc_cv_as" \
26620 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26622 else
26623 echo "*** This configuration requires the GNU assembler" >&2
26624 exit 1
26627 esac
26629 # ??? Not all targets support dwarf2 debug_line, even within a version
26630 # of gas. Moreover, we need to emit a valid instruction to trigger any
26631 # info to the output file. So, as supported targets are added to gas 2.11,
26632 # add some instruction here to (also) show we expect this might work.
26633 # ??? Once 2.11 is released, probably need to add first known working
26634 # version to the per-target configury.
26635 case "$cpu_type" in
26636 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26637 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26638 | visium | xstormy16 | xtensa)
26639 insn="nop"
26641 ia64 | s390)
26642 insn="nop 0"
26644 mmix)
26645 insn="swym 0"
26647 esac
26648 if test x"$insn" != x; then
26649 conftest_s="\
26650 .file 1 \"conftest.s\"
26651 .loc 1 3 0
26652 $insn"
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26654 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26655 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26656 $as_echo_n "(cached) " >&6
26657 else
26658 gcc_cv_as_dwarf2_debug_line=no
26659 if test $in_tree_gas = yes; then
26660 if test $in_tree_gas_is_elf = yes \
26661 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26662 then gcc_cv_as_dwarf2_debug_line=yes
26664 elif test x$gcc_cv_as != x; then
26665 $as_echo "$conftest_s" > conftest.s
26666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; }
26672 then
26673 if test x$gcc_cv_objdump != x \
26674 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26675 | grep debug_line > /dev/null 2>&1; then
26676 gcc_cv_as_dwarf2_debug_line=yes
26678 else
26679 echo "configure: failed program was" >&5
26680 cat conftest.s >&5
26682 rm -f conftest.o conftest.s
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26686 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26689 # The .debug_line file table must be in the exact order that
26690 # we specified the files, since these indices are also used
26691 # by DW_AT_decl_file. Approximate this test by testing if
26692 # the assembler bitches if the same index is assigned twice.
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26694 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26695 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26696 $as_echo_n "(cached) " >&6
26697 else
26698 gcc_cv_as_dwarf2_file_buggy=no
26699 if test x$gcc_cv_as != x; then
26700 $as_echo ' .file 1 "foo.s"
26701 .file 1 "bar.s"' > conftest.s
26702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }; }
26708 then
26709 gcc_cv_as_dwarf2_file_buggy=yes
26710 else
26711 echo "configure: failed program was" >&5
26712 cat conftest.s >&5
26714 rm -f conftest.o conftest.s
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26718 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26721 if test $gcc_cv_as_dwarf2_debug_line = yes \
26722 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26724 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26729 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26730 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26731 $as_echo_n "(cached) " >&6
26732 else
26733 gcc_cv_as_gdwarf2_flag=no
26734 if test $in_tree_gas = yes; then
26735 if test $in_tree_gas_is_elf = yes \
26736 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26737 then gcc_cv_as_gdwarf2_flag=yes
26739 elif test x$gcc_cv_as != x; then
26740 $as_echo "$insn" > conftest.s
26741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26746 test $ac_status = 0; }; }
26747 then
26748 gcc_cv_as_gdwarf2_flag=yes
26749 else
26750 echo "configure: failed program was" >&5
26751 cat conftest.s >&5
26753 rm -f conftest.o conftest.s
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26757 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26758 if test $gcc_cv_as_gdwarf2_flag = yes; then
26760 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26765 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26766 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26767 $as_echo_n "(cached) " >&6
26768 else
26769 gcc_cv_as_gstabs_flag=no
26770 if test $in_tree_gas = yes; then
26771 if test $in_tree_gas_is_elf = yes \
26772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26773 then gcc_cv_as_gstabs_flag=yes
26775 elif test x$gcc_cv_as != x; then
26776 $as_echo "$insn" > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_gstabs_flag=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26789 rm -f conftest.o conftest.s
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26793 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26794 if test $gcc_cv_as_gstabs_flag = yes; then
26796 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26801 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26802 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26803 $as_echo_n "(cached) " >&6
26804 else
26805 gcc_cv_as_debug_prefix_map_flag=no
26806 if test $in_tree_gas = yes; then
26807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26808 then gcc_cv_as_debug_prefix_map_flag=yes
26810 elif test x$gcc_cv_as != x; then
26811 $as_echo "$insn" > conftest.s
26812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26818 then
26819 gcc_cv_as_debug_prefix_map_flag=yes
26820 else
26821 echo "configure: failed program was" >&5
26822 cat conftest.s >&5
26824 rm -f conftest.o conftest.s
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26828 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26829 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26831 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26837 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26838 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26839 $as_echo_n "(cached) " >&6
26840 else
26841 gcc_cv_as_compress_debug=no
26842 if test x$gcc_cv_as != x; then
26843 $as_echo '' > conftest.s
26844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26849 test $ac_status = 0; }; }
26850 then
26851 # gas compiled without zlib cannot compress debug sections and warns
26852 # about it, but still exits successfully. So check for this, too.
26853 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26854 then
26855 gcc_cv_as_compress_debug=0
26856 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26857 then
26858 gcc_cv_as_compress_debug=1
26859 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26860 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26861 else
26862 gcc_cv_as_compress_debug=0
26863 # FIXME: Future gas versions will support ELF gABI style via
26864 # --compress-debug-sections[=type].
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_compress_debug" >&5
26874 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26877 cat >>confdefs.h <<_ACEOF
26878 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26879 _ACEOF
26882 cat >>confdefs.h <<_ACEOF
26883 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26884 _ACEOF
26887 cat >>confdefs.h <<_ACEOF
26888 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26889 _ACEOF
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26893 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26894 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 gcc_cv_as_lcomm_with_alignment=no
26898 if test x$gcc_cv_as != x; then
26899 $as_echo '.lcomm bar,4,16' > conftest.s
26900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26905 test $ac_status = 0; }; }
26906 then
26907 gcc_cv_as_lcomm_with_alignment=yes
26908 else
26909 echo "configure: failed program was" >&5
26910 cat conftest.s >&5
26912 rm -f conftest.o conftest.s
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26916 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26917 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26919 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26923 if test x$with_sysroot = x && test x$host = x$target \
26924 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26925 && test "$prefix" != "NONE"; then
26927 cat >>confdefs.h <<_ACEOF
26928 #define PREFIX_INCLUDE_DIR "$prefix/include"
26929 _ACEOF
26933 # Determine the version of glibc, if any, used on the target.
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26935 $as_echo_n "checking for target glibc version... " >&6; }
26937 # Check whether --with-glibc-version was given.
26938 if test "${with_glibc_version+set}" = set; then :
26939 withval=$with_glibc_version;
26940 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26941 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26942 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26943 else
26944 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26946 else
26948 glibc_version_major=0
26949 glibc_version_minor=0
26950 if test -f $target_header_dir/features.h \
26951 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26952 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26953 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26954 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26959 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26961 cat >>confdefs.h <<_ACEOF
26962 #define TARGET_GLIBC_MAJOR $glibc_version_major
26963 _ACEOF
26966 cat >>confdefs.h <<_ACEOF
26967 #define TARGET_GLIBC_MINOR $glibc_version_minor
26968 _ACEOF
26971 # Check whether --enable-gnu-unique-object was given.
26972 if test "${enable_gnu_unique_object+set}" = set; then :
26973 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26974 yes | no) ;;
26975 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26976 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26977 esac
26978 else
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26980 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26981 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26982 $as_echo_n "(cached) " >&6
26983 else
26984 gcc_cv_as_gnu_unique_object=no
26985 if test $in_tree_gas = yes; then
26986 if test $in_tree_gas_is_elf = yes \
26987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26988 then gcc_cv_as_gnu_unique_object=yes
26990 elif test x$gcc_cv_as != x; then
26991 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26997 test $ac_status = 0; }; }
26998 then
26999 gcc_cv_as_gnu_unique_object=yes
27000 else
27001 echo "configure: failed program was" >&5
27002 cat conftest.s >&5
27004 rm -f conftest.o conftest.s
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27008 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27009 if test $gcc_cv_as_gnu_unique_object = yes; then
27010 # We need to unquote above to to use the definition from config.gcc.
27011 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27013 if test $glibc_version_major -gt 2 \
27014 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27015 enable_gnu_unique_object=yes
27021 if test x$enable_gnu_unique_object = xyes; then
27023 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27028 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27029 if test "${gcc_cv_as_line_zero+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27031 else
27032 gcc_cv_as_line_zero=no
27033 if test $in_tree_gas = yes; then
27034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27035 then gcc_cv_as_line_zero=yes
27037 elif test "x$gcc_cv_as" != x; then
27038 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27039 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27041 (eval $ac_try) 2>&5
27042 ac_status=$?
27043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27044 test $ac_status = 0; }; } &&
27045 test "x`cat conftest.out`" = x
27046 then
27047 gcc_cv_as_line_zero=yes
27048 else
27049 echo "configure: failed program was" >&5
27050 cat conftest.s >&5
27051 echo "configure: error output was" >&5
27052 cat conftest.out >&5
27054 rm -f conftest.o conftest.s conftest.out
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27058 $as_echo "$gcc_cv_as_line_zero" >&6; }
27059 if test "x$gcc_cv_as_line_zero" = xyes; then
27061 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27066 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27067 gcc_cv_ld_eh_frame_hdr=no
27068 if test $in_tree_ld = yes ; then
27069 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 \
27070 && test $in_tree_ld_is_elf = yes; then
27071 gcc_cv_ld_eh_frame_hdr=yes
27073 elif test x$gcc_cv_ld != x; then
27074 if echo "$ld_ver" | grep GNU > /dev/null; then
27075 # Check if linker supports --eh-frame-hdr option
27076 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27077 gcc_cv_ld_eh_frame_hdr=yes
27079 else
27080 case "$target" in
27081 *-*-solaris2*)
27082 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27083 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27084 gcc_cv_ld_eh_frame_hdr=yes
27087 esac
27091 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27093 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27097 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27100 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27101 gcc_cv_ld_eh_frame_ciev3=no
27102 if test $in_tree_ld = yes ; then
27103 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27104 && test $in_tree_ld_is_elf = yes; then
27105 gcc_cv_ld_eh_frame_ciev3=yes
27107 elif test x$gcc_cv_ld != x; then
27108 if echo "$ld_ver" | grep GNU > /dev/null; then
27109 gcc_cv_ld_eh_frame_ciev3=yes
27110 if test 0"$ld_date" -lt 20040513; then
27111 if test -n "$ld_date"; then
27112 # If there was date string, but was earlier than 2004-05-13, fail
27113 gcc_cv_ld_eh_frame_ciev3=no
27114 elif test "$ld_vers_major" -lt 2; then
27115 gcc_cv_ld_eh_frame_ciev3=no
27116 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27117 gcc_cv_ld_eh_frame_ciev3=no
27120 else
27121 case "$target" in
27122 *-*-solaris2*)
27123 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27124 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27125 gcc_cv_ld_eh_frame_ciev3=yes
27128 esac
27132 cat >>confdefs.h <<_ACEOF
27133 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27134 _ACEOF
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27137 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27140 $as_echo_n "checking linker position independent executable support... " >&6; }
27141 gcc_cv_ld_pie=no
27142 if test $in_tree_ld = yes ; then
27143 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 \
27144 && test $in_tree_ld_is_elf = yes; then
27145 gcc_cv_ld_pie=yes
27147 elif test x$gcc_cv_ld != x; then
27148 # Check if linker supports -pie option
27149 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27150 gcc_cv_ld_pie=yes
27153 if test x"$gcc_cv_ld_pie" = xyes; then
27155 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27159 $as_echo "$gcc_cv_ld_pie" >&6; }
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27162 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27163 gcc_cv_ld_pie_copyreloc=no
27164 if test $gcc_cv_ld_pie = yes ; then
27165 if test $in_tree_ld = yes ; then
27166 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27167 gcc_cv_ld_pie_copyreloc=yes
27169 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27170 # Check if linker supports -pie option with copy reloc
27171 case "$target" in
27172 i?86-*-linux* | x86_64-*-linux*)
27173 cat > conftest1.s <<EOF
27174 .globl a_glob
27175 .data
27176 .type a_glob, @object
27177 .size a_glob, 4
27178 a_glob:
27179 .long 2
27181 cat > conftest2.s <<EOF
27182 .text
27183 .globl main
27184 .type main, @function
27185 main:
27186 movl %eax, a_glob(%rip)
27187 .size main, .-main
27188 .globl ptr
27189 .section .data.rel,"aw",@progbits
27190 .type ptr, @object
27191 ptr:
27192 .quad a_glob
27194 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27195 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27196 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27197 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27198 gcc_cv_ld_pie_copyreloc=yes
27200 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27202 esac
27206 cat >>confdefs.h <<_ACEOF
27207 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27208 _ACEOF
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27211 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27214 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27215 gcc_cv_ld_eh_gc_sections=no
27216 if test $in_tree_ld = yes ; then
27217 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 \
27218 && test $in_tree_ld_is_elf = yes; then
27219 gcc_cv_ld_eh_gc_sections=yes
27221 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27222 cat > conftest.s <<EOF
27223 .section .text
27224 .globl _start
27225 .type _start, @function
27226 _start:
27227 .long foo
27228 .size _start, .-_start
27229 .section .text.foo,"ax",@progbits
27230 .type foo, @function
27231 foo:
27232 .long 0
27233 .size foo, .-foo
27234 .section .gcc_except_table.foo,"a",@progbits
27235 .L0:
27236 .long 0
27237 .section .eh_frame,"a",@progbits
27238 .long .L0
27240 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27241 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27242 | grep "gc-sections option ignored" > /dev/null; then
27243 gcc_cv_ld_eh_gc_sections=no
27244 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27245 | grep gcc_except_table > /dev/null; then
27246 gcc_cv_ld_eh_gc_sections=yes
27247 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27248 if test x$gcc_cv_as_comdat_group != xyes; then
27249 gcc_cv_ld_eh_gc_sections=no
27250 cat > conftest.s <<EOF
27251 .section .text
27252 .globl _start
27253 .type _start, @function
27254 _start:
27255 .long foo
27256 .size _start, .-_start
27257 .section .gnu.linkonce.t.foo,"ax",@progbits
27258 .type foo, @function
27259 foo:
27260 .long 0
27261 .size foo, .-foo
27262 .section .gcc_except_table.foo,"a",@progbits
27263 .L0:
27264 .long 0
27265 .section .eh_frame,"a",@progbits
27266 .long .L0
27268 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27269 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27270 | grep "gc-sections option ignored" > /dev/null; then
27271 gcc_cv_ld_eh_gc_sections=no
27272 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27273 | grep gcc_except_table > /dev/null; then
27274 gcc_cv_ld_eh_gc_sections=yes
27280 rm -f conftest.s conftest.o conftest
27282 case "$target" in
27283 hppa*-*-linux*)
27284 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27285 gcc_cv_ld_eh_gc_sections=no
27287 esac
27288 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27290 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27294 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27297 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27298 gcc_cv_ld_eh_gc_sections_bug=no
27299 if test $in_tree_ld = yes ; then
27300 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 \
27301 && test $in_tree_ld_is_elf = yes; then
27302 gcc_cv_ld_eh_gc_sections_bug=yes
27304 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
27305 gcc_cv_ld_eh_gc_sections_bug=yes
27306 cat > conftest.s <<EOF
27307 .section .text
27308 .globl _start
27309 .type _start, @function
27310 _start:
27311 .long foo
27312 .size _start, .-_start
27313 .section .text.startup.foo,"ax",@progbits
27314 .type foo, @function
27315 foo:
27316 .long 0
27317 .size foo, .-foo
27318 .section .gcc_except_table.foo,"a",@progbits
27319 .L0:
27320 .long 0
27321 .section .eh_frame,"a",@progbits
27322 .long .L0
27324 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27325 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27326 | grep "gc-sections option ignored" > /dev/null; then
27328 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27329 | grep gcc_except_table > /dev/null; then
27330 gcc_cv_ld_eh_gc_sections_bug=no
27333 rm -f conftest.s conftest.o conftest
27335 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27337 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27341 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27344 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27345 # gold/gld support compressed debug sections since binutils 2.19/2.21
27346 if test $in_tree_ld = yes ; then
27347 gcc_cv_ld_compress_debug=0
27348 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 \
27349 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27350 gcc_cv_ld_compress_debug=2
27351 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27352 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 \
27353 && test $in_tree_ld_is_elf = yes; then
27354 gcc_cv_ld_compress_debug=1
27356 elif echo "$ld_ver" | grep GNU > /dev/null; then
27357 gcc_cv_ld_compress_debug=1
27358 if test 0"$ld_date" -lt 20050308; then
27359 if test -n "$ld_date"; then
27360 # If there was date string, but was earlier than 2005-03-08, fail
27361 gcc_cv_ld_compress_debug=0
27362 elif test "$ld_vers_major" -lt 2; then
27363 gcc_cv_ld_compress_debug=0
27364 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27365 gcc_cv_ld_compress_debug=0
27368 if test $ld_is_gold = yes; then
27369 gcc_cv_ld_compress_debug=2
27370 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27372 else
27373 case "${target}" in
27374 *-*-solaris2*)
27375 # Introduced in Solaris 11.2.
27376 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27377 gcc_cv_ld_compress_debug=3
27378 gcc_cv_ld_compress_debug_option="-z compress-sections"
27379 else
27380 gcc_cv_ld_compress_debug=0
27384 # Assume linkers other than GNU ld don't support compessed debug
27385 # sections.
27386 gcc_cv_ld_compress_debug=0
27388 esac
27391 cat >>confdefs.h <<_ACEOF
27392 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27393 _ACEOF
27396 cat >>confdefs.h <<_ACEOF
27397 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27398 _ACEOF
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27401 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27403 # --------
27404 # UNSORTED
27405 # --------
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27408 $as_echo_n "checking linker --as-needed support... " >&6; }
27409 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27410 $as_echo_n "(cached) " >&6
27411 else
27412 gcc_cv_ld_as_needed=no
27413 gcc_cv_ld_as_needed_option='--as-needed'
27414 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27415 if test $in_tree_ld = yes ; then
27416 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 \
27417 && test $in_tree_ld_is_elf = yes; then
27418 gcc_cv_ld_as_needed=yes
27420 elif test x$gcc_cv_ld != x; then
27421 # Check if linker supports --as-needed and --no-as-needed options
27422 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27423 gcc_cv_ld_as_needed=yes
27424 else
27425 case "$target" in
27426 # Solaris 2 ld always supports -z ignore/-z record.
27427 *-*-solaris2*)
27428 gcc_cv_ld_as_needed=yes
27429 gcc_cv_ld_as_needed_option="-z ignore"
27430 gcc_cv_ld_no_as_needed_option="-z record"
27432 esac
27435 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27436 # dl_iterate_phdr, i.e. since Solaris 11.
27437 case "$target" in
27438 *-*-solaris2.1[1-9]*)
27439 case "$target" in
27440 i?86-*-* | x86_64-*-*)
27441 if echo "$ld_ver" | grep GNU > /dev/null; then
27442 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27443 gcc_cv_ld_as_needed=no
27446 esac
27448 *-*-solaris2*)
27449 gcc_cv_ld_as_needed=no
27451 esac
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27455 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27456 if test x"$gcc_cv_ld_as_needed" = xyes; then
27458 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27461 cat >>confdefs.h <<_ACEOF
27462 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27463 _ACEOF
27466 cat >>confdefs.h <<_ACEOF
27467 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27468 _ACEOF
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27473 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27474 saved_LDFLAGS="$LDFLAGS"
27475 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27476 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478 /* end confdefs.h. */
27479 int main(void) {return 0;}
27480 _ACEOF
27481 if ac_fn_cxx_try_link "$LINENO"; then :
27482 gcc_cv_ld_clearcap=yes; break
27483 else
27484 gcc_cv_ld_clearcap=no
27486 rm -f core conftest.err conftest.$ac_objext \
27487 conftest$ac_exeext conftest.$ac_ext
27488 done
27489 LDFLAGS="$saved_LDFLAGS"
27490 if test "x$gcc_cv_ld_clearcap" = xyes; then
27492 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27494 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27498 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27500 case "$target:$tm_file" in
27501 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27502 case "$target" in
27503 *le-*-linux*)
27504 emul_name="-melf64lppc"
27506 *-*-linux*)
27507 emul_name="-melf64ppc"
27509 *-*-freebsd*)
27510 emul_name="-melf64ppc_fbsd"
27512 esac
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27514 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27515 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27516 $as_echo_n "(cached) " >&6
27517 else
27518 gcc_cv_ld_no_dot_syms=no
27519 if test x"$ld_is_gold" = xyes; then
27520 gcc_cv_ld_no_dot_syms=yes
27521 elif test $in_tree_ld = yes ; then
27522 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
27523 gcc_cv_ld_no_dot_syms=yes
27525 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27526 cat > conftest1.s <<EOF
27527 .text
27528 bl .foo
27530 cat > conftest2.s <<EOF
27531 .section ".opd","aw"
27532 .align 3
27533 .globl foo
27534 .type foo,@function
27535 foo:
27536 .quad .LEfoo,.TOC.@tocbase,0
27537 .text
27538 .LEfoo:
27540 .size foo,.-.LEfoo
27542 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27543 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27544 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27545 gcc_cv_ld_no_dot_syms=yes
27547 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27552 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27553 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27555 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27560 $as_echo_n "checking linker large toc support... " >&6; }
27561 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27562 $as_echo_n "(cached) " >&6
27563 else
27564 gcc_cv_ld_large_toc=no
27565 if test x"$ld_is_gold" = xyes; then
27566 gcc_cv_ld_large_toc=yes
27567 elif test $in_tree_ld = yes ; then
27568 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
27569 gcc_cv_ld_large_toc=yes
27571 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27572 cat > conftest.s <<EOF
27573 .section ".tbss","awT",@nobits
27574 .align 3
27575 ie0: .space 8
27576 .global _start
27577 .text
27578 _start:
27579 addis 9,13,ie0@got@tprel@ha
27580 ld 9,ie0@got@tprel@l(9)
27582 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27583 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27584 gcc_cv_ld_large_toc=yes
27586 rm -f conftest conftest.o conftest.s
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27591 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27592 if test x"$gcc_cv_ld_large_toc" = xyes; then
27594 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27599 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27600 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27601 $as_echo_n "(cached) " >&6
27602 else
27603 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27604 cat > conftest.s <<EOF
27605 .global _start
27606 .text
27607 _start:
27608 addis 9,2,x@got@ha
27609 .section .data.rel.ro,"aw",@progbits
27610 .p2align 16
27611 .space 32768
27612 x: .quad .TOC.
27614 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27615 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27616 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27618 rm -f conftest conftest.o conftest.s
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27623 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27624 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27626 cat >>confdefs.h <<_ACEOF
27627 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27628 _ACEOF
27632 esac
27634 case "$target" in
27635 *-*-aix*)
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27637 $as_echo_n "checking linker large toc support... " >&6; }
27638 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27639 $as_echo_n "(cached) " >&6
27640 else
27641 gcc_cv_ld_large_toc=no
27642 if test x$gcc_cv_as != x ; then
27643 cat > conftest.s <<EOF
27644 .toc
27645 LC..1:
27646 .tc a[TC],a[RW]
27647 .extern a[RW]
27648 .csect .text[PR]
27649 .largetoctest:
27650 addis 9,LC..1@u(2)
27651 ld 3,LC..1@l(9)
27653 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27654 gcc_cv_ld_large_toc=yes
27656 rm -f conftest conftest.o conftest.s
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27661 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27662 if test x"$gcc_cv_ld_large_toc" = xyes; then
27664 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27668 esac
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27671 $as_echo_n "checking linker --build-id support... " >&6; }
27672 if test "${gcc_cv_ld_buildid+set}" = set; then :
27673 $as_echo_n "(cached) " >&6
27674 else
27675 gcc_cv_ld_buildid=no
27676 if test $in_tree_ld = yes ; then
27677 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27678 "$gcc_cv_gld_minor_version" -ge 18 -o \
27679 "$gcc_cv_gld_major_version" -gt 2 \
27680 && test $in_tree_ld_is_elf = yes; then
27681 gcc_cv_ld_buildid=yes
27683 elif test x$gcc_cv_ld != x; then
27684 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27685 gcc_cv_ld_buildid=yes
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27690 $as_echo "$gcc_cv_ld_buildid" >&6; }
27691 if test x"$gcc_cv_ld_buildid" = xyes; then
27693 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27697 # Check whether --enable-linker-build-id was given.
27698 if test "${enable_linker_build_id+set}" = set; then :
27699 enableval=$enable_linker_build_id;
27700 else
27701 enable_linker_build_id=no
27705 if test x"$enable_linker_build_id" = xyes; then
27706 if test x"$gcc_cv_ld_buildid" = xyes; then
27708 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27710 else
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27712 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27716 # In binutils 2.21, GNU ld gained support for new emulations fully
27717 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27719 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27720 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27721 $as_echo_n "(cached) " >&6
27722 else
27723 gcc_cv_ld_sol2_emulation=no
27724 if test $in_tree_ld = yes ; then
27725 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27726 "$gcc_cv_gld_minor_version" -ge 21 -o \
27727 "$gcc_cv_gld_major_version" -gt 2 \
27728 && test $in_tree_ld_is_elf = yes; then
27729 gcc_cv_ld_sol2_emulation=yes
27731 elif test x$gcc_cv_ld != x; then
27732 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27733 grep _sol2 > /dev/null; then
27734 gcc_cv_ld_sol2_emulation=yes
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27739 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27740 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27742 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27747 $as_echo_n "checking linker --sysroot support... " >&6; }
27748 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27749 $as_echo_n "(cached) " >&6
27750 else
27751 gcc_cv_ld_sysroot=no
27752 if test $in_tree_ld = yes ; then
27753 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
27754 gcc_cv_ld_sysroot=yes
27756 elif test x$gcc_cv_ld != x; then
27757 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27758 gcc_cv_ld_sysroot=yes
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27763 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27764 if test x"$gcc_cv_ld_sysroot" = xyes; then
27766 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27770 # Test for stack protector support in target C library.
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27772 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27773 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27774 $as_echo_n "(cached) " >&6
27775 else
27776 gcc_cv_libc_provides_ssp=no
27777 case "$target" in
27778 *-*-musl*)
27779 # All versions of musl provide stack protector
27780 gcc_cv_libc_provides_ssp=yes;;
27781 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27782 # glibc 2.4 and later provides __stack_chk_fail and
27783 # either __stack_chk_guard, or TLS access to stack guard canary.
27785 if test $glibc_version_major -gt 2 \
27786 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27787 gcc_cv_libc_provides_ssp=yes
27788 else
27790 if test -f $target_header_dir/features.h \
27791 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27792 $target_header_dir/features.h > /dev/null; then
27793 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27794 $target_header_dir/features.h > /dev/null && \
27795 test -f $target_header_dir/bits/uClibc_config.h && \
27796 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27797 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27798 gcc_cv_libc_provides_ssp=yes
27800 # all versions of Bionic support stack protector
27801 elif test -f $target_header_dir/sys/cdefs.h \
27802 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27803 $target_header_dir/sys/cdefs.h > /dev/null; then
27804 gcc_cv_libc_provides_ssp=yes
27808 *-*-gnu*)
27809 # Avoid complicated tests (see
27810 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27811 # simply assert that glibc does provide this, which is true for all
27812 # realistically usable GNU/Hurd configurations.
27813 # All supported versions of musl provide it as well
27814 gcc_cv_libc_provides_ssp=yes;;
27815 *-*-darwin* | *-*-freebsd*)
27816 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27817 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27818 gcc_cv_libc_provides_ssp=yes
27819 else
27820 echo "no __stack_chk_fail on this target"
27824 *) gcc_cv_libc_provides_ssp=no ;;
27825 esac
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27828 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27830 if test x$gcc_cv_libc_provides_ssp = xyes; then
27832 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27836 # Test for <sys/sdt.h> on the target.
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27839 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27840 have_sys_sdt_h=no
27841 if test -f $target_header_dir/sys/sdt.h; then
27842 have_sys_sdt_h=yes
27844 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27848 $as_echo "$have_sys_sdt_h" >&6; }
27850 # Check if TFmode long double should be used by default or not.
27851 # Some glibc targets used DFmode long double, but with glibc 2.4
27852 # and later they can use TFmode.
27853 case "$target" in
27854 powerpc*-*-linux* | \
27855 sparc*-*-linux* | \
27856 s390*-*-linux* | \
27857 alpha*-*-linux*)
27859 # Check whether --with-long-double-128 was given.
27860 if test "${with_long_double_128+set}" = set; then :
27861 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27862 else
27864 if test $glibc_version_major -gt 2 \
27865 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27866 gcc_cv_target_ldbl128=yes
27867 else
27869 gcc_cv_target_ldbl128=no
27870 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27871 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27872 && gcc_cv_target_ldbl128=yes
27878 esac
27879 if test x$gcc_cv_target_ldbl128 = xyes; then
27881 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27886 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27887 gcc_cv_target_dl_iterate_phdr=unknown
27888 case "$target" in
27889 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27890 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27891 # libdl there, both complicating its use and breaking compatibility
27892 # between Solaris 10 updates.
27893 *-*-solaris2.1[1-9]*)
27894 # <link.h> needs both a dl_iterate_phdr declaration and support for
27895 # compilation with largefile support.
27896 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27897 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27898 gcc_cv_target_dl_iterate_phdr=yes
27899 else
27900 gcc_cv_target_dl_iterate_phdr=no
27903 *-*-dragonfly* | *-*-freebsd*)
27904 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27905 gcc_cv_target_dl_iterate_phdr=yes
27906 else
27907 gcc_cv_target_dl_iterate_phdr=no
27910 *-linux-musl*)
27911 gcc_cv_target_dl_iterate_phdr=yes
27913 esac
27915 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27917 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27921 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27923 # We no longer support different GC mechanisms. Emit an error if
27924 # the user configures with --with-gc.
27926 # Check whether --with-gc was given.
27927 if test "${with_gc+set}" = set; then :
27928 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27932 # Libraries to use on the host. This will normally be set by the top
27933 # level Makefile. Here we simply capture the value for our Makefile.
27934 if test -z "${HOST_LIBS+set}"; then
27935 HOST_LIBS=
27939 # Use the system's zlib library.
27940 zlibdir=-L../zlib
27941 zlibinc="-I\$(srcdir)/../zlib"
27943 # Check whether --with-system-zlib was given.
27944 if test "${with_system_zlib+set}" = set; then :
27945 withval=$with_system_zlib; zlibdir=
27946 zlibinc=
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27955 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27956 # Check whether --enable-maintainer-mode was given.
27957 if test "${enable_maintainer_mode+set}" = set; then :
27958 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27959 else
27960 maintainer_mode=no
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27965 $as_echo "$maintainer_mode" >&6; }
27967 if test "$maintainer_mode" = "yes"; then
27968 MAINT=''
27969 else
27970 MAINT='#'
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27975 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27976 # Check whether --enable-link-mutex was given.
27977 if test "${enable_link_mutex+set}" = set; then :
27978 enableval=$enable_link_mutex; do_link_mutex=$enableval
27979 else
27980 do_link_mutex=no
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27984 $as_echo "$do_link_mutex" >&6; }
27986 if test "$do_link_mutex" = "yes"; then
27987 DO_LINK_MUTEX=true
27988 else
27989 DO_LINK_MUTEX=false
27993 # --------------
27994 # Language hooks
27995 # --------------
27997 # Make empty files to contain the specs and options for each language.
27998 # Then add #include lines to for a compiler that has specs and/or options.
28000 subdirs=
28001 lang_opt_files=
28002 lang_specs_files=
28003 lang_tree_files=
28004 # These (without "all_") are set in each config-lang.in.
28005 # `language' must be a single word so is spelled singularly.
28006 all_languages=
28007 all_compilers=
28008 all_outputs='Makefile'
28009 # List of language makefile fragments.
28010 all_lang_makefrags=
28011 # Additional files for gengtype
28012 all_gtfiles="$target_gtfiles"
28014 # These are the languages that are set in --enable-languages,
28015 # and are available in the GCC tree.
28016 all_selected_languages=
28018 # Add the language fragments.
28019 # Languages are added via two mechanisms. Some information must be
28020 # recorded in makefile variables, these are defined in config-lang.in.
28021 # We accumulate them and plug them into the main Makefile.
28022 # The other mechanism is a set of hooks for each of the main targets
28023 # like `clean', `install', etc.
28025 language_hooks="Make-hooks"
28027 for lang in ${srcdir}/*/config-lang.in
28029 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28031 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28032 if test "x$lang_alias" = x
28033 then
28034 echo "$lang doesn't set \$language." 1>&2
28035 exit 1
28037 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28038 subdirs="$subdirs $subdir"
28040 # $gcc_subdir is where the gcc integration files are to be found
28041 # for a language, both for internal compiler purposes (compiler
28042 # sources implementing front-end to GCC tree converters), and for
28043 # build infrastructure purposes (Make-lang.in, etc.)
28045 # This will be <subdir> (relative to $srcdir) if a line like
28046 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28047 # is found in <langdir>/config-lang.in, and will remain <langdir>
28048 # otherwise.
28050 # Except for the language alias (fetched above), the regular
28051 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28052 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28053 # only this and the language alias.
28055 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28056 if [ "$gcc_subdir" = "" ]; then
28057 gcc_subdir="$subdir"
28060 case ",$enable_languages," in
28061 *,$lang_alias,*)
28062 all_selected_languages="$all_selected_languages $lang_alias"
28063 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28064 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28067 esac
28069 language=
28070 boot_language=
28071 compilers=
28072 outputs=
28073 gtfiles=
28074 subdir_requires=
28075 . ${srcdir}/$gcc_subdir/config-lang.in
28076 if test "x$language" = x
28077 then
28078 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28079 exit 1
28082 ok=:
28083 case ",$enable_languages," in
28084 *,$lang_alias,*) ;;
28086 for i in $subdir_requires; do
28087 test -f "${srcdir}/$i/config-lang.in" && continue
28088 ok=false
28089 break
28090 done
28092 esac
28093 $ok || continue
28095 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28096 if test -f $srcdir/$gcc_subdir/lang.opt; then
28097 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28098 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28100 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28101 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28103 all_languages="$all_languages $language"
28104 all_compilers="$all_compilers $compilers"
28105 all_outputs="$all_outputs $outputs"
28106 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28107 case ",$enable_languages," in
28108 *,lto,*)
28110 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28112 enable_lto=yes
28115 *) ;;
28116 esac
28117 done
28119 check_languages=
28120 for language in $all_selected_languages
28122 check_languages="$check_languages check-$language"
28123 done
28125 # We link each language in with a set of hooks, reached indirectly via
28126 # lang.${target}. Only do so for selected languages.
28128 rm -f Make-hooks
28129 touch Make-hooks
28130 target_list="all.cross start.encap rest.encap tags \
28131 install-common install-man install-info install-pdf install-html dvi \
28132 pdf html uninstall info man srcextra srcman srcinfo \
28133 mostlyclean clean distclean maintainer-clean install-plugin"
28135 for t in $target_list
28138 for lang in $all_selected_languages
28140 x="$x $lang.$t"
28141 done
28142 echo "lang.$t: $x" >> Make-hooks
28143 done
28145 # --------
28146 # Option include files
28147 # --------
28149 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28150 option_includes="option-includes.mk"
28153 # --------
28154 # UNSORTED
28155 # --------
28157 # Create .gdbinit.
28159 echo "dir ." > .gdbinit
28160 echo "dir ${srcdir}" >> .gdbinit
28161 if test x$gdb_needs_out_file_path = xyes
28162 then
28163 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28165 if test "x$subdirs" != x; then
28166 for s in $subdirs
28168 echo "dir ${srcdir}/$s" >> .gdbinit
28169 done
28171 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28172 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28174 # Put a breakpoint on __asan_report_error to help with debugging buffer
28175 # overflow.
28176 case "$CFLAGS" in
28177 *-fsanitize=address*)
28178 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28180 esac
28182 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28186 # Find a directory in which to install a shared libgcc.
28188 # Check whether --enable-version-specific-runtime-libs was given.
28189 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28190 enableval=$enable_version_specific_runtime_libs;
28194 # Substitute configuration variables
28257 # Echo link setup.
28258 if test x${build} = x${host} ; then
28259 if test x${host} = x${target} ; then
28260 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28261 else
28262 echo "Links are now set up to build a cross-compiler" 1>&2
28263 echo " from ${host} to ${target}." 1>&2
28265 else
28266 if test x${host} = x${target} ; then
28267 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28268 echo " for ${target}." 1>&2
28269 else
28270 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28271 echo " from ${host} to ${target}." 1>&2
28280 if test "x${ISLLIBS}" != "x" ; then
28282 $as_echo "#define HAVE_isl 1" >>confdefs.h
28286 # Check whether isl_schedule_constraints_compute_schedule is available;
28287 # it's new in ISL-0.13.
28288 if test "x${ISLLIBS}" != "x" ; then
28289 saved_CXXFLAGS="$CXXFLAGS"
28290 CXXFLAGS="$CXXFLAGS $ISLINC"
28291 saved_LIBS="$LIBS"
28292 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28295 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28297 /* end confdefs.h. */
28298 #include <isl/schedule.h>
28300 main ()
28302 isl_schedule_constraints_compute_schedule (NULL);
28304 return 0;
28306 _ACEOF
28307 if ac_fn_cxx_try_link "$LINENO"; then :
28308 ac_has_isl_schedule_constraints_compute_schedule=yes
28309 else
28310 ac_has_isl_schedule_constraints_compute_schedule=no
28312 rm -f core conftest.err conftest.$ac_objext \
28313 conftest$ac_exeext conftest.$ac_ext
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28315 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28317 LIBS="$saved_LIBS"
28318 CXXFLAGS="$saved_CXXFLAGS"
28320 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28322 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28327 # Check for plugin support
28328 # Check whether --enable-plugin was given.
28329 if test "${enable_plugin+set}" = set; then :
28330 enableval=$enable_plugin; enable_plugin=$enableval
28331 else
28332 enable_plugin=yes; default_plugin=yes
28336 pluginlibs=
28338 case "${host}" in
28339 *-*-darwin*)
28340 if test x$build = x$host; then
28341 export_sym_check="nm${exeext} -g"
28342 elif test x$host = x$target; then
28343 export_sym_check="$gcc_cv_nm -g"
28344 else
28345 export_sym_check=
28349 if test x$build = x$host; then
28350 export_sym_check="objdump${exeext} -T"
28351 elif test x$host = x$target; then
28352 export_sym_check="$gcc_cv_objdump -T"
28353 else
28354 export_sym_check=
28357 esac
28359 if test x"$enable_plugin" = x"yes"; then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28362 $as_echo_n "checking for exported symbols... " >&6; }
28363 if test "x$export_sym_check" != x; then
28364 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28365 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28366 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28367 : # No need to use a flag
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28369 $as_echo "yes" >&6; }
28370 else
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28372 $as_echo "yes" >&6; }
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28374 $as_echo_n "checking for -rdynamic... " >&6; }
28375 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28376 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28377 plugin_rdynamic=yes
28378 pluginlibs="-rdynamic"
28379 else
28380 plugin_rdynamic=no
28381 enable_plugin=no
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28384 $as_echo "$plugin_rdynamic" >&6; }
28386 else
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28388 $as_echo "unable to check" >&6; }
28391 # Check -ldl
28392 saved_LIBS="$LIBS"
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28394 $as_echo_n "checking for library containing dlopen... " >&6; }
28395 if test "${ac_cv_search_dlopen+set}" = set; then :
28396 $as_echo_n "(cached) " >&6
28397 else
28398 ac_func_search_save_LIBS=$LIBS
28399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28400 /* end confdefs.h. */
28402 /* Override any GCC internal prototype to avoid an error.
28403 Use char because int might match the return type of a GCC
28404 builtin and then its argument prototype would still apply. */
28405 #ifdef __cplusplus
28406 extern "C"
28407 #endif
28408 char dlopen ();
28410 main ()
28412 return dlopen ();
28414 return 0;
28416 _ACEOF
28417 for ac_lib in '' dl; do
28418 if test -z "$ac_lib"; then
28419 ac_res="none required"
28420 else
28421 ac_res=-l$ac_lib
28422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28424 if ac_fn_cxx_try_link "$LINENO"; then :
28425 ac_cv_search_dlopen=$ac_res
28427 rm -f core conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext
28429 if test "${ac_cv_search_dlopen+set}" = set; then :
28430 break
28432 done
28433 if test "${ac_cv_search_dlopen+set}" = set; then :
28435 else
28436 ac_cv_search_dlopen=no
28438 rm conftest.$ac_ext
28439 LIBS=$ac_func_search_save_LIBS
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28442 $as_echo "$ac_cv_search_dlopen" >&6; }
28443 ac_res=$ac_cv_search_dlopen
28444 if test "$ac_res" != no; then :
28445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28449 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28450 pluginlibs="$pluginlibs -ldl"
28452 LIBS="$saved_LIBS"
28454 # Check that we can build shared objects with -fPIC -shared
28455 saved_LDFLAGS="$LDFLAGS"
28456 saved_CFLAGS="$CFLAGS"
28457 case "${host}" in
28458 *-*-darwin*)
28459 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28460 CFLAGS="$CFLAGS -fPIC"
28461 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28464 CFLAGS="$CFLAGS -fPIC"
28465 LDFLAGS="$LDFLAGS -fPIC -shared"
28467 esac
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28469 $as_echo_n "checking for -fPIC -shared... " >&6; }
28470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28471 /* end confdefs.h. */
28472 extern int X;
28474 main ()
28476 return X == 0;
28478 return 0;
28480 _ACEOF
28481 if ac_fn_cxx_try_link "$LINENO"; then :
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28483 $as_echo "yes" >&6; }; have_pic_shared=yes
28484 else
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28486 $as_echo "no" >&6; }; have_pic_shared=no
28488 rm -f core conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
28490 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28491 pluginlibs=
28492 enable_plugin=no
28494 LDFLAGS="$saved_LDFLAGS"
28495 CFLAGS="$saved_CFLAGS"
28497 # If plugin support had been requested but not available, fail.
28498 if test x"$enable_plugin" = x"no" ; then
28499 if test x"$default_plugin" != x"yes"; then
28500 as_fn_error "
28501 Building GCC with plugin support requires a host that supports
28502 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28509 if test x"$enable_plugin" = x"yes"; then
28511 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28516 # Enable --enable-host-shared
28517 # Check whether --enable-host-shared was given.
28518 if test "${enable_host_shared+set}" = set; then :
28519 enableval=$enable_host_shared; PICFLAG=-fPIC
28520 else
28521 PICFLAG=
28528 # Check whether --enable-libquadmath-support was given.
28529 if test "${enable_libquadmath_support+set}" = set; then :
28530 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28531 else
28532 ENABLE_LIBQUADMATH_SUPPORT=yes
28535 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28537 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28542 # Specify what hash style to use by default.
28544 # Check whether --with-linker-hash-style was given.
28545 if test "${with_linker_hash_style+set}" = set; then :
28546 withval=$with_linker_hash_style; case x"$withval" in
28547 xsysv)
28548 LINKER_HASH_STYLE=sysv
28550 xgnu)
28551 LINKER_HASH_STYLE=gnu
28553 xboth)
28554 LINKER_HASH_STYLE=both
28557 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28559 esac
28560 else
28561 LINKER_HASH_STYLE=''
28564 if test x"${LINKER_HASH_STYLE}" != x; then
28566 cat >>confdefs.h <<_ACEOF
28567 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28568 _ACEOF
28572 # Specify what should be the default of -fdiagnostics-color option.
28574 # Check whether --with-diagnostics-color was given.
28575 if test "${with_diagnostics_color+set}" = set; then :
28576 withval=$with_diagnostics_color; case x"$withval" in
28577 xnever)
28578 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28580 xauto)
28581 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28583 xauto-if-env)
28584 DIAGNOSTICS_COLOR_DEFAULT=-1
28586 xalways)
28587 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28590 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28592 esac
28593 else
28594 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28598 cat >>confdefs.h <<_ACEOF
28599 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28600 _ACEOF
28603 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28604 # of jit/jit-playback.c.
28605 cat > gcc-driver-name.h <<EOF
28606 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28609 # Configure the subdirectories
28610 # AC_CONFIG_SUBDIRS($subdirs)
28612 # Create the Makefile
28613 # and configure language subdirectories
28614 ac_config_files="$ac_config_files $all_outputs"
28617 ac_config_commands="$ac_config_commands default"
28619 cat >confcache <<\_ACEOF
28620 # This file is a shell script that caches the results of configure
28621 # tests run on this system so they can be shared between configure
28622 # scripts and configure runs, see configure's option --config-cache.
28623 # It is not useful on other systems. If it contains results you don't
28624 # want to keep, you may remove or edit it.
28626 # config.status only pays attention to the cache file if you give it
28627 # the --recheck option to rerun configure.
28629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28631 # following values.
28633 _ACEOF
28635 # The following way of writing the cache mishandles newlines in values,
28636 # but we know of no workaround that is simple, portable, and efficient.
28637 # So, we kill variables containing newlines.
28638 # Ultrix sh set writes to stderr and can't be redirected directly,
28639 # and sets the high bit in the cache file unless we assign to the vars.
28641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28642 eval ac_val=\$$ac_var
28643 case $ac_val in #(
28644 *${as_nl}*)
28645 case $ac_var in #(
28646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28648 esac
28649 case $ac_var in #(
28650 _ | IFS | as_nl) ;; #(
28651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28652 *) { eval $ac_var=; unset $ac_var;} ;;
28653 esac ;;
28654 esac
28655 done
28657 (set) 2>&1 |
28658 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28659 *${as_nl}ac_space=\ *)
28660 # `set' does not quote correctly, so add quotes: double-quote
28661 # substitution turns \\\\ into \\, and sed turns \\ into \.
28662 sed -n \
28663 "s/'/'\\\\''/g;
28664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28665 ;; #(
28667 # `set' quotes correctly as required by POSIX, so do not add quotes.
28668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28670 esac |
28671 sort
28673 sed '
28674 /^ac_cv_env_/b end
28675 t clear
28676 :clear
28677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28678 t end
28679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28680 :end' >>confcache
28681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28682 if test -w "$cache_file"; then
28683 test "x$cache_file" != "x/dev/null" &&
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28685 $as_echo "$as_me: updating cache $cache_file" >&6;}
28686 cat confcache >$cache_file
28687 else
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28689 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28692 rm -f confcache
28694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28695 # Let make expand exec_prefix.
28696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28698 DEFS=-DHAVE_CONFIG_H
28700 ac_libobjs=
28701 ac_ltlibobjs=
28702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28703 # 1. Remove the extension, and $U if already installed.
28704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28705 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28707 # will be set to the directory where LIBOBJS objects are built.
28708 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28709 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28710 done
28711 LIBOBJS=$ac_libobjs
28713 LTLIBOBJS=$ac_ltlibobjs
28718 : ${CONFIG_STATUS=./config.status}
28719 ac_write_fail=0
28720 ac_clean_files_save=$ac_clean_files
28721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28724 as_write_fail=0
28725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28726 #! $SHELL
28727 # Generated by $as_me.
28728 # Run this file to recreate the current configuration.
28729 # Compiler output produced by configure, useful for debugging
28730 # configure, is in config.log if it exists.
28732 debug=false
28733 ac_cs_recheck=false
28734 ac_cs_silent=false
28736 SHELL=\${CONFIG_SHELL-$SHELL}
28737 export SHELL
28738 _ASEOF
28739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28740 ## -------------------- ##
28741 ## M4sh Initialization. ##
28742 ## -------------------- ##
28744 # Be more Bourne compatible
28745 DUALCASE=1; export DUALCASE # for MKS sh
28746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28747 emulate sh
28748 NULLCMD=:
28749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28750 # is contrary to our usage. Disable this feature.
28751 alias -g '${1+"$@"}'='"$@"'
28752 setopt NO_GLOB_SUBST
28753 else
28754 case `(set -o) 2>/dev/null` in #(
28755 *posix*) :
28756 set -o posix ;; #(
28757 *) :
28759 esac
28763 as_nl='
28765 export as_nl
28766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28767 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28770 # Prefer a ksh shell builtin over an external printf program on Solaris,
28771 # but without wasting forks for bash or zsh.
28772 if test -z "$BASH_VERSION$ZSH_VERSION" \
28773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28774 as_echo='print -r --'
28775 as_echo_n='print -rn --'
28776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28777 as_echo='printf %s\n'
28778 as_echo_n='printf %s'
28779 else
28780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28782 as_echo_n='/usr/ucb/echo -n'
28783 else
28784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28785 as_echo_n_body='eval
28786 arg=$1;
28787 case $arg in #(
28788 *"$as_nl"*)
28789 expr "X$arg" : "X\\(.*\\)$as_nl";
28790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28791 esac;
28792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28794 export as_echo_n_body
28795 as_echo_n='sh -c $as_echo_n_body as_echo'
28797 export as_echo_body
28798 as_echo='sh -c $as_echo_body as_echo'
28801 # The user is always right.
28802 if test "${PATH_SEPARATOR+set}" != set; then
28803 PATH_SEPARATOR=:
28804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28806 PATH_SEPARATOR=';'
28811 # IFS
28812 # We need space, tab and new line, in precisely that order. Quoting is
28813 # there to prevent editors from complaining about space-tab.
28814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28815 # splitting by setting IFS to empty value.)
28816 IFS=" "" $as_nl"
28818 # Find who we are. Look in the path if we contain no directory separator.
28819 case $0 in #((
28820 *[\\/]* ) as_myself=$0 ;;
28821 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28822 for as_dir in $PATH
28824 IFS=$as_save_IFS
28825 test -z "$as_dir" && as_dir=.
28826 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28827 done
28828 IFS=$as_save_IFS
28831 esac
28832 # We did not find ourselves, most probably we were run as `sh COMMAND'
28833 # in which case we are not to be found in the path.
28834 if test "x$as_myself" = x; then
28835 as_myself=$0
28837 if test ! -f "$as_myself"; then
28838 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28839 exit 1
28842 # Unset variables that we do not need and which cause bugs (e.g. in
28843 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28844 # suppresses any "Segmentation fault" message there. '((' could
28845 # trigger a bug in pdksh 5.2.14.
28846 for as_var in BASH_ENV ENV MAIL MAILPATH
28847 do eval test x\${$as_var+set} = xset \
28848 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28849 done
28850 PS1='$ '
28851 PS2='> '
28852 PS4='+ '
28854 # NLS nuisances.
28855 LC_ALL=C
28856 export LC_ALL
28857 LANGUAGE=C
28858 export LANGUAGE
28860 # CDPATH.
28861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28864 # as_fn_error ERROR [LINENO LOG_FD]
28865 # ---------------------------------
28866 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28867 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28868 # script with status $?, using 1 if that was 0.
28869 as_fn_error ()
28871 as_status=$?; test $as_status -eq 0 && as_status=1
28872 if test "$3"; then
28873 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28874 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28876 $as_echo "$as_me: error: $1" >&2
28877 as_fn_exit $as_status
28878 } # as_fn_error
28881 # as_fn_set_status STATUS
28882 # -----------------------
28883 # Set $? to STATUS, without forking.
28884 as_fn_set_status ()
28886 return $1
28887 } # as_fn_set_status
28889 # as_fn_exit STATUS
28890 # -----------------
28891 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28892 as_fn_exit ()
28894 set +e
28895 as_fn_set_status $1
28896 exit $1
28897 } # as_fn_exit
28899 # as_fn_unset VAR
28900 # ---------------
28901 # Portably unset VAR.
28902 as_fn_unset ()
28904 { eval $1=; unset $1;}
28906 as_unset=as_fn_unset
28907 # as_fn_append VAR VALUE
28908 # ----------------------
28909 # Append the text in VALUE to the end of the definition contained in VAR. Take
28910 # advantage of any shell optimizations that allow amortized linear growth over
28911 # repeated appends, instead of the typical quadratic growth present in naive
28912 # implementations.
28913 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28914 eval 'as_fn_append ()
28916 eval $1+=\$2
28918 else
28919 as_fn_append ()
28921 eval $1=\$$1\$2
28923 fi # as_fn_append
28925 # as_fn_arith ARG...
28926 # ------------------
28927 # Perform arithmetic evaluation on the ARGs, and store the result in the
28928 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28929 # must be portable across $(()) and expr.
28930 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28931 eval 'as_fn_arith ()
28933 as_val=$(( $* ))
28935 else
28936 as_fn_arith ()
28938 as_val=`expr "$@" || test $? -eq 1`
28940 fi # as_fn_arith
28943 if expr a : '\(a\)' >/dev/null 2>&1 &&
28944 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28945 as_expr=expr
28946 else
28947 as_expr=false
28950 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28951 as_basename=basename
28952 else
28953 as_basename=false
28956 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28957 as_dirname=dirname
28958 else
28959 as_dirname=false
28962 as_me=`$as_basename -- "$0" ||
28963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28964 X"$0" : 'X\(//\)$' \| \
28965 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28966 $as_echo X/"$0" |
28967 sed '/^.*\/\([^/][^/]*\)\/*$/{
28968 s//\1/
28971 /^X\/\(\/\/\)$/{
28972 s//\1/
28975 /^X\/\(\/\).*/{
28976 s//\1/
28979 s/.*/./; q'`
28981 # Avoid depending upon Character Ranges.
28982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28985 as_cr_digits='0123456789'
28986 as_cr_alnum=$as_cr_Letters$as_cr_digits
28988 ECHO_C= ECHO_N= ECHO_T=
28989 case `echo -n x` in #(((((
28990 -n*)
28991 case `echo 'xy\c'` in
28992 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28993 xy) ECHO_C='\c';;
28994 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28995 ECHO_T=' ';;
28996 esac;;
28998 ECHO_N='-n';;
28999 esac
29001 rm -f conf$$ conf$$.exe conf$$.file
29002 if test -d conf$$.dir; then
29003 rm -f conf$$.dir/conf$$.file
29004 else
29005 rm -f conf$$.dir
29006 mkdir conf$$.dir 2>/dev/null
29008 if (echo >conf$$.file) 2>/dev/null; then
29009 if ln -s conf$$.file conf$$ 2>/dev/null; then
29010 as_ln_s='ln -s'
29011 # ... but there are two gotchas:
29012 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29013 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29014 # In both cases, we have to default to `cp -p'.
29015 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29016 as_ln_s='cp -p'
29017 elif ln conf$$.file conf$$ 2>/dev/null; then
29018 as_ln_s=ln
29019 else
29020 as_ln_s='cp -p'
29022 else
29023 as_ln_s='cp -p'
29025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29026 rmdir conf$$.dir 2>/dev/null
29029 # as_fn_mkdir_p
29030 # -------------
29031 # Create "$as_dir" as a directory, including parents if necessary.
29032 as_fn_mkdir_p ()
29035 case $as_dir in #(
29036 -*) as_dir=./$as_dir;;
29037 esac
29038 test -d "$as_dir" || eval $as_mkdir_p || {
29039 as_dirs=
29040 while :; do
29041 case $as_dir in #(
29042 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29043 *) as_qdir=$as_dir;;
29044 esac
29045 as_dirs="'$as_qdir' $as_dirs"
29046 as_dir=`$as_dirname -- "$as_dir" ||
29047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29048 X"$as_dir" : 'X\(//\)[^/]' \| \
29049 X"$as_dir" : 'X\(//\)$' \| \
29050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29051 $as_echo X"$as_dir" |
29052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29053 s//\1/
29056 /^X\(\/\/\)[^/].*/{
29057 s//\1/
29060 /^X\(\/\/\)$/{
29061 s//\1/
29064 /^X\(\/\).*/{
29065 s//\1/
29068 s/.*/./; q'`
29069 test -d "$as_dir" && break
29070 done
29071 test -z "$as_dirs" || eval "mkdir $as_dirs"
29072 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29075 } # as_fn_mkdir_p
29076 if mkdir -p . 2>/dev/null; then
29077 as_mkdir_p='mkdir -p "$as_dir"'
29078 else
29079 test -d ./-p && rmdir ./-p
29080 as_mkdir_p=false
29083 if test -x / >/dev/null 2>&1; then
29084 as_test_x='test -x'
29085 else
29086 if ls -dL / >/dev/null 2>&1; then
29087 as_ls_L_option=L
29088 else
29089 as_ls_L_option=
29091 as_test_x='
29092 eval sh -c '\''
29093 if test -d "$1"; then
29094 test -d "$1/.";
29095 else
29096 case $1 in #(
29097 -*)set "./$1";;
29098 esac;
29099 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29100 ???[sx]*):;;*)false;;esac;fi
29101 '\'' sh
29104 as_executable_p=$as_test_x
29106 # Sed expression to map a string onto a valid CPP name.
29107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29109 # Sed expression to map a string onto a valid variable name.
29110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29113 exec 6>&1
29114 ## ----------------------------------- ##
29115 ## Main body of $CONFIG_STATUS script. ##
29116 ## ----------------------------------- ##
29117 _ASEOF
29118 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29121 # Save the log message, to keep $0 and so on meaningful, and to
29122 # report actual input values of CONFIG_FILES etc. instead of their
29123 # values after options handling.
29124 ac_log="
29125 This file was extended by $as_me, which was
29126 generated by GNU Autoconf 2.64. Invocation command line was
29128 CONFIG_FILES = $CONFIG_FILES
29129 CONFIG_HEADERS = $CONFIG_HEADERS
29130 CONFIG_LINKS = $CONFIG_LINKS
29131 CONFIG_COMMANDS = $CONFIG_COMMANDS
29132 $ $0 $@
29134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29137 _ACEOF
29139 case $ac_config_files in *"
29140 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29141 esac
29143 case $ac_config_headers in *"
29144 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29145 esac
29148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29149 # Files that config.status was made for.
29150 config_files="$ac_config_files"
29151 config_headers="$ac_config_headers"
29152 config_links="$ac_config_links"
29153 config_commands="$ac_config_commands"
29155 _ACEOF
29157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29158 ac_cs_usage="\
29159 \`$as_me' instantiates files and other configuration actions
29160 from templates according to the current configuration. Unless the files
29161 and actions are specified as TAGs, all are instantiated by default.
29163 Usage: $0 [OPTION]... [TAG]...
29165 -h, --help print this help, then exit
29166 -V, --version print version number and configuration settings, then exit
29167 -q, --quiet, --silent
29168 do not print progress messages
29169 -d, --debug don't remove temporary files
29170 --recheck update $as_me by reconfiguring in the same conditions
29171 --file=FILE[:TEMPLATE]
29172 instantiate the configuration file FILE
29173 --header=FILE[:TEMPLATE]
29174 instantiate the configuration header FILE
29176 Configuration files:
29177 $config_files
29179 Configuration headers:
29180 $config_headers
29182 Configuration links:
29183 $config_links
29185 Configuration commands:
29186 $config_commands
29188 Report bugs to the package provider."
29190 _ACEOF
29191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29192 ac_cs_version="\\
29193 config.status
29194 configured by $0, generated by GNU Autoconf 2.64,
29195 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29197 Copyright (C) 2009 Free Software Foundation, Inc.
29198 This config.status script is free software; the Free Software Foundation
29199 gives unlimited permission to copy, distribute and modify it."
29201 ac_pwd='$ac_pwd'
29202 srcdir='$srcdir'
29203 AWK='$AWK'
29204 test -n "\$AWK" || AWK=awk
29205 _ACEOF
29207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29208 # The default lists apply if the user does not specify any file.
29209 ac_need_defaults=:
29210 while test $# != 0
29212 case $1 in
29213 --*=*)
29214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29216 ac_shift=:
29219 ac_option=$1
29220 ac_optarg=$2
29221 ac_shift=shift
29223 esac
29225 case $ac_option in
29226 # Handling of the options.
29227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29228 ac_cs_recheck=: ;;
29229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29230 $as_echo "$ac_cs_version"; exit ;;
29231 --debug | --debu | --deb | --de | --d | -d )
29232 debug=: ;;
29233 --file | --fil | --fi | --f )
29234 $ac_shift
29235 case $ac_optarg in
29236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29237 esac
29238 as_fn_append CONFIG_FILES " '$ac_optarg'"
29239 ac_need_defaults=false;;
29240 --header | --heade | --head | --hea )
29241 $ac_shift
29242 case $ac_optarg in
29243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29244 esac
29245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29246 ac_need_defaults=false;;
29247 --he | --h)
29248 # Conflict between --help and --header
29249 as_fn_error "ambiguous option: \`$1'
29250 Try \`$0 --help' for more information.";;
29251 --help | --hel | -h )
29252 $as_echo "$ac_cs_usage"; exit ;;
29253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29255 ac_cs_silent=: ;;
29257 # This is an error.
29258 -*) as_fn_error "unrecognized option: \`$1'
29259 Try \`$0 --help' for more information." ;;
29261 *) as_fn_append ac_config_targets " $1"
29262 ac_need_defaults=false ;;
29264 esac
29265 shift
29266 done
29268 ac_configure_extra_args=
29270 if $ac_cs_silent; then
29271 exec 6>/dev/null
29272 ac_configure_extra_args="$ac_configure_extra_args --silent"
29275 _ACEOF
29276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29277 if \$ac_cs_recheck; then
29278 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29279 shift
29280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29281 CONFIG_SHELL='$SHELL'
29282 export CONFIG_SHELL
29283 exec "\$@"
29286 _ACEOF
29287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29288 exec 5>>config.log
29290 echo
29291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29292 ## Running $as_me. ##
29293 _ASBOX
29294 $as_echo "$ac_log"
29295 } >&5
29297 _ACEOF
29298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29300 # INIT-COMMANDS
29302 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29303 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29304 subdirs='$subdirs'
29306 _ACEOF
29308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29310 # Handling of arguments.
29311 for ac_config_target in $ac_config_targets
29313 case $ac_config_target in
29314 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29315 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29316 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29317 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29318 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29319 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29320 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29321 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29322 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29324 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29325 esac
29326 done
29329 # If the user did not use the arguments to specify the items to instantiate,
29330 # then the envvar interface is used. Set only those that are not.
29331 # We use the long form for the default assignment because of an extremely
29332 # bizarre bug on SunOS 4.1.3.
29333 if $ac_need_defaults; then
29334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29336 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29340 # Have a temporary directory for convenience. Make it in the build tree
29341 # simply because there is no reason against having it here, and in addition,
29342 # creating and moving files from /tmp can sometimes cause problems.
29343 # Hook for its removal unless debugging.
29344 # Note that there is a small window in which the directory will not be cleaned:
29345 # after its creation but before its name has been assigned to `$tmp'.
29346 $debug ||
29348 tmp=
29349 trap 'exit_status=$?
29350 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29352 trap 'as_fn_exit 1' 1 2 13 15
29354 # Create a (secure) tmp directory for tmp files.
29357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29358 test -n "$tmp" && test -d "$tmp"
29359 } ||
29361 tmp=./conf$$-$RANDOM
29362 (umask 077 && mkdir "$tmp")
29363 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29365 # Set up the scripts for CONFIG_FILES section.
29366 # No need to generate them if there are no CONFIG_FILES.
29367 # This happens for instance with `./config.status config.h'.
29368 if test -n "$CONFIG_FILES"; then
29370 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29371 ac_cs_awk_getline=:
29372 ac_cs_awk_pipe_init=
29373 ac_cs_awk_read_file='
29374 while ((getline aline < (F[key])) > 0)
29375 print(aline)
29376 close(F[key])'
29377 ac_cs_awk_pipe_fini=
29378 else
29379 ac_cs_awk_getline=false
29380 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29381 ac_cs_awk_read_file='
29382 print "|#_!!_#|"
29383 print "cat " F[key] " &&"
29384 '$ac_cs_awk_pipe_init
29385 # The final `:' finishes the AND list.
29386 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29388 ac_cr=`echo X | tr X '\015'`
29389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29390 # But we know of no other shell where ac_cr would be empty at this
29391 # point, so we can use a bashism as a fallback.
29392 if test "x$ac_cr" = x; then
29393 eval ac_cr=\$\'\\r\'
29395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29397 ac_cs_awk_cr='\r'
29398 else
29399 ac_cs_awk_cr=$ac_cr
29402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29403 _ACEOF
29405 # Create commands to substitute file output variables.
29407 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29408 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29409 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29410 echo "_ACAWK" &&
29411 echo "_ACEOF"
29412 } >conf$$files.sh &&
29413 . ./conf$$files.sh ||
29414 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29415 rm -f conf$$files.sh
29418 echo "cat >conf$$subs.awk <<_ACEOF" &&
29419 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29420 echo "_ACEOF"
29421 } >conf$$subs.sh ||
29422 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29424 ac_delim='%!_!# '
29425 for ac_last_try in false false false false false :; do
29426 . ./conf$$subs.sh ||
29427 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29429 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29430 if test $ac_delim_n = $ac_delim_num; then
29431 break
29432 elif $ac_last_try; then
29433 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29434 else
29435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29437 done
29438 rm -f conf$$subs.sh
29440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29441 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29442 _ACEOF
29443 sed -n '
29445 s/^/S["/; s/!.*/"]=/
29448 s/^[^!]*!//
29449 :repl
29450 t repl
29451 s/'"$ac_delim"'$//
29452 t delim
29455 s/\(.\{148\}\).*/\1/
29456 t more1
29457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29460 b repl
29461 :more1
29462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29465 s/.\{148\}//
29466 t nl
29467 :delim
29469 s/\(.\{148\}\).*/\1/
29470 t more2
29471 s/["\\]/\\&/g; s/^/"/; s/$/"/
29474 :more2
29475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29478 s/.\{148\}//
29479 t delim
29480 ' <conf$$subs.awk | sed '
29481 /^[^""]/{
29483 s/\n//
29485 ' >>$CONFIG_STATUS || ac_write_fail=1
29486 rm -f conf$$subs.awk
29487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29488 _ACAWK
29489 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29490 for (key in S) S_is_set[key] = 1
29491 FS = "\a"
29492 \$ac_cs_awk_pipe_init
29495 line = $ 0
29496 nfields = split(line, field, "@")
29497 substed = 0
29498 len = length(field[1])
29499 for (i = 2; i < nfields; i++) {
29500 key = field[i]
29501 keylen = length(key)
29502 if (S_is_set[key]) {
29503 value = S[key]
29504 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29505 len += length(value) + length(field[++i])
29506 substed = 1
29507 } else
29508 len += 1 + keylen
29510 if (nfields == 3 && !substed) {
29511 key = field[2]
29512 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29513 \$ac_cs_awk_read_file
29514 next
29517 print line
29519 \$ac_cs_awk_pipe_fini
29520 _ACAWK
29521 _ACEOF
29522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29525 else
29527 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29528 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29529 _ACEOF
29531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29533 # trailing colons and then remove the whole line if VPATH becomes empty
29534 # (actually we leave an empty line to preserve line numbers).
29535 if test "x$srcdir" = x.; then
29536 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29537 s/:*\$(srcdir):*/:/
29538 s/:*\${srcdir}:*/:/
29539 s/:*@srcdir@:*/:/
29540 s/^\([^=]*=[ ]*\):*/\1/
29541 s/:*$//
29542 s/^[^=]*=[ ]*$//
29546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29547 fi # test -n "$CONFIG_FILES"
29549 # Set up the scripts for CONFIG_HEADERS section.
29550 # No need to generate them if there are no CONFIG_HEADERS.
29551 # This happens for instance with `./config.status Makefile'.
29552 if test -n "$CONFIG_HEADERS"; then
29553 cat >"$tmp/defines.awk" <<\_ACAWK ||
29554 BEGIN {
29555 _ACEOF
29557 # Transform confdefs.h into an awk script `defines.awk', embedded as
29558 # here-document in config.status, that substitutes the proper values into
29559 # config.h.in to produce config.h.
29561 # Create a delimiter string that does not exist in confdefs.h, to ease
29562 # handling of long lines.
29563 ac_delim='%!_!# '
29564 for ac_last_try in false false :; do
29565 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29566 if test -z "$ac_t"; then
29567 break
29568 elif $ac_last_try; then
29569 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29570 else
29571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29573 done
29575 # For the awk script, D is an array of macro values keyed by name,
29576 # likewise P contains macro parameters if any. Preserve backslash
29577 # newline sequences.
29579 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29580 sed -n '
29581 s/.\{148\}/&'"$ac_delim"'/g
29582 t rset
29583 :rset
29584 s/^[ ]*#[ ]*define[ ][ ]*/ /
29585 t def
29587 :def
29588 s/\\$//
29589 t bsnl
29590 s/["\\]/\\&/g
29591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29592 D["\1"]=" \3"/p
29593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29595 :bsnl
29596 s/["\\]/\\&/g
29597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29598 D["\1"]=" \3\\\\\\n"\\/p
29599 t cont
29600 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29601 t cont
29603 :cont
29605 s/.\{148\}/&'"$ac_delim"'/g
29606 t clear
29607 :clear
29608 s/\\$//
29609 t bsnlc
29610 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29612 :bsnlc
29613 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29614 b cont
29615 ' <confdefs.h | sed '
29616 s/'"$ac_delim"'/"\\\
29617 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29620 for (key in D) D_is_set[key] = 1
29621 FS = "\a"
29623 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29624 line = \$ 0
29625 split(line, arg, " ")
29626 if (arg[1] == "#") {
29627 defundef = arg[2]
29628 mac1 = arg[3]
29629 } else {
29630 defundef = substr(arg[1], 2)
29631 mac1 = arg[2]
29633 split(mac1, mac2, "(") #)
29634 macro = mac2[1]
29635 prefix = substr(line, 1, index(line, defundef) - 1)
29636 if (D_is_set[macro]) {
29637 # Preserve the white space surrounding the "#".
29638 print prefix "define", macro P[macro] D[macro]
29639 next
29640 } else {
29641 # Replace #undef with comments. This is necessary, for example,
29642 # in the case of _POSIX_SOURCE, which is predefined and required
29643 # on some systems where configure will not decide to define it.
29644 if (defundef == "undef") {
29645 print "/*", prefix defundef, macro, "*/"
29646 next
29650 { print }
29651 _ACAWK
29652 _ACEOF
29653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29654 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29655 fi # test -n "$CONFIG_HEADERS"
29658 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29659 shift
29660 for ac_tag
29662 case $ac_tag in
29663 :[FHLC]) ac_mode=$ac_tag; continue;;
29664 esac
29665 case $ac_mode$ac_tag in
29666 :[FHL]*:*);;
29667 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29668 :[FH]-) ac_tag=-:-;;
29669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29670 esac
29671 ac_save_IFS=$IFS
29672 IFS=:
29673 set x $ac_tag
29674 IFS=$ac_save_IFS
29675 shift
29676 ac_file=$1
29677 shift
29679 case $ac_mode in
29680 :L) ac_source=$1;;
29681 :[FH])
29682 ac_file_inputs=
29683 for ac_f
29685 case $ac_f in
29686 -) ac_f="$tmp/stdin";;
29687 *) # Look for the file first in the build tree, then in the source tree
29688 # (if the path is not absolute). The absolute path cannot be DOS-style,
29689 # because $ac_f cannot contain `:'.
29690 test -f "$ac_f" ||
29691 case $ac_f in
29692 [\\/$]*) false;;
29693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29694 esac ||
29695 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29696 esac
29697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29698 as_fn_append ac_file_inputs " '$ac_f'"
29699 done
29701 # Let's still pretend it is `configure' which instantiates (i.e., don't
29702 # use $as_me), people would be surprised to read:
29703 # /* config.h. Generated by config.status. */
29704 configure_input='Generated from '`
29705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29706 `' by configure.'
29707 if test x"$ac_file" != x-; then
29708 configure_input="$ac_file. $configure_input"
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29710 $as_echo "$as_me: creating $ac_file" >&6;}
29712 # Neutralize special characters interpreted by sed in replacement strings.
29713 case $configure_input in #(
29714 *\&* | *\|* | *\\* )
29715 ac_sed_conf_input=`$as_echo "$configure_input" |
29716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29717 *) ac_sed_conf_input=$configure_input;;
29718 esac
29720 case $ac_tag in
29721 *:-:* | *:-) cat >"$tmp/stdin" \
29722 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29723 esac
29725 esac
29727 ac_dir=`$as_dirname -- "$ac_file" ||
29728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29729 X"$ac_file" : 'X\(//\)[^/]' \| \
29730 X"$ac_file" : 'X\(//\)$' \| \
29731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29732 $as_echo X"$ac_file" |
29733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29734 s//\1/
29737 /^X\(\/\/\)[^/].*/{
29738 s//\1/
29741 /^X\(\/\/\)$/{
29742 s//\1/
29745 /^X\(\/\).*/{
29746 s//\1/
29749 s/.*/./; q'`
29750 as_dir="$ac_dir"; as_fn_mkdir_p
29751 ac_builddir=.
29753 case "$ac_dir" in
29754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29757 # A ".." for each directory in $ac_dir_suffix.
29758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29759 case $ac_top_builddir_sub in
29760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29762 esac ;;
29763 esac
29764 ac_abs_top_builddir=$ac_pwd
29765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29766 # for backward compatibility:
29767 ac_top_builddir=$ac_top_build_prefix
29769 case $srcdir in
29770 .) # We are building in place.
29771 ac_srcdir=.
29772 ac_top_srcdir=$ac_top_builddir_sub
29773 ac_abs_top_srcdir=$ac_pwd ;;
29774 [\\/]* | ?:[\\/]* ) # Absolute name.
29775 ac_srcdir=$srcdir$ac_dir_suffix;
29776 ac_top_srcdir=$srcdir
29777 ac_abs_top_srcdir=$srcdir ;;
29778 *) # Relative name.
29779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29780 ac_top_srcdir=$ac_top_build_prefix$srcdir
29781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29782 esac
29783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29786 case $ac_mode in
29789 # CONFIG_FILE
29792 _ACEOF
29794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29795 # If the template does not know about datarootdir, expand it.
29796 # FIXME: This hack should be removed a few years after 2.60.
29797 ac_datarootdir_hack=; ac_datarootdir_seen=
29798 ac_sed_dataroot='
29799 /datarootdir/ {
29803 /@datadir@/p
29804 /@docdir@/p
29805 /@infodir@/p
29806 /@localedir@/p
29807 /@mandir@/p'
29808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29809 *datarootdir*) ac_datarootdir_seen=yes;;
29810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29813 _ACEOF
29814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29815 ac_datarootdir_hack='
29816 s&@datadir@&$datadir&g
29817 s&@docdir@&$docdir&g
29818 s&@infodir@&$infodir&g
29819 s&@localedir@&$localedir&g
29820 s&@mandir@&$mandir&g
29821 s&\\\${datarootdir}&$datarootdir&g' ;;
29822 esac
29823 _ACEOF
29825 # Neutralize VPATH when `$srcdir' = `.'.
29826 # Shell code in configure.ac might set extrasub.
29827 # FIXME: do we really want to maintain this feature?
29828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29829 ac_sed_extra="$ac_vpsub
29830 $extrasub
29831 _ACEOF
29832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29835 s|@configure_input@|$ac_sed_conf_input|;t t
29836 s&@top_builddir@&$ac_top_builddir_sub&;t t
29837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29838 s&@srcdir@&$ac_srcdir&;t t
29839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29840 s&@top_srcdir@&$ac_top_srcdir&;t t
29841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29842 s&@builddir@&$ac_builddir&;t t
29843 s&@abs_builddir@&$ac_abs_builddir&;t t
29844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29845 $ac_datarootdir_hack
29847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29848 if $ac_cs_awk_getline; then
29849 $AWK -f "$tmp/subs.awk"
29850 else
29851 $AWK -f "$tmp/subs.awk" | $SHELL
29852 fi >$tmp/out \
29853 || as_fn_error "could not create $ac_file" "$LINENO" 5
29855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29856 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29859 which seems to be undefined. Please make sure it is defined." >&5
29860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29861 which seems to be undefined. Please make sure it is defined." >&2;}
29863 rm -f "$tmp/stdin"
29864 case $ac_file in
29865 -) cat "$tmp/out" && rm -f "$tmp/out";;
29866 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29867 esac \
29868 || as_fn_error "could not create $ac_file" "$LINENO" 5
29872 # CONFIG_HEADER
29874 if test x"$ac_file" != x-; then
29876 $as_echo "/* $configure_input */" \
29877 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29878 } >"$tmp/config.h" \
29879 || as_fn_error "could not create $ac_file" "$LINENO" 5
29880 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29882 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29883 else
29884 rm -f "$ac_file"
29885 mv "$tmp/config.h" "$ac_file" \
29886 || as_fn_error "could not create $ac_file" "$LINENO" 5
29888 else
29889 $as_echo "/* $configure_input */" \
29890 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29891 || as_fn_error "could not create -" "$LINENO" 5
29896 # CONFIG_LINK
29899 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29901 else
29902 # Prefer the file from the source tree if names are identical.
29903 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29904 ac_source=$srcdir/$ac_source
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29908 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29910 if test ! -r "$ac_source"; then
29911 as_fn_error "$ac_source: file not found" "$LINENO" 5
29913 rm -f "$ac_file"
29915 # Try a relative symlink, then a hard link, then a copy.
29916 case $srcdir in
29917 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29918 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29919 esac
29920 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29921 ln "$ac_source" "$ac_file" 2>/dev/null ||
29922 cp -p "$ac_source" "$ac_file" ||
29923 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29926 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29927 $as_echo "$as_me: executing $ac_file commands" >&6;}
29929 esac
29932 case $ac_file$ac_mode in
29933 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29934 "gccdepdir":C)
29935 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29936 for lang in $subdirs c-family common
29938 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29939 done ;;
29940 "as":F) chmod +x as ;;
29941 "collect-ld":F) chmod +x collect-ld ;;
29942 "nm":F) chmod +x nm ;;
29943 "default":C)
29944 case ${CONFIG_HEADERS} in
29945 *auto-host.h:config.in*)
29946 echo > cstamp-h ;;
29947 esac
29948 # Make sure all the subdirs exist.
29949 for d in $subdirs doc build common c-family
29951 test -d $d || mkdir $d
29952 done
29955 esac
29956 done # for ac_tag
29959 as_fn_exit 0
29960 _ACEOF
29961 ac_clean_files=$ac_clean_files_save
29963 test $ac_write_fail = 0 ||
29964 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29967 # configure is writing to config.log, and then calls config.status.
29968 # config.status does its own redirection, appending to config.log.
29969 # Unfortunately, on DOS this fails, as config.log is still kept open
29970 # by configure, so config.status won't be able to write to it; its
29971 # output is simply discarded. So we exec the FD to /dev/null,
29972 # effectively closing config.log, so it can be properly (re)opened and
29973 # appended to by config.status. When coming back to configure, we
29974 # need to make the FD available again.
29975 if test "$no_create" != yes; then
29976 ac_cs_success=:
29977 ac_config_status_args=
29978 test "$silent" = yes &&
29979 ac_config_status_args="$ac_config_status_args --quiet"
29980 exec 5>/dev/null
29981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29982 exec 5>>config.log
29983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29984 # would make configure fail if this is the last instruction.
29985 $ac_cs_success || as_fn_exit $?
29987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29989 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}