Implement TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook.
[official-gcc.git] / gcc / configure
blobb26a86f4802dd775868795a274775c5b65067f9a
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 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CXXFLAGS
712 BUILD_CFLAGS
713 CXX_FOR_BUILD
714 CC_FOR_BUILD
715 inhibit_libc
716 SYSTEM_HEADER_DIR
718 CROSS
719 CATOBJEXT
720 GENCAT
721 INSTOBJEXT
722 DATADIRNAME
723 CATALOGS
724 POSUB
725 GMSGFMT
726 XGETTEXT
727 INCINTL
728 LIBINTL_DEP
729 LIBINTL
730 USE_NLS
731 extra_opt_files
732 extra_modes_file
733 NATIVE_SYSTEM_HEADER_DIR
734 objext
735 manext
736 LIBICONV_DEP
737 LTLIBICONV
738 LIBICONV
739 LDEXP_LIB
740 EXTRA_GCC_LIBS
741 GNAT_LIBEXC
742 COLLECT2_LIBS
743 CXXDEPMODE
744 DEPDIR
745 am__leading_dot
746 doc_build_sys
749 BISON
750 FLEX
751 GENERATED_MANPAGES
752 BUILD_INFO
753 MAKEINFO
754 have_mktemp_command
755 make_compare_target
756 INSTALL_DATA
757 INSTALL_PROGRAM
758 INSTALL
759 ranlib_flags
760 RANLIB
762 LN_S
764 SET_MAKE
765 accel_dir_suffix
766 real_target_noncanonical
767 enable_as_accelerator
768 REPORT_BUGS_TEXI
769 REPORT_BUGS_TO
770 PKGVERSION
771 CONFIGURE_SPECS
772 CROSS_SYSTEM_HEADER_DIR
773 TARGET_SYSTEM_ROOT_DEFINE
774 TARGET_SYSTEM_ROOT
775 SYSROOT_CFLAGS_FOR_TARGET
776 enable_shared
777 enable_fixed_point
778 enable_decimal_float
779 with_float
780 with_cpu
781 enable_multiarch
782 enable_multilib
783 coverage_flags
784 valgrind_command
785 valgrind_path_defines
786 valgrind_path
787 TREECHECKING
788 TREEBROWSER
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
798 EGREP
799 GREP
800 CXXCPP
801 PICFLAG_FOR_TARGET
802 GNATMAKE
803 GNATBIND
804 ac_ct_CXX
805 CXXFLAGS
807 OBJEXT
808 EXEEXT
809 ac_ct_CC
810 CPPFLAGS
811 LDFLAGS
812 CFLAGS
814 GENINSRC
815 target_subdir
816 host_subdir
817 build_subdir
818 build_libsubdir
819 target_noncanonical
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='option_includes
871 language_hooks'
872 ac_user_opts='
873 enable_option_checking
874 with_build_libsubdir
875 with_local_prefix
876 with_gxx_include_dir
877 with_cpp_install_dir
878 enable_generated_files_in_srcdir
879 with_gnu_ld
880 with_ld
881 with_demangler_in_ld
882 with_gnu_as
883 with_as
884 enable_largefile
885 enable_build_format_warnings
886 enable_werror_always
887 enable_checking
888 enable_coverage
889 enable_gather_detailed_mem_stats
890 enable_valgrind_annotations
891 with_stabs
892 enable_multilib
893 enable_multiarch
894 enable___cxa_atexit
895 enable_decimal_float
896 enable_fixed_point
897 enable_threads
898 enable_tls
899 enable_objc_gc
900 with_dwarf2
901 enable_shared
902 with_native_system_header_dir
903 with_build_sysroot
904 with_sysroot
905 with_specs
906 with_pkgversion
907 with_bugurl
908 enable_languages
909 with_multilib_list
910 enable_rpath
911 with_libiconv_prefix
912 enable_sjlj_exceptions
913 enable_secureplt
914 enable_leading_mingw64_underscores
915 enable_cld
916 enable_frame_pointer
917 enable_win32_registry
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 enable_ld
923 enable_gold
924 with_plugin_ld
925 enable_gnu_indirect_function
926 enable_initfini_array
927 enable_comdat
928 enable_fix_cortex_a53_835769
929 enable_fix_cortex_a53_843419
930 with_glibc_version
931 enable_gnu_unique_object
932 enable_linker_build_id
933 with_long_double_128
934 with_gc
935 with_system_zlib
936 enable_maintainer_mode
937 enable_link_mutex
938 enable_version_specific_runtime_libs
939 enable_plugin
940 enable_host_shared
941 enable_libquadmath_support
942 with_linker_hash_style
943 with_diagnostics_color
944 enable_default_pie
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
955 CXXFLAGS
957 CXXCPP
959 GMPLIBS
960 GMPINC
961 ISLLIBS
962 ISLINC'
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1573 if test -n "$ac_init_help"; then
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files in source dir intended
1583 for creating source tarballs for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support for large files
1586 --disable-build-format-warnings
1587 don't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and locate unused parts
1598 of the compiler. With LEVEL, specify optimization.
1599 Values are opt, noopt, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-valgrind-annotations
1603 enable valgrind runtime interaction
1604 --enable-multilib enable library support for multiple ABIs
1605 --enable-multiarch enable support for multiarch paths
1606 --enable-__cxa_atexit enable __cxa_atexit for C++
1607 --enable-decimal-float={no,yes,bid,dpd}
1608 enable decimal float extension to C. Selecting 'bid'
1609 or 'dpd' choses which decimal floating point format
1610 to use
1611 --enable-fixed-point enable fixed-point arithmetic extension to C
1612 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1613 package
1614 --enable-tls enable or disable generation of tls code overriding
1615 the assembler check for tls support
1616 --enable-objc-gc enable the use of Boehm's garbage collector with the
1617 GNU Objective-C runtime
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround for AArch64 Cortex-A53 erratum
1651 835769 by default
1652 --disable-fix-cortex-a53-835769
1653 disable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1657 --enable-fix-cortex-a53-843419
1658 enable workaround for AArch64 Cortex-A53 erratum
1659 843419 by default
1660 --disable-fix-cortex-a53-843419
1661 disable workaround for AArch64 Cortex-A53 erratum
1662 843419 by default
1664 --enable-gnu-unique-object
1665 enable the use of the @gnu_unique_object ELF
1666 extension on glibc systems
1667 --enable-linker-build-id
1668 compiler will always pass --build-id to linker
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful (and
1671 sometimes confusing) to the casual installer
1672 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1673 thrashing on the build machine
1674 --enable-version-specific-runtime-libs
1675 specify that runtime libraries should be installed
1676 in a compiler-specific directory
1677 --enable-plugin enable plugin support
1678 --enable-host-shared build host code as shared libraries
1679 --disable-libquadmath-support
1680 disable libquadmath support for Fortran
1681 --enable-default-pie enable Position Independent Executable as default
1683 Optional Packages:
1684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1686 --with-build-libsubdir=DIR Directory where to find libraries for build system
1687 --with-local-prefix=DIR specifies directory to put local include
1688 --with-gxx-include-dir=DIR
1689 specifies directory to put g++ header files
1690 --with-cpp-install-dir=DIR
1691 install the user visible C preprocessor in DIR
1692 (relative to PREFIX) as well as PREFIX/bin
1693 --with-gnu-ld arrange to work with GNU ld
1694 --with-ld arrange to use the specified ld (full pathname)
1695 --with-demangler-in-ld try to use demangler in GNU ld
1696 --with-gnu-as arrange to work with GNU as
1697 --with-as arrange to use the specified as (full pathname)
1698 --with-stabs arrange to use stabs instead of host debug format
1699 --with-dwarf2 force the default debug format to be DWARF 2
1700 --with-native-system-header-dir=dir
1701 use dir as the directory to look for standard
1702 system header files in. Defaults to /usr/include.
1703 --with-build-sysroot=sysroot
1704 use sysroot as the system root during the build
1705 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1706 --with-specs=SPECS add SPECS to driver command-line processing
1707 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1708 --with-bugurl=URL Direct users to URL to report a bug
1709 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1710 --with-gnu-ld assume the C compiler uses GNU ld default=no
1711 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1712 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1713 --with-pic try to use only PIC/non-PIC objects [default=use
1714 both]
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-plugin-ld=[ARG] specify the plugin linker
1717 --with-glibc-version=M.N
1718 assume GCC used with glibc version M.N or later
1719 --with-long-double-128 use 128-bit long double by default
1720 --with-gc={page,zone} this option is not supported anymore. It used to
1721 choose the garbage collection mechanism to use with
1722 the compiler
1723 --with-system-zlib use installed libz
1724 --with-linker-hash-style={sysv,gnu,both}
1725 specify the linker hash style
1726 --with-diagnostics-color={never,auto,auto-if-env,always}
1727 specify the default of -fdiagnostics-color option
1728 auto-if-env stands for -fdiagnostics-color=auto if
1729 GCC_COLOR environment variable is present and
1730 -fdiagnostics-color=never otherwise
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 CPP C preprocessor
1744 GMPLIBS How to link GMP
1745 GMPINC How to find GMP include files
1746 ISLLIBS How to link ISL
1747 ISLINC How to find ISL include files
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to the package provider.
1753 _ACEOF
1754 ac_status=$?
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 continue
1763 ac_builddir=.
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1781 case $srcdir in
1782 .) # We are building in place.
1783 ac_srcdir=.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1790 *) # Relative name.
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1805 else
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 fi || ac_status=$?
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1809 done
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814 cat <<\_ACEOF
1815 configure
1816 generated by GNU Autoconf 2.64
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822 exit
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1865 } # ac_fn_c_try_compile
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1903 } # ac_fn_cxx_try_compile
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } >/dev/null && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 return $ac_retval
1940 } # ac_fn_cxx_try_cpp
1942 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # ---------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_cxx_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_cxx_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_cxx_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_cxx_check_header_mongrel
2029 # ac_fn_cxx_try_run LINENO
2030 # ------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_cxx_try_run ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2044 ac_status=$?
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2069 } # ac_fn_cxx_try_run
2071 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2072 # ---------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_cxx_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_cxx_check_header_compile
2102 # ac_fn_c_try_cpp LINENO
2103 # ----------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_c_try_cpp ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } >/dev/null && {
2124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 ac_retval=1
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 return $ac_retval
2137 } # ac_fn_c_try_cpp
2139 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2140 # ----------------------------------------------
2141 # Tries to find the compile-time value of EXPR in a program that includes
2142 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 # computed
2144 ac_fn_cxx_compute_int ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if test "$cross_compiling" = yes; then
2148 # Depending upon the size, compute the lo and hi bounds.
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) >= 0)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_cxx_try_compile "$LINENO"; then :
2163 ac_lo=0 ac_mid=0
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2180 else
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2183 ac_lo= ac_hi=
2184 break
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2195 main ()
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0
2201 return 0;
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205 ac_hi=-1 ac_mid=-1
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2214 test_array [0] = 0
2217 return 0;
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_lo=$ac_mid; break
2222 else
2223 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2224 if test $ac_mid -le $ac_hi; then
2225 ac_lo= ac_hi=
2226 break
2228 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 else
2233 ac_lo= ac_hi=
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0
2251 return 0;
2253 _ACEOF
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_hi=$ac_mid
2256 else
2257 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261 case $ac_lo in #((
2262 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2263 '') ac_retval=1 ;;
2264 esac
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2271 #include <stdio.h>
2272 #include <stdlib.h>
2274 main ()
2277 FILE *f = fopen ("conftest.val", "w");
2278 if (! f)
2279 return 1;
2280 if (($2) < 0)
2282 long int i = longval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%ld", i);
2287 else
2289 unsigned long int i = ulongval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%lu", i);
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_cxx_try_run "$LINENO"; then :
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2304 else
2305 ac_retval=1
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 rm -f conftest.val
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 return $ac_retval
2315 } # ac_fn_cxx_compute_int
2317 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2318 # ---------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_cxx_check_type ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 if (sizeof ($2))
2337 return 0;
2339 return 0;
2341 _ACEOF
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2347 main ()
2349 if (sizeof (($2)))
2350 return 0;
2352 return 0;
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 else
2358 eval "$3=yes"
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_cxx_check_type
2371 # ac_fn_c_find_intX_t LINENO BITS VAR
2372 # -----------------------------------
2373 # Finds a signed integer type with width BITS, setting cache variable VAR
2374 # accordingly.
2375 ac_fn_c_find_intX_t ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2379 $as_echo_n "checking for int$2_t... " >&6; }
2380 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 eval "$3=no"
2384 for ac_type in int$2_t 'int' 'long int' \
2385 'long long int' 'short int' 'signed char'; do
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $ac_includes_default
2390 main ()
2392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2393 test_array [0] = 0
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2404 main ()
2406 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2407 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2416 else
2417 case $ac_type in #(
2418 int$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 eval as_val=\$$3
2428 if test "x$as_val" = x""no; then :
2430 else
2431 break
2433 done
2435 eval ac_res=\$$3
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440 } # ac_fn_c_find_intX_t
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { { ac_try="$ac_link"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_link") 2>conftest.err
2457 ac_status=$?
2458 if test -s conftest.err; then
2459 grep -v '^ *+' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2461 mv -f conftest.er1 conftest.err
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; } && {
2465 test -z "$ac_cxx_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest$ac_exeext && {
2468 test "$cross_compiling" = yes ||
2469 $as_test_x conftest$ac_exeext
2470 }; then :
2471 ac_retval=0
2472 else
2473 $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 ac_retval=1
2478 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480 # interfere with the next link command; also delete a directory that is
2481 # left behind by Apple's compiler. We do this before executing the actions.
2482 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 return $ac_retval
2486 } # ac_fn_cxx_try_link
2488 # ac_fn_c_find_uintX_t LINENO BITS VAR
2489 # ------------------------------------
2490 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2491 # accordingly.
2492 ac_fn_c_find_uintX_t ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2496 $as_echo_n "checking for uint$2_t... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 eval "$3=no"
2501 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2502 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $ac_includes_default
2507 main ()
2509 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2510 test_array [0] = 0
2513 return 0;
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 case $ac_type in #(
2518 uint$2_t) :
2519 eval "$3=yes" ;; #(
2520 *) :
2521 eval "$3=\$ac_type" ;;
2522 esac
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval as_val=\$$3
2526 if test "x$as_val" = x""no; then :
2528 else
2529 break
2531 done
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_find_uintX_t
2540 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2541 # ------------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_cxx_check_header_preproc ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_cxx_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2560 rm -f conftest.err conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_cxx_check_header_preproc
2569 # ac_fn_cxx_check_func LINENO FUNC VAR
2570 # ------------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_cxx_check_func ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2597 #undef $2
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2602 #ifdef __cplusplus
2603 extern "C"
2604 #endif
2605 char $2 ();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2610 choke me
2611 #endif
2614 main ()
2616 return $2 ();
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_link "$LINENO"; then :
2622 eval "$3=yes"
2623 else
2624 eval "$3=no"
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2629 eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634 } # ac_fn_cxx_check_func
2636 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2637 # --------------------------------------
2638 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2639 ac_fn_cxx_check_decl ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2653 main ()
2655 #ifndef $as_decl_name
2656 #ifdef __cplusplus
2657 (void) $as_decl_use;
2658 #else
2659 (void) $as_decl_name;
2660 #endif
2661 #endif
2664 return 0;
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668 eval "$3=yes"
2669 else
2670 eval "$3=no"
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 eval ac_res=\$$3
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2679 } # ac_fn_cxx_check_decl
2681 # ac_fn_c_try_link LINENO
2682 # -----------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_c_try_link ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 rm -f conftest.$ac_objext conftest$ac_exeext
2688 if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>conftest.err
2696 ac_status=$?
2697 if test -s conftest.err; then
2698 grep -v '^ *+' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 mv -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest$ac_exeext && {
2707 test "$cross_compiling" = yes ||
2708 $as_test_x conftest$ac_exeext
2709 }; then :
2710 ac_retval=0
2711 else
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 ac_retval=1
2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719 # interfere with the next link command; also delete a directory that is
2720 # left behind by Apple's compiler. We do this before executing the actions.
2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2725 } # ac_fn_c_try_link
2727 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2728 # ----------------------------------------------
2729 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2730 ac_fn_c_check_header_preproc ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 #include <$2>
2741 _ACEOF
2742 if ac_fn_c_try_cpp "$LINENO"; then :
2743 eval "$3=yes"
2744 else
2745 eval "$3=no"
2747 rm -f conftest.err conftest.$ac_ext
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2754 } # ac_fn_c_check_header_preproc
2756 # ac_fn_c_check_func LINENO FUNC VAR
2757 # ----------------------------------
2758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2759 ac_fn_c_check_func ()
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763 $as_echo_n "checking for $2... " >&6; }
2764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2771 #define $2 innocuous_$2
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $2 (); below.
2775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 <limits.h> exists even on freestanding compilers. */
2778 #ifdef __STDC__
2779 # include <limits.h>
2780 #else
2781 # include <assert.h>
2782 #endif
2784 #undef $2
2786 /* Override any GCC internal prototype to avoid an error.
2787 Use char because int might match the return type of a GCC
2788 builtin and then its argument prototype would still apply. */
2789 #ifdef __cplusplus
2790 extern "C"
2791 #endif
2792 char $2 ();
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined __stub_$2 || defined __stub___$2
2797 choke me
2798 #endif
2801 main ()
2803 return $2 ();
2805 return 0;
2807 _ACEOF
2808 if ac_fn_c_try_link "$LINENO"; then :
2809 eval "$3=yes"
2810 else
2811 eval "$3=no"
2813 rm -f core conftest.err conftest.$ac_objext \
2814 conftest$ac_exeext conftest.$ac_ext
2816 eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2821 } # ac_fn_c_check_func
2822 cat >config.log <<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2826 It was created by $as_me, which was
2827 generated by GNU Autoconf 2.64. Invocation command line was
2829 $ $0 $@
2831 _ACEOF
2832 exec 5>>config.log
2834 cat <<_ASUNAME
2835 ## --------- ##
2836 ## Platform. ##
2837 ## --------- ##
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2856 _ASUNAME
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 $as_echo "PATH: $as_dir"
2864 done
2865 IFS=$as_save_IFS
2867 } >&5
2869 cat >&5 <<_ACEOF
2872 ## ----------- ##
2873 ## Core tests. ##
2874 ## ----------- ##
2876 _ACEOF
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_configure_args=
2885 ac_configure_args0=
2886 ac_configure_args1=
2887 ac_must_keep_next=false
2888 for ac_pass in 1 2
2890 for ac_arg
2892 case $ac_arg in
2893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2895 | -silent | --silent | --silen | --sile | --sil)
2896 continue ;;
2897 *\'*)
2898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 esac
2900 case $ac_pass in
2901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903 as_fn_append ac_configure_args1 " '$ac_arg'"
2904 if test $ac_must_keep_next = true; then
2905 ac_must_keep_next=false # Got value, back to normal.
2906 else
2907 case $ac_arg in
2908 *=* | --config-cache | -C | -disable-* | --disable-* \
2909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2911 | -with-* | --with-* | -without-* | --without-* | --x)
2912 case "$ac_configure_args0 " in
2913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2914 esac
2916 -* ) ac_must_keep_next=true ;;
2917 esac
2919 as_fn_append ac_configure_args " '$ac_arg'"
2921 esac
2922 done
2923 done
2924 { ac_configure_args0=; unset ac_configure_args0;}
2925 { ac_configure_args1=; unset ac_configure_args1;}
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log. We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933 # Save into config.log some information that might help in debugging.
2935 echo
2937 cat <<\_ASBOX
2938 ## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##
2941 _ASBOX
2942 echo
2943 # The following way of writing the cache mishandles newlines in values,
2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946 eval ac_val=\$$ac_var
2947 case $ac_val in #(
2948 *${as_nl}*)
2949 case $ac_var in #(
2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952 esac
2953 case $ac_var in #(
2954 _ | IFS | as_nl) ;; #(
2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956 *) { eval $ac_var=; unset $ac_var;} ;;
2957 esac ;;
2958 esac
2959 done
2960 (set) 2>&1 |
2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962 *${as_nl}ac_space=\ *)
2963 sed -n \
2964 "s/'\''/'\''\\\\'\'''\''/g;
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966 ;; #(
2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2970 esac |
2971 sort
2973 echo
2975 cat <<\_ASBOX
2976 ## ----------------- ##
2977 ## Output variables. ##
2978 ## ----------------- ##
2979 _ASBOX
2980 echo
2981 for ac_var in $ac_subst_vars
2983 eval ac_val=\$$ac_var
2984 case $ac_val in
2985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 esac
2987 $as_echo "$ac_var='\''$ac_val'\''"
2988 done | sort
2989 echo
2991 if test -n "$ac_subst_files"; then
2992 cat <<\_ASBOX
2993 ## ------------------- ##
2994 ## File substitutions. ##
2995 ## ------------------- ##
2996 _ASBOX
2997 echo
2998 for ac_var in $ac_subst_files
3000 eval ac_val=\$$ac_var
3001 case $ac_val in
3002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 esac
3004 $as_echo "$ac_var='\''$ac_val'\''"
3005 done | sort
3006 echo
3009 if test -s confdefs.h; then
3010 cat <<\_ASBOX
3011 ## ----------- ##
3012 ## confdefs.h. ##
3013 ## ----------- ##
3014 _ASBOX
3015 echo
3016 cat confdefs.h
3017 echo
3019 test "$ac_signal" != 0 &&
3020 $as_echo "$as_me: caught signal $ac_signal"
3021 $as_echo "$as_me: exit $exit_status"
3022 } >&5
3023 rm -f core *.core core.conftest.* &&
3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3025 exit $exit_status
3027 for ac_signal in 1 2 13 15; do
3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3029 done
3030 ac_signal=0
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest* confdefs.h
3035 $as_echo "/* confdefs.h */" > confdefs.h
3037 # Predefined preprocessor variables.
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3041 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3045 _ACEOF
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3049 _ACEOF
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3053 _ACEOF
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3057 _ACEOF
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3061 _ACEOF
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3066 ac_site_file1=NONE
3067 ac_site_file2=NONE
3068 if test -n "$CONFIG_SITE"; then
3069 ac_site_file1=$CONFIG_SITE
3070 elif test "x$prefix" != xNONE; then
3071 ac_site_file1=$prefix/share/config.site
3072 ac_site_file2=$prefix/etc/config.site
3073 else
3074 ac_site_file1=$ac_default_prefix/share/config.site
3075 ac_site_file2=$ac_default_prefix/etc/config.site
3077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3079 test "x$ac_site_file" = xNONE && continue
3080 if test -r "$ac_site_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3083 sed 's/^/| /' "$ac_site_file" >&5
3084 . "$ac_site_file"
3086 done
3088 if test -r "$cache_file"; then
3089 # Some versions of bash will fail to source /dev/null (special
3090 # files actually), so we avoid doing that.
3091 if test -f "$cache_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3093 $as_echo "$as_me: loading cache $cache_file" >&6;}
3094 case $cache_file in
3095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3096 *) . "./$cache_file";;
3097 esac
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3101 $as_echo "$as_me: creating cache $cache_file" >&6;}
3102 >$cache_file
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3180 gcc_version=`cat $srcdir/BASE-VER`
3182 # Determine the host, build, and target systems
3183 ac_aux_dir=
3184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3185 for ac_t in install-sh install.sh shtool; do
3186 if test -f "$ac_dir/$ac_t"; then
3187 ac_aux_dir=$ac_dir
3188 ac_install_sh="$ac_aux_dir/$ac_t -c"
3189 break 2
3191 done
3192 done
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3206 # Make sure we can run config.sub.
3207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3211 $as_echo_n "checking build system type... " >&6; }
3212 if test "${ac_cv_build+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_build_alias=$build_alias
3216 test "x$ac_build_alias" = x &&
3217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3218 test "x$ac_build_alias" = x &&
3219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3225 $as_echo "$ac_cv_build" >&6; }
3226 case $ac_cv_build in
3227 *-*-*) ;;
3228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3229 esac
3230 build=$ac_cv_build
3231 ac_save_IFS=$IFS; IFS='-'
3232 set x $ac_cv_build
3233 shift
3234 build_cpu=$1
3235 build_vendor=$2
3236 shift; shift
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3239 build_os=$*
3240 IFS=$ac_save_IFS
3241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3245 $as_echo_n "checking host system type... " >&6; }
3246 if test "${ac_cv_host+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test "x$host_alias" = x; then
3250 ac_cv_host=$ac_cv_build
3251 else
3252 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3253 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3258 $as_echo "$ac_cv_host" >&6; }
3259 case $ac_cv_host in
3260 *-*-*) ;;
3261 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3262 esac
3263 host=$ac_cv_host
3264 ac_save_IFS=$IFS; IFS='-'
3265 set x $ac_cv_host
3266 shift
3267 host_cpu=$1
3268 host_vendor=$2
3269 shift; shift
3270 # Remember, the first character of IFS is used to create $*,
3271 # except with old shells:
3272 host_os=$*
3273 IFS=$ac_save_IFS
3274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3278 $as_echo_n "checking target system type... " >&6; }
3279 if test "${ac_cv_target+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test "x$target_alias" = x; then
3283 ac_cv_target=$ac_cv_host
3284 else
3285 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3286 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3291 $as_echo "$ac_cv_target" >&6; }
3292 case $ac_cv_target in
3293 *-*-*) ;;
3294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3295 esac
3296 target=$ac_cv_target
3297 ac_save_IFS=$IFS; IFS='-'
3298 set x $ac_cv_target
3299 shift
3300 target_cpu=$1
3301 target_vendor=$2
3302 shift; shift
3303 # Remember, the first character of IFS is used to create $*,
3304 # except with old shells:
3305 target_os=$*
3306 IFS=$ac_save_IFS
3307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3310 # The aliases save the names the user supplied, while $host etc.
3311 # will get canonicalized.
3312 test -n "$target_alias" &&
3313 test "$program_prefix$program_suffix$program_transform_name" = \
3314 NONENONEs,x,x, &&
3315 program_prefix=${target_alias}-
3317 # Determine the noncanonical target name, for directory use.
3318 case ${build_alias} in
3319 "") build_noncanonical=${build} ;;
3320 *) build_noncanonical=${build_alias} ;;
3321 esac
3323 case ${host_alias} in
3324 "") host_noncanonical=${build_noncanonical} ;;
3325 *) host_noncanonical=${host_alias} ;;
3326 esac
3328 case ${target_alias} in
3329 "") target_noncanonical=${host_noncanonical} ;;
3330 *) target_noncanonical=${target_alias} ;;
3331 esac
3336 # Used for constructing correct paths for offload compilers.
3337 real_target_noncanonical=${target_noncanonical}
3338 accel_dir_suffix=
3340 # Determine the target- and build-specific subdirectories
3342 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3343 # have matching libraries, they should use host libraries: Makefile.tpl
3344 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3345 # However, they still use the build modules, because the corresponding
3346 # host modules (e.g. bison) are only built for the host when bootstrap
3347 # finishes. So:
3348 # - build_subdir is where we find build modules, and never changes.
3349 # - build_libsubdir is where we find build libraries, and can be overridden.
3351 # Prefix 'build-' so this never conflicts with target_subdir.
3352 build_subdir="build-${build_noncanonical}"
3354 # Check whether --with-build-libsubdir was given.
3355 if test "${with_build_libsubdir+set}" = set; then :
3356 withval=$with_build_libsubdir; build_libsubdir="$withval"
3357 else
3358 build_libsubdir="$build_subdir"
3361 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3362 if ( test $srcdir = . && test -d gcc ) \
3363 || test -d $srcdir/../host-${host_noncanonical}; then
3364 host_subdir="host-${host_noncanonical}"
3365 else
3366 host_subdir=.
3368 # No prefix.
3369 target_subdir=${target_noncanonical}
3372 # Set program_transform_name
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384 # Check for bogus environment variables.
3385 # Test if LIBRARY_PATH contains the notation for the current directory
3386 # since this would lead to problems installing/building glibc.
3387 # LIBRARY_PATH contains the current directory if one of the following
3388 # is true:
3389 # - one of the terminals (":" and ";") is the first or last sign
3390 # - two terminals occur directly after each other
3391 # - the path contains an element with a dot in it
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3393 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3394 case ${LIBRARY_PATH} in
3395 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3396 library_path_setting="contains current directory"
3399 library_path_setting="ok"
3401 esac
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3403 $as_echo "$library_path_setting" >&6; }
3404 if test "$library_path_setting" != "ok"; then
3405 as_fn_error "
3406 *** LIBRARY_PATH shouldn't contain the current directory when
3407 *** building gcc. Please change the environment variable
3408 *** and run configure again." "$LINENO" 5
3411 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3412 # since this would lead to problems installing/building glibc.
3413 # GCC_EXEC_PREFIX contains the current directory if one of the following
3414 # is true:
3415 # - one of the terminals (":" and ";") is the first or last sign
3416 # - two terminals occur directly after each other
3417 # - the path contains an element with a dot in it
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3419 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3420 case ${GCC_EXEC_PREFIX} in
3421 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3422 gcc_exec_prefix_setting="contains current directory"
3425 gcc_exec_prefix_setting="ok"
3427 esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3429 $as_echo "$gcc_exec_prefix_setting" >&6; }
3430 if test "$gcc_exec_prefix_setting" != "ok"; then
3431 as_fn_error "
3432 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3433 *** building gcc. Please change the environment variable
3434 *** and run configure again." "$LINENO" 5
3437 # -----------
3438 # Directories
3439 # -----------
3441 # Specify the local prefix
3442 local_prefix=
3444 # Check whether --with-local-prefix was given.
3445 if test "${with_local_prefix+set}" = set; then :
3446 withval=$with_local_prefix; case "${withval}" in
3447 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3448 no) ;;
3449 *) local_prefix=$with_local_prefix ;;
3450 esac
3454 # Default local prefix if it is empty
3455 if test x$local_prefix = x; then
3456 local_prefix=/usr/local
3459 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3460 # passed in by the toplevel make and thus we'd get different behavior
3461 # depending on where we built the sources.
3462 gcc_gxx_include_dir=
3463 # Specify the g++ header file directory
3465 # Check whether --with-gxx-include-dir was given.
3466 if test "${with_gxx_include_dir+set}" = set; then :
3467 withval=$with_gxx_include_dir; case "${withval}" in
3468 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3469 no) ;;
3470 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3471 esac
3475 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3476 if test x${gcc_gxx_include_dir} = x; then
3477 if test x${enable_version_specific_runtime_libs} = xyes; then
3478 gcc_gxx_include_dir='${libsubdir}/include/c++'
3479 else
3480 libstdcxx_incdir='include/c++/$(version)'
3481 if test x$host != x$target; then
3482 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3484 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3488 gcc_gxx_include_dir_add_sysroot=0
3489 if test "${with_sysroot+set}" = set; then
3490 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3491 if test "${gcc_gxx_without_sysroot}"; then
3492 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3493 gcc_gxx_include_dir_add_sysroot=1
3498 # Check whether --with-cpp_install_dir was given.
3499 if test "${with_cpp_install_dir+set}" = set; then :
3500 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3501 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3502 elif test x$withval != xno; then
3503 cpp_install_dir=$withval
3508 # We would like to our source tree to be readonly. However when releases or
3509 # pre-releases are generated, the flex/bison generated files as well as the
3510 # various formats of manuals need to be included along with the rest of the
3511 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3512 # just that.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3515 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3516 # Check whether --enable-generated-files-in-srcdir was given.
3517 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3518 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3519 else
3520 generated_files_in_srcdir=no
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3525 $as_echo "$generated_files_in_srcdir" >&6; }
3527 if test "$generated_files_in_srcdir" = "yes"; then
3528 GENINSRC=''
3529 else
3530 GENINSRC='#'
3534 # -------------------
3535 # Find default linker
3536 # -------------------
3538 # With GNU ld
3540 # Check whether --with-gnu-ld was given.
3541 if test "${with_gnu_ld+set}" = set; then :
3542 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3543 else
3544 gnu_ld_flag=no
3548 # With pre-defined ld
3550 # Check whether --with-ld was given.
3551 if test "${with_ld+set}" = set; then :
3552 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3555 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3556 if test ! -x "$DEFAULT_LINKER"; then
3557 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3558 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3559 gnu_ld_flag=yes
3562 cat >>confdefs.h <<_ACEOF
3563 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3564 _ACEOF
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3569 $as_echo_n "checking whether a default linker was specified... " >&6; }
3570 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3571 if test x"$gnu_ld_flag" = x"no"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3573 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3576 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3583 # With demangler in GNU ld
3585 # Check whether --with-demangler-in-ld was given.
3586 if test "${with_demangler_in_ld+set}" = set; then :
3587 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3588 else
3589 demangler_in_ld=yes
3593 # ----------------------
3594 # Find default assembler
3595 # ----------------------
3597 # With GNU as
3599 # Check whether --with-gnu-as was given.
3600 if test "${with_gnu_as+set}" = set; then :
3601 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3602 else
3603 gas_flag=no
3608 # Check whether --with-as was given.
3609 if test "${with_as+set}" = set; then :
3610 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3613 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3614 if test ! -x "$DEFAULT_ASSEMBLER"; then
3615 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3616 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3617 gas_flag=yes
3620 cat >>confdefs.h <<_ACEOF
3621 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3622 _ACEOF
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3627 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3628 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3629 if test x"$gas_flag" = x"no"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3631 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3634 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3641 # ---------------
3642 # Find C compiler
3643 # ---------------
3645 # If a non-executable a.out is present (e.g. created by GNU as above even if
3646 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3647 # file, even when creating an executable, so an execution test fails.
3648 # Remove possible default executable files to avoid this.
3650 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3651 # Autoconf includes it.
3652 rm -f a.out a.exe b.out
3654 # Find the native compiler
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3682 done
3683 done
3684 IFS=$as_save_IFS
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3699 if test -z "$ac_cv_prog_CC"; then
3700 ac_ct_CC=$CC
3701 # Extract the first word of "gcc", so it can be a program name with args.
3702 set dummy gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_ac_ct_CC="gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 $as_echo "$ac_ct_CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3737 if test "x$ac_ct_CC" = x; then
3738 CC=""
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746 CC=$ac_ct_CC
3748 else
3749 CC="$ac_cv_prog_CC"
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3814 continue
3816 ac_cv_prog_CC="cc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3827 shift
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3832 shift
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3890 test -n "$CC" && break
3891 done
3893 if test -z "$CC"; then
3894 ac_ct_CC=$CC
3895 for ac_prog in cl.exe
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3920 IFS=$as_save_IFS
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3934 test -n "$ac_ct_CC" && break
3935 done
3937 if test "x$ac_ct_CC" = x; then
3938 CC=""
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3945 esac
3946 CC=$ac_ct_CC
3953 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error "no acceptable C compiler found in \$PATH
3956 See \`config.log' for more details." "$LINENO" 5; }
3958 # Provide some information about the compiler.
3959 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960 set X $ac_compile
3961 ac_compiler=$2
3962 for ac_option in --version -v -V -qversion; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971 ac_status=$?
3972 if test -s conftest.err; then
3973 sed '10a\
3974 ... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3977 rm -f conftest.er1 conftest.err
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981 done
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3987 main ()
3991 return 0;
3993 _ACEOF
3994 ac_clean_files_save=$ac_clean_files
3995 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3996 # Try to create an executable without -o first, disregard a.out.
3997 # It will help us diagnose broken compilers, and finding out an intuition
3998 # of exeext.
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4000 $as_echo_n "checking for C compiler default output file name... " >&6; }
4001 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4003 # The possible output files:
4004 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4006 ac_rmfiles=
4007 for ac_file in $ac_files
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4012 esac
4013 done
4014 rm -f $ac_rmfiles
4016 if { { ac_try="$ac_link_default"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link_default") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4028 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4029 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4030 # so that the user can short-circuit this test for compilers unknown to
4031 # Autoconf.
4032 for ac_file in $ac_files ''
4034 test -f "$ac_file" || continue
4035 case $ac_file in
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4038 [ab].out )
4039 # We found the default executable, but exeext='' is most
4040 # certainly right.
4041 break;;
4042 *.* )
4043 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4044 then :; else
4045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 # We set ac_cv_exeext here because the later test for it is not
4048 # safe: cross compilers may not add the suffix if given an `-o'
4049 # argument, so we may need to know it at that point already.
4050 # Even if this section looks crufty: it has the advantage of
4051 # actually working.
4052 break;;
4054 break;;
4055 esac
4056 done
4057 test "$ac_cv_exeext" = no && ac_cv_exeext=
4059 else
4060 ac_file=''
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4063 $as_echo "$ac_file" >&6; }
4064 if test -z "$ac_file"; then :
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 { as_fn_set_status 77
4071 as_fn_error "C compiler cannot create executables
4072 See \`config.log' for more details." "$LINENO" 5; }; }
4074 ac_exeext=$ac_cv_exeext
4076 # Check that the compiler produces executables we can run. If not, either
4077 # the compiler is broken, or we cross compile.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4079 $as_echo_n "checking whether the C compiler works... " >&6; }
4080 # If not cross compiling, check that we can run a simple program.
4081 if test "$cross_compiling" != yes; then
4082 if { ac_try='./$ac_file'
4083 { { case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_try") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; }; then
4093 cross_compiling=no
4094 else
4095 if test "$cross_compiling" = maybe; then
4096 cross_compiling=yes
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error "cannot run C compiled programs.
4101 If you meant to cross compile, use \`--host'.
4102 See \`config.log' for more details." "$LINENO" 5; }
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107 $as_echo "yes" >&6; }
4109 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4110 ac_clean_files=$ac_clean_files_save
4111 # Check that the compiler produces executables we can run. If not, either
4112 # the compiler is broken, or we cross compile.
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4114 $as_echo_n "checking whether we are cross compiling... " >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4116 $as_echo "$cross_compiling" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4119 $as_echo_n "checking for suffix of executables... " >&6; }
4120 if { { ac_try="$ac_link"
4121 case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127 (eval "$ac_link") 2>&5
4128 ac_status=$?
4129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }; then :
4131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4133 # work properly (i.e., refer to `conftest.exe'), while it won't with
4134 # `rm'.
4135 for ac_file in conftest.exe conftest conftest.*; do
4136 test -f "$ac_file" || continue
4137 case $ac_file in
4138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 break;;
4141 * ) break;;
4142 esac
4143 done
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error "cannot compute suffix of executables: cannot compile and link
4148 See \`config.log' for more details." "$LINENO" 5; }
4150 rm -f conftest$ac_cv_exeext
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4152 $as_echo "$ac_cv_exeext" >&6; }
4154 rm -f conftest.$ac_ext
4155 EXEEXT=$ac_cv_exeext
4156 ac_exeext=$EXEEXT
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4158 $as_echo_n "checking for suffix of object files... " >&6; }
4159 if test "${ac_cv_objext+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 main ()
4170 return 0;
4172 _ACEOF
4173 rm -f conftest.o conftest.obj
4174 if { { ac_try="$ac_compile"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_compile") 2>&5
4182 ac_status=$?
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }; then :
4185 for ac_file in conftest.o conftest.obj conftest.*; do
4186 test -f "$ac_file" || continue;
4187 case $ac_file in
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4190 break;;
4191 esac
4192 done
4193 else
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error "cannot compute suffix of object files: cannot compile
4200 See \`config.log' for more details." "$LINENO" 5; }
4202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4205 $as_echo "$ac_cv_objext" >&6; }
4206 OBJEXT=$ac_cv_objext
4207 ac_objext=$OBJEXT
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4209 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4210 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4217 main ()
4219 #ifndef __GNUC__
4220 choke me
4221 #endif
4224 return 0;
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_compiler_gnu=yes
4229 else
4230 ac_compiler_gnu=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4237 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4238 if test $ac_compiler_gnu = yes; then
4239 GCC=yes
4240 else
4241 GCC=
4243 ac_test_CFLAGS=${CFLAGS+set}
4244 ac_save_CFLAGS=$CFLAGS
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4246 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4247 if test "${ac_cv_prog_cc_g+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 ac_save_c_werror_flag=$ac_c_werror_flag
4251 ac_c_werror_flag=yes
4252 ac_cv_prog_cc_g=no
4253 CFLAGS="-g"
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4258 main ()
4262 return 0;
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_g=yes
4267 else
4268 CFLAGS=""
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4277 return 0;
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4282 else
4283 ac_c_werror_flag=$ac_save_c_werror_flag
4284 CFLAGS="-g"
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4289 main ()
4293 return 0;
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_prog_cc_g=yes
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_c_werror_flag=$ac_save_c_werror_flag
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4307 $as_echo "$ac_cv_prog_cc_g" >&6; }
4308 if test "$ac_test_CFLAGS" = set; then
4309 CFLAGS=$ac_save_CFLAGS
4310 elif test $ac_cv_prog_cc_g = yes; then
4311 if test "$GCC" = yes; then
4312 CFLAGS="-g -O2"
4313 else
4314 CFLAGS="-g"
4316 else
4317 if test "$GCC" = yes; then
4318 CFLAGS="-O2"
4319 else
4320 CFLAGS=
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4324 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4325 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 ac_cv_prog_cc_c89=no
4329 ac_save_CC=$CC
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <stdarg.h>
4333 #include <stdio.h>
4334 #include <sys/types.h>
4335 #include <sys/stat.h>
4336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4337 struct buf { int x; };
4338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4339 static char *e (p, i)
4340 char **p;
4341 int i;
4343 return p[i];
4345 static char *f (char * (*g) (char **, int), char **p, ...)
4347 char *s;
4348 va_list v;
4349 va_start (v,p);
4350 s = g (p, va_arg (v,int));
4351 va_end (v);
4352 return s;
4355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4356 function prototypes and stuff, but not '\xHH' hex character constants.
4357 These don't provoke an error unfortunately, instead are silently treated
4358 as 'x'. The following induces an error, until -std is added to get
4359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4360 array size at least. It's necessary to write '\x00'==0 to get something
4361 that's true only with -std. */
4362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4365 inside strings and character constants. */
4366 #define FOO(x) 'x'
4367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369 int test (int i, double x);
4370 struct s1 {int (*f) (int a);};
4371 struct s2 {int (*f) (double a);};
4372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4373 int argc;
4374 char **argv;
4376 main ()
4378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4380 return 0;
4382 _ACEOF
4383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4386 CC="$ac_save_CC $ac_arg"
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_cv_prog_cc_c89=$ac_arg
4390 rm -f core conftest.err conftest.$ac_objext
4391 test "x$ac_cv_prog_cc_c89" != "xno" && break
4392 done
4393 rm -f conftest.$ac_ext
4394 CC=$ac_save_CC
4397 # AC_CACHE_VAL
4398 case "x$ac_cv_prog_cc_c89" in
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 $as_echo "none needed" >&6; } ;;
4402 xno)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4404 $as_echo "unsupported" >&6; } ;;
4406 CC="$CC $ac_cv_prog_cc_c89"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4409 esac
4410 if test "x$ac_cv_prog_cc_c89" != xno; then :
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 ac_ext=cpp
4421 ac_cpp='$CXXCPP $CPPFLAGS'
4422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4425 if test -z "$CXX"; then
4426 if test -n "$CCC"; then
4427 CXX=$CCC
4428 else
4429 if test -n "$ac_tool_prefix"; then
4430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_CXX+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$CXX"; then
4440 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 CXX=$ac_cv_prog_CXX
4460 if test -n "$CXX"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4462 $as_echo "$CXX" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4469 test -n "$CXX" && break
4470 done
4472 if test -z "$CXX"; then
4473 ac_ct_CXX=$CXX
4474 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4476 # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_CXX"; then
4484 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_CXX="$ac_prog"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4504 if test -n "$ac_ct_CXX"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4506 $as_echo "$ac_ct_CXX" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 test -n "$ac_ct_CXX" && break
4514 done
4516 if test "x$ac_ct_CXX" = x; then
4517 CXX="g++"
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CXX=$ac_ct_CXX
4531 # Provide some information about the compiler.
4532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4533 set X $ac_compile
4534 ac_compiler=$2
4535 for ac_option in --version -v -V -qversion; do
4536 { { ac_try="$ac_compiler $ac_option >&5"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4544 ac_status=$?
4545 if test -s conftest.err; then
4546 sed '10a\
4547 ... rest of stderr output deleted ...
4548 10q' conftest.err >conftest.er1
4549 cat conftest.er1 >&5
4550 rm -f conftest.er1 conftest.err
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }
4554 done
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4557 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4558 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4567 #ifndef __GNUC__
4568 choke me
4569 #endif
4572 return 0;
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_compiler_gnu=yes
4577 else
4578 ac_compiler_gnu=no
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4585 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4586 if test $ac_compiler_gnu = yes; then
4587 GXX=yes
4588 else
4589 GXX=
4591 ac_test_CXXFLAGS=${CXXFLAGS+set}
4592 ac_save_CXXFLAGS=$CXXFLAGS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4594 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4595 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4599 ac_cxx_werror_flag=yes
4600 ac_cv_prog_cxx_g=no
4601 CXXFLAGS="-g"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4606 main ()
4610 return 0;
4612 _ACEOF
4613 if ac_fn_cxx_try_compile "$LINENO"; then :
4614 ac_cv_prog_cxx_g=yes
4615 else
4616 CXXFLAGS=""
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4621 main ()
4625 return 0;
4627 _ACEOF
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4630 else
4631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4632 CXXFLAGS="-g"
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4637 main ()
4641 return 0;
4643 _ACEOF
4644 if ac_fn_cxx_try_compile "$LINENO"; then :
4645 ac_cv_prog_cxx_g=yes
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4655 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4656 if test "$ac_test_CXXFLAGS" = set; then
4657 CXXFLAGS=$ac_save_CXXFLAGS
4658 elif test $ac_cv_prog_cxx_g = yes; then
4659 if test "$GXX" = yes; then
4660 CXXFLAGS="-g -O2"
4661 else
4662 CXXFLAGS="-g"
4664 else
4665 if test "$GXX" = yes; then
4666 CXXFLAGS="-O2"
4667 else
4668 CXXFLAGS=
4671 ac_ext=c
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$GNATBIND"; then
4689 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 GNATBIND=$ac_cv_prog_GNATBIND
4709 if test -n "$GNATBIND"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4711 $as_echo "$GNATBIND" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4719 if test -z "$ac_cv_prog_GNATBIND"; then
4720 ac_ct_GNATBIND=$GNATBIND
4721 # Extract the first word of "gnatbind", so it can be a program name with args.
4722 set dummy gnatbind; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_GNATBIND"; then
4729 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4749 if test -n "$ac_ct_GNATBIND"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4751 $as_echo "$ac_ct_GNATBIND" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4757 if test "x$ac_ct_GNATBIND" = x; then
4758 GNATBIND="no"
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766 GNATBIND=$ac_ct_GNATBIND
4768 else
4769 GNATBIND="$ac_cv_prog_GNATBIND"
4772 if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -n "$GNATMAKE"; then
4781 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4796 IFS=$as_save_IFS
4800 GNATMAKE=$ac_cv_prog_GNATMAKE
4801 if test -n "$GNATMAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4803 $as_echo "$GNATMAKE" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4811 if test -z "$ac_cv_prog_GNATMAKE"; then
4812 ac_ct_GNATMAKE=$GNATMAKE
4813 # Extract the first word of "gnatmake", so it can be a program name with args.
4814 set dummy gnatmake; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_GNATMAKE"; then
4821 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4841 if test -n "$ac_ct_GNATMAKE"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4843 $as_echo "$ac_ct_GNATMAKE" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4849 if test "x$ac_ct_GNATMAKE" = x; then
4850 GNATMAKE="no"
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858 GNATMAKE=$ac_ct_GNATMAKE
4860 else
4861 GNATMAKE="$ac_cv_prog_GNATMAKE"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4865 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4866 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat >conftest.adb <<EOF
4870 procedure conftest is begin null; end conftest;
4872 acx_cv_cc_gcc_supports_ada=no
4873 # There is a bug in old released versions of GCC which causes the
4874 # driver to exit successfully when the appropriate language module
4875 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4876 # Therefore we must check for the error message as well as an
4877 # unsuccessful exit.
4878 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4879 # given a .adb file, but produce no object file. So we must check
4880 # if an object file was really produced to guard against this.
4881 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4882 if test x"$errors" = x && test -f conftest.$ac_objext; then
4883 acx_cv_cc_gcc_supports_ada=yes
4885 rm -f conftest.*
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4888 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4890 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4891 have_gnat=yes
4892 else
4893 have_gnat=no
4897 # Do configure tests with the C++ compiler, since that's what we build with.
4898 ac_ext=cpp
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4905 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4906 # optimizations to be activated explicitly by the toplevel.
4907 case "$CC" in
4908 */prev-gcc/xgcc*) ;;
4909 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4910 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4911 esac
4915 # Determine PICFLAG for target gnatlib.
4920 case "${target}" in
4921 # PIC is the default on some targets or must not be used.
4922 *-*-darwin*)
4923 # For darwin, common symbols are not allowed in MH_DYLIB files
4924 case "${CFLAGS}" in
4925 # If we are using a compiler supporting mdynamic-no-pic
4926 # and the option has been tested as safe to add, then cancel
4927 # it here, since the code generated is incompatible with shared
4928 # libs.
4929 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4930 *) PICFLAG_FOR_TARGET=-fno-common ;;
4931 esac
4933 alpha*-dec-osf5*)
4934 # PIC is the default.
4936 hppa*64*-*-hpux*)
4937 # PIC is the default for 64-bit PA HP-UX.
4939 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4941 i[34567]86-*-mingw* | x86_64-*-mingw*)
4943 i[34567]86-*-interix[3-9]*)
4944 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4945 # Instead, we relocate shared libraries at runtime.
4947 i[34567]86-*-nto-qnx*)
4948 # QNX uses GNU C++, but need to define -shared option too, otherwise
4949 # it will coredump.
4950 PICFLAG_FOR_TARGET='-fPIC -shared'
4952 i[34567]86-pc-msdosdjgpp*)
4953 # DJGPP does not support shared libraries at all.
4955 ia64*-*-hpux*)
4956 # On IA64 HP-UX, PIC is the default but the pic flag
4957 # sets the default TLS model and affects inlining.
4958 PICFLAG_FOR_TARGET=-fPIC
4960 mips-sgi-irix6*)
4961 # PIC is the default.
4963 rs6000-ibm-aix* | powerpc-ibm-aix*)
4964 # All AIX code is PIC.
4967 # Some targets support both -fPIC and -fpic, but prefer the latter.
4968 # FIXME: Why?
4969 i[34567]86-*-* | x86_64-*-*)
4970 PICFLAG_FOR_TARGET=-fpic
4972 # FIXME: Override -fPIC default in libgcc only?
4973 sh-*-linux* | sh[2346lbe]*-*-linux*)
4974 PICFLAG_FOR_TARGET=-fpic
4976 # FIXME: Simplify to sh*-*-netbsd*?
4977 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4978 sh64-*-netbsd* | sh64l*-*-netbsd*)
4979 PICFLAG_FOR_TARGET=-fpic
4981 # Default to -fPIC unless specified otherwise.
4983 PICFLAG_FOR_TARGET=-fPIC
4985 esac
4987 # If the user explicitly uses -fpic/-fPIC, keep that.
4988 case "${CFLAGS_FOR_TARGET}" in
4989 *-fpic*)
4990 PICFLAG_FOR_TARGET=-fpic
4992 *-fPIC*)
4993 PICFLAG_FOR_TARGET=-fPIC
4995 esac
4999 # -------------------------
5000 # Check C compiler features
5001 # -------------------------
5004 ac_ext=cpp
5005 ac_cpp='$CXXCPP $CPPFLAGS'
5006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5010 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5011 if test -z "$CXXCPP"; then
5012 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 # Double quotes because CXXCPP needs to be expanded
5016 for CXXCPP in "$CXX -E" "/lib/cpp"
5018 ac_preproc_ok=false
5019 for ac_cxx_preproc_warn_flag in '' yes
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029 #ifdef __STDC__
5030 # include <limits.h>
5031 #else
5032 # include <assert.h>
5033 #endif
5034 Syntax error
5035 _ACEOF
5036 if ac_fn_cxx_try_cpp "$LINENO"; then :
5038 else
5039 # Broken: fails on valid input.
5040 continue
5042 rm -f conftest.err conftest.$ac_ext
5044 # OK, works on sane cases. Now check whether nonexistent headers
5045 # can be detected and how.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #include <ac_nonexistent.h>
5049 _ACEOF
5050 if ac_fn_cxx_try_cpp "$LINENO"; then :
5051 # Broken: success on invalid input.
5052 continue
5053 else
5054 # Passes both tests.
5055 ac_preproc_ok=:
5056 break
5058 rm -f conftest.err conftest.$ac_ext
5060 done
5061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062 rm -f conftest.err conftest.$ac_ext
5063 if $ac_preproc_ok; then :
5064 break
5067 done
5068 ac_cv_prog_CXXCPP=$CXXCPP
5071 CXXCPP=$ac_cv_prog_CXXCPP
5072 else
5073 ac_cv_prog_CXXCPP=$CXXCPP
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5076 $as_echo "$CXXCPP" >&6; }
5077 ac_preproc_ok=false
5078 for ac_cxx_preproc_warn_flag in '' yes
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #ifdef __STDC__
5089 # include <limits.h>
5090 #else
5091 # include <assert.h>
5092 #endif
5093 Syntax error
5094 _ACEOF
5095 if ac_fn_cxx_try_cpp "$LINENO"; then :
5097 else
5098 # Broken: fails on valid input.
5099 continue
5101 rm -f conftest.err conftest.$ac_ext
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if ac_fn_cxx_try_cpp "$LINENO"; then :
5110 # Broken: success on invalid input.
5111 continue
5112 else
5113 # Passes both tests.
5114 ac_preproc_ok=:
5115 break
5117 rm -f conftest.err conftest.$ac_ext
5119 done
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then :
5124 else
5125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5128 See \`config.log' for more details." "$LINENO" 5; }
5131 ac_ext=cpp
5132 ac_cpp='$CXXCPP $CPPFLAGS'
5133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5139 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5140 if test "${ac_cv_path_GREP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -z "$GREP"; then
5144 ac_path_GREP_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in grep ggrep; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5154 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5155 # Check for GNU ac_path_GREP and select it if it is found.
5156 # Check for GNU $ac_path_GREP
5157 case `"$ac_path_GREP" --version 2>&1` in
5158 *GNU*)
5159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5161 ac_count=0
5162 $as_echo_n 0123456789 >"conftest.in"
5163 while :
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo 'GREP' >> "conftest.nl"
5169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_GREP="$ac_path_GREP"
5175 ac_path_GREP_max=$ac_count
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181 esac
5183 $ac_path_GREP_found && break 3
5184 done
5185 done
5186 done
5187 IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_GREP"; then
5189 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5191 else
5192 ac_cv_path_GREP=$GREP
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5197 $as_echo "$ac_cv_path_GREP" >&6; }
5198 GREP="$ac_cv_path_GREP"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5202 $as_echo_n "checking for egrep... " >&6; }
5203 if test "${ac_cv_path_EGREP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5207 then ac_cv_path_EGREP="$GREP -E"
5208 else
5209 if test -z "$EGREP"; then
5210 ac_path_EGREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in egrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5221 # Check for GNU ac_path_EGREP and select it if it is found.
5222 # Check for GNU $ac_path_EGREP
5223 case `"$ac_path_EGREP" --version 2>&1` in
5224 *GNU*)
5225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'EGREP' >> "conftest.nl"
5235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_EGREP="$ac_path_EGREP"
5241 ac_path_EGREP_max=$ac_count
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 esac
5249 $ac_path_EGREP_found && break 3
5250 done
5251 done
5252 done
5253 IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_EGREP"; then
5255 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 else
5258 ac_cv_path_EGREP=$EGREP
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5264 $as_echo "$ac_cv_path_EGREP" >&6; }
5265 EGREP="$ac_cv_path_EGREP"
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5269 $as_echo_n "checking for ANSI C header files... " >&6; }
5270 if test "${ac_cv_header_stdc+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <stdlib.h>
5276 #include <stdarg.h>
5277 #include <string.h>
5278 #include <float.h>
5281 main ()
5285 return 0;
5287 _ACEOF
5288 if ac_fn_cxx_try_compile "$LINENO"; then :
5289 ac_cv_header_stdc=yes
5290 else
5291 ac_cv_header_stdc=no
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 if test $ac_cv_header_stdc = yes; then
5296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <string.h>
5301 _ACEOF
5302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303 $EGREP "memchr" >/dev/null 2>&1; then :
5305 else
5306 ac_cv_header_stdc=no
5308 rm -f conftest*
5312 if test $ac_cv_header_stdc = yes; then
5313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <stdlib.h>
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then :
5322 else
5323 ac_cv_header_stdc=no
5325 rm -f conftest*
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then :
5333 else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <ctype.h>
5337 #include <stdlib.h>
5338 #if ((' ' & 0x0FF) == 0x020)
5339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341 #else
5342 # define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347 #endif
5349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5351 main ()
5353 int i;
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
5357 return 2;
5358 return 0;
5360 _ACEOF
5361 if ac_fn_cxx_try_run "$LINENO"; then :
5363 else
5364 ac_cv_header_stdc=no
5366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5367 conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5373 $as_echo "$ac_cv_header_stdc" >&6; }
5374 if test $ac_cv_header_stdc = yes; then
5376 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5382 inttypes.h stdint.h unistd.h
5383 do :
5384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5387 eval as_val=\$$as_ac_Header
5388 if test "x$as_val" = x""yes; then :
5389 cat >>confdefs.h <<_ACEOF
5390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391 _ACEOF
5395 done
5399 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5400 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5401 MINIX=yes
5402 else
5403 MINIX=
5407 if test "$MINIX" = yes; then
5409 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5412 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5415 $as_echo "#define _MINIX 1" >>confdefs.h
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5421 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5422 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5428 # define __EXTENSIONS__ 1
5429 $ac_includes_default
5431 main ()
5435 return 0;
5437 _ACEOF
5438 if ac_fn_cxx_try_compile "$LINENO"; then :
5439 ac_cv_safe_to_define___extensions__=yes
5440 else
5441 ac_cv_safe_to_define___extensions__=no
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5446 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5447 test $ac_cv_safe_to_define___extensions__ = yes &&
5448 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5450 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5452 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5454 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5456 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5465 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5466 # On Suns, sometimes $CPP names a directory.
5467 if test -n "$CPP" && test -d "$CPP"; then
5468 CPP=
5470 if test -z "$CPP"; then
5471 if test "${ac_cv_prog_CPP+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 # Double quotes because CPP needs to be expanded
5475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5477 ac_preproc_ok=false
5478 for ac_c_preproc_warn_flag in '' yes
5480 # Use a header file that comes with gcc, so configuring glibc
5481 # with a fresh cross-compiler works.
5482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5483 # <limits.h> exists even on freestanding compilers.
5484 # On the NeXT, cc -E runs the code through the compiler's parser,
5485 # not just through cpp. "Syntax error" is here to catch this case.
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #ifdef __STDC__
5489 # include <limits.h>
5490 #else
5491 # include <assert.h>
5492 #endif
5493 Syntax error
5494 _ACEOF
5495 if ac_fn_c_try_cpp "$LINENO"; then :
5497 else
5498 # Broken: fails on valid input.
5499 continue
5501 rm -f conftest.err conftest.$ac_ext
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <ac_nonexistent.h>
5508 _ACEOF
5509 if ac_fn_c_try_cpp "$LINENO"; then :
5510 # Broken: success on invalid input.
5511 continue
5512 else
5513 # Passes both tests.
5514 ac_preproc_ok=:
5515 break
5517 rm -f conftest.err conftest.$ac_ext
5519 done
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then :
5523 break
5526 done
5527 ac_cv_prog_CPP=$CPP
5530 CPP=$ac_cv_prog_CPP
5531 else
5532 ac_cv_prog_CPP=$CPP
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5535 $as_echo "$CPP" >&6; }
5536 ac_preproc_ok=false
5537 for ac_c_preproc_warn_flag in '' yes
5539 # Use a header file that comes with gcc, so configuring glibc
5540 # with a fresh cross-compiler works.
5541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542 # <limits.h> exists even on freestanding compilers.
5543 # On the NeXT, cc -E runs the code through the compiler's parser,
5544 # not just through cpp. "Syntax error" is here to catch this case.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #ifdef __STDC__
5548 # include <limits.h>
5549 #else
5550 # include <assert.h>
5551 #endif
5552 Syntax error
5553 _ACEOF
5554 if ac_fn_c_try_cpp "$LINENO"; then :
5556 else
5557 # Broken: fails on valid input.
5558 continue
5560 rm -f conftest.err conftest.$ac_ext
5562 # OK, works on sane cases. Now check whether nonexistent headers
5563 # can be detected and how.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <ac_nonexistent.h>
5567 _ACEOF
5568 if ac_fn_c_try_cpp "$LINENO"; then :
5569 # Broken: success on invalid input.
5570 continue
5571 else
5572 # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5576 rm -f conftest.err conftest.$ac_ext
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then :
5583 else
5584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5586 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5587 See \`config.log' for more details." "$LINENO" 5; }
5590 ac_ext=cpp
5591 ac_cpp='$CXXCPP $CPPFLAGS'
5592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5597 $as_echo_n "checking for inline... " >&6; }
5598 if test "${ac_cv_c_inline+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 ac_cv_c_inline=no
5602 for ac_kw in inline __inline__ __inline; do
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #ifndef __cplusplus
5606 typedef int foo_t;
5607 static $ac_kw foo_t static_foo () {return 0; }
5608 $ac_kw foo_t foo () {return 0; }
5609 #endif
5611 _ACEOF
5612 if ac_fn_cxx_try_compile "$LINENO"; then :
5613 ac_cv_c_inline=$ac_kw
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 test "$ac_cv_c_inline" != no && break
5617 done
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5621 $as_echo "$ac_cv_c_inline" >&6; }
5623 case $ac_cv_c_inline in
5624 inline | yes) ;;
5626 case $ac_cv_c_inline in
5627 no) ac_val=;;
5628 *) ac_val=$ac_cv_c_inline;;
5629 esac
5630 cat >>confdefs.h <<_ACEOF
5631 #ifndef __cplusplus
5632 #define inline $ac_val
5633 #endif
5634 _ACEOF
5636 esac
5639 # Check whether --enable-largefile was given.
5640 if test "${enable_largefile+set}" = set; then :
5641 enableval=$enable_largefile;
5644 if test "$enable_largefile" != no; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5647 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5648 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 ac_cv_sys_largefile_CC=no
5652 if test "$GCC" != yes; then
5653 ac_save_CC=$CC
5654 while :; do
5655 # IRIX 6.2 and later do not support large files by default,
5656 # so use the C compiler's -n32 option if that helps.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5667 ? 1 : -1];
5669 main ()
5673 return 0;
5675 _ACEOF
5676 if ac_fn_cxx_try_compile "$LINENO"; then :
5677 break
5679 rm -f core conftest.err conftest.$ac_objext
5680 CC="$CC -n32"
5681 if ac_fn_cxx_try_compile "$LINENO"; then :
5682 ac_cv_sys_largefile_CC=' -n32'; break
5684 rm -f core conftest.err conftest.$ac_objext
5685 break
5686 done
5687 CC=$ac_save_CC
5688 rm -f conftest.$ac_ext
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5692 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5693 if test "$ac_cv_sys_largefile_CC" != no; then
5694 CC=$CC$ac_cv_sys_largefile_CC
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5698 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5699 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 while :; do
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #include <sys/types.h>
5706 /* Check that off_t can represent 2**63 - 1 correctly.
5707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5708 since some C++ compilers masquerading as C compilers
5709 incorrectly reject 9223372036854775807. */
5710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5712 && LARGE_OFF_T % 2147483647 == 1)
5713 ? 1 : -1];
5715 main ()
5719 return 0;
5721 _ACEOF
5722 if ac_fn_cxx_try_compile "$LINENO"; then :
5723 ac_cv_sys_file_offset_bits=no; break
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #define _FILE_OFFSET_BITS 64
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5739 main ()
5743 return 0;
5745 _ACEOF
5746 if ac_fn_cxx_try_compile "$LINENO"; then :
5747 ac_cv_sys_file_offset_bits=64; break
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cv_sys_file_offset_bits=unknown
5751 break
5752 done
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5755 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5756 case $ac_cv_sys_file_offset_bits in #(
5757 no | unknown) ;;
5759 cat >>confdefs.h <<_ACEOF
5760 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5761 _ACEOF
5763 esac
5764 rm -rf conftest*
5765 if test $ac_cv_sys_file_offset_bits = unknown; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5767 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5768 if test "${ac_cv_sys_large_files+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 while :; do
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5782 ? 1 : -1];
5784 main ()
5788 return 0;
5790 _ACEOF
5791 if ac_fn_cxx_try_compile "$LINENO"; then :
5792 ac_cv_sys_large_files=no; break
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #define _LARGE_FILES 1
5798 #include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5806 ? 1 : -1];
5808 main ()
5812 return 0;
5814 _ACEOF
5815 if ac_fn_cxx_try_compile "$LINENO"; then :
5816 ac_cv_sys_large_files=1; break
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cv_sys_large_files=unknown
5820 break
5821 done
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5824 $as_echo "$ac_cv_sys_large_files" >&6; }
5825 case $ac_cv_sys_large_files in #(
5826 no | unknown) ;;
5828 cat >>confdefs.h <<_ACEOF
5829 #define _LARGE_FILES $ac_cv_sys_large_files
5830 _ACEOF
5832 esac
5833 rm -rf conftest*
5838 # sizeof(char) is 1 by definition.
5839 # The cast to long int works around a bug in the HP C Compiler
5840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842 # This bug is HP SR number 8606223364.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5844 $as_echo_n "checking size of void *... " >&6; }
5845 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5850 else
5851 if test "$ac_cv_type_void_p" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 { as_fn_set_status 77
5855 as_fn_error "cannot compute sizeof (void *)
5856 See \`config.log' for more details." "$LINENO" 5; }; }
5857 else
5858 ac_cv_sizeof_void_p=0
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5864 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5868 cat >>confdefs.h <<_ACEOF
5869 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5870 _ACEOF
5873 # The cast to long int works around a bug in the HP C Compiler
5874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5876 # This bug is HP SR number 8606223364.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5878 $as_echo_n "checking size of short... " >&6; }
5879 if test "${ac_cv_sizeof_short+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5884 else
5885 if test "$ac_cv_type_short" = yes; then
5886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5888 { as_fn_set_status 77
5889 as_fn_error "cannot compute sizeof (short)
5890 See \`config.log' for more details." "$LINENO" 5; }; }
5891 else
5892 ac_cv_sizeof_short=0
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5898 $as_echo "$ac_cv_sizeof_short" >&6; }
5902 cat >>confdefs.h <<_ACEOF
5903 #define SIZEOF_SHORT $ac_cv_sizeof_short
5904 _ACEOF
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5912 $as_echo_n "checking size of int... " >&6; }
5913 if test "${ac_cv_sizeof_int+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5918 else
5919 if test "$ac_cv_type_int" = yes; then
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (int)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5925 else
5926 ac_cv_sizeof_int=0
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5932 $as_echo "$ac_cv_sizeof_int" >&6; }
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF_INT $ac_cv_sizeof_int
5938 _ACEOF
5941 # The cast to long int works around a bug in the HP C Compiler
5942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5944 # This bug is HP SR number 8606223364.
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5946 $as_echo_n "checking size of long... " >&6; }
5947 if test "${ac_cv_sizeof_long+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5952 else
5953 if test "$ac_cv_type_long" = yes; then
5954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5956 { as_fn_set_status 77
5957 as_fn_error "cannot compute sizeof (long)
5958 See \`config.log' for more details." "$LINENO" 5; }; }
5959 else
5960 ac_cv_sizeof_long=0
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5966 $as_echo "$ac_cv_sizeof_long" >&6; }
5970 cat >>confdefs.h <<_ACEOF
5971 #define SIZEOF_LONG $ac_cv_sizeof_long
5972 _ACEOF
5975 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5976 if test "x$ac_cv_type_long_long" = x""yes; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LONG_LONG 1
5980 _ACEOF
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5987 $as_echo_n "checking size of long long... " >&6; }
5988 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5993 else
5994 if test "$ac_cv_type_long_long" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (long long)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof_long_long=0
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6007 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6013 _ACEOF
6018 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6019 case $ac_cv_c_int8_t in #(
6020 no|yes) ;; #(
6023 cat >>confdefs.h <<_ACEOF
6024 #define int8_t $ac_cv_c_int8_t
6025 _ACEOF
6027 esac
6029 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6030 case $ac_cv_c_int16_t in #(
6031 no|yes) ;; #(
6034 cat >>confdefs.h <<_ACEOF
6035 #define int16_t $ac_cv_c_int16_t
6036 _ACEOF
6038 esac
6040 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6041 case $ac_cv_c_int32_t in #(
6042 no|yes) ;; #(
6045 cat >>confdefs.h <<_ACEOF
6046 #define int32_t $ac_cv_c_int32_t
6047 _ACEOF
6049 esac
6051 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6052 case $ac_cv_c_int64_t in #(
6053 no|yes) ;; #(
6056 cat >>confdefs.h <<_ACEOF
6057 #define int64_t $ac_cv_c_int64_t
6058 _ACEOF
6060 esac
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6064 $as_echo_n "checking for long long int... " >&6; }
6065 if test "${ac_cv_type_long_long_int+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 /* For now, do not test the preprocessor; as of 2007 there are too many
6072 implementations with broken preprocessors. Perhaps this can
6073 be revisited in 2012. In the meantime, code should not expect
6074 #if to work with literals wider than 32 bits. */
6075 /* Test literals. */
6076 long long int ll = 9223372036854775807ll;
6077 long long int nll = -9223372036854775807LL;
6078 unsigned long long int ull = 18446744073709551615ULL;
6079 /* Test constant expressions. */
6080 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 ? 1 : -1)];
6082 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6083 ? 1 : -1)];
6084 int i = 63;
6086 main ()
6088 /* Test availability of runtime routines for shift and division. */
6089 long long int llmax = 9223372036854775807ll;
6090 unsigned long long int ullmax = 18446744073709551615ull;
6091 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6092 | (llmax / ll) | (llmax % ll)
6093 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6094 | (ullmax / ull) | (ullmax % ull));
6096 return 0;
6099 _ACEOF
6100 if ac_fn_cxx_try_link "$LINENO"; then :
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_type_long_long_int=yes
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <limits.h>
6107 #ifndef LLONG_MAX
6108 # define HALF \
6109 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6110 # define LLONG_MAX (HALF - 1 + HALF)
6111 #endif
6113 main ()
6115 long long int n = 1;
6116 int i;
6117 for (i = 0; ; i++)
6119 long long int m = n << i;
6120 if (m >> i != n)
6121 return 1;
6122 if (LLONG_MAX / 2 < m)
6123 break;
6125 return 0;
6127 return 0;
6129 _ACEOF
6130 if ac_fn_cxx_try_run "$LINENO"; then :
6131 ac_cv_type_long_long_int=yes
6132 else
6133 ac_cv_type_long_long_int=no
6135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
6139 else
6140 ac_cv_type_long_long_int=no
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6146 $as_echo "$ac_cv_type_long_long_int" >&6; }
6147 if test $ac_cv_type_long_long_int = yes; then
6149 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6155 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6156 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6158 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6160 else
6161 test $ac_cv_type_long_long_int = yes \
6162 && ac_type='long long int' \
6163 || ac_type='long int'
6165 cat >>confdefs.h <<_ACEOF
6166 #define intmax_t $ac_type
6167 _ACEOF
6173 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6176 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6178 else
6179 for ac_type in 'int' 'long int' 'long long int'; do
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 $ac_includes_default
6184 main ()
6186 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6187 test_array [0] = 0
6190 return 0;
6192 _ACEOF
6193 if ac_fn_cxx_try_compile "$LINENO"; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define intptr_t $ac_type
6197 _ACEOF
6199 ac_type=
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 test -z "$ac_type" && break
6203 done
6207 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6208 case $ac_cv_c_uint8_t in #(
6209 no|yes) ;; #(
6212 $as_echo "#define _UINT8_T 1" >>confdefs.h
6215 cat >>confdefs.h <<_ACEOF
6216 #define uint8_t $ac_cv_c_uint8_t
6217 _ACEOF
6219 esac
6221 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6222 case $ac_cv_c_uint16_t in #(
6223 no|yes) ;; #(
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint16_t $ac_cv_c_uint16_t
6229 _ACEOF
6231 esac
6233 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6234 case $ac_cv_c_uint32_t in #(
6235 no|yes) ;; #(
6238 $as_echo "#define _UINT32_T 1" >>confdefs.h
6241 cat >>confdefs.h <<_ACEOF
6242 #define uint32_t $ac_cv_c_uint32_t
6243 _ACEOF
6245 esac
6247 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6248 case $ac_cv_c_uint64_t in #(
6249 no|yes) ;; #(
6252 $as_echo "#define _UINT64_T 1" >>confdefs.h
6255 cat >>confdefs.h <<_ACEOF
6256 #define uint64_t $ac_cv_c_uint64_t
6257 _ACEOF
6259 esac
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6263 $as_echo_n "checking for unsigned long long int... " >&6; }
6264 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6270 /* For now, do not test the preprocessor; as of 2007 there are too many
6271 implementations with broken preprocessors. Perhaps this can
6272 be revisited in 2012. In the meantime, code should not expect
6273 #if to work with literals wider than 32 bits. */
6274 /* Test literals. */
6275 long long int ll = 9223372036854775807ll;
6276 long long int nll = -9223372036854775807LL;
6277 unsigned long long int ull = 18446744073709551615ULL;
6278 /* Test constant expressions. */
6279 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 ? 1 : -1)];
6281 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6282 ? 1 : -1)];
6283 int i = 63;
6285 main ()
6287 /* Test availability of runtime routines for shift and division. */
6288 long long int llmax = 9223372036854775807ll;
6289 unsigned long long int ullmax = 18446744073709551615ull;
6290 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6291 | (llmax / ll) | (llmax % ll)
6292 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6293 | (ullmax / ull) | (ullmax % ull));
6295 return 0;
6298 _ACEOF
6299 if ac_fn_cxx_try_link "$LINENO"; then :
6300 ac_cv_type_unsigned_long_long_int=yes
6301 else
6302 ac_cv_type_unsigned_long_long_int=no
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6308 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6309 if test $ac_cv_type_unsigned_long_long_int = yes; then
6311 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6317 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6318 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6320 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6322 else
6323 test $ac_cv_type_unsigned_long_long_int = yes \
6324 && ac_type='unsigned long long int' \
6325 || ac_type='unsigned long int'
6327 cat >>confdefs.h <<_ACEOF
6328 #define uintmax_t $ac_type
6329 _ACEOF
6335 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6338 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6340 else
6341 for ac_type in 'unsigned int' 'unsigned long int' \
6342 'unsigned long long int'; do
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 $ac_includes_default
6347 main ()
6349 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6350 test_array [0] = 0
6353 return 0;
6355 _ACEOF
6356 if ac_fn_cxx_try_compile "$LINENO"; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define uintptr_t $ac_type
6360 _ACEOF
6362 ac_type=
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test -z "$ac_type" && break
6366 done
6382 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6383 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6386 # check what underlying integer type int64_t uses
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6388 $as_echo_n "checking for int64_t underlying type... " >&6; }
6389 if test "${ac_cv_int64_t_type+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6396 #ifdef HAVE_STDINT_H
6397 #include <stdint.h>
6398 #endif
6399 template <typename T> struct X { };
6400 template <>
6401 struct X<long> { typedef long t; };
6404 main ()
6406 X<int64_t>::t x;
6408 return 0;
6410 _ACEOF
6411 if ac_fn_cxx_try_compile "$LINENO"; then :
6412 ac_cv_int64_t_type=long
6413 else
6414 ac_cv_int64_t_type="long long"
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6419 $as_echo "$ac_cv_int64_t_type" >&6; }
6420 if test "$ac_cv_int64_t_type" = "long"; then
6422 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6424 else
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6428 #ifdef HAVE_STDINT_H
6429 #include <stdint.h>
6430 #endif
6431 template <typename T> struct X { };
6432 template <>
6433 struct X<long long> { typedef long long t; };
6436 main ()
6438 X<int64_t>::t x;
6440 return 0;
6442 _ACEOF
6443 if ac_fn_cxx_try_compile "$LINENO"; then :
6445 else
6446 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 # ---------------------
6455 # Warnings and checking
6456 # ---------------------
6458 # Check $CC warning features (if it's GCC).
6459 # We want to use -pedantic, but we don't want warnings about
6460 # * 'long long'
6461 # * variadic macros
6462 # * overlong strings
6463 # * C++11 narrowing conversions in { }
6464 # So, we only use -pedantic if we can disable those warnings.
6466 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6467 # Check whether --enable-build-format-warnings was given.
6468 if test "${enable_build_format_warnings+set}" = set; then :
6469 enableval=$enable_build_format_warnings;
6470 else
6471 enable_build_format_warnings=yes
6474 if test $enable_build_format_warnings = no; then :
6475 wf_opt=-Wno-format
6476 else
6477 wf_opt=
6479 ac_ext=cpp
6480 ac_cpp='$CXXCPP $CPPFLAGS'
6481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6485 loose_warn=
6486 save_CXXFLAGS="$CXXFLAGS"
6487 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6488 # Do the check with the no- prefix removed since gcc silently
6489 # accepts any -Wno-* option on purpose
6490 case $real_option in
6491 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6492 *) option=$real_option ;;
6493 esac
6494 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6497 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6498 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 CXXFLAGS="$option"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6506 main ()
6510 return 0;
6512 _ACEOF
6513 if ac_fn_cxx_try_compile "$LINENO"; then :
6514 eval "$as_acx_Woption=yes"
6515 else
6516 eval "$as_acx_Woption=no"
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 eval ac_res=\$$as_acx_Woption
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6525 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6527 done
6528 CXXFLAGS="$save_CXXFLAGS"
6529 ac_ext=cpp
6530 ac_cpp='$CXXCPP $CPPFLAGS'
6531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6537 ac_ext=c
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543 c_loose_warn=
6544 save_CFLAGS="$CFLAGS"
6545 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6546 # Do the check with the no- prefix removed since gcc silently
6547 # accepts any -Wno-* option on purpose
6548 case $real_option in
6549 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6550 *) option=$real_option ;;
6551 esac
6552 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6555 $as_echo_n "checking whether $CC supports $option... " >&6; }
6556 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 CFLAGS="$option"
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6564 main ()
6568 return 0;
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572 eval "$as_acx_Woption=yes"
6573 else
6574 eval "$as_acx_Woption=no"
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 eval ac_res=\$$as_acx_Woption
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6581 $as_echo "$ac_res" >&6; }
6582 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6583 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6585 done
6586 CFLAGS="$save_CFLAGS"
6587 ac_ext=cpp
6588 ac_cpp='$CXXCPP $CPPFLAGS'
6589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6594 ac_ext=cpp
6595 ac_cpp='$CXXCPP $CPPFLAGS'
6596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6600 strict_warn=
6601 save_CXXFLAGS="$CXXFLAGS"
6602 for real_option in -Wmissing-format-attribute; do
6603 # Do the check with the no- prefix removed since gcc silently
6604 # accepts any -Wno-* option on purpose
6605 case $real_option in
6606 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6607 *) option=$real_option ;;
6608 esac
6609 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6612 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6613 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 CXXFLAGS="$option"
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 main ()
6625 return 0;
6627 _ACEOF
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629 eval "$as_acx_Woption=yes"
6630 else
6631 eval "$as_acx_Woption=no"
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 eval ac_res=\$$as_acx_Woption
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6638 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6640 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6642 done
6643 CXXFLAGS="$save_CXXFLAGS"
6644 ac_ext=cpp
6645 ac_cpp='$CXXCPP $CPPFLAGS'
6646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6651 ac_ext=cpp
6652 ac_cpp='$CXXCPP $CPPFLAGS'
6653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6657 save_CXXFLAGS="$CXXFLAGS"
6658 for real_option in -Woverloaded-virtual; do
6659 # Do the check with the no- prefix removed since gcc silently
6660 # accepts any -Wno-* option on purpose
6661 case $real_option in
6662 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6663 *) option=$real_option ;;
6664 esac
6665 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6668 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6669 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 CXXFLAGS="$option"
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6677 main ()
6681 return 0;
6683 _ACEOF
6684 if ac_fn_cxx_try_compile "$LINENO"; then :
6685 eval "$as_acx_Woption=yes"
6686 else
6687 eval "$as_acx_Woption=no"
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 eval ac_res=\$$as_acx_Woption
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6694 $as_echo "$ac_res" >&6; }
6695 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6696 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6698 done
6699 CXXFLAGS="$save_CXXFLAGS"
6700 ac_ext=cpp
6701 ac_cpp='$CXXCPP $CPPFLAGS'
6702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713 c_strict_warn=
6714 save_CFLAGS="$CFLAGS"
6715 for real_option in -Wold-style-definition -Wc++-compat; do
6716 # Do the check with the no- prefix removed since gcc silently
6717 # accepts any -Wno-* option on purpose
6718 case $real_option in
6719 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6720 *) option=$real_option ;;
6721 esac
6722 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6725 $as_echo_n "checking whether $CC supports $option... " >&6; }
6726 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 CFLAGS="$option"
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6734 main ()
6738 return 0;
6740 _ACEOF
6741 if ac_fn_c_try_compile "$LINENO"; then :
6742 eval "$as_acx_Woption=yes"
6743 else
6744 eval "$as_acx_Woption=no"
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 eval ac_res=\$$as_acx_Woption
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6751 $as_echo "$ac_res" >&6; }
6752 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6753 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6755 done
6756 CFLAGS="$save_CFLAGS"
6757 ac_ext=cpp
6758 ac_cpp='$CXXCPP $CPPFLAGS'
6759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6764 ac_ext=cpp
6765 ac_cpp='$CXXCPP $CPPFLAGS'
6766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6770 # Do the check with the no- prefix removed from the warning options
6771 # since gcc silently accepts any -Wno-* option on purpose
6772 if test "$GXX" = yes; then :
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6774 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6775 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 save_CXXFLAGS="$CXXFLAGS"
6779 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6784 main ()
6788 return 0;
6790 _ACEOF
6791 if ac_fn_cxx_try_compile "$LINENO"; then :
6792 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6793 else
6794 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 CXXFLAGS="$save_CXXFLAGS"
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6800 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6801 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6802 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6806 ac_ext=cpp
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 ac_ext=cpp
6814 ac_cpp='$CXXCPP $CPPFLAGS'
6815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6819 # Check whether --enable-werror-always was given.
6820 if test "${enable_werror_always+set}" = set; then :
6821 enableval=$enable_werror_always;
6822 else
6823 enable_werror_always=no
6826 if test $enable_werror_always = yes; then :
6827 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6830 ac_ext=cpp
6831 ac_cpp='$CXXCPP $CPPFLAGS'
6832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6838 # The above macros do nothing if the compiler is not GCC. However, the
6839 # Makefile has more goo to add other flags, so these variables are used
6840 # to enable warnings only for GCC.
6841 warn_cflags=
6842 warn_cxxflags=
6843 if test "x$GCC" = "xyes"; then
6844 warn_cflags='$(GCC_WARN_CFLAGS)'
6845 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6850 # Disable exceptions and RTTI if building with g++
6851 ac_ext=c
6852 ac_cpp='$CPP $CPPFLAGS'
6853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6857 noexception_flags=
6858 save_CFLAGS="$CFLAGS"
6859 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6860 # Do the check with the no- prefix removed since gcc silently
6861 # accepts any -Wno-* option on purpose
6862 case $real_option in
6863 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6864 *) option=$real_option ;;
6865 esac
6866 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6869 $as_echo_n "checking whether $CC supports $option... " >&6; }
6870 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 CFLAGS="$option"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6878 main ()
6882 return 0;
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 eval "$as_acx_Woption=yes"
6887 else
6888 eval "$as_acx_Woption=no"
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 eval ac_res=\$$as_acx_Woption
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6895 $as_echo "$ac_res" >&6; }
6896 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6897 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6899 done
6900 CFLAGS="$save_CFLAGS"
6901 ac_ext=cpp
6902 ac_cpp='$CXXCPP $CPPFLAGS'
6903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6909 # Enable expensive internal checks
6910 is_release=
6911 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6912 is_release=yes
6915 # Check whether --enable-checking was given.
6916 if test "${enable_checking+set}" = set; then :
6917 enableval=$enable_checking; ac_checking_flags="${enableval}"
6918 else
6920 # Determine the default checks.
6921 if test x$is_release = x ; then
6922 ac_checking_flags=yes
6923 else
6924 ac_checking_flags=release
6928 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6929 for check in release $ac_checking_flags
6931 case $check in
6932 # these set all the flags to specific states
6933 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6934 ac_fold_checking= ; ac_gc_checking=1 ;
6935 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6936 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6937 ac_tree_checking=1 ; ac_valgrind_checking= ;
6938 ac_types_checking=1 ;;
6939 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6940 ac_fold_checking= ; ac_gc_checking= ;
6941 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6942 ac_rtlflag_checking= ; ac_runtime_checking= ;
6943 ac_tree_checking= ; ac_valgrind_checking= ;
6944 ac_types_checking= ;;
6945 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6946 ac_fold_checking=1 ; ac_gc_checking=1 ;
6947 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6948 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6949 ac_tree_checking=1 ; ac_valgrind_checking= ;
6950 ac_types_checking=1 ;;
6951 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6952 ac_fold_checking= ; ac_gc_checking= ;
6953 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6954 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6955 ac_tree_checking= ; ac_valgrind_checking= ;
6956 ac_types_checking= ;;
6957 # these enable particular checks
6958 assert) ac_assert_checking=1 ;;
6959 df) ac_df_checking=1 ;;
6960 fold) ac_fold_checking=1 ;;
6961 gc) ac_gc_checking=1 ;;
6962 gcac) ac_gc_always_collect=1 ;;
6963 gimple) ac_gimple_checking=1 ;;
6964 misc) ac_checking=1 ;;
6965 rtl) ac_rtl_checking=1 ;;
6966 rtlflag) ac_rtlflag_checking=1 ;;
6967 runtime) ac_runtime_checking=1 ;;
6968 tree) ac_tree_checking=1 ;;
6969 types) ac_types_checking=1 ;;
6970 valgrind) ac_valgrind_checking=1 ;;
6971 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6972 esac
6973 done
6974 IFS="$ac_save_IFS"
6976 nocommon_flag=""
6977 if test x$ac_checking != x ; then
6979 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6981 nocommon_flag=-fno-common
6984 if test x$ac_df_checking != x ; then
6986 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6989 if test x$ac_assert_checking != x ; then
6991 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6994 if test x$ac_gimple_checking != x ; then
6996 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7000 if test x$ac_runtime_checking != x ; then
7002 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7005 if test x$ac_tree_checking != x ; then
7007 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7009 TREEBROWSER=tree-browser.o
7010 TREECHECKING=yes
7012 if test x$ac_types_checking != x ; then
7014 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7019 if test x$ac_rtl_checking != x ; then
7021 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7024 if test x$ac_rtlflag_checking != x ; then
7026 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7029 if test x$ac_gc_checking != x ; then
7031 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7034 if test x$ac_gc_always_collect != x ; then
7036 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7039 if test x$ac_fold_checking != x ; then
7041 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7044 valgrind_path_defines=
7045 valgrind_command=
7047 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7048 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7049 have_valgrind_h=yes
7050 else
7051 have_valgrind_h=no
7056 # It is certainly possible that there's valgrind but no valgrind.h.
7057 # GCC relies on making annotations so we must have both.
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7059 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #include <valgrind/memcheck.h>
7063 #ifndef VALGRIND_DISCARD
7064 #error VALGRIND_DISCARD not defined
7065 #endif
7066 _ACEOF
7067 if ac_fn_cxx_try_cpp "$LINENO"; then :
7068 gcc_cv_header_valgrind_memcheck_h=yes
7069 else
7070 gcc_cv_header_valgrind_memcheck_h=no
7072 rm -f conftest.err conftest.$ac_ext
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7074 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7076 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 #include <memcheck.h>
7080 #ifndef VALGRIND_DISCARD
7081 #error VALGRIND_DISCARD not defined
7082 #endif
7083 _ACEOF
7084 if ac_fn_cxx_try_cpp "$LINENO"; then :
7085 gcc_cv_header_memcheck_h=yes
7086 else
7087 gcc_cv_header_memcheck_h=no
7089 rm -f conftest.err conftest.$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7091 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7092 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7094 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7097 if test $gcc_cv_header_memcheck_h = yes; then
7099 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7103 if test x$ac_valgrind_checking != x ; then
7105 # Prepare PATH_SEPARATOR.
7106 # The user is always right.
7107 if test "${PATH_SEPARATOR+set}" != set; then
7108 echo "#! /bin/sh" >conf$$.sh
7109 echo "exit 0" >>conf$$.sh
7110 chmod +x conf$$.sh
7111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7112 PATH_SEPARATOR=';'
7113 else
7114 PATH_SEPARATOR=:
7116 rm -f conf$$.sh
7119 # Find out how to test for executable files. Don't use a zero-byte file,
7120 # as systems may use methods other than mode bits to determine executability.
7121 cat >conf$$.file <<_ASEOF
7122 #! /bin/sh
7123 exit 0
7124 _ASEOF
7125 chmod +x conf$$.file
7126 if test -x conf$$.file >/dev/null 2>&1; then
7127 ac_executable_p="test -x"
7128 else
7129 ac_executable_p="test -f"
7131 rm -f conf$$.file
7133 # Extract the first word of "valgrind", so it can be a program name with args.
7134 set dummy valgrind; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 case "$valgrind_path" in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7145 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7146 for ac_dir in $PATH; do
7147 IFS="$ac_save_IFS"
7148 test -z "$ac_dir" && ac_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7151 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7152 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7153 break 2
7156 done
7157 done
7158 IFS="$ac_save_IFS"
7160 esac
7162 valgrind_path="$ac_cv_path_valgrind_path"
7163 if test -n "$valgrind_path"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7165 $as_echo "$valgrind_path" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$valgrind_path" = "x" \
7172 || (test $have_valgrind_h = no \
7173 && test $gcc_cv_header_memcheck_h = no \
7174 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7175 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7177 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7178 valgrind_command="$valgrind_path -q"
7180 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7186 # Enable code coverage collection
7187 # Check whether --enable-coverage was given.
7188 if test "${enable_coverage+set}" = set; then :
7189 enableval=$enable_coverage; case "${enableval}" in
7190 yes|noopt)
7191 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7193 opt)
7194 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7197 # a.k.a. --disable-coverage
7198 coverage_flags=""
7201 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7203 esac
7204 else
7205 coverage_flags=""
7210 # Check whether --enable-gather-detailed-mem-stats was given.
7211 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7212 enableval=$enable_gather_detailed_mem_stats;
7213 else
7214 enable_gather_detailed_mem_stats=no
7217 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7219 cat >>confdefs.h <<_ACEOF
7220 #define GATHER_STATISTICS $gather_stats
7221 _ACEOF
7224 # Check whether --enable-valgrind-annotations was given.
7225 if test "${enable_valgrind_annotations+set}" = set; then :
7226 enableval=$enable_valgrind_annotations;
7227 else
7228 enable_valgrind_annotations=no
7231 if test x$enable_valgrind_annotations != xno \
7232 || test x$ac_valgrind_checking != x; then
7233 if (test $have_valgrind_h = no \
7234 && test $gcc_cv_header_memcheck_h = no \
7235 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7236 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7239 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7243 # -------------------------------
7244 # Miscenalleous configure options
7245 # -------------------------------
7247 # With stabs
7249 # Check whether --with-stabs was given.
7250 if test "${with_stabs+set}" = set; then :
7251 withval=$with_stabs; stabs="$with_stabs"
7252 else
7253 stabs=no
7257 # Determine whether or not multilibs are enabled.
7258 # Check whether --enable-multilib was given.
7259 if test "${enable_multilib+set}" = set; then :
7260 enableval=$enable_multilib;
7261 else
7262 enable_multilib=yes
7267 # Determine whether or not multiarch is enabled.
7268 # Check whether --enable-multiarch was given.
7269 if test "${enable_multiarch+set}" = set; then :
7270 enableval=$enable_multiarch; case "${enableval}" in
7271 yes|no|auto) enable_multiarch=$enableval;;
7272 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7273 esac
7274 else
7275 enable_multiarch=auto
7278 if test x${enable_multiarch} = xauto; then
7279 if test x${with_native_system_header_dir} != x; then
7280 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7281 enable_multiarch=no
7283 if test x$host != x$target && test "x$with_sysroot" = x; then
7284 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7285 enable_multiarch=no
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7289 $as_echo_n "checking for multiarch configuration... " >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7292 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7294 # needed for setting the multiarch name for soft-float/hard-float ABIs
7298 # Enable __cxa_atexit for C++.
7299 # Check whether --enable-__cxa_atexit was given.
7300 if test "${enable___cxa_atexit+set}" = set; then :
7301 enableval=$enable___cxa_atexit;
7305 # Enable C extension for decimal float if target supports it.
7307 # Check whether --enable-decimal-float was given.
7308 if test "${enable_decimal_float+set}" = set; then :
7309 enableval=$enable_decimal_float;
7310 case $enable_decimal_float in
7311 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7312 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7313 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7314 esac
7316 else
7318 case $target in
7319 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7320 i?86*-*-gnu* | \
7321 i?86*-*-mingw* | x86_64*-*-mingw* | \
7322 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7323 enable_decimal_float=yes
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7327 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7328 enable_decimal_float=no
7330 esac
7335 # x86's use BID format instead of DPD
7336 case x$enable_decimal_float in
7337 xyes)
7338 case $target in
7339 i?86*-*-* | x86_64*-*-*)
7340 enable_decimal_float=bid
7343 enable_decimal_float=dpd
7345 esac
7346 default_decimal_float=$enable_decimal_float
7348 xno)
7349 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7350 # dependency on libdecnumber.
7351 default_decimal_float=dpd
7353 esac
7358 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7360 cat >>confdefs.h <<_ACEOF
7361 #define ENABLE_DECIMAL_FLOAT $dfp
7362 _ACEOF
7365 # Use default_decimal_float for dependency.
7366 enable_decimal_float=$default_decimal_float
7368 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7370 cat >>confdefs.h <<_ACEOF
7371 #define ENABLE_DECIMAL_BID_FORMAT $bid
7372 _ACEOF
7375 # Enable C extension for fixed-point arithmetic.
7376 # Check whether --enable-fixed-point was given.
7377 if test "${enable_fixed_point+set}" = set; then :
7378 enableval=$enable_fixed_point;
7379 else
7381 case $target in
7382 arm*)
7383 enable_fixed_point=yes
7386 mips*-*-*)
7387 enable_fixed_point=yes
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7391 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7392 enable_fixed_point=no
7394 esac
7400 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7402 cat >>confdefs.h <<_ACEOF
7403 #define ENABLE_FIXED_POINT $fixedpoint
7404 _ACEOF
7407 # Enable threads
7408 # Pass with no value to take the default
7409 # Pass with a value to specify a thread package
7410 # Check whether --enable-threads was given.
7411 if test "${enable_threads+set}" = set; then :
7412 enableval=$enable_threads;
7413 else
7414 enable_threads=''
7418 # Check whether --enable-tls was given.
7419 if test "${enable_tls+set}" = set; then :
7420 enableval=$enable_tls;
7421 case $enable_tls in
7422 yes | no) ;;
7423 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7424 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7425 esac
7427 else
7428 enable_tls=''
7432 # Check whether --enable-objc-gc was given.
7433 if test "${enable_objc_gc+set}" = set; then :
7434 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7435 objc_boehm_gc=''
7436 else
7437 objc_boehm_gc=1
7439 else
7440 objc_boehm_gc=''
7445 # Check whether --with-dwarf2 was given.
7446 if test "${with_dwarf2+set}" = set; then :
7447 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7448 else
7449 dwarf2=no
7453 # Check whether --enable-shared was given.
7454 if test "${enable_shared+set}" = set; then :
7455 enableval=$enable_shared;
7456 case $enable_shared in
7457 yes | no) ;;
7459 enable_shared=no
7460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7461 for pkg in $enableval; do
7462 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7463 enable_shared=yes
7465 done
7466 IFS="$ac_save_ifs"
7468 esac
7470 else
7471 enable_shared=yes
7477 # Check whether --with-native-system-header-dir was given.
7478 if test "${with_native_system_header_dir+set}" = set; then :
7479 withval=$with_native_system_header_dir;
7480 case ${with_native_system_header_dir} in
7481 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7482 /* | [A-Za-z]:[\\/]*) ;;
7483 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7484 esac
7485 configured_native_system_header_dir="${withval}"
7487 else
7488 configured_native_system_header_dir=
7493 # Check whether --with-build-sysroot was given.
7494 if test "${with_build_sysroot+set}" = set; then :
7495 withval=$with_build_sysroot; if test x"$withval" != x ; then
7496 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7498 else
7499 SYSROOT_CFLAGS_FOR_TARGET=
7504 if test "x$prefix" = xNONE; then
7505 test_prefix=/usr/local
7506 else
7507 test_prefix=$prefix
7509 if test "x$exec_prefix" = xNONE; then
7510 test_exec_prefix=$test_prefix
7511 else
7512 test_exec_prefix=$exec_prefix
7516 # Check whether --with-sysroot was given.
7517 if test "${with_sysroot+set}" = set; then :
7518 withval=$with_sysroot;
7519 case ${with_sysroot} in
7520 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7521 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7522 esac
7524 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7525 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7527 case ${TARGET_SYSTEM_ROOT} in
7528 "${test_prefix}"|"${test_prefix}/"*|\
7529 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7530 '${prefix}'|'${prefix}/'*|\
7531 '${exec_prefix}'|'${exec_prefix}/'*)
7532 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7533 TARGET_SYSTEM_ROOT_DEFINE="$t"
7535 esac
7537 else
7539 TARGET_SYSTEM_ROOT=
7540 TARGET_SYSTEM_ROOT_DEFINE=
7541 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7550 # Check whether --with-specs was given.
7551 if test "${with_specs+set}" = set; then :
7552 withval=$with_specs; CONFIGURE_SPECS=$withval
7553 else
7554 CONFIGURE_SPECS=
7562 # Check whether --with-pkgversion was given.
7563 if test "${with_pkgversion+set}" = set; then :
7564 withval=$with_pkgversion; case "$withval" in
7565 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7566 no) PKGVERSION= ;;
7567 *) PKGVERSION="($withval) " ;;
7568 esac
7569 else
7570 PKGVERSION="(GCC) "
7578 # Check whether --with-bugurl was given.
7579 if test "${with_bugurl+set}" = set; then :
7580 withval=$with_bugurl; case "$withval" in
7581 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7582 no) BUGURL=
7584 *) BUGURL="$withval"
7586 esac
7587 else
7588 BUGURL="http://gcc.gnu.org/bugs.html"
7592 case ${BUGURL} in
7594 REPORT_BUGS_TO=
7595 REPORT_BUGS_TEXI=
7598 REPORT_BUGS_TO="<$BUGURL>"
7599 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7601 esac;
7606 # Sanity check enable_languages in case someone does not run the toplevel
7607 # configure # script.
7608 # Check whether --enable-languages was given.
7609 if test "${enable_languages+set}" = set; then :
7610 enableval=$enable_languages; case ,${enable_languages}, in
7611 ,,|,yes,)
7612 # go safe -- we cannot be much sure without the toplevel
7613 # configure's
7614 # analysis of which target libs are present and usable
7615 enable_languages=c
7617 *,all,*)
7618 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7620 *,c,*)
7623 enable_languages=c,${enable_languages}
7625 esac
7626 else
7627 enable_languages=c
7631 if test x"$enable_as_accelerator_for" != x; then
7633 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7635 enable_as_accelerator=yes
7636 case "${target}" in
7637 *-intelmicemul-*)
7638 # In this case we expect offload compiler to be built as native, so we
7639 # need to rename the driver to avoid clashes with host's drivers.
7640 program_transform_name="s&^&${target}-&" ;;
7641 esac
7642 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7643 program_transform_name=`echo $program_transform_name | sed $sedscript`
7644 accel_dir_suffix=/accel/${target_noncanonical}
7645 real_target_noncanonical=${enable_as_accelerator_for}
7651 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7652 tgt=`echo $tgt | sed 's/=.*//'`
7653 if test x"$offload_targets" = x; then
7654 offload_targets=$tgt
7655 else
7656 offload_targets="$offload_targets:$tgt"
7658 done
7660 cat >>confdefs.h <<_ACEOF
7661 #define OFFLOAD_TARGETS "$offload_targets"
7662 _ACEOF
7664 if test x"$offload_targets" != x; then
7666 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7671 # Check whether --with-multilib-list was given.
7672 if test "${with_multilib_list+set}" = set; then :
7673 withval=$with_multilib_list; :
7674 else
7675 with_multilib_list=default
7679 # -------------------------
7680 # Checks for other programs
7681 # -------------------------
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7684 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7685 set x ${MAKE-make}
7686 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7687 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 cat >conftest.make <<\_ACEOF
7691 SHELL = /bin/sh
7692 all:
7693 @echo '@@@%%%=$(MAKE)=@@@%%%'
7694 _ACEOF
7695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7696 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7697 *@@@%%%=?*=@@@%%%*)
7698 eval ac_cv_prog_make_${ac_make}_set=yes;;
7700 eval ac_cv_prog_make_${ac_make}_set=no;;
7701 esac
7702 rm -f conftest.make
7704 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706 $as_echo "yes" >&6; }
7707 SET_MAKE=
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 SET_MAKE="MAKE=${MAKE-make}"
7715 # Find some useful tools
7716 for ac_prog in gawk mawk nawk awk
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_AWK+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$AWK"; then
7726 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_AWK="$ac_prog"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7739 done
7740 done
7741 IFS=$as_save_IFS
7745 AWK=$ac_cv_prog_AWK
7746 if test -n "$AWK"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7748 $as_echo "$AWK" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7755 test -n "$AWK" && break
7756 done
7758 # We need awk to create options.c and options.h.
7759 # Bail out if it's missing.
7760 case ${AWK} in
7761 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7762 esac
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7765 $as_echo_n "checking whether ln -s works... " >&6; }
7766 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 rm -f conftestdata_t
7770 echo >conftestdata_f
7771 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7772 then
7773 gcc_cv_prog_LN_S="ln -s"
7774 else
7775 if ln conftestdata_f conftestdata_t 2>/dev/null
7776 then
7777 gcc_cv_prog_LN_S=ln
7778 else
7779 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7780 then
7781 gcc_cv_prog_LN_S="cp -p"
7782 else
7783 gcc_cv_prog_LN_S=cp
7787 rm -f conftestdata_f conftestdata_t
7790 LN_S="$gcc_cv_prog_LN_S"
7791 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7793 $as_echo "yes" >&6; }
7794 else
7795 if test "$gcc_cv_prog_LN_S" = "ln"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7797 $as_echo "no, using ln" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7800 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7805 $as_echo_n "checking whether ln works... " >&6; }
7806 if test "${acx_cv_prog_LN+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 rm -f conftestdata_t
7810 echo >conftestdata_f
7811 if ln conftestdata_f conftestdata_t 2>/dev/null
7812 then
7813 acx_cv_prog_LN=ln
7814 else
7815 acx_cv_prog_LN=no
7817 rm -f conftestdata_f conftestdata_t
7820 if test $acx_cv_prog_LN = no; then
7821 LN="$LN_S"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7823 $as_echo "no, using $LN" >&6; }
7824 else
7825 LN="$acx_cv_prog_LN"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827 $as_echo "yes" >&6; }
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$RANLIB"; then
7839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 RANLIB=$ac_cv_prog_RANLIB
7859 if test -n "$RANLIB"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7861 $as_echo "$RANLIB" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7869 if test -z "$ac_cv_prog_RANLIB"; then
7870 ac_ct_RANLIB=$RANLIB
7871 # Extract the first word of "ranlib", so it can be a program name with args.
7872 set dummy ranlib; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$ac_ct_RANLIB"; then
7879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_ac_ct_RANLIB="ranlib"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7892 done
7893 done
7894 IFS=$as_save_IFS
7898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7899 if test -n "$ac_ct_RANLIB"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7901 $as_echo "$ac_ct_RANLIB" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7907 if test "x$ac_ct_RANLIB" = x; then
7908 RANLIB=":"
7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916 RANLIB=$ac_ct_RANLIB
7918 else
7919 RANLIB="$ac_cv_prog_RANLIB"
7922 ranlib_flags=""
7925 # Find a good install program. We prefer a C program (faster),
7926 # so one script is as good as another. But avoid the broken or
7927 # incompatible versions:
7928 # SysV /etc/install, /usr/sbin/install
7929 # SunOS /usr/etc/install
7930 # IRIX /sbin/install
7931 # AIX /bin/install
7932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7934 # ./install, which can be erroneously created by make from ./install.sh.
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7936 $as_echo_n "checking for a BSD compatible install... " >&6; }
7937 if test -z "$INSTALL"; then
7938 if test "${ac_cv_path_install+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7942 for ac_dir in $PATH; do
7943 # Account for people who put trailing slashes in PATH elements.
7944 case "$ac_dir/" in
7945 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7947 # OSF1 and SCO ODT 3.0 have their own names for install.
7948 for ac_prog in ginstall scoinst install; do
7949 if test -f $ac_dir/$ac_prog; then
7950 if test $ac_prog = install &&
7951 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7952 # AIX install. It has an incompatible calling convention.
7953 # OSF/1 installbsd also uses dspmsg, but is usable.
7955 else
7956 ac_cv_path_install="$ac_dir/$ac_prog -c"
7957 break 2
7960 done
7962 esac
7963 done
7964 IFS="$ac_save_IFS"
7967 if test "${ac_cv_path_install+set}" = set; then
7968 INSTALL="$ac_cv_path_install"
7969 else
7970 # As a last resort, use the slow shell script. We don't cache a
7971 # path for INSTALL within a source directory, because that will
7972 # break other packages using the cache if that directory is
7973 # removed, or if the path is relative.
7974 INSTALL="$ac_install_sh"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7978 $as_echo "$INSTALL" >&6; }
7980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7981 # It thinks the first close brace ends the variable substitution.
7982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7987 # See if cmp has --ignore-initial.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7989 $as_echo_n "checking for cmp's capabilities... " >&6; }
7990 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 echo abfoo >t1
7994 echo cdfoo >t2
7995 gcc_cv_prog_cmp_skip=slowcompare
7996 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7997 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7999 else
8000 gcc_cv_prog_cmp_skip=gnucompare
8003 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8004 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8005 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8007 else
8008 gcc_cv_prog_cmp_skip=fastcompare
8012 rm t1 t2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8016 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8017 make_compare_target=$gcc_cv_prog_cmp_skip
8021 # See if we have the mktemp command.
8022 # Extract the first word of "mktemp", so it can be a program name with args.
8023 set dummy mktemp; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$have_mktemp_command"; then
8030 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_have_mktemp_command="yes"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8043 done
8044 done
8045 IFS=$as_save_IFS
8047 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8050 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8051 if test -n "$have_mktemp_command"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8053 $as_echo "$have_mktemp_command" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8061 # See if makeinfo has been installed and is modern enough
8062 # that we can use it.
8064 # Extract the first word of "makeinfo", so it can be a program name with args.
8065 set dummy makeinfo; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 if test -n "$MAKEINFO"; then
8072 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8073 else
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8081 ac_cv_prog_MAKEINFO="makeinfo"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8085 done
8086 done
8087 IFS=$as_save_IFS
8091 MAKEINFO=$ac_cv_prog_MAKEINFO
8092 if test -n "$MAKEINFO"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8094 $as_echo "$MAKEINFO" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 if test -n "$MAKEINFO"; then
8102 # Found it, now check the version.
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8104 $as_echo_n "checking for modern makeinfo... " >&6; }
8105 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8109 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8111 case $ac_prog_version in
8112 '') gcc_cv_prog_makeinfo_modern=no;;
8113 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8114 *) gcc_cv_prog_makeinfo_modern=no;;
8115 esac
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8119 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8120 else
8121 gcc_cv_prog_makeinfo_modern=no
8123 if test $gcc_cv_prog_makeinfo_modern = no; then
8124 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8127 if test $gcc_cv_prog_makeinfo_modern = no; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8129 *** Makeinfo is missing or too old.
8130 *** Info documentation will not be built." >&5
8131 $as_echo "$as_me: WARNING:
8132 *** Makeinfo is missing or too old.
8133 *** Info documentation will not be built." >&2;}
8134 BUILD_INFO=
8135 else
8136 BUILD_INFO=info
8140 # Is pod2man recent enough to regenerate manpages?
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8142 $as_echo_n "checking for recent Pod::Man... " >&6; }
8143 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8146 GENERATED_MANPAGES=generated-manpages
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 GENERATED_MANPAGES=
8154 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8156 # How about lex?
8157 for ac_prog in flex
8159 # Extract the first word of "$ac_prog", so it can be a program name with args.
8160 set dummy $ac_prog; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_FLEX+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$FLEX"; then
8167 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_prog_FLEX="$ac_prog"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8186 FLEX=$ac_cv_prog_FLEX
8187 if test -n "$FLEX"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8189 $as_echo "$FLEX" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8196 test -n "$FLEX" && break
8197 done
8198 test -n "$FLEX" || FLEX="$MISSING flex"
8201 # Bison?
8202 for ac_prog in bison
8204 # Extract the first word of "$ac_prog", so it can be a program name with args.
8205 set dummy $ac_prog; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_BISON+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$BISON"; then
8212 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_BISON="$ac_prog"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8225 done
8226 done
8227 IFS=$as_save_IFS
8231 BISON=$ac_cv_prog_BISON
8232 if test -n "$BISON"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8234 $as_echo "$BISON" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8241 test -n "$BISON" && break
8242 done
8243 test -n "$BISON" || BISON="$MISSING bison"
8246 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8247 # check for build == host before using them.
8249 # NM
8250 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8251 && test -d ../binutils ; then
8252 NM='${objdir}/../binutils/nm-new'
8253 else
8254 # Extract the first word of "nm", so it can be a program name with args.
8255 set dummy nm; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_NM+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 if test -n "$NM"; then
8262 ac_cv_prog_NM="$NM" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_NM="nm"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8275 done
8276 done
8277 IFS=$as_save_IFS
8279 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8282 NM=$ac_cv_prog_NM
8283 if test -n "$NM"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8285 $as_echo "$NM" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8294 # AR
8295 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8296 && test -d ../binutils ; then
8297 AR='${objdir}/../binutils/ar'
8298 else
8299 # Extract the first word of "ar", so it can be a program name with args.
8300 set dummy ar; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_AR+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$AR"; then
8307 ac_cv_prog_AR="$AR" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_AR="ar"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8320 done
8321 done
8322 IFS=$as_save_IFS
8324 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8327 AR=$ac_cv_prog_AR
8328 if test -n "$AR"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8330 $as_echo "$AR" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8339 # The jit documentation looks better if built with sphinx, but can be
8340 # built with texinfo if sphinx is not available.
8341 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8342 # Extract the first word of "sphinx-build", so it can be a program name with args.
8343 set dummy sphinx-build; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$doc_build_sys"; then
8350 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_doc_build_sys="sphinx"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8367 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8370 doc_build_sys=$ac_cv_prog_doc_build_sys
8371 if test -n "$doc_build_sys"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8373 $as_echo "$doc_build_sys" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8381 # --------------------
8382 # Checks for C headers
8383 # --------------------
8385 # Need to reject headers which give warnings, so that the -Werror bootstrap
8386 # works later. *sigh* This needs to come before all header checks.
8388 ac_c_preproc_warn_flag=yes
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8391 $as_echo_n "checking for ANSI C header files... " >&6; }
8392 if test "${ac_cv_header_stdc+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <stdlib.h>
8398 #include <stdarg.h>
8399 #include <string.h>
8400 #include <float.h>
8403 main ()
8407 return 0;
8409 _ACEOF
8410 if ac_fn_cxx_try_compile "$LINENO"; then :
8411 ac_cv_header_stdc=yes
8412 else
8413 ac_cv_header_stdc=no
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 if test $ac_cv_header_stdc = yes; then
8418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 #include <string.h>
8423 _ACEOF
8424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8425 $EGREP "memchr" >/dev/null 2>&1; then :
8427 else
8428 ac_cv_header_stdc=no
8430 rm -f conftest*
8434 if test $ac_cv_header_stdc = yes; then
8435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 #include <stdlib.h>
8440 _ACEOF
8441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8442 $EGREP "free" >/dev/null 2>&1; then :
8444 else
8445 ac_cv_header_stdc=no
8447 rm -f conftest*
8451 if test $ac_cv_header_stdc = yes; then
8452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8453 if test "$cross_compiling" = yes; then :
8455 else
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 #include <ctype.h>
8459 #include <stdlib.h>
8460 #if ((' ' & 0x0FF) == 0x020)
8461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8463 #else
8464 # define ISLOWER(c) \
8465 (('a' <= (c) && (c) <= 'i') \
8466 || ('j' <= (c) && (c) <= 'r') \
8467 || ('s' <= (c) && (c) <= 'z'))
8468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8469 #endif
8471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8473 main ()
8475 int i;
8476 for (i = 0; i < 256; i++)
8477 if (XOR (islower (i), ISLOWER (i))
8478 || toupper (i) != TOUPPER (i))
8479 return 2;
8480 return 0;
8482 _ACEOF
8483 if ac_fn_cxx_try_run "$LINENO"; then :
8485 else
8486 ac_cv_header_stdc=no
8488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8489 conftest.$ac_objext conftest.beam conftest.$ac_ext
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8495 $as_echo "$ac_cv_header_stdc" >&6; }
8496 if test $ac_cv_header_stdc = yes; then
8498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8503 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8504 if test "${ac_cv_header_time+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <sys/types.h>
8510 #include <sys/time.h>
8511 #include <time.h>
8514 main ()
8516 if ((struct tm *) 0)
8517 return 0;
8519 return 0;
8521 _ACEOF
8522 if ac_fn_cxx_try_compile "$LINENO"; then :
8523 ac_cv_header_time=yes
8524 else
8525 ac_cv_header_time=no
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8530 $as_echo "$ac_cv_header_time" >&6; }
8531 if test $ac_cv_header_time = yes; then
8533 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8538 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8539 if test "${gcc_cv_header_string+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #include <string.h>
8545 #include <strings.h>
8547 main ()
8551 return 0;
8553 _ACEOF
8554 if ac_fn_cxx_try_compile "$LINENO"; then :
8555 gcc_cv_header_string=yes
8556 else
8557 gcc_cv_header_string=no
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8562 $as_echo "$gcc_cv_header_string" >&6; }
8563 if test $gcc_cv_header_string = yes; then
8565 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8570 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8571 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <sys/types.h>
8577 #include <sys/wait.h>
8578 #ifndef WEXITSTATUS
8579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8580 #endif
8581 #ifndef WIFEXITED
8582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8583 #endif
8586 main ()
8588 int s;
8589 wait (&s);
8590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8592 return 0;
8594 _ACEOF
8595 if ac_fn_cxx_try_compile "$LINENO"; then :
8596 ac_cv_header_sys_wait_h=yes
8597 else
8598 ac_cv_header_sys_wait_h=no
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8603 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8604 if test $ac_cv_header_sys_wait_h = yes; then
8606 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8611 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8612 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <termios.h>
8619 #ifdef TIOCGWINSZ
8621 #endif
8623 _ACEOF
8624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625 $EGREP "yes" >/dev/null 2>&1; then :
8626 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8627 else
8628 ac_cv_sys_tiocgwinsz_in_termios_h=no
8630 rm -f conftest*
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8634 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8636 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8638 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8639 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 #include <sys/types.h>
8645 #include <sys/ioctl.h>
8646 #ifdef TIOCGWINSZ
8648 #endif
8650 _ACEOF
8651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8652 $EGREP "yes" >/dev/null 2>&1; then :
8653 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8654 else
8655 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8657 rm -f conftest*
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8661 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8663 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8665 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8670 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8671 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8672 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8673 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8674 do :
8675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8676 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8677 eval as_val=\$$as_ac_Header
8678 if test "x$as_val" = x""yes; then :
8679 cat >>confdefs.h <<_ACEOF
8680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8681 _ACEOF
8684 done
8687 # Check for thread headers.
8688 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8689 if test "x$ac_cv_header_thread_h" = x""yes; then :
8690 have_thread_h=yes
8691 else
8692 have_thread_h=
8695 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8696 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8697 have_pthread_h=yes
8698 else
8699 have_pthread_h=
8703 # These tests can't be done till we know if we have limits.h.
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8705 $as_echo_n "checking for CHAR_BIT... " >&6; }
8706 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #ifdef HAVE_LIMITS_H
8712 #include <limits.h>
8713 #endif
8714 #ifdef CHAR_BIT
8715 found
8716 #endif
8717 _ACEOF
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 $EGREP "found" >/dev/null 2>&1; then :
8720 gcc_cv_decl_char_bit=yes
8721 else
8722 gcc_cv_decl_char_bit=no
8724 rm -f conftest*
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8729 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8730 if test $gcc_cv_decl_char_bit = no; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8732 $as_echo_n "checking number of bits in a byte... " >&6; }
8733 if test "${gcc_cv_c_nbby+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8737 gcc_cv_c_nbby=
8738 while test $i -lt 65; do
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8743 main ()
8745 switch(0) {
8746 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8747 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8750 return 0;
8752 _ACEOF
8753 if ac_fn_cxx_try_compile "$LINENO"; then :
8754 gcc_cv_c_nbby=$i; break
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 i=`expr $i + 1`
8758 done
8759 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8763 $as_echo "$gcc_cv_c_nbby" >&6; }
8764 if test $gcc_cv_c_nbby = failed; then
8765 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8766 else
8768 cat >>confdefs.h <<_ACEOF
8769 #define CHAR_BIT $gcc_cv_c_nbby
8770 _ACEOF
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8775 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8776 if test "${ac_cv_c_bigendian+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 ac_cv_c_bigendian=unknown
8780 # See if we're dealing with a universal compiler.
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 #ifndef __APPLE_CC__
8784 not a universal capable compiler
8785 #endif
8786 typedef int dummy;
8788 _ACEOF
8789 if ac_fn_cxx_try_compile "$LINENO"; then :
8791 # Check for potential -arch flags. It is not universal unless
8792 # there are at least two -arch flags with different values.
8793 ac_arch=
8794 ac_prev=
8795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8796 if test -n "$ac_prev"; then
8797 case $ac_word in
8798 i?86 | x86_64 | ppc | ppc64)
8799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8800 ac_arch=$ac_word
8801 else
8802 ac_cv_c_bigendian=universal
8803 break
8806 esac
8807 ac_prev=
8808 elif test "x$ac_word" = "x-arch"; then
8809 ac_prev=arch
8811 done
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 if test $ac_cv_c_bigendian = unknown; then
8815 # See if sys/param.h defines the BYTE_ORDER macro.
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <sys/types.h>
8819 #include <sys/param.h>
8822 main ()
8824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8826 && LITTLE_ENDIAN)
8827 bogus endian macros
8828 #endif
8831 return 0;
8833 _ACEOF
8834 if ac_fn_cxx_try_compile "$LINENO"; then :
8835 # It does; now see whether it defined to BIG_ENDIAN or not.
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <sys/types.h>
8839 #include <sys/param.h>
8842 main ()
8844 #if BYTE_ORDER != BIG_ENDIAN
8845 not big endian
8846 #endif
8849 return 0;
8851 _ACEOF
8852 if ac_fn_cxx_try_compile "$LINENO"; then :
8853 ac_cv_c_bigendian=yes
8854 else
8855 ac_cv_c_bigendian=no
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 if test $ac_cv_c_bigendian = unknown; then
8862 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #include <limits.h>
8868 main ()
8870 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8871 bogus endian macros
8872 #endif
8875 return 0;
8877 _ACEOF
8878 if ac_fn_cxx_try_compile "$LINENO"; then :
8879 # It does; now see whether it defined to _BIG_ENDIAN or not.
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <limits.h>
8885 main ()
8887 #ifndef _BIG_ENDIAN
8888 not big endian
8889 #endif
8892 return 0;
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896 ac_cv_c_bigendian=yes
8897 else
8898 ac_cv_c_bigendian=no
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 if test $ac_cv_c_bigendian = unknown; then
8905 # Compile a test program.
8906 if test "$cross_compiling" = yes; then :
8907 # Try to guess by grepping values from an object file.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 short int ascii_mm[] =
8911 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8912 short int ascii_ii[] =
8913 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8914 int use_ascii (int i) {
8915 return ascii_mm[i] + ascii_ii[i];
8917 short int ebcdic_ii[] =
8918 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8919 short int ebcdic_mm[] =
8920 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8921 int use_ebcdic (int i) {
8922 return ebcdic_mm[i] + ebcdic_ii[i];
8924 extern int foo;
8927 main ()
8929 return use_ascii (foo) == use_ebcdic (foo);
8931 return 0;
8933 _ACEOF
8934 if ac_fn_cxx_try_compile "$LINENO"; then :
8935 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8936 ac_cv_c_bigendian=yes
8938 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8939 if test "$ac_cv_c_bigendian" = unknown; then
8940 ac_cv_c_bigendian=no
8941 else
8942 # finding both strings is unlikely to happen, but who knows?
8943 ac_cv_c_bigendian=unknown
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 else
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 $ac_includes_default
8953 main ()
8956 /* Are we little or big endian? From Harbison&Steele. */
8957 union
8959 long int l;
8960 char c[sizeof (long int)];
8961 } u;
8962 u.l = 1;
8963 return u.c[sizeof (long int) - 1] == 1;
8966 return 0;
8968 _ACEOF
8969 if ac_fn_cxx_try_run "$LINENO"; then :
8970 ac_cv_c_bigendian=no
8971 else
8972 ac_cv_c_bigendian=yes
8974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8975 conftest.$ac_objext conftest.beam conftest.$ac_ext
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8981 $as_echo "$ac_cv_c_bigendian" >&6; }
8982 case $ac_cv_c_bigendian in #(
8983 yes)
8984 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8985 ;; #(
8987 ;; #(
8988 universal)
8990 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8992 ;; #(
8994 as_fn_error "unknown endianness
8995 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8996 esac
8999 # ----------------------
9000 # Checks for C++ headers
9001 # ----------------------
9003 ac_ext=cpp
9004 ac_cpp='$CXXCPP $CPPFLAGS'
9005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9009 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9010 if test -z "$CXXCPP"; then
9011 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 # Double quotes because CXXCPP needs to be expanded
9015 for CXXCPP in "$CXX -E" "/lib/cpp"
9017 ac_preproc_ok=false
9018 for ac_cxx_preproc_warn_flag in '' yes
9020 # Use a header file that comes with gcc, so configuring glibc
9021 # with a fresh cross-compiler works.
9022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9023 # <limits.h> exists even on freestanding compilers.
9024 # On the NeXT, cc -E runs the code through the compiler's parser,
9025 # not just through cpp. "Syntax error" is here to catch this case.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 #ifdef __STDC__
9029 # include <limits.h>
9030 #else
9031 # include <assert.h>
9032 #endif
9033 Syntax error
9034 _ACEOF
9035 if ac_fn_cxx_try_cpp "$LINENO"; then :
9037 else
9038 # Broken: fails on valid input.
9039 continue
9041 rm -f conftest.err conftest.$ac_ext
9043 # OK, works on sane cases. Now check whether nonexistent headers
9044 # can be detected and how.
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <ac_nonexistent.h>
9048 _ACEOF
9049 if ac_fn_cxx_try_cpp "$LINENO"; then :
9050 # Broken: success on invalid input.
9051 continue
9052 else
9053 # Passes both tests.
9054 ac_preproc_ok=:
9055 break
9057 rm -f conftest.err conftest.$ac_ext
9059 done
9060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9061 rm -f conftest.err conftest.$ac_ext
9062 if $ac_preproc_ok; then :
9063 break
9066 done
9067 ac_cv_prog_CXXCPP=$CXXCPP
9070 CXXCPP=$ac_cv_prog_CXXCPP
9071 else
9072 ac_cv_prog_CXXCPP=$CXXCPP
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9075 $as_echo "$CXXCPP" >&6; }
9076 ac_preproc_ok=false
9077 for ac_cxx_preproc_warn_flag in '' yes
9079 # Use a header file that comes with gcc, so configuring glibc
9080 # with a fresh cross-compiler works.
9081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9082 # <limits.h> exists even on freestanding compilers.
9083 # On the NeXT, cc -E runs the code through the compiler's parser,
9084 # not just through cpp. "Syntax error" is here to catch this case.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #ifdef __STDC__
9088 # include <limits.h>
9089 #else
9090 # include <assert.h>
9091 #endif
9092 Syntax error
9093 _ACEOF
9094 if ac_fn_cxx_try_cpp "$LINENO"; then :
9096 else
9097 # Broken: fails on valid input.
9098 continue
9100 rm -f conftest.err conftest.$ac_ext
9102 # OK, works on sane cases. Now check whether nonexistent headers
9103 # can be detected and how.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #include <ac_nonexistent.h>
9107 _ACEOF
9108 if ac_fn_cxx_try_cpp "$LINENO"; then :
9109 # Broken: success on invalid input.
9110 continue
9111 else
9112 # Passes both tests.
9113 ac_preproc_ok=:
9114 break
9116 rm -f conftest.err conftest.$ac_ext
9118 done
9119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9120 rm -f conftest.err conftest.$ac_ext
9121 if $ac_preproc_ok; then :
9123 else
9124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9127 See \`config.log' for more details." >&5
9128 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9129 See \`config.log' for more details." >&2;}; }
9132 ac_ext=cpp
9133 ac_cpp='$CXXCPP $CPPFLAGS'
9134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9139 for ac_header in unordered_map
9140 do :
9141 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9142 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_UNORDERED_MAP 1
9145 _ACEOF
9148 done
9150 for ac_header in tr1/unordered_map
9151 do :
9152 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9153 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_TR1_UNORDERED_MAP 1
9156 _ACEOF
9159 done
9161 for ac_header in ext/hash_map
9162 do :
9163 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9164 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_EXT_HASH_MAP 1
9167 _ACEOF
9170 done
9173 # --------
9174 # Dependency checking.
9175 # --------
9177 rm -rf .tst 2>/dev/null
9178 mkdir .tst 2>/dev/null
9179 if test -d .tst; then
9180 am__leading_dot=.
9181 else
9182 am__leading_dot=_
9184 rmdir .tst 2>/dev/null
9186 DEPDIR="${am__leading_dot}deps"
9188 ac_config_commands="$ac_config_commands depdir"
9191 ac_config_commands="$ac_config_commands gccdepdir"
9194 depcc="$CXX" am_compiler_list=
9196 am_depcomp=$ac_aux_dir/depcomp
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9198 $as_echo_n "checking dependency style of $depcc... " >&6; }
9199 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 if test -f "$am_depcomp"; then
9203 # We make a subdir and do the tests there. Otherwise we can end up
9204 # making bogus files that we don't know about and never remove. For
9205 # instance it was reported that on HP-UX the gcc test will end up
9206 # making a dummy file named `D' -- because `-MD' means `put the output
9207 # in D'.
9208 mkdir conftest.dir
9209 # Copy depcomp to subdir because otherwise we won't find it if we're
9210 # using a relative directory.
9211 cp "$am_depcomp" conftest.dir
9212 cd conftest.dir
9213 # We will build objects and dependencies in a subdirectory because
9214 # it helps to detect inapplicable dependency modes. For instance
9215 # both Tru64's cc and ICC support -MD to output dependencies as a
9216 # side effect of compilation, but ICC will put the dependencies in
9217 # the current directory while Tru64 will put them in the object
9218 # directory.
9219 mkdir sub
9221 am_cv_CXX_dependencies_compiler_type=none
9222 if test "$am_compiler_list" = ""; then
9223 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9225 for depmode in $am_compiler_list; do
9226 if test $depmode = none; then break; fi
9228 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9229 # Setup a source with many dependencies, because some compilers
9230 # like to wrap large dependency lists on column 80 (with \), and
9231 # we should not choose a depcomp mode which is confused by this.
9233 # We need to recreate these files for each test, as the compiler may
9234 # overwrite some of them when testing with obscure command lines.
9235 # This happens at least with the AIX C compiler.
9236 : > sub/conftest.c
9237 for i in 1 2 3 4 5 6; do
9238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9240 # Solaris 8's {/usr,}/bin/sh.
9241 touch sub/conftst$i.h
9242 done
9243 echo "include sub/conftest.Po" > confmf
9245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9246 # mode. It turns out that the SunPro C++ compiler does not properly
9247 # handle `-M -o', and we need to detect this.
9248 depcmd="depmode=$depmode \
9249 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9251 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9252 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9253 if env $depcmd > conftest.err 2>&1 &&
9254 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9256 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9257 # icc doesn't choke on unknown options, it will just issue warnings
9258 # or remarks (even with -Werror). So we grep stderr for any message
9259 # that says an option was ignored or not supported.
9260 # When given -MP, icc 7.0 and 7.1 complain thusly:
9261 # icc: Command line warning: ignoring option '-M'; no argument required
9262 # The diagnosis changed in icc 8.0:
9263 # icc: Command line remark: option '-MP' not supported
9264 if (grep 'ignoring option' conftest.err ||
9265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9266 am_cv_CXX_dependencies_compiler_type=$depmode
9267 $as_echo "$as_me:$LINENO: success" >&5
9268 break
9271 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9272 sed -e 's/^/| /' < conftest.err >&5
9273 done
9275 cd ..
9276 rm -rf conftest.dir
9277 else
9278 am_cv_CXX_dependencies_compiler_type=none
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9283 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9284 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9285 then as_fn_error "no usable dependency style found" "$LINENO" 5
9286 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9291 # --------
9292 # UNSORTED
9293 # --------
9296 # These libraries may be used by collect2.
9297 # We may need a special search path to get them linked.
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9299 $as_echo_n "checking for collect2 libraries... " >&6; }
9300 if test "${gcc_cv_collect2_libs+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 save_LIBS="$LIBS"
9304 for libs in '' -lld -lmld \
9305 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9306 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9308 LIBS="$libs"
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char ldopen ();
9320 main ()
9322 return ldopen ();
9324 return 0;
9326 _ACEOF
9327 if ac_fn_cxx_try_link "$LINENO"; then :
9328 gcc_cv_collect2_libs="$libs"; break
9330 rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332 done
9333 LIBS="$save_LIBS"
9334 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9337 $as_echo "$gcc_cv_collect2_libs" >&6; }
9338 case $gcc_cv_collect2_libs in
9339 "none required") ;;
9340 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9341 esac
9344 # When building Ada code on Alpha, we need exc_resume which is usually in
9345 # -lexc. So test for it.
9346 save_LIBS="$LIBS"
9347 LIBS=
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9349 $as_echo_n "checking for library containing exc_resume... " >&6; }
9350 if test "${ac_cv_search_exc_resume+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_func_search_save_LIBS=$LIBS
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char exc_resume ();
9365 main ()
9367 return exc_resume ();
9369 return 0;
9371 _ACEOF
9372 for ac_lib in '' exc; do
9373 if test -z "$ac_lib"; then
9374 ac_res="none required"
9375 else
9376 ac_res=-l$ac_lib
9377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9379 if ac_fn_cxx_try_link "$LINENO"; then :
9380 ac_cv_search_exc_resume=$ac_res
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext
9384 if test "${ac_cv_search_exc_resume+set}" = set; then :
9385 break
9387 done
9388 if test "${ac_cv_search_exc_resume+set}" = set; then :
9390 else
9391 ac_cv_search_exc_resume=no
9393 rm conftest.$ac_ext
9394 LIBS=$ac_func_search_save_LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9397 $as_echo "$ac_cv_search_exc_resume" >&6; }
9398 ac_res=$ac_cv_search_exc_resume
9399 if test "$ac_res" != no; then :
9400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9404 GNAT_LIBEXC="$LIBS"
9405 LIBS="$save_LIBS"
9408 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9409 save_LIBS="$LIBS"
9410 LIBS=
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9412 $as_echo_n "checking for library containing kstat_open... " >&6; }
9413 if test "${ac_cv_search_kstat_open+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 ac_func_search_save_LIBS=$LIBS
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char kstat_open ();
9428 main ()
9430 return kstat_open ();
9432 return 0;
9434 _ACEOF
9435 for ac_lib in '' kstat; do
9436 if test -z "$ac_lib"; then
9437 ac_res="none required"
9438 else
9439 ac_res=-l$ac_lib
9440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9442 if ac_fn_cxx_try_link "$LINENO"; then :
9443 ac_cv_search_kstat_open=$ac_res
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext
9447 if test "${ac_cv_search_kstat_open+set}" = set; then :
9448 break
9450 done
9451 if test "${ac_cv_search_kstat_open+set}" = set; then :
9453 else
9454 ac_cv_search_kstat_open=no
9456 rm conftest.$ac_ext
9457 LIBS=$ac_func_search_save_LIBS
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9460 $as_echo "$ac_cv_search_kstat_open" >&6; }
9461 ac_res=$ac_cv_search_kstat_open
9462 if test "$ac_res" != no; then :
9463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9467 EXTRA_GCC_LIBS="$LIBS"
9468 LIBS="$save_LIBS"
9471 # Some systems put ldexp and frexp in libm instead of libc; assume
9472 # they're both in the same place. jcf-dump needs them.
9473 save_LIBS="$LIBS"
9474 LIBS=
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9476 $as_echo_n "checking for library containing ldexp... " >&6; }
9477 if test "${ac_cv_search_ldexp+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_func_search_save_LIBS=$LIBS
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char ldexp ();
9492 main ()
9494 return ldexp ();
9496 return 0;
9498 _ACEOF
9499 for ac_lib in '' m; do
9500 if test -z "$ac_lib"; then
9501 ac_res="none required"
9502 else
9503 ac_res=-l$ac_lib
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9506 if ac_fn_cxx_try_link "$LINENO"; then :
9507 ac_cv_search_ldexp=$ac_res
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext
9511 if test "${ac_cv_search_ldexp+set}" = set; then :
9512 break
9514 done
9515 if test "${ac_cv_search_ldexp+set}" = set; then :
9517 else
9518 ac_cv_search_ldexp=no
9520 rm conftest.$ac_ext
9521 LIBS=$ac_func_search_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9524 $as_echo "$ac_cv_search_ldexp" >&6; }
9525 ac_res=$ac_cv_search_ldexp
9526 if test "$ac_res" != no; then :
9527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9531 LDEXP_LIB="$LIBS"
9532 LIBS="$save_LIBS"
9535 # Use <inttypes.h> only if it exists,
9536 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9537 # PRId64
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9539 $as_echo_n "checking for inttypes.h... " >&6; }
9540 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #define __STDC_FORMAT_MACROS
9546 #include <sys/types.h>
9547 #include <inttypes.h>
9549 main ()
9551 intmax_t i = -1;
9552 #ifndef PRId64
9553 choke me
9554 #endif
9556 return 0;
9558 _ACEOF
9559 if ac_fn_cxx_try_compile "$LINENO"; then :
9560 gcc_cv_header_inttypes_h=yes
9561 else
9562 gcc_cv_header_inttypes_h=no
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9568 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9569 if test $gcc_cv_header_inttypes_h = yes; then
9571 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9577 for ac_func in times clock kill getrlimit setrlimit atoq \
9578 popen sysconf strsignal getrusage nl_langinfo \
9579 gettimeofday mbstowcs wcswidth mmap setlocale \
9580 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
9581 do :
9582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9583 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9584 eval as_val=\$$as_ac_var
9585 if test "x$as_val" = x""yes; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9588 _ACEOF
9591 done
9594 if test x$ac_cv_func_mbstowcs = xyes; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9596 $as_echo_n "checking whether mbstowcs works... " >&6; }
9597 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 if test "$cross_compiling" = yes; then :
9601 gcc_cv_func_mbstowcs_works=yes
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <stdlib.h>
9606 int main()
9608 mbstowcs(0, "", 0);
9609 return 0;
9611 _ACEOF
9612 if ac_fn_cxx_try_run "$LINENO"; then :
9613 gcc_cv_func_mbstowcs_works=yes
9614 else
9615 gcc_cv_func_mbstowcs_works=no
9617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9618 conftest.$ac_objext conftest.beam conftest.$ac_ext
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9623 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9624 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9626 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9631 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9632 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9634 else
9636 cat >>confdefs.h <<_ACEOF
9637 #define ssize_t int
9638 _ACEOF
9642 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9643 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9645 else
9647 cat >>confdefs.h <<_ACEOF
9648 #define caddr_t char *
9649 _ACEOF
9655 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9656 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9657 gcc_header_sys_mman_h=yes
9658 else
9659 gcc_header_sys_mman_h=no
9662 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9663 if test "x$ac_cv_func_mmap" = x""yes; then :
9664 gcc_func_mmap=yes
9665 else
9666 gcc_func_mmap=no
9669 if test "$gcc_header_sys_mman_h" != yes \
9670 || test "$gcc_func_mmap" != yes; then
9671 gcc_cv_func_mmap_file=no
9672 gcc_cv_func_mmap_dev_zero=no
9673 gcc_cv_func_mmap_anon=no
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9676 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9677 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 # Add a system to this blacklist if
9681 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9682 # memory area containing the same data that you'd get if you applied
9683 # read() to the same fd. The only system known to have a problem here
9684 # is VMS, where text files have record structure.
9685 case "$host_os" in
9686 *vms* | ultrix*)
9687 gcc_cv_func_mmap_file=no ;;
9689 gcc_cv_func_mmap_file=yes;;
9690 esac
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9693 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9695 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9696 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 # Add a system to this blacklist if it has mmap() but /dev/zero
9700 # does not exist, or if mmapping /dev/zero does not give anonymous
9701 # zeroed pages with both the following properties:
9702 # 1. If you map N consecutive pages in with one call, and then
9703 # unmap any subset of those pages, the pages that were not
9704 # explicitly unmapped remain accessible.
9705 # 2. If you map two adjacent blocks of memory and then unmap them
9706 # both at once, they must both go away.
9707 # Systems known to be in this category are Windows (all variants),
9708 # VMS, and Darwin.
9709 case "$host_os" in
9710 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9711 gcc_cv_func_mmap_dev_zero=no ;;
9713 gcc_cv_func_mmap_dev_zero=yes;;
9714 esac
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9717 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9719 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9721 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9722 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 #include <sys/types.h>
9728 #include <sys/mman.h>
9729 #include <unistd.h>
9731 #ifndef MAP_ANONYMOUS
9732 #define MAP_ANONYMOUS MAP_ANON
9733 #endif
9736 main ()
9738 int n = MAP_ANONYMOUS;
9740 return 0;
9742 _ACEOF
9743 if ac_fn_cxx_try_compile "$LINENO"; then :
9744 gcc_cv_decl_map_anon=yes
9745 else
9746 gcc_cv_decl_map_anon=no
9748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9751 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9753 if test $gcc_cv_decl_map_anon = no; then
9754 gcc_cv_func_mmap_anon=no
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9757 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9758 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9762 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9763 # doesn't give anonymous zeroed pages with the same properties listed
9764 # above for use of /dev/zero.
9765 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9766 case "$host_os" in
9767 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9768 gcc_cv_func_mmap_anon=no ;;
9770 gcc_cv_func_mmap_anon=yes;;
9771 esac
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9774 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9778 if test $gcc_cv_func_mmap_file = yes; then
9780 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9783 if test $gcc_cv_func_mmap_dev_zero = yes; then
9785 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9788 if test $gcc_cv_func_mmap_anon = yes; then
9790 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9795 case "${host}" in
9796 *-*-*vms*)
9797 # Under VMS, vfork works very differently than on Unix. The standard test
9798 # won't work, and it isn't easily adaptable. It makes more sense to
9799 # just force it.
9800 ac_cv_func_vfork_works=yes
9802 esac
9803 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9804 if test "x$ac_cv_type_pid_t" = x""yes; then :
9806 else
9808 cat >>confdefs.h <<_ACEOF
9809 #define pid_t int
9810 _ACEOF
9814 for ac_header in vfork.h
9815 do :
9816 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9817 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_VFORK_H 1
9820 _ACEOF
9823 done
9825 for ac_func in fork vfork
9826 do :
9827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9829 eval as_val=\$$as_ac_var
9830 if test "x$as_val" = x""yes; then :
9831 cat >>confdefs.h <<_ACEOF
9832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9833 _ACEOF
9836 done
9838 if test "x$ac_cv_func_fork" = xyes; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9840 $as_echo_n "checking for working fork... " >&6; }
9841 if test "${ac_cv_func_fork_works+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 if test "$cross_compiling" = yes; then :
9845 ac_cv_func_fork_works=cross
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 $ac_includes_default
9851 main ()
9854 /* By Ruediger Kuhlmann. */
9855 return fork () < 0;
9858 return 0;
9860 _ACEOF
9861 if ac_fn_cxx_try_run "$LINENO"; then :
9862 ac_cv_func_fork_works=yes
9863 else
9864 ac_cv_func_fork_works=no
9866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9867 conftest.$ac_objext conftest.beam conftest.$ac_ext
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9872 $as_echo "$ac_cv_func_fork_works" >&6; }
9874 else
9875 ac_cv_func_fork_works=$ac_cv_func_fork
9877 if test "x$ac_cv_func_fork_works" = xcross; then
9878 case $host in
9879 *-*-amigaos* | *-*-msdosdjgpp*)
9880 # Override, as these systems have only a dummy fork() stub
9881 ac_cv_func_fork_works=no
9884 ac_cv_func_fork_works=yes
9886 esac
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9888 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9890 ac_cv_func_vfork_works=$ac_cv_func_vfork
9891 if test "x$ac_cv_func_vfork" = xyes; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9893 $as_echo_n "checking for working vfork... " >&6; }
9894 if test "${ac_cv_func_vfork_works+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test "$cross_compiling" = yes; then :
9898 ac_cv_func_vfork_works=cross
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 /* Thanks to Paul Eggert for this test. */
9903 $ac_includes_default
9904 #include <sys/wait.h>
9905 #ifdef HAVE_VFORK_H
9906 # include <vfork.h>
9907 #endif
9908 /* On some sparc systems, changes by the child to local and incoming
9909 argument registers are propagated back to the parent. The compiler
9910 is told about this with #include <vfork.h>, but some compilers
9911 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9912 static variable whose address is put into a register that is
9913 clobbered by the vfork. */
9914 static void
9915 #ifdef __cplusplus
9916 sparc_address_test (int arg)
9917 # else
9918 sparc_address_test (arg) int arg;
9919 #endif
9921 static pid_t child;
9922 if (!child) {
9923 child = vfork ();
9924 if (child < 0) {
9925 perror ("vfork");
9926 _exit(2);
9928 if (!child) {
9929 arg = getpid();
9930 write(-1, "", 0);
9931 _exit (arg);
9937 main ()
9939 pid_t parent = getpid ();
9940 pid_t child;
9942 sparc_address_test (0);
9944 child = vfork ();
9946 if (child == 0) {
9947 /* Here is another test for sparc vfork register problems. This
9948 test uses lots of local variables, at least as many local
9949 variables as main has allocated so far including compiler
9950 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9951 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9952 reuse the register of parent for one of the local variables,
9953 since it will think that parent can't possibly be used any more
9954 in this routine. Assigning to the local variable will thus
9955 munge parent in the parent process. */
9956 pid_t
9957 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9958 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9959 /* Convince the compiler that p..p7 are live; otherwise, it might
9960 use the same hardware register for all 8 local variables. */
9961 if (p != p1 || p != p2 || p != p3 || p != p4
9962 || p != p5 || p != p6 || p != p7)
9963 _exit(1);
9965 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9966 from child file descriptors. If the child closes a descriptor
9967 before it execs or exits, this munges the parent's descriptor
9968 as well. Test for this by closing stdout in the child. */
9969 _exit(close(fileno(stdout)) != 0);
9970 } else {
9971 int status;
9972 struct stat st;
9974 while (wait(&status) != child)
9976 return (
9977 /* Was there some problem with vforking? */
9978 child < 0
9980 /* Did the child fail? (This shouldn't happen.) */
9981 || status
9983 /* Did the vfork/compiler bug occur? */
9984 || parent != getpid()
9986 /* Did the file descriptor bug occur? */
9987 || fstat(fileno(stdout), &st) != 0
9991 _ACEOF
9992 if ac_fn_cxx_try_run "$LINENO"; then :
9993 ac_cv_func_vfork_works=yes
9994 else
9995 ac_cv_func_vfork_works=no
9997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9998 conftest.$ac_objext conftest.beam conftest.$ac_ext
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10003 $as_echo "$ac_cv_func_vfork_works" >&6; }
10006 if test "x$ac_cv_func_fork_works" = xcross; then
10007 ac_cv_func_vfork_works=$ac_cv_func_vfork
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10009 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10012 if test "x$ac_cv_func_vfork_works" = xyes; then
10014 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10016 else
10018 $as_echo "#define vfork fork" >>confdefs.h
10021 if test "x$ac_cv_func_fork_works" = xyes; then
10023 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10029 if test "X$prefix" = "XNONE"; then
10030 acl_final_prefix="$ac_default_prefix"
10031 else
10032 acl_final_prefix="$prefix"
10034 if test "X$exec_prefix" = "XNONE"; then
10035 acl_final_exec_prefix='${prefix}'
10036 else
10037 acl_final_exec_prefix="$exec_prefix"
10039 acl_save_prefix="$prefix"
10040 prefix="$acl_final_prefix"
10041 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10042 prefix="$acl_save_prefix"
10045 # Check whether --with-gnu-ld was given.
10046 if test "${with_gnu_ld+set}" = set; then :
10047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10048 else
10049 with_gnu_ld=no
10052 # Prepare PATH_SEPARATOR.
10053 # The user is always right.
10054 if test "${PATH_SEPARATOR+set}" != set; then
10055 echo "#! /bin/sh" >conf$$.sh
10056 echo "exit 0" >>conf$$.sh
10057 chmod +x conf$$.sh
10058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10059 PATH_SEPARATOR=';'
10060 else
10061 PATH_SEPARATOR=:
10063 rm -f conf$$.sh
10065 ac_prog=ld
10066 if test "$GCC" = yes; then
10067 # Check if gcc -print-prog-name=ld gives a path.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10069 $as_echo_n "checking for ld used by GCC... " >&6; }
10070 case $host in
10071 *-*-mingw*)
10072 # gcc leaves a trailing carriage return which upsets mingw
10073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10076 esac
10077 case $ac_prog in
10078 # Accept absolute paths.
10079 [\\/]* | [A-Za-z]:[\\/]*)
10080 re_direlt='/[^/][^/]*/\.\./'
10081 # Canonicalize the path of ld
10082 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10083 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10084 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10085 done
10086 test -z "$LD" && LD="$ac_prog"
10089 # If it fails, then pretend we aren't using GCC.
10090 ac_prog=ld
10093 # If it is relative, then search for the first ld in PATH.
10094 with_gnu_ld=unknown
10096 esac
10097 elif test "$with_gnu_ld" = yes; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10099 $as_echo_n "checking for GNU ld... " >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10102 $as_echo_n "checking for non-GNU ld... " >&6; }
10104 if test "${acl_cv_path_LD+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 if test -z "$LD"; then
10108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10109 for ac_dir in $PATH; do
10110 test -z "$ac_dir" && ac_dir=.
10111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10112 acl_cv_path_LD="$ac_dir/$ac_prog"
10113 # Check to see if the program is GNU ld. I'd rather use --version,
10114 # but apparently some GNU ld's only accept -v.
10115 # Break only if it was the GNU/non-GNU ld that we prefer.
10116 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10117 test "$with_gnu_ld" != no && break
10118 else
10119 test "$with_gnu_ld" != yes && break
10122 done
10123 IFS="$ac_save_ifs"
10124 else
10125 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10129 LD="$acl_cv_path_LD"
10130 if test -n "$LD"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10132 $as_echo "$LD" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10137 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10140 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10144 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10145 acl_cv_prog_gnu_ld=yes
10146 else
10147 acl_cv_prog_gnu_ld=no
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10151 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10152 with_gnu_ld=$acl_cv_prog_gnu_ld
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10157 $as_echo_n "checking for shared library run path origin... " >&6; }
10158 if test "${acl_cv_rpath+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10162 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10163 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10164 . ./conftest.sh
10165 rm -f ./conftest.sh
10166 acl_cv_rpath=done
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10170 $as_echo "$acl_cv_rpath" >&6; }
10171 wl="$acl_cv_wl"
10172 libext="$acl_cv_libext"
10173 shlibext="$acl_cv_shlibext"
10174 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10175 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10176 hardcode_direct="$acl_cv_hardcode_direct"
10177 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10178 # Check whether --enable-rpath was given.
10179 if test "${enable_rpath+set}" = set; then :
10180 enableval=$enable_rpath; :
10181 else
10182 enable_rpath=yes
10192 use_additional=yes
10194 acl_save_prefix="$prefix"
10195 prefix="$acl_final_prefix"
10196 acl_save_exec_prefix="$exec_prefix"
10197 exec_prefix="$acl_final_exec_prefix"
10199 eval additional_includedir=\"$includedir\"
10200 eval additional_libdir=\"$libdir\"
10202 exec_prefix="$acl_save_exec_prefix"
10203 prefix="$acl_save_prefix"
10206 # Check whether --with-libiconv-prefix was given.
10207 if test "${with_libiconv_prefix+set}" = set; then :
10208 withval=$with_libiconv_prefix;
10209 if test "X$withval" = "Xno"; then
10210 use_additional=no
10211 else
10212 if test "X$withval" = "X"; then
10214 acl_save_prefix="$prefix"
10215 prefix="$acl_final_prefix"
10216 acl_save_exec_prefix="$exec_prefix"
10217 exec_prefix="$acl_final_exec_prefix"
10219 eval additional_includedir=\"$includedir\"
10220 eval additional_libdir=\"$libdir\"
10222 exec_prefix="$acl_save_exec_prefix"
10223 prefix="$acl_save_prefix"
10225 else
10226 additional_includedir="$withval/include"
10227 additional_libdir="$withval/lib"
10233 LIBICONV=
10234 LTLIBICONV=
10235 INCICONV=
10236 rpathdirs=
10237 ltrpathdirs=
10238 names_already_handled=
10239 names_next_round='iconv '
10240 while test -n "$names_next_round"; do
10241 names_this_round="$names_next_round"
10242 names_next_round=
10243 for name in $names_this_round; do
10244 already_handled=
10245 for n in $names_already_handled; do
10246 if test "$n" = "$name"; then
10247 already_handled=yes
10248 break
10250 done
10251 if test -z "$already_handled"; then
10252 names_already_handled="$names_already_handled $name"
10253 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10254 eval value=\"\$HAVE_LIB$uppername\"
10255 if test -n "$value"; then
10256 if test "$value" = yes; then
10257 eval value=\"\$LIB$uppername\"
10258 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10259 eval value=\"\$LTLIB$uppername\"
10260 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10261 else
10264 else
10265 found_dir=
10266 found_la=
10267 found_so=
10268 found_a=
10269 if test $use_additional = yes; then
10270 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10271 found_dir="$additional_libdir"
10272 found_so="$additional_libdir/lib$name.$shlibext"
10273 if test -f "$additional_libdir/lib$name.la"; then
10274 found_la="$additional_libdir/lib$name.la"
10276 else
10277 if test -f "$additional_libdir/lib$name.$libext"; then
10278 found_dir="$additional_libdir"
10279 found_a="$additional_libdir/lib$name.$libext"
10280 if test -f "$additional_libdir/lib$name.la"; then
10281 found_la="$additional_libdir/lib$name.la"
10286 if test "X$found_dir" = "X"; then
10287 for x in $LDFLAGS $LTLIBICONV; do
10289 acl_save_prefix="$prefix"
10290 prefix="$acl_final_prefix"
10291 acl_save_exec_prefix="$exec_prefix"
10292 exec_prefix="$acl_final_exec_prefix"
10293 eval x=\"$x\"
10294 exec_prefix="$acl_save_exec_prefix"
10295 prefix="$acl_save_prefix"
10297 case "$x" in
10298 -L*)
10299 dir=`echo "X$x" | sed -e 's/^X-L//'`
10300 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10301 found_dir="$dir"
10302 found_so="$dir/lib$name.$shlibext"
10303 if test -f "$dir/lib$name.la"; then
10304 found_la="$dir/lib$name.la"
10306 else
10307 if test -f "$dir/lib$name.$libext"; then
10308 found_dir="$dir"
10309 found_a="$dir/lib$name.$libext"
10310 if test -f "$dir/lib$name.la"; then
10311 found_la="$dir/lib$name.la"
10316 esac
10317 if test "X$found_dir" != "X"; then
10318 break
10320 done
10322 if test "X$found_dir" != "X"; then
10323 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10324 if test "X$found_so" != "X"; then
10325 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10327 else
10328 haveit=
10329 for x in $ltrpathdirs; do
10330 if test "X$x" = "X$found_dir"; then
10331 haveit=yes
10332 break
10334 done
10335 if test -z "$haveit"; then
10336 ltrpathdirs="$ltrpathdirs $found_dir"
10338 if test "$hardcode_direct" = yes; then
10339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10340 else
10341 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10343 haveit=
10344 for x in $rpathdirs; do
10345 if test "X$x" = "X$found_dir"; then
10346 haveit=yes
10347 break
10349 done
10350 if test -z "$haveit"; then
10351 rpathdirs="$rpathdirs $found_dir"
10353 else
10354 haveit=
10355 for x in $LDFLAGS $LIBICONV; do
10357 acl_save_prefix="$prefix"
10358 prefix="$acl_final_prefix"
10359 acl_save_exec_prefix="$exec_prefix"
10360 exec_prefix="$acl_final_exec_prefix"
10361 eval x=\"$x\"
10362 exec_prefix="$acl_save_exec_prefix"
10363 prefix="$acl_save_prefix"
10365 if test "X$x" = "X-L$found_dir"; then
10366 haveit=yes
10367 break
10369 done
10370 if test -z "$haveit"; then
10371 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10373 if test "$hardcode_minus_L" != no; then
10374 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10375 else
10376 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10381 else
10382 if test "X$found_a" != "X"; then
10383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10384 else
10385 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10388 additional_includedir=
10389 case "$found_dir" in
10390 */lib | */lib/)
10391 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10392 additional_includedir="$basedir/include"
10394 esac
10395 if test "X$additional_includedir" != "X"; then
10396 if test "X$additional_includedir" != "X/usr/include"; then
10397 haveit=
10398 if test "X$additional_includedir" = "X/usr/local/include"; then
10399 if test -n "$GCC"; then
10400 case $host_os in
10401 linux*) haveit=yes;;
10402 esac
10405 if test -z "$haveit"; then
10406 for x in $CPPFLAGS $INCICONV; do
10408 acl_save_prefix="$prefix"
10409 prefix="$acl_final_prefix"
10410 acl_save_exec_prefix="$exec_prefix"
10411 exec_prefix="$acl_final_exec_prefix"
10412 eval x=\"$x\"
10413 exec_prefix="$acl_save_exec_prefix"
10414 prefix="$acl_save_prefix"
10416 if test "X$x" = "X-I$additional_includedir"; then
10417 haveit=yes
10418 break
10420 done
10421 if test -z "$haveit"; then
10422 if test -d "$additional_includedir"; then
10423 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10429 if test -n "$found_la"; then
10430 save_libdir="$libdir"
10431 case "$found_la" in
10432 */* | *\\*) . "$found_la" ;;
10433 *) . "./$found_la" ;;
10434 esac
10435 libdir="$save_libdir"
10436 for dep in $dependency_libs; do
10437 case "$dep" in
10438 -L*)
10439 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10440 if test "X$additional_libdir" != "X/usr/lib"; then
10441 haveit=
10442 if test "X$additional_libdir" = "X/usr/local/lib"; then
10443 if test -n "$GCC"; then
10444 case $host_os in
10445 linux*) haveit=yes;;
10446 esac
10449 if test -z "$haveit"; then
10450 haveit=
10451 for x in $LDFLAGS $LIBICONV; do
10453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10457 eval x=\"$x\"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10461 if test "X$x" = "X-L$additional_libdir"; then
10462 haveit=yes
10463 break
10465 done
10466 if test -z "$haveit"; then
10467 if test -d "$additional_libdir"; then
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10471 haveit=
10472 for x in $LDFLAGS $LTLIBICONV; do
10474 acl_save_prefix="$prefix"
10475 prefix="$acl_final_prefix"
10476 acl_save_exec_prefix="$exec_prefix"
10477 exec_prefix="$acl_final_exec_prefix"
10478 eval x=\"$x\"
10479 exec_prefix="$acl_save_exec_prefix"
10480 prefix="$acl_save_prefix"
10482 if test "X$x" = "X-L$additional_libdir"; then
10483 haveit=yes
10484 break
10486 done
10487 if test -z "$haveit"; then
10488 if test -d "$additional_libdir"; then
10489 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10495 -R*)
10496 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10497 if test "$enable_rpath" != no; then
10498 haveit=
10499 for x in $rpathdirs; do
10500 if test "X$x" = "X$dir"; then
10501 haveit=yes
10502 break
10504 done
10505 if test -z "$haveit"; then
10506 rpathdirs="$rpathdirs $dir"
10508 haveit=
10509 for x in $ltrpathdirs; do
10510 if test "X$x" = "X$dir"; then
10511 haveit=yes
10512 break
10514 done
10515 if test -z "$haveit"; then
10516 ltrpathdirs="$ltrpathdirs $dir"
10520 -l*)
10521 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10523 *.la)
10524 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10527 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10530 esac
10531 done
10533 else
10534 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10535 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10539 done
10540 done
10541 if test "X$rpathdirs" != "X"; then
10542 if test -n "$hardcode_libdir_separator"; then
10543 alldirs=
10544 for found_dir in $rpathdirs; do
10545 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10546 done
10547 acl_save_libdir="$libdir"
10548 libdir="$alldirs"
10549 eval flag=\"$hardcode_libdir_flag_spec\"
10550 libdir="$acl_save_libdir"
10551 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10552 else
10553 for found_dir in $rpathdirs; do
10554 acl_save_libdir="$libdir"
10555 libdir="$found_dir"
10556 eval flag=\"$hardcode_libdir_flag_spec\"
10557 libdir="$acl_save_libdir"
10558 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10559 done
10562 if test "X$ltrpathdirs" != "X"; then
10563 for found_dir in $ltrpathdirs; do
10564 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10565 done
10574 am_save_CPPFLAGS="$CPPFLAGS"
10576 for element in $INCICONV; do
10577 haveit=
10578 for x in $CPPFLAGS; do
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 acl_save_exec_prefix="$exec_prefix"
10583 exec_prefix="$acl_final_exec_prefix"
10584 eval x=\"$x\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10588 if test "X$x" = "X$element"; then
10589 haveit=yes
10590 break
10592 done
10593 if test -z "$haveit"; then
10594 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10596 done
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10600 $as_echo_n "checking for iconv... " >&6; }
10601 if test "${am_cv_func_iconv+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10605 am_cv_func_iconv="no, consider installing GNU libiconv"
10606 am_cv_lib_iconv=no
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 #include <stdlib.h>
10610 #include <iconv.h>
10612 main ()
10614 iconv_t cd = iconv_open("","");
10615 iconv(cd,NULL,NULL,NULL,NULL);
10616 iconv_close(cd);
10618 return 0;
10620 _ACEOF
10621 if ac_fn_cxx_try_link "$LINENO"; then :
10622 am_cv_func_iconv=yes
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 if test "$am_cv_func_iconv" != yes; then
10627 am_save_LIBS="$LIBS"
10628 LIBS="$LIBS $LIBICONV"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include <stdlib.h>
10632 #include <iconv.h>
10634 main ()
10636 iconv_t cd = iconv_open("","");
10637 iconv(cd,NULL,NULL,NULL,NULL);
10638 iconv_close(cd);
10640 return 0;
10642 _ACEOF
10643 if ac_fn_cxx_try_link "$LINENO"; then :
10644 am_cv_lib_iconv=yes
10645 am_cv_func_iconv=yes
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS="$am_save_LIBS"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10654 $as_echo "$am_cv_func_iconv" >&6; }
10655 if test "$am_cv_func_iconv" = yes; then
10657 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10660 if test "$am_cv_lib_iconv" = yes; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10662 $as_echo_n "checking how to link with libiconv... " >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10664 $as_echo "$LIBICONV" >&6; }
10665 else
10666 CPPFLAGS="$am_save_CPPFLAGS"
10667 LIBICONV=
10668 LTLIBICONV=
10673 if test "$am_cv_func_iconv" = yes; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10675 $as_echo_n "checking for iconv declaration... " >&6; }
10676 if test "${am_cv_proto_iconv+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10683 #include <stdlib.h>
10684 #include <iconv.h>
10685 extern
10686 #ifdef __cplusplus
10688 #endif
10689 #if defined(__STDC__) || defined(__cplusplus)
10690 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10691 #else
10692 size_t iconv();
10693 #endif
10696 main ()
10700 return 0;
10702 _ACEOF
10703 if ac_fn_cxx_try_compile "$LINENO"; then :
10704 am_cv_proto_iconv_arg1=""
10705 else
10706 am_cv_proto_iconv_arg1="const"
10708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709 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);"
10712 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10714 }$am_cv_proto_iconv" >&5
10715 $as_echo "${ac_t:-
10716 }$am_cv_proto_iconv" >&6; }
10718 cat >>confdefs.h <<_ACEOF
10719 #define ICONV_CONST $am_cv_proto_iconv_arg1
10720 _ACEOF
10725 # Until we have in-tree GNU iconv:
10726 LIBICONV_DEP=
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10731 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10732 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #include <locale.h>
10739 main ()
10741 return LC_MESSAGES
10743 return 0;
10745 _ACEOF
10746 if ac_fn_cxx_try_link "$LINENO"; then :
10747 am_cv_val_LC_MESSAGES=yes
10748 else
10749 am_cv_val_LC_MESSAGES=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10755 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10756 if test $am_cv_val_LC_MESSAGES = yes; then
10758 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10765 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10766 if test "${am_cv_langinfo_codeset+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 #include <langinfo.h>
10773 main ()
10775 char* cs = nl_langinfo(CODESET);
10777 return 0;
10779 _ACEOF
10780 if ac_fn_cxx_try_link "$LINENO"; then :
10781 am_cv_langinfo_codeset=yes
10782 else
10783 am_cv_langinfo_codeset=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10790 $as_echo "$am_cv_langinfo_codeset" >&6; }
10791 if test $am_cv_langinfo_codeset = yes; then
10793 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10798 # We will need to find libiberty.h and ansidecl.h
10799 saved_CFLAGS="$CFLAGS"
10800 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10801 saved_CXXFLAGS="$CXXFLAGS"
10802 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10804 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10805 # normal autoconf function for these. But force definition of
10806 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10807 # basename handling in libiberty.h.
10808 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10809 #undef HAVE_DECL_BASENAME
10810 #define HAVE_DECL_BASENAME 1
10811 #include \"ansidecl.h\"
10812 #include \"system.h\"
10814 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10815 ac_have_decl=1
10816 else
10817 ac_have_decl=0
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_DECL_BASENAME $ac_have_decl
10822 _ACEOF
10823 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10824 #undef HAVE_DECL_BASENAME
10825 #define HAVE_DECL_BASENAME 1
10826 #include \"ansidecl.h\"
10827 #include \"system.h\"
10829 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10830 ac_have_decl=1
10831 else
10832 ac_have_decl=0
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_DECL_STRSTR $ac_have_decl
10837 _ACEOF
10840 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10841 madvise stpcpy strnlen strsignal strverscmp \
10842 strtol strtoul strtoll strtoull \
10843 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10844 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
10846 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10848 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10849 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854 #undef $ac_tr_decl
10855 #define $ac_tr_decl 1
10857 #include "ansidecl.h"
10858 #include "system.h"
10861 main ()
10863 #ifndef $ac_func
10864 char *(*pfn) = (char *(*)) $ac_func ;
10865 #endif
10867 return 0;
10869 _ACEOF
10870 if ac_fn_cxx_try_compile "$LINENO"; then :
10871 eval "gcc_cv_have_decl_$ac_func=yes"
10872 else
10873 eval "gcc_cv_have_decl_$ac_func=no"
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10880 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10881 #define $ac_tr_decl 1
10882 _ACEOF
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10887 #define $ac_tr_decl 0
10888 _ACEOF
10892 done
10895 for ac_func in getrlimit setrlimit getrusage
10897 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10899 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10900 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #undef $ac_tr_decl
10906 #define $ac_tr_decl 1
10908 #include "ansidecl.h"
10909 #include "system.h"
10910 #ifdef HAVE_SYS_RESOURCE_H
10911 #include <sys/resource.h>
10912 #endif
10916 main ()
10918 #ifndef $ac_func
10919 char *(*pfn) = (char *(*)) $ac_func ;
10920 #endif
10922 return 0;
10924 _ACEOF
10925 if ac_fn_cxx_try_compile "$LINENO"; then :
10926 eval "gcc_cv_have_decl_$ac_func=yes"
10927 else
10928 eval "gcc_cv_have_decl_$ac_func=no"
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10935 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10936 #define $ac_tr_decl 1
10937 _ACEOF
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10942 #define $ac_tr_decl 0
10943 _ACEOF
10947 done
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 #include "ansidecl.h"
10954 #include "system.h"
10955 #ifdef HAVE_SYS_RESOURCE_H
10956 #include <sys/resource.h>
10957 #endif
10960 main ()
10962 rlim_t l = 0;
10964 return 0;
10966 _ACEOF
10967 if ac_fn_cxx_try_compile "$LINENO"; then :
10969 else
10971 $as_echo "#define rlim_t long" >>confdefs.h
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10977 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10978 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10979 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10980 for ac_func in ldgetname
10982 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10984 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10985 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #undef $ac_tr_decl
10991 #define $ac_tr_decl 1
10993 #include "ansidecl.h"
10994 #include "system.h"
10995 #ifdef HAVE_LDFCN_H
10996 #undef FREAD
10997 #undef FWRITE
10998 #include <ldfcn.h>
10999 #endif
11003 main ()
11005 #ifndef $ac_func
11006 char *(*pfn) = (char *(*)) $ac_func ;
11007 #endif
11009 return 0;
11011 _ACEOF
11012 if ac_fn_cxx_try_compile "$LINENO"; then :
11013 eval "gcc_cv_have_decl_$ac_func=yes"
11014 else
11015 eval "gcc_cv_have_decl_$ac_func=no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11023 #define $ac_tr_decl 1
11024 _ACEOF
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11029 #define $ac_tr_decl 0
11030 _ACEOF
11034 done
11037 for ac_func in times
11039 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11041 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11042 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047 #undef $ac_tr_decl
11048 #define $ac_tr_decl 1
11050 #include "ansidecl.h"
11051 #include "system.h"
11052 #ifdef HAVE_SYS_TIMES_H
11053 #include <sys/times.h>
11054 #endif
11058 main ()
11060 #ifndef $ac_func
11061 char *(*pfn) = (char *(*)) $ac_func ;
11062 #endif
11064 return 0;
11066 _ACEOF
11067 if ac_fn_cxx_try_compile "$LINENO"; then :
11068 eval "gcc_cv_have_decl_$ac_func=yes"
11069 else
11070 eval "gcc_cv_have_decl_$ac_func=no"
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11078 #define $ac_tr_decl 1
11079 _ACEOF
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11084 #define $ac_tr_decl 0
11085 _ACEOF
11089 done
11092 for ac_func in sigaltstack
11094 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11096 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11097 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 #undef $ac_tr_decl
11103 #define $ac_tr_decl 1
11105 #include "ansidecl.h"
11106 #include "system.h"
11107 #include <signal.h>
11111 main ()
11113 #ifndef $ac_func
11114 char *(*pfn) = (char *(*)) $ac_func ;
11115 #endif
11117 return 0;
11119 _ACEOF
11120 if ac_fn_cxx_try_compile "$LINENO"; then :
11121 eval "gcc_cv_have_decl_$ac_func=yes"
11122 else
11123 eval "gcc_cv_have_decl_$ac_func=no"
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11131 #define $ac_tr_decl 1
11132 _ACEOF
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11137 #define $ac_tr_decl 0
11138 _ACEOF
11142 done
11145 # More time-related stuff.
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11147 $as_echo_n "checking for struct tms... " >&6; }
11148 if test "${ac_cv_struct_tms+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11155 #include "ansidecl.h"
11156 #include "system.h"
11157 #ifdef HAVE_SYS_TIMES_H
11158 #include <sys/times.h>
11159 #endif
11162 main ()
11164 struct tms tms;
11166 return 0;
11168 _ACEOF
11169 if ac_fn_cxx_try_compile "$LINENO"; then :
11170 ac_cv_struct_tms=yes
11171 else
11172 ac_cv_struct_tms=no
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11177 $as_echo "$ac_cv_struct_tms" >&6; }
11178 if test $ac_cv_struct_tms = yes; then
11180 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11184 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11185 # revisit after autoconf 2.50.
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11187 $as_echo_n "checking for clock_t... " >&6; }
11188 if test "${gcc_cv_type_clock_t+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 #include "ansidecl.h"
11196 #include "system.h"
11199 main ()
11201 clock_t x;
11203 return 0;
11205 _ACEOF
11206 if ac_fn_cxx_try_compile "$LINENO"; then :
11207 gcc_cv_type_clock_t=yes
11208 else
11209 gcc_cv_type_clock_t=no
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11214 $as_echo "$gcc_cv_type_clock_t" >&6; }
11215 if test $gcc_cv_type_clock_t = yes; then
11217 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11221 # Check if F_SETLKW is supported by fcntl.
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11223 $as_echo_n "checking for F_SETLKW... " >&6; }
11224 if test "${ac_cv_f_setlkw+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 #include <fcntl.h>
11233 main ()
11236 struct flock fl;
11237 fl.l_whence = 0;
11238 fl.l_start = 0;
11239 fl.l_len = 0;
11240 fl.l_pid = 0;
11241 return fcntl (1, F_SETLKW, &fl);
11243 return 0;
11245 _ACEOF
11246 if ac_fn_cxx_try_compile "$LINENO"; then :
11247 ac_cv_f_setlkw=yes
11248 else
11249 ac_cv_f_setlkw=no
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11254 $as_echo "$ac_cv_f_setlkw" >&6; }
11255 if test $ac_cv_f_setlkw = yes; then
11257 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11261 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11262 CFLAGS="$saved_CFLAGS"
11263 CXXFLAGS="$saved_CXXFLAGS"
11265 # mkdir takes a single argument on some systems.
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11267 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11268 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 #include <sys/types.h>
11275 #ifdef HAVE_SYS_STAT_H
11276 # include <sys/stat.h>
11277 #endif
11278 #ifdef HAVE_UNISTD_H
11279 # include <unistd.h>
11280 #endif
11281 #ifdef HAVE_DIRECT_H
11282 # include <direct.h>
11283 #endif
11285 main ()
11287 mkdir ("foo", 0);
11289 return 0;
11291 _ACEOF
11292 if ac_fn_cxx_try_compile "$LINENO"; then :
11293 gcc_cv_mkdir_takes_one_arg=no
11294 else
11295 gcc_cv_mkdir_takes_one_arg=yes
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11300 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11301 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11303 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11308 # File extensions
11309 manext='.1'
11310 objext='.o'
11314 # With Setjmp/Longjmp based exception handling.
11315 # Check whether --enable-sjlj-exceptions was given.
11316 if test "${enable_sjlj_exceptions+set}" = set; then :
11317 enableval=$enable_sjlj_exceptions; case $target in
11318 *-*-hpux10*)
11319 if test $enableval != yes; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11321 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11322 enableval=yes
11325 esac
11326 force_sjlj_exceptions=yes
11327 else
11328 case $target in
11329 *-*-hpux10*)
11330 force_sjlj_exceptions=yes
11331 enableval=yes
11333 lm32*-*-*)
11334 force_sjlj_exceptions=yes
11335 enableval=yes
11338 force_sjlj_exceptions=no
11340 esac
11343 if test $force_sjlj_exceptions = yes; then
11344 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11346 cat >>confdefs.h <<_ACEOF
11347 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11348 _ACEOF
11352 # --------------------------------------------------------
11353 # Build, host, and target specific configuration fragments
11354 # --------------------------------------------------------
11356 # Collect build-machine-specific information.
11357 . ${srcdir}/config.build
11359 # Collect host-machine-specific information.
11360 . ${srcdir}/config.host
11362 target_gtfiles=
11364 # Collect target-machine-specific information.
11365 . ${srcdir}/config.gcc
11367 extra_objs="${host_extra_objs} ${extra_objs}"
11368 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11370 # Default the target-machine variables that were not explicitly set.
11371 if test x"$tm_file" = x
11372 then tm_file=$cpu_type/$cpu_type.h; fi
11374 if test x"$extra_headers" = x
11375 then extra_headers=; fi
11377 if test x$md_file = x
11378 then md_file=$cpu_type/$cpu_type.md; fi
11380 if test x$out_file = x
11381 then out_file=$cpu_type/$cpu_type.c; fi
11383 if test x"$tmake_file" = x
11384 then tmake_file=$cpu_type/t-$cpu_type
11387 # Support --enable-initfini-array.
11388 if test x$enable_initfini_array != xno; then
11389 tm_file="${tm_file} initfini-array.h"
11392 if test x"$dwarf2" = xyes
11393 then tm_file="$tm_file tm-dwarf2.h"
11396 # Say what files are being used for the output code and MD file.
11397 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11398 echo "Using \`$srcdir/config/$md_file' as machine description file."
11400 # If any of the xm_file variables contain nonexistent files, warn
11401 # about them and drop them.
11404 for x in $build_xm_file; do
11405 if test -f $srcdir/config/$x
11406 then bx="$bx $x"
11407 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11408 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11410 done
11411 build_xm_file="$bx"
11414 for x in $host_xm_file; do
11415 if test -f $srcdir/config/$x
11416 then hx="$hx $x"
11417 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11418 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11420 done
11421 host_xm_file="$hx"
11424 for x in $xm_file; do
11425 if test -f $srcdir/config/$x
11426 then tx="$tx $x"
11427 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11428 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11430 done
11431 xm_file="$tx"
11433 count=a
11434 for f in $tm_file; do
11435 count=${count}x
11436 done
11437 if test $count = ax; then
11438 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11439 else
11440 echo "Using the following target machine macro files:"
11441 for f in $tm_file; do
11442 echo " $srcdir/config/$f"
11443 done
11446 if test x$use_long_long_for_widest_fast_int = xyes; then
11448 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11452 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_GNU_LD $gnu_ld_bool
11456 _ACEOF
11459 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11461 cat >>confdefs.h <<_ACEOF
11462 #define HAVE_GNU_AS $gnu_as_bool
11463 _ACEOF
11466 count=a
11467 for f in $host_xm_file; do
11468 count=${count}x
11469 done
11470 if test $count = a; then
11472 elif test $count = ax; then
11473 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11474 else
11475 echo "Using the following host machine macro files:"
11476 for f in $host_xm_file; do
11477 echo " $srcdir/config/$f"
11478 done
11480 echo "Using ${out_host_hook_obj} for host machine hooks."
11482 if test "$host_xm_file" != "$build_xm_file"; then
11483 count=a
11484 for f in $build_xm_file; do
11485 count=${count}x
11486 done
11487 if test $count = a; then
11489 elif test $count = ax; then
11490 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11491 else
11492 echo "Using the following build machine macro files:"
11493 for f in $build_xm_file; do
11494 echo " $srcdir/config/$f"
11495 done
11499 if test -n "$configured_native_system_header_dir"; then
11500 native_system_header_dir=$configured_native_system_header_dir
11502 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11505 case ${host} in
11506 powerpc*-*-darwin*)
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11508 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11509 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 #include <sys/cdefs.h>
11516 #include <sys/signal.h>
11517 #include <ucontext.h>
11518 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11520 _ACEOF
11521 if ac_fn_cxx_try_compile "$LINENO"; then :
11522 gcc_cv_mcontext_underscores=no
11523 else
11524 gcc_cv_mcontext_underscores=yes
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11529 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11530 if test $gcc_cv_mcontext_underscores = yes; then
11532 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11536 esac
11538 # ---------
11539 # Threading
11540 # ---------
11542 # Check if a valid thread package
11543 case ${enable_threads} in
11544 "" | no)
11545 # No threads
11546 target_thread_file='single'
11548 yes)
11549 # default
11550 target_thread_file='single'
11552 aix | dce | lynx | mipssde | posix | rtems | \
11553 single | tpf | vxworks | win32)
11554 target_thread_file=${enable_threads}
11557 echo "${enable_threads} is an unknown thread package" 1>&2
11558 exit 1
11560 esac
11562 if test x${thread_file} = x; then
11563 # No thread file set by target-specific clauses in config.gcc,
11564 # so use file chosen by default logic above
11565 thread_file=${target_thread_file}
11568 # --------
11569 # UNSORTED
11570 # --------
11572 use_cxa_atexit=no
11573 if test x$enable___cxa_atexit = xyes || \
11574 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11575 if test x$host = x$target; then
11576 case $host in
11577 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11578 # keyed to flag_use_cxa_atexit
11579 *-*-mingw32*)
11580 use_cxa_atexit=yes
11582 powerpc-ibm-aix*)
11583 use_cxa_atexit=yes
11586 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11587 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11588 use_cxa_atexit=yes
11589 else
11590 echo "__cxa_atexit can't be enabled on this target"
11594 esac
11595 else
11596 # We can't check for __cxa_atexit when building a cross, so assume
11597 # it is available
11598 use_cxa_atexit=yes
11600 if test x$use_cxa_atexit = xyes; then
11602 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11607 # Look for a file containing extra machine modes.
11608 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11609 extra_modes_file='$(srcdir)'/config/${extra_modes}
11612 cat >>confdefs.h <<_ACEOF
11613 #define EXTRA_MODES_FILE "config/$extra_modes"
11614 _ACEOF
11618 # Convert extra_options into a form suitable for Makefile use.
11619 extra_opt_files=
11620 all_opt_files=
11621 for f in $extra_options; do
11622 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11623 all_opt_files="$all_opt_files $srcdir/config/$f"
11624 done
11627 # auto-host.h is the file containing items generated by autoconf and is
11628 # the first file included by config.h.
11629 # If host=build, it is correct to have bconfig include auto-host.h
11630 # as well. If host!=build, we are in error and need to do more
11631 # work to find out the build config parameters.
11632 if test x$host = x$build
11633 then
11634 build_auto=auto-host.h
11635 else
11636 # We create a subdir, then run autoconf in the subdir.
11637 # To prevent recursion we set host and build for the new
11638 # invocation of configure to the build for this invocation
11639 # of configure.
11640 tempdir=build.$$
11641 rm -rf $tempdir
11642 mkdir $tempdir
11643 cd $tempdir
11644 case ${srcdir} in
11645 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11646 *) realsrcdir=../${srcdir};;
11647 esac
11648 # Clearing GMPINC is necessary to prevent host headers being
11649 # used by the build compiler. Defining GENERATOR_FILE stops
11650 # system.h from including gmp.h.
11651 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11652 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11653 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11654 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11655 ${realsrcdir}/configure \
11656 --enable-languages=${enable_languages-all} \
11657 --target=$target_alias --host=$build_alias --build=$build_alias
11659 # We just finished tests for the build machine, so rename
11660 # the file auto-build.h in the gcc directory.
11661 mv auto-host.h ../auto-build.h
11662 cd ..
11663 rm -rf $tempdir
11664 build_auto=auto-build.h
11668 tm_file="${tm_file} defaults.h"
11669 tm_p_file="${tm_p_file} tm-preds.h"
11670 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11671 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11672 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11673 # put this back in temporarily.
11674 xm_file="auto-host.h ansidecl.h ${xm_file}"
11676 # --------
11677 # UNSORTED
11678 # --------
11680 # Compile in configure arguments.
11681 if test -f configargs.h ; then
11682 # Being re-configured.
11683 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11684 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11685 else
11686 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11689 # Double all backslashes and backslash all quotes to turn
11690 # gcc_config_arguments into a C string.
11691 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11692 $gcc_config_arguments
11694 gcc_config_arguments_str=`cat conftest.out`
11695 rm -f conftest.out
11697 cat > configargs.h <<EOF
11698 /* Generated automatically. */
11699 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11700 static const char thread_model[] = "$thread_file";
11702 static const struct {
11703 const char *name, *value;
11704 } configure_default_options[] = $configure_default_options;
11707 gcc_BASEVER=`cat $srcdir/BASE-VER`
11708 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11709 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11710 if test -f $srcdir/REVISION ; then
11711 gcc_REVISION=`cat $srcdir/REVISION`
11712 else
11713 gcc_REVISION=""
11715 cat > plugin-version.h <<EOF
11716 #include "configargs.h"
11718 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11719 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11720 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11721 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11723 static char basever[] = "$gcc_BASEVER";
11724 static char datestamp[] = "$gcc_DATESTAMP";
11725 static char devphase[] = "$gcc_DEVPHASE";
11726 static char revision[] = "$gcc_REVISION";
11728 /* FIXME plugins: We should make the version information more precise.
11729 One way to do is to add a checksum. */
11731 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11732 devphase, revision,
11733 configuration_arguments};
11736 # Internationalization
11737 # If we haven't got the data from the intl directory,
11738 # assume NLS is disabled.
11739 USE_NLS=no
11740 LIBINTL=
11741 LIBINTL_DEP=
11742 INCINTL=
11743 XGETTEXT=
11744 GMSGFMT=
11745 POSUB=
11747 if test -f ../intl/config.intl; then
11748 . ../intl/config.intl
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11751 $as_echo_n "checking whether NLS is requested... " >&6; }
11752 if test x"$USE_NLS" != xyes; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757 $as_echo "yes" >&6; }
11759 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11763 $as_echo_n "checking for catalogs to be installed... " >&6; }
11764 # Look for .po and .gmo files in the source directory.
11765 CATALOGS=
11766 XLINGUAS=
11767 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11768 # If there aren't any .gmo files the shell will give us the
11769 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11770 # weeded out.
11771 case "$cat" in *\**)
11772 continue;;
11773 esac
11774 # The quadruple backslash is collapsed to a double backslash
11775 # by the backticks, then collapsed again by the double quotes,
11776 # leaving us with one backslash in the sed expression (right
11777 # before the dot that mustn't act as a wildcard).
11778 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11779 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11780 # The user is allowed to set LINGUAS to a list of languages to
11781 # install catalogs for. If it's empty that means "all of them."
11782 if test "x$LINGUAS" = x; then
11783 CATALOGS="$CATALOGS $cat"
11784 XLINGUAS="$XLINGUAS $lang"
11785 else
11786 case "$LINGUAS" in *$lang*)
11787 CATALOGS="$CATALOGS $cat"
11788 XLINGUAS="$XLINGUAS $lang"
11790 esac
11792 done
11793 LINGUAS="$XLINGUAS"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11795 $as_echo "$LINGUAS" >&6; }
11798 DATADIRNAME=share
11800 INSTOBJEXT=.mo
11802 GENCAT=gencat
11804 CATOBJEXT=.gmo
11808 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11809 # -liconv on the link line twice.
11810 case "$LIBINTL" in *$LIBICONV*)
11811 LIBICONV= ;;
11812 esac
11814 # Check whether --enable-secureplt was given.
11815 if test "${enable_secureplt+set}" = set; then :
11816 enableval=$enable_secureplt;
11820 # Check whether --enable-leading-mingw64-underscores was given.
11821 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11822 enableval=$enable_leading_mingw64_underscores;
11825 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11827 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11831 # Check whether --enable-cld was given.
11832 if test "${enable_cld+set}" = set; then :
11833 enableval=$enable_cld;
11834 else
11835 enable_cld=no
11839 # Check whether --enable-frame-pointer was given.
11840 if test "${enable_frame_pointer+set}" = set; then :
11841 enableval=$enable_frame_pointer;
11842 else
11844 case $target_os in
11845 linux* | darwin[8912]*)
11846 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11847 # DWARF2.
11848 enable_frame_pointer=no
11851 enable_frame_pointer=yes
11853 esac
11858 # Windows32 Registry support for specifying GCC installation paths.
11859 # Check whether --enable-win32-registry was given.
11860 if test "${enable_win32_registry+set}" = set; then :
11861 enableval=$enable_win32_registry;
11865 case $host_os in
11866 win32 | pe | cygwin* | mingw32* | uwin*)
11867 if test "x$enable_win32_registry" != xno; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11869 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11870 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 ac_func_search_save_LIBS=$LIBS
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char RegOpenKeyExA ();
11885 main ()
11887 return RegOpenKeyExA ();
11889 return 0;
11891 _ACEOF
11892 for ac_lib in '' advapi32; do
11893 if test -z "$ac_lib"; then
11894 ac_res="none required"
11895 else
11896 ac_res=-l$ac_lib
11897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11899 if ac_fn_cxx_try_link "$LINENO"; then :
11900 ac_cv_search_RegOpenKeyExA=$ac_res
11902 rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext
11904 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11905 break
11907 done
11908 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11910 else
11911 ac_cv_search_RegOpenKeyExA=no
11913 rm conftest.$ac_ext
11914 LIBS=$ac_func_search_save_LIBS
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11917 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11918 ac_res=$ac_cv_search_RegOpenKeyExA
11919 if test "$ac_res" != no; then :
11920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11922 else
11923 enable_win32_registry=no
11928 if test "x$enable_win32_registry" != xno; then
11930 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11933 if test "x$enable_win32_registry" != xyes \
11934 && test "x$enable_win32_registry" != x; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11938 _ACEOF
11943 esac
11945 # Get an absolute path to the GCC top-level source directory
11946 holddir=`${PWDCMD-pwd}`
11947 cd $srcdir
11948 topdir=`${PWDCMD-pwd}`
11949 cd $holddir
11951 # Conditionalize the makefile for this host machine.
11952 xmake_file=
11953 for f in ${host_xmake_file}
11955 if test -f ${srcdir}/config/$f
11956 then
11957 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11959 done
11961 # Conditionalize the makefile for this target machine.
11962 tmake_file_=
11963 for f in ${tmake_file}
11965 if test -f ${srcdir}/config/$f
11966 then
11967 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11969 done
11970 tmake_file="${tmake_file_}"
11972 out_object_file=`basename $out_file .c`.o
11973 common_out_object_file=`basename $common_out_file .c`.o
11975 tm_file_list="options.h"
11976 tm_include_list="options.h insn-constants.h"
11977 for f in $tm_file; do
11978 case $f in
11979 ./* )
11980 f=`echo $f | sed 's/^..//'`
11981 tm_file_list="${tm_file_list} $f"
11982 tm_include_list="${tm_include_list} $f"
11984 defaults.h )
11985 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11986 tm_include_list="${tm_include_list} $f"
11989 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11990 tm_include_list="${tm_include_list} config/$f"
11992 esac
11993 done
11995 tm_p_file_list=
11996 tm_p_include_list=
11997 for f in $tm_p_file; do
11998 case $f in
11999 tm-preds.h )
12000 tm_p_file_list="${tm_p_file_list} $f"
12001 tm_p_include_list="${tm_p_include_list} $f"
12004 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12005 tm_p_include_list="${tm_p_include_list} config/$f"
12006 esac
12007 done
12009 xm_file_list=
12010 xm_include_list=
12011 for f in $xm_file; do
12012 case $f in
12013 ansidecl.h )
12014 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12015 xm_include_list="${xm_include_list} $f"
12017 auto-host.h )
12018 xm_file_list="${xm_file_list} $f"
12019 xm_include_list="${xm_include_list} $f"
12022 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12023 xm_include_list="${xm_include_list} config/$f"
12025 esac
12026 done
12028 host_xm_file_list=
12029 host_xm_include_list=
12030 for f in $host_xm_file; do
12031 case $f in
12032 ansidecl.h )
12033 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12034 host_xm_include_list="${host_xm_include_list} $f"
12036 auto-host.h )
12037 host_xm_file_list="${host_xm_file_list} $f"
12038 host_xm_include_list="${host_xm_include_list} $f"
12041 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12042 host_xm_include_list="${host_xm_include_list} config/$f"
12044 esac
12045 done
12047 build_xm_file_list=
12048 for f in $build_xm_file; do
12049 case $f in
12050 ansidecl.h )
12051 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12052 build_xm_include_list="${build_xm_include_list} $f"
12054 auto-build.h | auto-host.h )
12055 build_xm_file_list="${build_xm_file_list} $f"
12056 build_xm_include_list="${build_xm_include_list} $f"
12059 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12060 build_xm_include_list="${build_xm_include_list} config/$f"
12062 esac
12063 done
12065 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12066 # cross-compiler which does not use the native headers and libraries.
12067 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12068 CROSS=
12069 ALL=all.internal
12070 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12072 if test "x$with_build_sysroot" != x; then
12073 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12074 else
12075 # This value is used, even on a native system, because
12076 # CROSS_SYSTEM_HEADER_DIR is just
12077 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12078 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12081 if test x$host != x$target
12082 then
12083 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12084 ALL=all.cross
12085 SYSTEM_HEADER_DIR=$build_system_header_dir
12086 case "$host","$target" in
12087 # Darwin crosses can use the host system's libraries and headers,
12088 # because of the fat library support. Of course, it must be the
12089 # same version of Darwin on both sides. Allow the user to
12090 # just say --target=foo-darwin without a version number to mean
12091 # "the version on this system".
12092 *-*-darwin*,*-*-darwin*)
12093 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12094 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12095 if test $hostos = $targetos -o $targetos = darwin ; then
12096 CROSS=
12097 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12098 with_headers=yes
12102 i?86-*-*,x86_64-*-* \
12103 | powerpc*-*-*,powerpc64*-*-*)
12104 CROSS="$CROSS -DNATIVE_CROSS" ;;
12105 esac
12107 case $target in
12108 *-*-mingw*)
12109 if test "x$with_headers" = x; then
12110 with_headers=yes
12115 esac
12116 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12117 SYSTEM_HEADER_DIR=$build_system_header_dir
12120 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12121 if test "x$with_headers" != x; then
12122 target_header_dir=$with_headers
12123 elif test "x$with_sysroot" = x; then
12124 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12125 elif test "x$with_build_sysroot" != "x"; then
12126 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12127 elif test "x$with_sysroot" = xyes; then
12128 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12129 else
12130 target_header_dir="${with_sysroot}${native_system_header_dir}"
12132 else
12133 target_header_dir=${native_system_header_dir}
12136 # If this is a cross-compiler that does not
12137 # have its own set of headers then define
12138 # inhibit_libc
12140 # If this is using newlib, without having the headers available now,
12141 # then define inhibit_libc in LIBGCC2_CFLAGS.
12142 # This prevents libgcc2 from containing any code which requires libc
12143 # support.
12144 : ${inhibit_libc=false}
12145 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12146 test x$with_newlib = xyes ; } &&
12147 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12148 inhibit_libc=true
12152 # When building gcc with a cross-compiler, we need to adjust things so
12153 # that the generator programs are still built with the native compiler.
12154 # Also, we cannot run fixincludes.
12156 # These are the normal (build=host) settings:
12157 CC_FOR_BUILD='$(CC)'
12158 CXX_FOR_BUILD='$(CXX)'
12159 BUILD_CFLAGS='$(ALL_CFLAGS)'
12160 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12161 BUILD_LDFLAGS='$(LDFLAGS)'
12162 STMP_FIXINC=stmp-fixinc
12164 # And these apply if build != host, or we are generating coverage data
12165 if test x$build != x$host || test "x$coverage_flags" != x
12166 then
12167 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12168 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12169 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12172 # Expand extra_headers to include complete path.
12173 # This substitutes for lots of t-* files.
12174 extra_headers_list=
12175 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12176 for file in ${extra_headers} ; do
12177 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12178 done
12180 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12181 if test x"$use_gcc_tgmath" = xyes
12182 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12185 # Define collect2 in Makefile.
12186 case $host_can_use_collect2 in
12187 no) collect2= ;;
12188 *) collect2='collect2$(exeext)' ;;
12189 esac
12192 # Add a definition of USE_COLLECT2 if system wants one.
12193 case $use_collect2 in
12194 no) use_collect2= ;;
12195 "") ;;
12197 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12198 xm_defines="${xm_defines} USE_COLLECT2"
12199 case $host_can_use_collect2 in
12201 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12203 esac
12205 esac
12208 cat >>confdefs.h <<_ACEOF
12209 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12210 _ACEOF
12213 # ---------------------------
12214 # Assembler & linker features
12215 # ---------------------------
12217 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12218 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12219 # However when ld-new is first executed from the build tree, libtool will
12220 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12221 # to the build tree. While doing this we need to use the previous-stage
12222 # linker, or we have an infinite loop. The presence of a shell script as
12223 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12224 # the gcc/collect-ld script. So we need to know how libtool works, or
12225 # exec-tool will fail.
12228 case `pwd` in
12229 *\ * | *\ *)
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12231 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12232 esac
12236 macro_version='2.2.7a'
12237 macro_revision='1.3134'
12251 ltmain="$ac_aux_dir/ltmain.sh"
12253 # Backslashify metacharacters that are still active within
12254 # double-quoted strings.
12255 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12257 # Same as above, but do not quote variable references.
12258 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12260 # Sed substitution to delay expansion of an escaped shell variable in a
12261 # double_quote_subst'ed string.
12262 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12264 # Sed substitution to delay expansion of an escaped single quote.
12265 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12267 # Sed substitution to avoid accidental globbing in evaled expressions
12268 no_glob_subst='s/\*/\\\*/g'
12270 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12271 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12272 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12275 $as_echo_n "checking how to print strings... " >&6; }
12276 # Test print first, because it will be a builtin if present.
12277 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12278 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12279 ECHO='print -r --'
12280 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12281 ECHO='printf %s\n'
12282 else
12283 # Use this function as a fallback that always works.
12284 func_fallback_echo ()
12286 eval 'cat <<_LTECHO_EOF
12288 _LTECHO_EOF'
12290 ECHO='func_fallback_echo'
12293 # func_echo_all arg...
12294 # Invoke $ECHO with all args, space-separated.
12295 func_echo_all ()
12297 $ECHO ""
12300 case "$ECHO" in
12301 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12302 $as_echo "printf" >&6; } ;;
12303 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12304 $as_echo "print -r" >&6; } ;;
12305 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12306 $as_echo "cat" >&6; } ;;
12307 esac
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12323 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12324 if test "${ac_cv_path_SED+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12328 for ac_i in 1 2 3 4 5 6 7; do
12329 ac_script="$ac_script$as_nl$ac_script"
12330 done
12331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12332 { ac_script=; unset ac_script;}
12333 if test -z "$SED"; then
12334 ac_path_SED_found=false
12335 # Loop through the user's path and test for each of PROGNAME-LIST
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_prog in sed gsed; do
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12344 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12345 # Check for GNU ac_path_SED and select it if it is found.
12346 # Check for GNU $ac_path_SED
12347 case `"$ac_path_SED" --version 2>&1` in
12348 *GNU*)
12349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12351 ac_count=0
12352 $as_echo_n 0123456789 >"conftest.in"
12353 while :
12355 cat "conftest.in" "conftest.in" >"conftest.tmp"
12356 mv "conftest.tmp" "conftest.in"
12357 cp "conftest.in" "conftest.nl"
12358 $as_echo '' >> "conftest.nl"
12359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12361 as_fn_arith $ac_count + 1 && ac_count=$as_val
12362 if test $ac_count -gt ${ac_path_SED_max-0}; then
12363 # Best one so far, save it but keep looking for a better one
12364 ac_cv_path_SED="$ac_path_SED"
12365 ac_path_SED_max=$ac_count
12367 # 10*(2^10) chars as input seems more than enough
12368 test $ac_count -gt 10 && break
12369 done
12370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12371 esac
12373 $ac_path_SED_found && break 3
12374 done
12375 done
12376 done
12377 IFS=$as_save_IFS
12378 if test -z "$ac_cv_path_SED"; then
12379 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12381 else
12382 ac_cv_path_SED=$SED
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12387 $as_echo "$ac_cv_path_SED" >&6; }
12388 SED="$ac_cv_path_SED"
12389 rm -f conftest.sed
12391 test -z "$SED" && SED=sed
12392 Xsed="$SED -e 1s/^X//"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12405 $as_echo_n "checking for fgrep... " >&6; }
12406 if test "${ac_cv_path_FGREP+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12410 then ac_cv_path_FGREP="$GREP -F"
12411 else
12412 if test -z "$FGREP"; then
12413 ac_path_FGREP_found=false
12414 # Loop through the user's path and test for each of PROGNAME-LIST
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_prog in fgrep; do
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12423 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12424 # Check for GNU ac_path_FGREP and select it if it is found.
12425 # Check for GNU $ac_path_FGREP
12426 case `"$ac_path_FGREP" --version 2>&1` in
12427 *GNU*)
12428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12430 ac_count=0
12431 $as_echo_n 0123456789 >"conftest.in"
12432 while :
12434 cat "conftest.in" "conftest.in" >"conftest.tmp"
12435 mv "conftest.tmp" "conftest.in"
12436 cp "conftest.in" "conftest.nl"
12437 $as_echo 'FGREP' >> "conftest.nl"
12438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12440 as_fn_arith $ac_count + 1 && ac_count=$as_val
12441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12442 # Best one so far, save it but keep looking for a better one
12443 ac_cv_path_FGREP="$ac_path_FGREP"
12444 ac_path_FGREP_max=$ac_count
12446 # 10*(2^10) chars as input seems more than enough
12447 test $ac_count -gt 10 && break
12448 done
12449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12450 esac
12452 $ac_path_FGREP_found && break 3
12453 done
12454 done
12455 done
12456 IFS=$as_save_IFS
12457 if test -z "$ac_cv_path_FGREP"; then
12458 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12460 else
12461 ac_cv_path_FGREP=$FGREP
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12467 $as_echo "$ac_cv_path_FGREP" >&6; }
12468 FGREP="$ac_cv_path_FGREP"
12471 test -z "$GREP" && GREP=grep
12491 # Check whether --with-gnu-ld was given.
12492 if test "${with_gnu_ld+set}" = set; then :
12493 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12494 else
12495 with_gnu_ld=no
12498 ac_prog=ld
12499 if test "$GCC" = yes; then
12500 # Check if gcc -print-prog-name=ld gives a path.
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12502 $as_echo_n "checking for ld used by $CC... " >&6; }
12503 case $host in
12504 *-*-mingw*)
12505 # gcc leaves a trailing carriage return which upsets mingw
12506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12509 esac
12510 case $ac_prog in
12511 # Accept absolute paths.
12512 [\\/]* | ?:[\\/]*)
12513 re_direlt='/[^/][^/]*/\.\./'
12514 # Canonicalize the pathname of ld
12515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12518 done
12519 test -z "$LD" && LD="$ac_prog"
12522 # If it fails, then pretend we aren't using GCC.
12523 ac_prog=ld
12526 # If it is relative, then search for the first ld in PATH.
12527 with_gnu_ld=unknown
12529 esac
12530 elif test "$with_gnu_ld" = yes; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12532 $as_echo_n "checking for GNU ld... " >&6; }
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12535 $as_echo_n "checking for non-GNU ld... " >&6; }
12537 if test "${lt_cv_path_LD+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -z "$LD"; then
12541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12542 for ac_dir in $PATH; do
12543 IFS="$lt_save_ifs"
12544 test -z "$ac_dir" && ac_dir=.
12545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12546 lt_cv_path_LD="$ac_dir/$ac_prog"
12547 # Check to see if the program is GNU ld. I'd rather use --version,
12548 # but apparently some variants of GNU ld only accept -v.
12549 # Break only if it was the GNU/non-GNU ld that we prefer.
12550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12551 *GNU* | *'with BFD'*)
12552 test "$with_gnu_ld" != no && break
12555 test "$with_gnu_ld" != yes && break
12557 esac
12559 done
12560 IFS="$lt_save_ifs"
12561 else
12562 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12566 LD="$lt_cv_path_LD"
12567 if test -n "$LD"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12569 $as_echo "$LD" >&6; }
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12574 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12576 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12577 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12581 case `$LD -v 2>&1 </dev/null` in
12582 *GNU* | *'with BFD'*)
12583 lt_cv_prog_gnu_ld=yes
12586 lt_cv_prog_gnu_ld=no
12588 esac
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12591 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12592 with_gnu_ld=$lt_cv_prog_gnu_ld
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12603 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12604 if test "${lt_cv_path_NM+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 if test -n "$NM"; then
12608 # Let the user override the test.
12609 lt_cv_path_NM="$NM"
12610 else
12611 lt_nm_to_check="${ac_tool_prefix}nm"
12612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12613 lt_nm_to_check="$lt_nm_to_check nm"
12615 for lt_tmp_nm in $lt_nm_to_check; do
12616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12618 IFS="$lt_save_ifs"
12619 test -z "$ac_dir" && ac_dir=.
12620 tmp_nm="$ac_dir/$lt_tmp_nm"
12621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12622 # Check to see if the nm accepts a BSD-compat flag.
12623 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12624 # nm: unknown option "B" ignored
12625 # Tru64's nm complains that /dev/null is an invalid object file
12626 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12627 */dev/null* | *'Invalid file or object type'*)
12628 lt_cv_path_NM="$tmp_nm -B"
12629 break
12632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12633 */dev/null*)
12634 lt_cv_path_NM="$tmp_nm -p"
12635 break
12638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12639 continue # so that we can try to find one that supports BSD flags
12641 esac
12643 esac
12645 done
12646 IFS="$lt_save_ifs"
12647 done
12648 : ${lt_cv_path_NM=no}
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12652 $as_echo "$lt_cv_path_NM" >&6; }
12653 if test "$lt_cv_path_NM" != "no"; then
12654 NM="$lt_cv_path_NM"
12655 else
12656 # Didn't find any BSD compatible name lister, look for dumpbin.
12657 if test -n "$DUMPBIN"; then :
12658 # Let the user override the test.
12659 else
12660 if test -n "$ac_tool_prefix"; then
12661 for ac_prog in dumpbin "link -dump"
12663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 if test -n "$DUMPBIN"; then
12671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12672 else
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12676 IFS=$as_save_IFS
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682 break 2
12684 done
12685 done
12686 IFS=$as_save_IFS
12690 DUMPBIN=$ac_cv_prog_DUMPBIN
12691 if test -n "$DUMPBIN"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12693 $as_echo "$DUMPBIN" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12700 test -n "$DUMPBIN" && break
12701 done
12703 if test -z "$DUMPBIN"; then
12704 ac_ct_DUMPBIN=$DUMPBIN
12705 for ac_prog in dumpbin "link -dump"
12707 # Extract the first word of "$ac_prog", so it can be a program name with args.
12708 set dummy $ac_prog; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 if test -n "$ac_ct_DUMPBIN"; then
12715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12716 else
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726 break 2
12728 done
12729 done
12730 IFS=$as_save_IFS
12734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12735 if test -n "$ac_ct_DUMPBIN"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12737 $as_echo "$ac_ct_DUMPBIN" >&6; }
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12744 test -n "$ac_ct_DUMPBIN" && break
12745 done
12747 if test "x$ac_ct_DUMPBIN" = x; then
12748 DUMPBIN=":"
12749 else
12750 case $cross_compiling:$ac_tool_warned in
12751 yes:)
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12754 ac_tool_warned=yes ;;
12755 esac
12756 DUMPBIN=$ac_ct_DUMPBIN
12760 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12761 *COFF*)
12762 DUMPBIN="$DUMPBIN -symbols"
12765 DUMPBIN=:
12767 esac
12770 if test "$DUMPBIN" != ":"; then
12771 NM="$DUMPBIN"
12774 test -z "$NM" && NM=nm
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12783 if test "${lt_cv_nm_interface+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 lt_cv_nm_interface="BSD nm"
12787 echo "int some_variable = 0;" > conftest.$ac_ext
12788 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12789 (eval "$ac_compile" 2>conftest.err)
12790 cat conftest.err >&5
12791 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12793 cat conftest.err >&5
12794 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12795 cat conftest.out >&5
12796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12797 lt_cv_nm_interface="MS dumpbin"
12799 rm -f conftest*
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12802 $as_echo "$lt_cv_nm_interface" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12805 $as_echo_n "checking whether ln -s works... " >&6; }
12806 LN_S=$as_ln_s
12807 if test "$LN_S" = "ln -s"; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12809 $as_echo "yes" >&6; }
12810 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12812 $as_echo "no, using $LN_S" >&6; }
12815 # find the maximum length of command line arguments
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12817 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12818 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12822 teststring="ABCD"
12824 case $build_os in
12825 msdosdjgpp*)
12826 # On DJGPP, this test can blow up pretty badly due to problems in libc
12827 # (any single argument exceeding 2000 bytes causes a buffer overrun
12828 # during glob expansion). Even if it were fixed, the result of this
12829 # check would be larger than it should be.
12830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12833 gnu*)
12834 # Under GNU Hurd, this test is not required because there is
12835 # no limit to the length of command line arguments.
12836 # Libtool will interpret -1 as no limit whatsoever
12837 lt_cv_sys_max_cmd_len=-1;
12840 cygwin* | mingw* | cegcc*)
12841 # On Win9x/ME, this test blows up -- it succeeds, but takes
12842 # about 5 minutes as the teststring grows exponentially.
12843 # Worse, since 9x/ME are not pre-emptively multitasking,
12844 # you end up with a "frozen" computer, even though with patience
12845 # the test eventually succeeds (with a max line length of 256k).
12846 # Instead, let's just punt: use the minimum linelength reported by
12847 # all of the supported platforms: 8192 (on NT/2K/XP).
12848 lt_cv_sys_max_cmd_len=8192;
12851 mint*)
12852 # On MiNT this can take a long time and run out of memory.
12853 lt_cv_sys_max_cmd_len=8192;
12856 amigaos*)
12857 # On AmigaOS with pdksh, this test takes hours, literally.
12858 # So we just punt and use a minimum line length of 8192.
12859 lt_cv_sys_max_cmd_len=8192;
12862 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12863 # This has been around since 386BSD, at least. Likely further.
12864 if test -x /sbin/sysctl; then
12865 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12866 elif test -x /usr/sbin/sysctl; then
12867 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12868 else
12869 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12871 # And add a safety zone
12872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12876 interix*)
12877 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12878 lt_cv_sys_max_cmd_len=196608
12881 osf*)
12882 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12883 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12884 # nice to cause kernel panics so lets avoid the loop below.
12885 # First set a reasonable default.
12886 lt_cv_sys_max_cmd_len=16384
12888 if test -x /sbin/sysconfig; then
12889 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12890 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12891 esac
12894 sco3.2v5*)
12895 lt_cv_sys_max_cmd_len=102400
12897 sysv5* | sco5v6* | sysv4.2uw2*)
12898 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12899 if test -n "$kargmax"; then
12900 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12901 else
12902 lt_cv_sys_max_cmd_len=32768
12906 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12907 if test -n "$lt_cv_sys_max_cmd_len"; then
12908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12910 else
12911 # Make teststring a little bigger before we do anything with it.
12912 # a 1K string should be a reasonable start.
12913 for i in 1 2 3 4 5 6 7 8 ; do
12914 teststring=$teststring$teststring
12915 done
12916 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12917 # If test is not a shell built-in, we'll probably end up computing a
12918 # maximum length that is only half of the actual maximum length, but
12919 # we can't tell.
12920 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12921 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12922 test $i != 17 # 1/2 MB should be enough
12924 i=`expr $i + 1`
12925 teststring=$teststring$teststring
12926 done
12927 # Only check the string length outside the loop.
12928 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12929 teststring=
12930 # Add a significant safety factor because C++ compilers can tack on
12931 # massive amounts of additional arguments before passing them to the
12932 # linker. It appears as though 1/2 is a usable value.
12933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12936 esac
12940 if test -n $lt_cv_sys_max_cmd_len ; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12942 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12945 $as_echo "none" >&6; }
12947 max_cmd_len=$lt_cv_sys_max_cmd_len
12954 : ${CP="cp -f"}
12955 : ${MV="mv -f"}
12956 : ${RM="rm -f"}
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12959 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12960 # Try some XSI features
12961 xsi_shell=no
12962 ( _lt_dummy="a/b/c"
12963 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12964 = c,a/b,, \
12965 && eval 'test $(( 1 + 1 )) -eq 2 \
12966 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12967 && xsi_shell=yes
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12969 $as_echo "$xsi_shell" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12973 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12974 lt_shell_append=no
12975 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12976 >/dev/null 2>&1 \
12977 && lt_shell_append=yes
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12979 $as_echo "$lt_shell_append" >&6; }
12982 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12983 lt_unset=unset
12984 else
12985 lt_unset=false
12992 # test EBCDIC or ASCII
12993 case `echo X|tr X '\101'` in
12994 A) # ASCII based system
12995 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12996 lt_SP2NL='tr \040 \012'
12997 lt_NL2SP='tr \015\012 \040\040'
12999 *) # EBCDIC based system
13000 lt_SP2NL='tr \100 \n'
13001 lt_NL2SP='tr \r\n \100\100'
13003 esac
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13014 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13015 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 lt_cv_ld_reload_flag='-r'
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13021 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13022 reload_flag=$lt_cv_ld_reload_flag
13023 case $reload_flag in
13024 "" | " "*) ;;
13025 *) reload_flag=" $reload_flag" ;;
13026 esac
13027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13028 case $host_os in
13029 darwin*)
13030 if test "$GCC" = yes; then
13031 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13032 else
13033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13036 esac
13046 if test -n "$ac_tool_prefix"; then
13047 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13048 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 if test -n "$OBJDUMP"; then
13055 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13068 done
13069 done
13070 IFS=$as_save_IFS
13074 OBJDUMP=$ac_cv_prog_OBJDUMP
13075 if test -n "$OBJDUMP"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13077 $as_echo "$OBJDUMP" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 if test -z "$ac_cv_prog_OBJDUMP"; then
13086 ac_ct_OBJDUMP=$OBJDUMP
13087 # Extract the first word of "objdump", so it can be a program name with args.
13088 set dummy objdump; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 if test -n "$ac_ct_OBJDUMP"; then
13095 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13108 done
13109 done
13110 IFS=$as_save_IFS
13114 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13115 if test -n "$ac_ct_OBJDUMP"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13117 $as_echo "$ac_ct_OBJDUMP" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13123 if test "x$ac_ct_OBJDUMP" = x; then
13124 OBJDUMP="false"
13125 else
13126 case $cross_compiling:$ac_tool_warned in
13127 yes:)
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130 ac_tool_warned=yes ;;
13131 esac
13132 OBJDUMP=$ac_ct_OBJDUMP
13134 else
13135 OBJDUMP="$ac_cv_prog_OBJDUMP"
13138 test -z "$OBJDUMP" && OBJDUMP=objdump
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13149 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13150 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 lt_cv_file_magic_cmd='$MAGIC_CMD'
13154 lt_cv_file_magic_test_file=
13155 lt_cv_deplibs_check_method='unknown'
13156 # Need to set the preceding variable on all platforms that support
13157 # interlibrary dependencies.
13158 # 'none' -- dependencies not supported.
13159 # `unknown' -- same as none, but documents that we really don't know.
13160 # 'pass_all' -- all dependencies passed with no checks.
13161 # 'test_compile' -- check by making test program.
13162 # 'file_magic [[regex]]' -- check by looking for files in library path
13163 # which responds to the $file_magic_cmd with a given extended regex.
13164 # If you have `file' or equivalent on your system and you're not sure
13165 # whether `pass_all' will *always* work, you probably want this one.
13167 case $host_os in
13168 aix[4-9]*)
13169 lt_cv_deplibs_check_method=pass_all
13172 beos*)
13173 lt_cv_deplibs_check_method=pass_all
13176 bsdi[45]*)
13177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13178 lt_cv_file_magic_cmd='/usr/bin/file -L'
13179 lt_cv_file_magic_test_file=/shlib/libc.so
13182 cygwin*)
13183 # func_win32_libid is a shell function defined in ltmain.sh
13184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13185 lt_cv_file_magic_cmd='func_win32_libid'
13188 mingw* | pw32*)
13189 # Base MSYS/MinGW do not provide the 'file' command needed by
13190 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13191 # unless we find 'file', for example because we are cross-compiling.
13192 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13193 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13195 lt_cv_file_magic_cmd='func_win32_libid'
13196 else
13197 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13198 lt_cv_file_magic_cmd='$OBJDUMP -f'
13202 cegcc*)
13203 # use the weaker test based on 'objdump'. See mingw*.
13204 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13205 lt_cv_file_magic_cmd='$OBJDUMP -f'
13208 darwin* | rhapsody*)
13209 lt_cv_deplibs_check_method=pass_all
13212 freebsd* | dragonfly*)
13213 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13214 case $host_cpu in
13215 i*86 )
13216 # Not sure whether the presence of OpenBSD here was a mistake.
13217 # Let's accept both of them until this is cleared up.
13218 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13219 lt_cv_file_magic_cmd=/usr/bin/file
13220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13222 esac
13223 else
13224 lt_cv_deplibs_check_method=pass_all
13228 gnu*)
13229 lt_cv_deplibs_check_method=pass_all
13232 haiku*)
13233 lt_cv_deplibs_check_method=pass_all
13236 hpux10.20* | hpux11*)
13237 lt_cv_file_magic_cmd=/usr/bin/file
13238 case $host_cpu in
13239 ia64*)
13240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13243 hppa*64*)
13244 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]'
13245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13251 esac
13254 interix[3-9]*)
13255 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13259 irix5* | irix6* | nonstopux*)
13260 case $LD in
13261 *-32|*"-32 ") libmagic=32-bit;;
13262 *-n32|*"-n32 ") libmagic=N32;;
13263 *-64|*"-64 ") libmagic=64-bit;;
13264 *) libmagic=never-match;;
13265 esac
13266 lt_cv_deplibs_check_method=pass_all
13269 # This must be Linux ELF.
13270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13271 lt_cv_deplibs_check_method=pass_all
13274 netbsd*)
13275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13277 else
13278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13282 newos6*)
13283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13284 lt_cv_file_magic_cmd=/usr/bin/file
13285 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13288 *nto* | *qnx*)
13289 lt_cv_deplibs_check_method=pass_all
13292 openbsd*)
13293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13295 else
13296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13300 osf3* | osf4* | osf5*)
13301 lt_cv_deplibs_check_method=pass_all
13304 rdos*)
13305 lt_cv_deplibs_check_method=pass_all
13308 solaris*)
13309 lt_cv_deplibs_check_method=pass_all
13312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13313 lt_cv_deplibs_check_method=pass_all
13316 sysv4 | sysv4.3*)
13317 case $host_vendor in
13318 motorola)
13319 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]'
13320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13322 ncr)
13323 lt_cv_deplibs_check_method=pass_all
13325 sequent)
13326 lt_cv_file_magic_cmd='/bin/file'
13327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13329 sni)
13330 lt_cv_file_magic_cmd='/bin/file'
13331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13332 lt_cv_file_magic_test_file=/lib/libc.so
13334 siemens)
13335 lt_cv_deplibs_check_method=pass_all
13338 lt_cv_deplibs_check_method=pass_all
13340 esac
13343 tpf*)
13344 lt_cv_deplibs_check_method=pass_all
13346 esac
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13350 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13351 file_magic_cmd=$lt_cv_file_magic_cmd
13352 deplibs_check_method=$lt_cv_deplibs_check_method
13353 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13366 if test -n "$ac_tool_prefix"; then
13367 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13368 set dummy ${ac_tool_prefix}ar; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370 $as_echo_n "checking for $ac_word... " >&6; }
13371 if test "${ac_cv_prog_AR+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 if test -n "$AR"; then
13375 ac_cv_prog_AR="$AR" # Let the user override the test.
13376 else
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384 ac_cv_prog_AR="${ac_tool_prefix}ar"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13388 done
13389 done
13390 IFS=$as_save_IFS
13394 AR=$ac_cv_prog_AR
13395 if test -n "$AR"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13397 $as_echo "$AR" >&6; }
13398 else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13405 if test -z "$ac_cv_prog_AR"; then
13406 ac_ct_AR=$AR
13407 # Extract the first word of "ar", so it can be a program name with args.
13408 set dummy ar; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$ac_ct_AR"; then
13415 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13424 ac_cv_prog_ac_ct_AR="ar"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13428 done
13429 done
13430 IFS=$as_save_IFS
13434 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13435 if test -n "$ac_ct_AR"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13437 $as_echo "$ac_ct_AR" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13443 if test "x$ac_ct_AR" = x; then
13444 AR="false"
13445 else
13446 case $cross_compiling:$ac_tool_warned in
13447 yes:)
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13450 ac_tool_warned=yes ;;
13451 esac
13452 AR=$ac_ct_AR
13454 else
13455 AR="$ac_cv_prog_AR"
13458 test -z "$AR" && AR=ar
13459 test -z "$AR_FLAGS" && AR_FLAGS=cru
13471 if test -n "$ac_tool_prefix"; then
13472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13473 set dummy ${ac_tool_prefix}strip; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if test "${ac_cv_prog_STRIP+set}" = set; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 if test -n "$STRIP"; then
13480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13481 else
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13493 done
13494 done
13495 IFS=$as_save_IFS
13499 STRIP=$ac_cv_prog_STRIP
13500 if test -n "$STRIP"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13502 $as_echo "$STRIP" >&6; }
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13510 if test -z "$ac_cv_prog_STRIP"; then
13511 ac_ct_STRIP=$STRIP
13512 # Extract the first word of "strip", so it can be a program name with args.
13513 set dummy strip; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 if test -n "$ac_ct_STRIP"; then
13520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13521 else
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13529 ac_cv_prog_ac_ct_STRIP="strip"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13533 done
13534 done
13535 IFS=$as_save_IFS
13539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13540 if test -n "$ac_ct_STRIP"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13542 $as_echo "$ac_ct_STRIP" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13548 if test "x$ac_ct_STRIP" = x; then
13549 STRIP=":"
13550 else
13551 case $cross_compiling:$ac_tool_warned in
13552 yes:)
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13555 ac_tool_warned=yes ;;
13556 esac
13557 STRIP=$ac_ct_STRIP
13559 else
13560 STRIP="$ac_cv_prog_STRIP"
13563 test -z "$STRIP" && STRIP=:
13570 if test -n "$ac_tool_prefix"; then
13571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574 $as_echo_n "checking for $ac_word... " >&6; }
13575 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 if test -n "$RANLIB"; then
13579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13580 else
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13584 IFS=$as_save_IFS
13585 test -z "$as_dir" && as_dir=.
13586 for ac_exec_ext in '' $ac_executable_extensions; do
13587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 break 2
13592 done
13593 done
13594 IFS=$as_save_IFS
13598 RANLIB=$ac_cv_prog_RANLIB
13599 if test -n "$RANLIB"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13601 $as_echo "$RANLIB" >&6; }
13602 else
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604 $as_echo "no" >&6; }
13609 if test -z "$ac_cv_prog_RANLIB"; then
13610 ac_ct_RANLIB=$RANLIB
13611 # Extract the first word of "ranlib", so it can be a program name with args.
13612 set dummy ranlib; ac_word=$2
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614 $as_echo_n "checking for $ac_word... " >&6; }
13615 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 if test -n "$ac_ct_RANLIB"; then
13619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13620 else
13621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622 for as_dir in $PATH
13624 IFS=$as_save_IFS
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13628 ac_cv_prog_ac_ct_RANLIB="ranlib"
13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630 break 2
13632 done
13633 done
13634 IFS=$as_save_IFS
13638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13639 if test -n "$ac_ct_RANLIB"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13641 $as_echo "$ac_ct_RANLIB" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13647 if test "x$ac_ct_RANLIB" = x; then
13648 RANLIB=":"
13649 else
13650 case $cross_compiling:$ac_tool_warned in
13651 yes:)
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13654 ac_tool_warned=yes ;;
13655 esac
13656 RANLIB=$ac_ct_RANLIB
13658 else
13659 RANLIB="$ac_cv_prog_RANLIB"
13662 test -z "$RANLIB" && RANLIB=:
13669 # Determine commands to create old-style static archives.
13670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13671 old_postinstall_cmds='chmod 644 $oldlib'
13672 old_postuninstall_cmds=
13674 if test -n "$RANLIB"; then
13675 case $host_os in
13676 openbsd*)
13677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13682 esac
13683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13686 case $host_os in
13687 darwin*)
13688 lock_old_archive_extraction=yes ;;
13690 lock_old_archive_extraction=no ;;
13691 esac
13731 # If no C compiler was specified, use CC.
13732 LTCC=${LTCC-"$CC"}
13734 # If no C compiler flags were specified, use CFLAGS.
13735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13737 # Allow CC to be a program name with arguments.
13738 compiler=$CC
13741 # Check for command to grab the raw symbol name followed by C symbol from nm.
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13744 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13748 # These are sane defaults that work on at least a few old systems.
13749 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13751 # Character class describing NM global symbol codes.
13752 symcode='[BCDEGRST]'
13754 # Regexp to match symbols that can be accessed directly from C.
13755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13757 # Define system-specific variables.
13758 case $host_os in
13759 aix*)
13760 symcode='[BCDT]'
13762 cygwin* | mingw* | pw32* | cegcc*)
13763 symcode='[ABCDGISTW]'
13765 hpux*)
13766 if test "$host_cpu" = ia64; then
13767 symcode='[ABCDEGRST]'
13770 irix* | nonstopux*)
13771 symcode='[BCDEGRST]'
13773 osf*)
13774 symcode='[BCDEGQRST]'
13776 solaris*)
13777 symcode='[BDRT]'
13779 sco3.2v5*)
13780 symcode='[DT]'
13782 sysv4.2uw2*)
13783 symcode='[DT]'
13785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13786 symcode='[ABDT]'
13788 sysv4)
13789 symcode='[DFNSTU]'
13791 esac
13793 # If we're using GNU nm, then use its standard symbol codes.
13794 case `$NM -V 2>&1` in
13795 *GNU* | *'with BFD'*)
13796 symcode='[ABCDGIRSTW]' ;;
13797 esac
13799 # Transform an extracted symbol line into a proper C declaration.
13800 # Some systems (esp. on ia64) link data and code symbols differently,
13801 # so use this general approach.
13802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13804 # Transform an extracted symbol line into symbol name and symbol address
13805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13806 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'"
13808 # Handle CRLF in mingw tool chain
13809 opt_cr=
13810 case $build_os in
13811 mingw*)
13812 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13814 esac
13816 # Try without a prefix underscore, then with it.
13817 for ac_symprfx in "" "_"; do
13819 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13820 symxfrm="\\1 $ac_symprfx\\2 \\2"
13822 # Write the raw and C identifiers.
13823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13824 # Fake it for dumpbin and say T for any non-static function
13825 # and D for any global variable.
13826 # Also find C++ and __fastcall symbols from MSVC++,
13827 # which start with @ or ?.
13828 lt_cv_sys_global_symbol_pipe="$AWK '"\
13829 " {last_section=section; section=\$ 3};"\
13830 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13831 " \$ 0!~/External *\|/{next};"\
13832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13833 " {if(hide[section]) next};"\
13834 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13835 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13836 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13837 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13838 " ' prfx=^$ac_symprfx"
13839 else
13840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13843 # Check to see that the pipe works correctly.
13844 pipe_works=no
13846 rm -f conftest*
13847 cat > conftest.$ac_ext <<_LT_EOF
13848 #ifdef __cplusplus
13849 extern "C" {
13850 #endif
13851 char nm_test_var;
13852 void nm_test_func(void);
13853 void nm_test_func(void){}
13854 #ifdef __cplusplus
13856 #endif
13857 int main(){nm_test_var='a';nm_test_func();return(0);}
13858 _LT_EOF
13860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13861 (eval $ac_compile) 2>&5
13862 ac_status=$?
13863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13864 test $ac_status = 0; }; then
13865 # Now try to grab the symbols.
13866 nlist=conftest.nm
13867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13868 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13869 ac_status=$?
13870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13871 test $ac_status = 0; } && test -s "$nlist"; then
13872 # Try sorting and uniquifying the output.
13873 if sort "$nlist" | uniq > "$nlist"T; then
13874 mv -f "$nlist"T "$nlist"
13875 else
13876 rm -f "$nlist"T
13879 # Make sure that we snagged all the symbols we need.
13880 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13881 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13882 cat <<_LT_EOF > conftest.$ac_ext
13883 #ifdef __cplusplus
13884 extern "C" {
13885 #endif
13887 _LT_EOF
13888 # Now generate the symbol file.
13889 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13891 cat <<_LT_EOF >> conftest.$ac_ext
13893 /* The mapping between symbol names and symbols. */
13894 const struct {
13895 const char *name;
13896 void *address;
13898 lt__PROGRAM__LTX_preloaded_symbols[] =
13900 { "@PROGRAM@", (void *) 0 },
13901 _LT_EOF
13902 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13903 cat <<\_LT_EOF >> conftest.$ac_ext
13904 {0, (void *) 0}
13907 /* This works around a problem in FreeBSD linker */
13908 #ifdef FREEBSD_WORKAROUND
13909 static const void *lt_preloaded_setup() {
13910 return lt__PROGRAM__LTX_preloaded_symbols;
13912 #endif
13914 #ifdef __cplusplus
13916 #endif
13917 _LT_EOF
13918 # Now try linking the two files.
13919 mv conftest.$ac_objext conftstm.$ac_objext
13920 lt_save_LIBS="$LIBS"
13921 lt_save_CFLAGS="$CFLAGS"
13922 LIBS="conftstm.$ac_objext"
13923 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13925 (eval $ac_link) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13929 pipe_works=yes
13931 LIBS="$lt_save_LIBS"
13932 CFLAGS="$lt_save_CFLAGS"
13933 else
13934 echo "cannot find nm_test_func in $nlist" >&5
13936 else
13937 echo "cannot find nm_test_var in $nlist" >&5
13939 else
13940 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13942 else
13943 echo "$progname: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13946 rm -rf conftest* conftst*
13948 # Do not use the global_symbol_pipe unless it works.
13949 if test "$pipe_works" = yes; then
13950 break
13951 else
13952 lt_cv_sys_global_symbol_pipe=
13954 done
13958 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13959 lt_cv_sys_global_symbol_to_cdecl=
13961 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13963 $as_echo "failed" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13966 $as_echo "ok" >&6; }
13990 # Check whether --enable-libtool-lock was given.
13991 if test "${enable_libtool_lock+set}" = set; then :
13992 enableval=$enable_libtool_lock;
13995 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13997 # Some flags need to be propagated to the compiler or linker for good
13998 # libtool support.
13999 case $host in
14000 ia64-*-hpux*)
14001 # Find out which ABI we are using.
14002 echo 'int i;' > conftest.$ac_ext
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004 (eval $ac_compile) 2>&5
14005 ac_status=$?
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; }; then
14008 case `/usr/bin/file conftest.$ac_objext` in
14009 *ELF-32*)
14010 HPUX_IA64_MODE="32"
14012 *ELF-64*)
14013 HPUX_IA64_MODE="64"
14015 esac
14017 rm -rf conftest*
14019 *-*-irix6*)
14020 # Find out which ABI we are using.
14021 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14023 (eval $ac_compile) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026 test $ac_status = 0; }; then
14027 if test "$lt_cv_prog_gnu_ld" = yes; then
14028 case `/usr/bin/file conftest.$ac_objext` in
14029 *32-bit*)
14030 LD="${LD-ld} -melf32bsmip"
14032 *N32*)
14033 LD="${LD-ld} -melf32bmipn32"
14035 *64-bit*)
14036 LD="${LD-ld} -melf64bmip"
14038 esac
14039 else
14040 case `/usr/bin/file conftest.$ac_objext` in
14041 *32-bit*)
14042 LD="${LD-ld} -32"
14044 *N32*)
14045 LD="${LD-ld} -n32"
14047 *64-bit*)
14048 LD="${LD-ld} -64"
14050 esac
14053 rm -rf conftest*
14056 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14057 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14058 # Find out which ABI we are using.
14059 echo 'int i;' > conftest.$ac_ext
14060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14061 (eval $ac_compile) 2>&5
14062 ac_status=$?
14063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14064 test $ac_status = 0; }; then
14065 case `/usr/bin/file conftest.o` in
14066 *32-bit*)
14067 case $host in
14068 x86_64-*kfreebsd*-gnu)
14069 LD="${LD-ld} -m elf_i386_fbsd"
14071 x86_64-*linux*)
14072 case `/usr/bin/file conftest.o` in
14073 *x86-64*)
14074 LD="${LD-ld} -m elf32_x86_64"
14077 LD="${LD-ld} -m elf_i386"
14079 esac
14081 powerpc64le-*linux*)
14082 LD="${LD-ld} -m elf32lppclinux"
14084 powerpc64-*linux*)
14085 LD="${LD-ld} -m elf32ppclinux"
14087 s390x-*linux*)
14088 LD="${LD-ld} -m elf_s390"
14090 sparc64-*linux*)
14091 LD="${LD-ld} -m elf32_sparc"
14093 esac
14095 *64-bit*)
14096 case $host in
14097 x86_64-*kfreebsd*-gnu)
14098 LD="${LD-ld} -m elf_x86_64_fbsd"
14100 x86_64-*linux*)
14101 LD="${LD-ld} -m elf_x86_64"
14103 powerpcle-*linux*)
14104 LD="${LD-ld} -m elf64lppc"
14106 powerpc-*linux*)
14107 LD="${LD-ld} -m elf64ppc"
14109 s390*-*linux*|s390*-*tpf*)
14110 LD="${LD-ld} -m elf64_s390"
14112 sparc*-*linux*)
14113 LD="${LD-ld} -m elf64_sparc"
14115 esac
14117 esac
14119 rm -rf conftest*
14122 *-*-sco3.2v5*)
14123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14124 SAVE_CFLAGS="$CFLAGS"
14125 CFLAGS="$CFLAGS -belf"
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14127 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14128 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 ac_ext=c
14132 ac_cpp='$CPP $CPPFLAGS'
14133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14141 main ()
14145 return 0;
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"; then :
14149 lt_cv_cc_needs_belf=yes
14150 else
14151 lt_cv_cc_needs_belf=no
14153 rm -f core conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext conftest.$ac_ext
14155 ac_ext=c
14156 ac_cpp='$CPP $CPPFLAGS'
14157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14163 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14164 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14165 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14166 CFLAGS="$SAVE_CFLAGS"
14169 sparc*-*solaris*)
14170 # Find out which ABI we are using.
14171 echo 'int i;' > conftest.$ac_ext
14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14173 (eval $ac_compile) 2>&5
14174 ac_status=$?
14175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14176 test $ac_status = 0; }; then
14177 case `/usr/bin/file conftest.o` in
14178 *64-bit*)
14179 case $lt_cv_prog_gnu_ld in
14180 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14182 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14183 LD="${LD-ld} -64"
14186 esac
14188 esac
14190 rm -rf conftest*
14192 esac
14194 need_locks="$enable_libtool_lock"
14197 case $host_os in
14198 rhapsody* | darwin*)
14199 if test -n "$ac_tool_prefix"; then
14200 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14201 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 if test -n "$DSYMUTIL"; then
14208 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14209 else
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14213 IFS=$as_save_IFS
14214 test -z "$as_dir" && as_dir=.
14215 for ac_exec_ext in '' $ac_executable_extensions; do
14216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14217 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219 break 2
14221 done
14222 done
14223 IFS=$as_save_IFS
14227 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14228 if test -n "$DSYMUTIL"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14230 $as_echo "$DSYMUTIL" >&6; }
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14238 if test -z "$ac_cv_prog_DSYMUTIL"; then
14239 ac_ct_DSYMUTIL=$DSYMUTIL
14240 # Extract the first word of "dsymutil", so it can be a program name with args.
14241 set dummy dsymutil; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$ac_ct_DSYMUTIL"; then
14248 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14261 done
14262 done
14263 IFS=$as_save_IFS
14267 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14268 if test -n "$ac_ct_DSYMUTIL"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14270 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14276 if test "x$ac_ct_DSYMUTIL" = x; then
14277 DSYMUTIL=":"
14278 else
14279 case $cross_compiling:$ac_tool_warned in
14280 yes:)
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14283 ac_tool_warned=yes ;;
14284 esac
14285 DSYMUTIL=$ac_ct_DSYMUTIL
14287 else
14288 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14291 if test -n "$ac_tool_prefix"; then
14292 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14293 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 $as_echo_n "checking for $ac_word... " >&6; }
14296 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 if test -n "$NMEDIT"; then
14300 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14301 else
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14305 IFS=$as_save_IFS
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14309 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 break 2
14313 done
14314 done
14315 IFS=$as_save_IFS
14319 NMEDIT=$ac_cv_prog_NMEDIT
14320 if test -n "$NMEDIT"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14322 $as_echo "$NMEDIT" >&6; }
14323 else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14330 if test -z "$ac_cv_prog_NMEDIT"; then
14331 ac_ct_NMEDIT=$NMEDIT
14332 # Extract the first word of "nmedit", so it can be a program name with args.
14333 set dummy nmedit; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$ac_ct_NMEDIT"; then
14340 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14353 done
14354 done
14355 IFS=$as_save_IFS
14359 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14360 if test -n "$ac_ct_NMEDIT"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14362 $as_echo "$ac_ct_NMEDIT" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14368 if test "x$ac_ct_NMEDIT" = x; then
14369 NMEDIT=":"
14370 else
14371 case $cross_compiling:$ac_tool_warned in
14372 yes:)
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375 ac_tool_warned=yes ;;
14376 esac
14377 NMEDIT=$ac_ct_NMEDIT
14379 else
14380 NMEDIT="$ac_cv_prog_NMEDIT"
14383 if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14385 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_LIPO+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$LIPO"; then
14392 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14405 done
14406 done
14407 IFS=$as_save_IFS
14411 LIPO=$ac_cv_prog_LIPO
14412 if test -n "$LIPO"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14414 $as_echo "$LIPO" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14422 if test -z "$ac_cv_prog_LIPO"; then
14423 ac_ct_LIPO=$LIPO
14424 # Extract the first word of "lipo", so it can be a program name with args.
14425 set dummy lipo; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$ac_ct_LIPO"; then
14432 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_ac_ct_LIPO="lipo"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14445 done
14446 done
14447 IFS=$as_save_IFS
14451 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14452 if test -n "$ac_ct_LIPO"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14454 $as_echo "$ac_ct_LIPO" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14460 if test "x$ac_ct_LIPO" = x; then
14461 LIPO=":"
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464 yes:)
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467 ac_tool_warned=yes ;;
14468 esac
14469 LIPO=$ac_ct_LIPO
14471 else
14472 LIPO="$ac_cv_prog_LIPO"
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14477 set dummy ${ac_tool_prefix}otool; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$OTOOL"; then
14484 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14497 done
14498 done
14499 IFS=$as_save_IFS
14503 OTOOL=$ac_cv_prog_OTOOL
14504 if test -n "$OTOOL"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14506 $as_echo "$OTOOL" >&6; }
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14514 if test -z "$ac_cv_prog_OTOOL"; then
14515 ac_ct_OTOOL=$OTOOL
14516 # Extract the first word of "otool", so it can be a program name with args.
14517 set dummy otool; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 $as_echo_n "checking for $ac_word... " >&6; }
14520 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 if test -n "$ac_ct_OTOOL"; then
14524 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14525 else
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_ac_ct_OTOOL="otool"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14537 done
14538 done
14539 IFS=$as_save_IFS
14543 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14544 if test -n "$ac_ct_OTOOL"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14546 $as_echo "$ac_ct_OTOOL" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14552 if test "x$ac_ct_OTOOL" = x; then
14553 OTOOL=":"
14554 else
14555 case $cross_compiling:$ac_tool_warned in
14556 yes:)
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14559 ac_tool_warned=yes ;;
14560 esac
14561 OTOOL=$ac_ct_OTOOL
14563 else
14564 OTOOL="$ac_cv_prog_OTOOL"
14567 if test -n "$ac_tool_prefix"; then
14568 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14569 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14571 $as_echo_n "checking for $ac_word... " >&6; }
14572 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 if test -n "$OTOOL64"; then
14576 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14577 else
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14589 done
14590 done
14591 IFS=$as_save_IFS
14595 OTOOL64=$ac_cv_prog_OTOOL64
14596 if test -n "$OTOOL64"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14598 $as_echo "$OTOOL64" >&6; }
14599 else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 $as_echo "no" >&6; }
14606 if test -z "$ac_cv_prog_OTOOL64"; then
14607 ac_ct_OTOOL64=$OTOOL64
14608 # Extract the first word of "otool64", so it can be a program name with args.
14609 set dummy otool64; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 $as_echo_n "checking for $ac_word... " >&6; }
14612 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 if test -n "$ac_ct_OTOOL64"; then
14616 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14617 else
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_ac_ct_OTOOL64="otool64"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14627 break 2
14629 done
14630 done
14631 IFS=$as_save_IFS
14635 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14636 if test -n "$ac_ct_OTOOL64"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14638 $as_echo "$ac_ct_OTOOL64" >&6; }
14639 else
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 $as_echo "no" >&6; }
14644 if test "x$ac_ct_OTOOL64" = x; then
14645 OTOOL64=":"
14646 else
14647 case $cross_compiling:$ac_tool_warned in
14648 yes:)
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14651 ac_tool_warned=yes ;;
14652 esac
14653 OTOOL64=$ac_ct_OTOOL64
14655 else
14656 OTOOL64="$ac_cv_prog_OTOOL64"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14686 $as_echo_n "checking for -single_module linker flag... " >&6; }
14687 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 lt_cv_apple_cc_single_mod=no
14691 if test -z "${LT_MULTI_MODULE}"; then
14692 # By default we will add the -single_module flag. You can override
14693 # by either setting the environment variable LT_MULTI_MODULE
14694 # non-empty at configure time, or by adding -multi_module to the
14695 # link flags.
14696 rm -rf libconftest.dylib*
14697 echo "int foo(void){return 1;}" > conftest.c
14698 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14699 -dynamiclib -Wl,-single_module conftest.c" >&5
14700 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14701 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14702 _lt_result=$?
14703 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14704 lt_cv_apple_cc_single_mod=yes
14705 else
14706 cat conftest.err >&5
14708 rm -rf libconftest.dylib*
14709 rm -f conftest.*
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14713 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14716 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 lt_cv_ld_exported_symbols_list=no
14720 save_LDFLAGS=$LDFLAGS
14721 echo "_main" > conftest.sym
14722 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14727 main ()
14731 return 0;
14733 _ACEOF
14734 if ac_fn_c_try_link "$LINENO"; then :
14735 lt_cv_ld_exported_symbols_list=yes
14736 else
14737 lt_cv_ld_exported_symbols_list=no
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LDFLAGS="$save_LDFLAGS"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14747 $as_echo_n "checking for -force_load linker flag... " >&6; }
14748 if test "${lt_cv_ld_force_load+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 lt_cv_ld_force_load=no
14752 cat > conftest.c << _LT_EOF
14753 int forced_loaded() { return 2;}
14754 _LT_EOF
14755 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14756 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14757 echo "$AR cru libconftest.a conftest.o" >&5
14758 $AR cru libconftest.a conftest.o 2>&5
14759 cat > conftest.c << _LT_EOF
14760 int main() { return 0;}
14761 _LT_EOF
14762 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14763 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14764 _lt_result=$?
14765 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14766 lt_cv_ld_force_load=yes
14767 else
14768 cat conftest.err >&5
14770 rm -f conftest.err libconftest.a conftest conftest.c
14771 rm -rf conftest.dSYM
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14775 $as_echo "$lt_cv_ld_force_load" >&6; }
14776 case $host_os in
14777 rhapsody* | darwin1.[012])
14778 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14779 darwin1.*)
14780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14781 darwin*) # darwin 5.x on
14782 # if running on 10.5 or later, the deployment target defaults
14783 # to the OS version, if on x86, and 10.4, the deployment
14784 # target defaults to 10.4. Don't you love it?
14785 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14786 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14787 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14788 10.[012][,.]*)
14789 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14790 10.*)
14791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14792 esac
14794 esac
14795 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14796 _lt_dar_single_mod='$single_module'
14798 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14799 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14800 else
14801 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14803 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14804 _lt_dsymutil='~$DSYMUTIL $lib || :'
14805 else
14806 _lt_dsymutil=
14809 esac
14812 for ac_header in dlfcn.h
14813 do :
14814 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14815 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_DLFCN_H 1
14818 _ACEOF
14821 done
14827 # Set options
14831 enable_dlopen=no
14834 enable_win32_dll=no
14837 # Check whether --enable-shared was given.
14838 if test "${enable_shared+set}" = set; then :
14839 enableval=$enable_shared; p=${PACKAGE-default}
14840 case $enableval in
14841 yes) enable_shared=yes ;;
14842 no) enable_shared=no ;;
14844 enable_shared=no
14845 # Look at the argument we got. We use all the common list separators.
14846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14847 for pkg in $enableval; do
14848 IFS="$lt_save_ifs"
14849 if test "X$pkg" = "X$p"; then
14850 enable_shared=yes
14852 done
14853 IFS="$lt_save_ifs"
14855 esac
14856 else
14857 enable_shared=yes
14868 # Check whether --enable-static was given.
14869 if test "${enable_static+set}" = set; then :
14870 enableval=$enable_static; p=${PACKAGE-default}
14871 case $enableval in
14872 yes) enable_static=yes ;;
14873 no) enable_static=no ;;
14875 enable_static=no
14876 # Look at the argument we got. We use all the common list separators.
14877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14878 for pkg in $enableval; do
14879 IFS="$lt_save_ifs"
14880 if test "X$pkg" = "X$p"; then
14881 enable_static=yes
14883 done
14884 IFS="$lt_save_ifs"
14886 esac
14887 else
14888 enable_static=yes
14900 # Check whether --with-pic was given.
14901 if test "${with_pic+set}" = set; then :
14902 withval=$with_pic; pic_mode="$withval"
14903 else
14904 pic_mode=default
14908 test -z "$pic_mode" && pic_mode=default
14916 # Check whether --enable-fast-install was given.
14917 if test "${enable_fast_install+set}" = set; then :
14918 enableval=$enable_fast_install; p=${PACKAGE-default}
14919 case $enableval in
14920 yes) enable_fast_install=yes ;;
14921 no) enable_fast_install=no ;;
14923 enable_fast_install=no
14924 # Look at the argument we got. We use all the common list separators.
14925 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14926 for pkg in $enableval; do
14927 IFS="$lt_save_ifs"
14928 if test "X$pkg" = "X$p"; then
14929 enable_fast_install=yes
14931 done
14932 IFS="$lt_save_ifs"
14934 esac
14935 else
14936 enable_fast_install=yes
14949 # This can be used to rebuild libtool when needed
14950 LIBTOOL_DEPS="$ltmain"
14952 # Always use our own libtool.
14953 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14980 test -z "$LN_S" && LN_S="ln -s"
14995 if test -n "${ZSH_VERSION+set}" ; then
14996 setopt NO_GLOB_SUBST
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15000 $as_echo_n "checking for objdir... " >&6; }
15001 if test "${lt_cv_objdir+set}" = set; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15004 rm -f .libs 2>/dev/null
15005 mkdir .libs 2>/dev/null
15006 if test -d .libs; then
15007 lt_cv_objdir=.libs
15008 else
15009 # MS-DOS does not allow filenames that begin with a dot.
15010 lt_cv_objdir=_libs
15012 rmdir .libs 2>/dev/null
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15015 $as_echo "$lt_cv_objdir" >&6; }
15016 objdir=$lt_cv_objdir
15022 cat >>confdefs.h <<_ACEOF
15023 #define LT_OBJDIR "$lt_cv_objdir/"
15024 _ACEOF
15029 case $host_os in
15030 aix3*)
15031 # AIX sometimes has problems with the GCC collect2 program. For some
15032 # reason, if we set the COLLECT_NAMES environment variable, the problems
15033 # vanish in a puff of smoke.
15034 if test "X${COLLECT_NAMES+set}" != Xset; then
15035 COLLECT_NAMES=
15036 export COLLECT_NAMES
15039 esac
15041 # Global variables:
15042 ofile=libtool
15043 can_build_shared=yes
15045 # All known linkers require a `.a' archive for static linking (except MSVC,
15046 # which needs '.lib').
15047 libext=a
15049 with_gnu_ld="$lt_cv_prog_gnu_ld"
15051 old_CC="$CC"
15052 old_CFLAGS="$CFLAGS"
15054 # Set sane defaults for various variables
15055 test -z "$CC" && CC=cc
15056 test -z "$LTCC" && LTCC=$CC
15057 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15058 test -z "$LD" && LD=ld
15059 test -z "$ac_objext" && ac_objext=o
15061 for cc_temp in $compiler""; do
15062 case $cc_temp in
15063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15065 \-*) ;;
15066 *) break;;
15067 esac
15068 done
15069 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15072 # Only perform the check for file, if the check method requires it
15073 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15074 case $deplibs_check_method in
15075 file_magic*)
15076 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15078 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15079 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 case $MAGIC_CMD in
15083 [\\/*] | ?:[\\/]*)
15084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15087 lt_save_MAGIC_CMD="$MAGIC_CMD"
15088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15090 for ac_dir in $ac_dummy; do
15091 IFS="$lt_save_ifs"
15092 test -z "$ac_dir" && ac_dir=.
15093 if test -f $ac_dir/${ac_tool_prefix}file; then
15094 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15095 if test -n "$file_magic_test_file"; then
15096 case $deplibs_check_method in
15097 "file_magic "*)
15098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15101 $EGREP "$file_magic_regex" > /dev/null; then
15103 else
15104 cat <<_LT_EOF 1>&2
15106 *** Warning: the command libtool uses to detect shared libraries,
15107 *** $file_magic_cmd, produces output that libtool cannot recognize.
15108 *** The result is that libtool may fail to recognize shared libraries
15109 *** as such. This will affect the creation of libtool libraries that
15110 *** depend on shared libraries, but programs linked with such libtool
15111 *** libraries will work regardless of this problem. Nevertheless, you
15112 *** may want to report the problem to your system manager and/or to
15113 *** bug-libtool@gnu.org
15115 _LT_EOF
15116 fi ;;
15117 esac
15119 break
15121 done
15122 IFS="$lt_save_ifs"
15123 MAGIC_CMD="$lt_save_MAGIC_CMD"
15125 esac
15128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15129 if test -n "$MAGIC_CMD"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15131 $as_echo "$MAGIC_CMD" >&6; }
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 $as_echo "no" >&6; }
15141 if test -z "$lt_cv_path_MAGIC_CMD"; then
15142 if test -n "$ac_tool_prefix"; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15144 $as_echo_n "checking for file... " >&6; }
15145 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 case $MAGIC_CMD in
15149 [\\/*] | ?:[\\/]*)
15150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15153 lt_save_MAGIC_CMD="$MAGIC_CMD"
15154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15156 for ac_dir in $ac_dummy; do
15157 IFS="$lt_save_ifs"
15158 test -z "$ac_dir" && ac_dir=.
15159 if test -f $ac_dir/file; then
15160 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15161 if test -n "$file_magic_test_file"; then
15162 case $deplibs_check_method in
15163 "file_magic "*)
15164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15167 $EGREP "$file_magic_regex" > /dev/null; then
15169 else
15170 cat <<_LT_EOF 1>&2
15172 *** Warning: the command libtool uses to detect shared libraries,
15173 *** $file_magic_cmd, produces output that libtool cannot recognize.
15174 *** The result is that libtool may fail to recognize shared libraries
15175 *** as such. This will affect the creation of libtool libraries that
15176 *** depend on shared libraries, but programs linked with such libtool
15177 *** libraries will work regardless of this problem. Nevertheless, you
15178 *** may want to report the problem to your system manager and/or to
15179 *** bug-libtool@gnu.org
15181 _LT_EOF
15182 fi ;;
15183 esac
15185 break
15187 done
15188 IFS="$lt_save_ifs"
15189 MAGIC_CMD="$lt_save_MAGIC_CMD"
15191 esac
15194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15195 if test -n "$MAGIC_CMD"; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15197 $as_echo "$MAGIC_CMD" >&6; }
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15204 else
15205 MAGIC_CMD=:
15211 esac
15213 # Use C for the default configuration in the libtool script
15215 lt_save_CC="$CC"
15216 ac_ext=c
15217 ac_cpp='$CPP $CPPFLAGS'
15218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15223 # Source file extension for C test sources.
15224 ac_ext=c
15226 # Object file extension for compiled C test sources.
15227 objext=o
15228 objext=$objext
15230 # Code to be used in simple compile tests
15231 lt_simple_compile_test_code="int some_variable = 0;"
15233 # Code to be used in simple link tests
15234 lt_simple_link_test_code='int main(){return(0);}'
15242 # If no C compiler was specified, use CC.
15243 LTCC=${LTCC-"$CC"}
15245 # If no C compiler flags were specified, use CFLAGS.
15246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15248 # Allow CC to be a program name with arguments.
15249 compiler=$CC
15251 # Save the default compiler, since it gets overwritten when the other
15252 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15253 compiler_DEFAULT=$CC
15255 # save warnings/boilerplate of simple test code
15256 ac_outfile=conftest.$ac_objext
15257 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15259 _lt_compiler_boilerplate=`cat conftest.err`
15260 $RM conftest*
15262 ac_outfile=conftest.$ac_objext
15263 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15264 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15265 _lt_linker_boilerplate=`cat conftest.err`
15266 $RM -r conftest*
15269 ## CAVEAT EMPTOR:
15270 ## There is no encapsulation within the following macros, do not change
15271 ## the running order or otherwise move them around unless you know exactly
15272 ## what you are doing...
15273 if test -n "$compiler"; then
15275 lt_prog_compiler_no_builtin_flag=
15277 if test "$GCC" = yes; then
15278 case $cc_basename in
15279 nvcc*)
15280 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15282 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15283 esac
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15286 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15287 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 lt_cv_prog_compiler_rtti_exceptions=no
15291 ac_outfile=conftest.$ac_objext
15292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15293 lt_compiler_flag="-fno-rtti -fno-exceptions"
15294 # Insert the option either (1) after the last *FLAGS variable, or
15295 # (2) before a word containing "conftest.", or (3) at the end.
15296 # Note that $ac_compile itself does not contain backslashes and begins
15297 # with a dollar sign (not a hyphen), so the echo should work correctly.
15298 # The option is referenced via a variable to avoid confusing sed.
15299 lt_compile=`echo "$ac_compile" | $SED \
15300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15302 -e 's:$: $lt_compiler_flag:'`
15303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15304 (eval "$lt_compile" 2>conftest.err)
15305 ac_status=$?
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 if (exit $ac_status) && test -s "$ac_outfile"; then
15309 # The compiler can only warn and ignore the option if not recognized
15310 # So say no if there are warnings other than the usual output.
15311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_rtti_exceptions=yes
15317 $RM conftest*
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15321 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15323 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15324 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15325 else
15336 lt_prog_compiler_wl=
15337 lt_prog_compiler_pic=
15338 lt_prog_compiler_static=
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15341 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15343 if test "$GCC" = yes; then
15344 lt_prog_compiler_wl='-Wl,'
15345 lt_prog_compiler_static='-static'
15347 case $host_os in
15348 aix*)
15349 # All AIX code is PIC.
15350 if test "$host_cpu" = ia64; then
15351 # AIX 5 now supports IA64 processor
15352 lt_prog_compiler_static='-Bstatic'
15354 lt_prog_compiler_pic='-fPIC'
15357 amigaos*)
15358 case $host_cpu in
15359 powerpc)
15360 # see comment about AmigaOS4 .so support
15361 lt_prog_compiler_pic='-fPIC'
15363 m68k)
15364 # FIXME: we need at least 68020 code to build shared libraries, but
15365 # adding the `-m68020' flag to GCC prevents building anything better,
15366 # like `-m68040'.
15367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15369 esac
15372 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15373 # PIC is the default for these OSes.
15376 mingw* | cygwin* | pw32* | os2* | cegcc*)
15377 # This hack is so that the source file can tell whether it is being
15378 # built for inclusion in a dll (and should export symbols for example).
15379 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15380 # (--disable-auto-import) libraries
15381 lt_prog_compiler_pic='-DDLL_EXPORT'
15384 darwin* | rhapsody*)
15385 # PIC is the default on this platform
15386 # Common symbols not allowed in MH_DYLIB files
15387 lt_prog_compiler_pic='-fno-common'
15390 haiku*)
15391 # PIC is the default for Haiku.
15392 # The "-static" flag exists, but is broken.
15393 lt_prog_compiler_static=
15396 hpux*)
15397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15399 # sets the default TLS model and affects inlining.
15400 case $host_cpu in
15401 hppa*64*)
15402 # +Z the default
15405 lt_prog_compiler_pic='-fPIC'
15407 esac
15410 interix[3-9]*)
15411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15412 # Instead, we relocate shared libraries at runtime.
15415 msdosdjgpp*)
15416 # Just because we use GCC doesn't mean we suddenly get shared libraries
15417 # on systems that don't support them.
15418 lt_prog_compiler_can_build_shared=no
15419 enable_shared=no
15422 *nto* | *qnx*)
15423 # QNX uses GNU C++, but need to define -shared option too, otherwise
15424 # it will coredump.
15425 lt_prog_compiler_pic='-fPIC -shared'
15428 sysv4*MP*)
15429 if test -d /usr/nec; then
15430 lt_prog_compiler_pic=-Kconform_pic
15435 lt_prog_compiler_pic='-fPIC'
15437 esac
15439 case $cc_basename in
15440 nvcc*) # Cuda Compiler Driver 2.2
15441 lt_prog_compiler_wl='-Xlinker '
15442 lt_prog_compiler_pic='-Xcompiler -fPIC'
15444 esac
15445 else
15446 # PORTME Check for flag to pass linker flags through the system compiler.
15447 case $host_os in
15448 aix*)
15449 lt_prog_compiler_wl='-Wl,'
15450 if test "$host_cpu" = ia64; then
15451 # AIX 5 now supports IA64 processor
15452 lt_prog_compiler_static='-Bstatic'
15453 else
15454 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15458 mingw* | cygwin* | pw32* | os2* | cegcc*)
15459 # This hack is so that the source file can tell whether it is being
15460 # built for inclusion in a dll (and should export symbols for example).
15461 lt_prog_compiler_pic='-DDLL_EXPORT'
15464 hpux9* | hpux10* | hpux11*)
15465 lt_prog_compiler_wl='-Wl,'
15466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15467 # not for PA HP-UX.
15468 case $host_cpu in
15469 hppa*64*|ia64*)
15470 # +Z the default
15473 lt_prog_compiler_pic='+Z'
15475 esac
15476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15477 lt_prog_compiler_static='${wl}-a ${wl}archive'
15480 irix5* | irix6* | nonstopux*)
15481 lt_prog_compiler_wl='-Wl,'
15482 # PIC (with -KPIC) is the default.
15483 lt_prog_compiler_static='-non_shared'
15486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15487 case $cc_basename in
15488 # old Intel for x86_64 which still supported -KPIC.
15489 ecc*)
15490 lt_prog_compiler_wl='-Wl,'
15491 lt_prog_compiler_pic='-KPIC'
15492 lt_prog_compiler_static='-static'
15494 # icc used to be incompatible with GCC.
15495 # ICC 10 doesn't accept -KPIC any more.
15496 icc* | ifort*)
15497 lt_prog_compiler_wl='-Wl,'
15498 lt_prog_compiler_pic='-fPIC'
15499 lt_prog_compiler_static='-static'
15501 # Lahey Fortran 8.1.
15502 lf95*)
15503 lt_prog_compiler_wl='-Wl,'
15504 lt_prog_compiler_pic='--shared'
15505 lt_prog_compiler_static='--static'
15507 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15508 # Portland Group compilers (*not* the Pentium gcc compiler,
15509 # which looks to be a dead project)
15510 lt_prog_compiler_wl='-Wl,'
15511 lt_prog_compiler_pic='-fpic'
15512 lt_prog_compiler_static='-Bstatic'
15514 ccc*)
15515 lt_prog_compiler_wl='-Wl,'
15516 # All Alpha code is PIC.
15517 lt_prog_compiler_static='-non_shared'
15519 xl* | bgxl* | bgf* | mpixl*)
15520 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_pic='-qpic'
15523 lt_prog_compiler_static='-qstaticlink'
15526 case `$CC -V 2>&1 | sed 5q` in
15527 *Sun\ F* | *Sun*Fortran*)
15528 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15529 lt_prog_compiler_pic='-KPIC'
15530 lt_prog_compiler_static='-Bstatic'
15531 lt_prog_compiler_wl=''
15533 *Sun\ C*)
15534 # Sun C 5.9
15535 lt_prog_compiler_pic='-KPIC'
15536 lt_prog_compiler_static='-Bstatic'
15537 lt_prog_compiler_wl='-Wl,'
15539 esac
15541 esac
15544 newsos6)
15545 lt_prog_compiler_pic='-KPIC'
15546 lt_prog_compiler_static='-Bstatic'
15549 *nto* | *qnx*)
15550 # QNX uses GNU C++, but need to define -shared option too, otherwise
15551 # it will coredump.
15552 lt_prog_compiler_pic='-fPIC -shared'
15555 osf3* | osf4* | osf5*)
15556 lt_prog_compiler_wl='-Wl,'
15557 # All OSF/1 code is PIC.
15558 lt_prog_compiler_static='-non_shared'
15561 rdos*)
15562 lt_prog_compiler_static='-non_shared'
15565 solaris*)
15566 lt_prog_compiler_pic='-KPIC'
15567 lt_prog_compiler_static='-Bstatic'
15568 case $cc_basename in
15569 f77* | f90* | f95*)
15570 lt_prog_compiler_wl='-Qoption ld ';;
15572 lt_prog_compiler_wl='-Wl,';;
15573 esac
15576 sunos4*)
15577 lt_prog_compiler_wl='-Qoption ld '
15578 lt_prog_compiler_pic='-PIC'
15579 lt_prog_compiler_static='-Bstatic'
15582 sysv4 | sysv4.2uw2* | sysv4.3*)
15583 lt_prog_compiler_wl='-Wl,'
15584 lt_prog_compiler_pic='-KPIC'
15585 lt_prog_compiler_static='-Bstatic'
15588 sysv4*MP*)
15589 if test -d /usr/nec ;then
15590 lt_prog_compiler_pic='-Kconform_pic'
15591 lt_prog_compiler_static='-Bstatic'
15595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15596 lt_prog_compiler_wl='-Wl,'
15597 lt_prog_compiler_pic='-KPIC'
15598 lt_prog_compiler_static='-Bstatic'
15601 unicos*)
15602 lt_prog_compiler_wl='-Wl,'
15603 lt_prog_compiler_can_build_shared=no
15606 uts4*)
15607 lt_prog_compiler_pic='-pic'
15608 lt_prog_compiler_static='-Bstatic'
15612 lt_prog_compiler_can_build_shared=no
15614 esac
15617 case $host_os in
15618 # For platforms which do not support PIC, -DPIC is meaningless:
15619 *djgpp*)
15620 lt_prog_compiler_pic=
15623 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15625 esac
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15627 $as_echo "$lt_prog_compiler_pic" >&6; }
15635 # Check to make sure the PIC flag actually works.
15637 if test -n "$lt_prog_compiler_pic"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15639 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15640 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 lt_cv_prog_compiler_pic_works=no
15644 ac_outfile=conftest.$ac_objext
15645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15646 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15647 # Insert the option either (1) after the last *FLAGS variable, or
15648 # (2) before a word containing "conftest.", or (3) at the end.
15649 # Note that $ac_compile itself does not contain backslashes and begins
15650 # with a dollar sign (not a hyphen), so the echo should work correctly.
15651 # The option is referenced via a variable to avoid confusing sed.
15652 lt_compile=`echo "$ac_compile" | $SED \
15653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15655 -e 's:$: $lt_compiler_flag:'`
15656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15657 (eval "$lt_compile" 2>conftest.err)
15658 ac_status=$?
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 if (exit $ac_status) && test -s "$ac_outfile"; then
15662 # The compiler can only warn and ignore the option if not recognized
15663 # So say no if there are warnings other than the usual output.
15664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15667 lt_cv_prog_compiler_pic_works=yes
15670 $RM conftest*
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15674 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15676 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15677 case $lt_prog_compiler_pic in
15678 "" | " "*) ;;
15679 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15680 esac
15681 else
15682 lt_prog_compiler_pic=
15683 lt_prog_compiler_can_build_shared=no
15694 # Check to make sure the static flag actually works.
15696 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15698 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15699 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15700 $as_echo_n "(cached) " >&6
15701 else
15702 lt_cv_prog_compiler_static_works=no
15703 save_LDFLAGS="$LDFLAGS"
15704 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15705 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15707 # The linker can only warn and ignore the option if not recognized
15708 # So say no if there are warnings
15709 if test -s conftest.err; then
15710 # Append any errors to the config.log.
15711 cat conftest.err 1>&5
15712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15714 if diff conftest.exp conftest.er2 >/dev/null; then
15715 lt_cv_prog_compiler_static_works=yes
15717 else
15718 lt_cv_prog_compiler_static_works=yes
15721 $RM -r conftest*
15722 LDFLAGS="$save_LDFLAGS"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15726 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15728 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15730 else
15731 lt_prog_compiler_static=
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15742 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 lt_cv_prog_compiler_c_o=no
15746 $RM -r conftest 2>/dev/null
15747 mkdir conftest
15748 cd conftest
15749 mkdir out
15750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752 lt_compiler_flag="-o out/conftest2.$ac_objext"
15753 # Insert the option either (1) after the last *FLAGS variable, or
15754 # (2) before a word containing "conftest.", or (3) at the end.
15755 # Note that $ac_compile itself does not contain backslashes and begins
15756 # with a dollar sign (not a hyphen), so the echo should work correctly.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>out/conftest.err)
15763 ac_status=$?
15764 cat out/conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15767 then
15768 # The compiler can only warn and ignore the option if not recognized
15769 # So say no if there are warnings
15770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15773 lt_cv_prog_compiler_c_o=yes
15776 chmod u+w . 2>&5
15777 $RM conftest*
15778 # SGI C++ compiler will create directory out/ii_files/ for
15779 # template instantiation
15780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15781 $RM out/* && rmdir out
15782 cd ..
15783 $RM -r conftest
15784 $RM conftest*
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15788 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15797 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15798 $as_echo_n "(cached) " >&6
15799 else
15800 lt_cv_prog_compiler_c_o=no
15801 $RM -r conftest 2>/dev/null
15802 mkdir conftest
15803 cd conftest
15804 mkdir out
15805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15807 lt_compiler_flag="-o out/conftest2.$ac_objext"
15808 # Insert the option either (1) after the last *FLAGS variable, or
15809 # (2) before a word containing "conftest.", or (3) at the end.
15810 # Note that $ac_compile itself does not contain backslashes and begins
15811 # with a dollar sign (not a hyphen), so the echo should work correctly.
15812 lt_compile=`echo "$ac_compile" | $SED \
15813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815 -e 's:$: $lt_compiler_flag:'`
15816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15817 (eval "$lt_compile" 2>out/conftest.err)
15818 ac_status=$?
15819 cat out/conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15822 then
15823 # The compiler can only warn and ignore the option if not recognized
15824 # So say no if there are warnings
15825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15828 lt_cv_prog_compiler_c_o=yes
15831 chmod u+w . 2>&5
15832 $RM conftest*
15833 # SGI C++ compiler will create directory out/ii_files/ for
15834 # template instantiation
15835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15836 $RM out/* && rmdir out
15837 cd ..
15838 $RM -r conftest
15839 $RM conftest*
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15848 hard_links="nottested"
15849 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15850 # do not overwrite the value of need_locks provided by the user
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15852 $as_echo_n "checking if we can lock with hard links... " >&6; }
15853 hard_links=yes
15854 $RM conftest*
15855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15856 touch conftest.a
15857 ln conftest.a conftest.b 2>&5 || hard_links=no
15858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15860 $as_echo "$hard_links" >&6; }
15861 if test "$hard_links" = no; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15863 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15864 need_locks=warn
15866 else
15867 need_locks=no
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15876 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15878 runpath_var=
15879 allow_undefined_flag=
15880 always_export_symbols=no
15881 archive_cmds=
15882 archive_expsym_cmds=
15883 compiler_needs_object=no
15884 enable_shared_with_static_runtimes=no
15885 export_dynamic_flag_spec=
15886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15887 hardcode_automatic=no
15888 hardcode_direct=no
15889 hardcode_direct_absolute=no
15890 hardcode_libdir_flag_spec=
15891 hardcode_libdir_flag_spec_ld=
15892 hardcode_libdir_separator=
15893 hardcode_minus_L=no
15894 hardcode_shlibpath_var=unsupported
15895 inherit_rpath=no
15896 link_all_deplibs=unknown
15897 module_cmds=
15898 module_expsym_cmds=
15899 old_archive_from_new_cmds=
15900 old_archive_from_expsyms_cmds=
15901 thread_safe_flag_spec=
15902 whole_archive_flag_spec=
15903 # include_expsyms should be a list of space-separated symbols to be *always*
15904 # included in the symbol list
15905 include_expsyms=
15906 # exclude_expsyms can be an extended regexp of symbols to exclude
15907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15909 # as well as any symbol that contains `d'.
15910 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15912 # platforms (ab)use it in PIC code, but their linkers get confused if
15913 # the symbol is explicitly referenced. Since portable code cannot
15914 # rely on this symbol name, it's probably fine to never include it in
15915 # preloaded symbol tables.
15916 # Exclude shared library initialization/finalization symbols.
15917 extract_expsyms_cmds=
15919 case $host_os in
15920 cygwin* | mingw* | pw32* | cegcc*)
15921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15922 # When not using gcc, we currently assume that we are using
15923 # Microsoft Visual C++.
15924 if test "$GCC" != yes; then
15925 with_gnu_ld=no
15928 interix*)
15929 # we just hope/assume this is gcc and not c89 (= MSVC++)
15930 with_gnu_ld=yes
15932 openbsd*)
15933 with_gnu_ld=no
15935 esac
15937 ld_shlibs=yes
15939 # On some targets, GNU ld is compatible enough with the native linker
15940 # that we're better off using the native interface for both.
15941 lt_use_gnu_ld_interface=no
15942 if test "$with_gnu_ld" = yes; then
15943 case $host_os in
15944 aix*)
15945 # The AIX port of GNU ld has always aspired to compatibility
15946 # with the native linker. However, as the warning in the GNU ld
15947 # block says, versions before 2.19.5* couldn't really create working
15948 # shared libraries, regardless of the interface used.
15949 case `$LD -v 2>&1` in
15950 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15951 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15952 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15954 lt_use_gnu_ld_interface=yes
15956 esac
15959 lt_use_gnu_ld_interface=yes
15961 esac
15964 if test "$lt_use_gnu_ld_interface" = yes; then
15965 # If archive_cmds runs LD, not CC, wlarc should be empty
15966 wlarc='${wl}'
15968 # Set some defaults for GNU ld with shared library support. These
15969 # are reset later if shared libraries are not supported. Putting them
15970 # here allows them to be overridden if necessary.
15971 runpath_var=LD_RUN_PATH
15972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973 export_dynamic_flag_spec='${wl}--export-dynamic'
15974 # ancient GNU ld didn't support --whole-archive et. al.
15975 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15976 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15977 else
15978 whole_archive_flag_spec=
15980 supports_anon_versioning=no
15981 case `$LD -v 2>&1` in
15982 *GNU\ gold*) supports_anon_versioning=yes ;;
15983 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15984 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15985 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15986 *\ 2.11.*) ;; # other 2.11 versions
15987 *) supports_anon_versioning=yes ;;
15988 esac
15990 # See if GNU ld supports shared libraries.
15991 case $host_os in
15992 aix[3-9]*)
15993 # On AIX/PPC, the GNU linker is very broken
15994 if test "$host_cpu" != ia64; then
15995 ld_shlibs=no
15996 cat <<_LT_EOF 1>&2
15998 *** Warning: the GNU linker, at least up to release 2.19, is reported
15999 *** to be unable to reliably create shared libraries on AIX.
16000 *** Therefore, libtool is disabling shared libraries support. If you
16001 *** really care for shared libraries, you may want to install binutils
16002 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16003 *** You will then need to restart the configuration process.
16005 _LT_EOF
16009 amigaos*)
16010 case $host_cpu in
16011 powerpc)
16012 # see comment about AmigaOS4 .so support
16013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16014 archive_expsym_cmds=''
16016 m68k)
16017 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)'
16018 hardcode_libdir_flag_spec='-L$libdir'
16019 hardcode_minus_L=yes
16021 esac
16024 beos*)
16025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16026 allow_undefined_flag=unsupported
16027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16028 # support --undefined. This deserves some investigation. FIXME
16029 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 else
16031 ld_shlibs=no
16035 cygwin* | mingw* | pw32* | cegcc*)
16036 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16037 # as there is no search path for DLLs.
16038 hardcode_libdir_flag_spec='-L$libdir'
16039 export_dynamic_flag_spec='${wl}--export-all-symbols'
16040 allow_undefined_flag=unsupported
16041 always_export_symbols=no
16042 enable_shared_with_static_runtimes=yes
16043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16045 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16047 # If the export-symbols file already is a .def file (1st line
16048 # is EXPORTS), use it as is; otherwise, prepend...
16049 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16050 cp $export_symbols $output_objdir/$soname.def;
16051 else
16052 echo EXPORTS > $output_objdir/$soname.def;
16053 cat $export_symbols >> $output_objdir/$soname.def;
16055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16056 else
16057 ld_shlibs=no
16061 haiku*)
16062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16063 link_all_deplibs=yes
16066 interix[3-9]*)
16067 hardcode_direct=no
16068 hardcode_shlibpath_var=no
16069 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16070 export_dynamic_flag_spec='${wl}-E'
16071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16072 # Instead, shared libraries are loaded at an image base (0x10000000 by
16073 # default) and relocated if they conflict, which is a slow very memory
16074 # consuming and fragmenting process. To avoid this, we pick a random,
16075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16077 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16078 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'
16081 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16082 tmp_diet=no
16083 if test "$host_os" = linux-dietlibc; then
16084 case $cc_basename in
16085 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16086 esac
16088 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16089 && test "$tmp_diet" = no
16090 then
16091 tmp_addflag=' $pic_flag'
16092 tmp_sharedflag='-shared'
16093 case $cc_basename,$host_cpu in
16094 pgcc*) # Portland Group C compiler
16095 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'
16096 tmp_addflag=' $pic_flag'
16098 pgf77* | pgf90* | pgf95* | pgfortran*)
16099 # Portland Group f77 and f90 compilers
16100 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'
16101 tmp_addflag=' $pic_flag -Mnomain' ;;
16102 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16103 tmp_addflag=' -i_dynamic' ;;
16104 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16105 tmp_addflag=' -i_dynamic -nofor_main' ;;
16106 ifc* | ifort*) # Intel Fortran compiler
16107 tmp_addflag=' -nofor_main' ;;
16108 lf95*) # Lahey Fortran 8.1
16109 whole_archive_flag_spec=
16110 tmp_sharedflag='--shared' ;;
16111 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16112 tmp_sharedflag='-qmkshrobj'
16113 tmp_addflag= ;;
16114 nvcc*) # Cuda Compiler Driver 2.2
16115 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'
16116 compiler_needs_object=yes
16118 esac
16119 case `$CC -V 2>&1 | sed 5q` in
16120 *Sun\ C*) # Sun C 5.9
16121 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'
16122 compiler_needs_object=yes
16123 tmp_sharedflag='-G' ;;
16124 *Sun\ F*) # Sun Fortran 8.3
16125 tmp_sharedflag='-G' ;;
16126 esac
16127 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 if test "x$supports_anon_versioning" = xyes; then
16130 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16132 echo "local: *; };" >> $output_objdir/$libname.ver~
16133 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16136 case $cc_basename in
16137 xlf* | bgf* | bgxlf* | mpixlf*)
16138 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16139 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16140 hardcode_libdir_flag_spec=
16141 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16142 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16143 if test "x$supports_anon_versioning" = xyes; then
16144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16146 echo "local: *; };" >> $output_objdir/$libname.ver~
16147 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16150 esac
16151 else
16152 ld_shlibs=no
16156 netbsd*)
16157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16159 wlarc=
16160 else
16161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16166 solaris*)
16167 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16168 ld_shlibs=no
16169 cat <<_LT_EOF 1>&2
16171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16172 *** create shared libraries on Solaris systems. Therefore, libtool
16173 *** is disabling shared libraries support. We urge you to upgrade GNU
16174 *** binutils to release 2.9.1 or newer. Another option is to modify
16175 *** your PATH or compiler configuration so that the native linker is
16176 *** used, and then restart.
16178 _LT_EOF
16179 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16182 else
16183 ld_shlibs=no
16187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16188 case `$LD -v 2>&1` in
16189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16190 ld_shlibs=no
16191 cat <<_LT_EOF 1>&2
16193 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16194 *** reliably create shared libraries on SCO systems. Therefore, libtool
16195 *** is disabling shared libraries support. We urge you to upgrade GNU
16196 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16197 *** your PATH or compiler configuration so that the native linker is
16198 *** used, and then restart.
16200 _LT_EOF
16203 # For security reasons, it is highly recommended that you always
16204 # use absolute paths for naming shared libraries, and exclude the
16205 # DT_RUNPATH tag from executables and libraries. But doing so
16206 # requires that you compile everything twice, which is a pain.
16207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16211 else
16212 ld_shlibs=no
16215 esac
16218 sunos4*)
16219 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16220 wlarc=
16221 hardcode_direct=yes
16222 hardcode_shlibpath_var=no
16226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16229 else
16230 ld_shlibs=no
16233 esac
16235 if test "$ld_shlibs" = no; then
16236 runpath_var=
16237 hardcode_libdir_flag_spec=
16238 export_dynamic_flag_spec=
16239 whole_archive_flag_spec=
16241 else
16242 # PORTME fill in a description of your system's linker (not GNU ld)
16243 case $host_os in
16244 aix3*)
16245 allow_undefined_flag=unsupported
16246 always_export_symbols=yes
16247 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'
16248 # Note: this linker hardcodes the directories in LIBPATH if there
16249 # are no directories specified by -L.
16250 hardcode_minus_L=yes
16251 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16252 # Neither direct hardcoding nor static linking is supported with a
16253 # broken collect2.
16254 hardcode_direct=unsupported
16258 aix[4-9]*)
16259 if test "$host_cpu" = ia64; then
16260 # On IA64, the linker does run time linking by default, so we don't
16261 # have to do anything special.
16262 aix_use_runtimelinking=no
16263 exp_sym_flag='-Bexport'
16264 no_entry_flag=""
16265 else
16266 # If we're using GNU nm, then we don't want the "-C" option.
16267 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16268 # Also, AIX nm treats weak defined symbols like other global
16269 # defined symbols, whereas GNU nm marks them as "W".
16270 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16271 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'
16272 else
16273 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'
16275 aix_use_runtimelinking=no
16277 # Test if we are trying to use run time linking or normal
16278 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16279 # need to do runtime linking.
16280 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16281 for ld_flag in $LDFLAGS; do
16282 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16283 aix_use_runtimelinking=yes
16284 break
16286 done
16288 esac
16290 exp_sym_flag='-bexport'
16291 no_entry_flag='-bnoentry'
16294 # When large executables or shared objects are built, AIX ld can
16295 # have problems creating the table of contents. If linking a library
16296 # or program results in "error TOC overflow" add -mminimal-toc to
16297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16300 archive_cmds=''
16301 hardcode_direct=yes
16302 hardcode_direct_absolute=yes
16303 hardcode_libdir_separator=':'
16304 link_all_deplibs=yes
16305 file_list_spec='${wl}-f,'
16307 if test "$GCC" = yes; then
16308 case $host_os in aix4.[012]|aix4.[012].*)
16309 # We only want to do this on AIX 4.2 and lower, the check
16310 # below for broken collect2 doesn't work under 4.3+
16311 collect2name=`${CC} -print-prog-name=collect2`
16312 if test -f "$collect2name" &&
16313 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16314 then
16315 # We have reworked collect2
16317 else
16318 # We have old collect2
16319 hardcode_direct=unsupported
16320 # It fails to find uninstalled libraries when the uninstalled
16321 # path is not listed in the libpath. Setting hardcode_minus_L
16322 # to unsupported forces relinking
16323 hardcode_minus_L=yes
16324 hardcode_libdir_flag_spec='-L$libdir'
16325 hardcode_libdir_separator=
16328 esac
16329 shared_flag='-shared'
16330 if test "$aix_use_runtimelinking" = yes; then
16331 shared_flag="$shared_flag "'${wl}-G'
16333 else
16334 # not using gcc
16335 if test "$host_cpu" = ia64; then
16336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16337 # chokes on -Wl,-G. The following line is correct:
16338 shared_flag='-G'
16339 else
16340 if test "$aix_use_runtimelinking" = yes; then
16341 shared_flag='${wl}-G'
16342 else
16343 shared_flag='${wl}-bM:SRE'
16348 export_dynamic_flag_spec='${wl}-bexpall'
16349 # It seems that -bexpall does not export symbols beginning with
16350 # underscore (_), so it is better to generate a list of symbols to export.
16351 always_export_symbols=yes
16352 if test "$aix_use_runtimelinking" = yes; then
16353 # Warning - without using the other runtime loading flags (-brtl),
16354 # -berok will link without error, but may produce a broken library.
16355 allow_undefined_flag='-berok'
16356 # Determine the default libpath from the value encoded in an
16357 # empty executable.
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16362 main ()
16366 return 0;
16368 _ACEOF
16369 if ac_fn_c_try_link "$LINENO"; then :
16371 lt_aix_libpath_sed='
16372 /Import File Strings/,/^$/ {
16373 /^0/ {
16374 s/^0 *\(.*\)$/\1/
16378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379 # Check for a 64-bit object if we didn't find anything.
16380 if test -z "$aix_libpath"; then
16381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16384 rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16389 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"
16390 else
16391 if test "$host_cpu" = ia64; then
16392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16393 allow_undefined_flag="-z nodefs"
16394 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"
16395 else
16396 # Determine the default libpath from the value encoded in an
16397 # empty executable.
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16402 main ()
16406 return 0;
16408 _ACEOF
16409 if ac_fn_c_try_link "$LINENO"; then :
16411 lt_aix_libpath_sed='
16412 /Import File Strings/,/^$/ {
16413 /^0/ {
16414 s/^0 *\(.*\)$/\1/
16418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16419 # Check for a 64-bit object if we didn't find anything.
16420 if test -z "$aix_libpath"; then
16421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16429 # Warning - without using the other run time loading flags,
16430 # -berok will link without error, but may produce a broken library.
16431 no_undefined_flag=' ${wl}-bernotok'
16432 allow_undefined_flag=' ${wl}-berok'
16433 if test "$with_gnu_ld" = yes; then
16434 # We only use this code for GNU lds that support --whole-archive.
16435 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16436 else
16437 # Exported symbols can be pulled into shared objects from archives
16438 whole_archive_flag_spec='$convenience'
16440 archive_cmds_need_lc=yes
16441 # This is similar to how AIX traditionally builds its shared libraries.
16442 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'
16447 amigaos*)
16448 case $host_cpu in
16449 powerpc)
16450 # see comment about AmigaOS4 .so support
16451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452 archive_expsym_cmds=''
16454 m68k)
16455 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)'
16456 hardcode_libdir_flag_spec='-L$libdir'
16457 hardcode_minus_L=yes
16459 esac
16462 bsdi[45]*)
16463 export_dynamic_flag_spec=-rdynamic
16466 cygwin* | mingw* | pw32* | cegcc*)
16467 # When not using gcc, we currently assume that we are using
16468 # Microsoft Visual C++.
16469 # hardcode_libdir_flag_spec is actually meaningless, as there is
16470 # no search path for DLLs.
16471 hardcode_libdir_flag_spec=' '
16472 allow_undefined_flag=unsupported
16473 # Tell ltmain to make .lib files, not .a files.
16474 libext=lib
16475 # Tell ltmain to make .dll files, not .so files.
16476 shrext_cmds=".dll"
16477 # FIXME: Setting linknames here is a bad hack.
16478 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16479 # The linker will automatically build a .lib file if we build a DLL.
16480 old_archive_from_new_cmds='true'
16481 # FIXME: Should let the user specify the lib program.
16482 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16483 fix_srcfile_path='`cygpath -w "$srcfile"`'
16484 enable_shared_with_static_runtimes=yes
16487 darwin* | rhapsody*)
16490 archive_cmds_need_lc=no
16491 hardcode_direct=no
16492 hardcode_automatic=yes
16493 hardcode_shlibpath_var=unsupported
16494 if test "$lt_cv_ld_force_load" = "yes"; then
16495 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\"`'
16496 else
16497 whole_archive_flag_spec=''
16499 link_all_deplibs=yes
16500 allow_undefined_flag="$_lt_dar_allow_undefined"
16501 case $cc_basename in
16502 ifort*) _lt_dar_can_shared=yes ;;
16503 *) _lt_dar_can_shared=$GCC ;;
16504 esac
16505 if test "$_lt_dar_can_shared" = "yes"; then
16506 output_verbose_link_cmd=func_echo_all
16507 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16508 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16509 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}"
16510 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}"
16512 else
16513 ld_shlibs=no
16518 dgux*)
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_libdir_flag_spec='-L$libdir'
16521 hardcode_shlibpath_var=no
16524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16525 # support. Future versions do this automatically, but an explicit c++rt0.o
16526 # does not break anything, and helps significantly (at the cost of a little
16527 # extra space).
16528 freebsd2.2*)
16529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16530 hardcode_libdir_flag_spec='-R$libdir'
16531 hardcode_direct=yes
16532 hardcode_shlibpath_var=no
16535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16536 freebsd2.*)
16537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16538 hardcode_direct=yes
16539 hardcode_minus_L=yes
16540 hardcode_shlibpath_var=no
16543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16544 freebsd* | dragonfly*)
16545 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16546 hardcode_libdir_flag_spec='-R$libdir'
16547 hardcode_direct=yes
16548 hardcode_shlibpath_var=no
16551 hpux9*)
16552 if test "$GCC" = yes; then
16553 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'
16554 else
16555 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'
16557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16558 hardcode_libdir_separator=:
16559 hardcode_direct=yes
16561 # hardcode_minus_L: Not really in the search PATH,
16562 # but as the default location of the library.
16563 hardcode_minus_L=yes
16564 export_dynamic_flag_spec='${wl}-E'
16567 hpux10*)
16568 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16570 else
16571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16573 if test "$with_gnu_ld" = no; then
16574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16575 hardcode_libdir_flag_spec_ld='+b $libdir'
16576 hardcode_libdir_separator=:
16577 hardcode_direct=yes
16578 hardcode_direct_absolute=yes
16579 export_dynamic_flag_spec='${wl}-E'
16580 # hardcode_minus_L: Not really in the search PATH,
16581 # but as the default location of the library.
16582 hardcode_minus_L=yes
16586 hpux11*)
16587 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16588 case $host_cpu in
16589 hppa*64*)
16590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 ia64*)
16593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16598 esac
16599 else
16600 case $host_cpu in
16601 hppa*64*)
16602 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 ia64*)
16605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16609 # Older versions of the 11.00 compiler do not understand -b yet
16610 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16612 $as_echo_n "checking if $CC understands -b... " >&6; }
16613 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16614 $as_echo_n "(cached) " >&6
16615 else
16616 lt_cv_prog_compiler__b=no
16617 save_LDFLAGS="$LDFLAGS"
16618 LDFLAGS="$LDFLAGS -b"
16619 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16621 # The linker can only warn and ignore the option if not recognized
16622 # So say no if there are warnings
16623 if test -s conftest.err; then
16624 # Append any errors to the config.log.
16625 cat conftest.err 1>&5
16626 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16628 if diff conftest.exp conftest.er2 >/dev/null; then
16629 lt_cv_prog_compiler__b=yes
16631 else
16632 lt_cv_prog_compiler__b=yes
16635 $RM -r conftest*
16636 LDFLAGS="$save_LDFLAGS"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16640 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16642 if test x"$lt_cv_prog_compiler__b" = xyes; then
16643 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16644 else
16645 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16649 esac
16651 if test "$with_gnu_ld" = no; then
16652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16653 hardcode_libdir_separator=:
16655 case $host_cpu in
16656 hppa*64*|ia64*)
16657 hardcode_direct=no
16658 hardcode_shlibpath_var=no
16661 hardcode_direct=yes
16662 hardcode_direct_absolute=yes
16663 export_dynamic_flag_spec='${wl}-E'
16665 # hardcode_minus_L: Not really in the search PATH,
16666 # but as the default location of the library.
16667 hardcode_minus_L=yes
16669 esac
16673 irix5* | irix6* | nonstopux*)
16674 if test "$GCC" = yes; then
16675 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'
16676 # Try to use the -exported_symbol ld option, if it does not
16677 # work, assume that -exports_file does not work either and
16678 # implicitly export all symbols.
16679 save_LDFLAGS="$LDFLAGS"
16680 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 int foo(void) {}
16684 _ACEOF
16685 if ac_fn_c_try_link "$LINENO"; then :
16686 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'
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 LDFLAGS="$save_LDFLAGS"
16692 else
16693 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'
16694 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'
16696 archive_cmds_need_lc='no'
16697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16698 hardcode_libdir_separator=:
16699 inherit_rpath=yes
16700 link_all_deplibs=yes
16703 netbsd*)
16704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16706 else
16707 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16709 hardcode_libdir_flag_spec='-R$libdir'
16710 hardcode_direct=yes
16711 hardcode_shlibpath_var=no
16714 newsos6)
16715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct=yes
16717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16718 hardcode_libdir_separator=:
16719 hardcode_shlibpath_var=no
16722 *nto* | *qnx*)
16725 openbsd*)
16726 if test -f /usr/libexec/ld.so; then
16727 hardcode_direct=yes
16728 hardcode_shlibpath_var=no
16729 hardcode_direct_absolute=yes
16730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16734 export_dynamic_flag_spec='${wl}-E'
16735 else
16736 case $host_os in
16737 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_libdir_flag_spec='-R$libdir'
16742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16745 esac
16747 else
16748 ld_shlibs=no
16752 os2*)
16753 hardcode_libdir_flag_spec='-L$libdir'
16754 hardcode_minus_L=yes
16755 allow_undefined_flag=unsupported
16756 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'
16757 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16760 osf3*)
16761 if test "$GCC" = yes; then
16762 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16763 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'
16764 else
16765 allow_undefined_flag=' -expect_unresolved \*'
16766 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'
16768 archive_cmds_need_lc='no'
16769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16770 hardcode_libdir_separator=:
16773 osf4* | osf5*) # as osf3* with the addition of -msym flag
16774 if test "$GCC" = yes; then
16775 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16776 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'
16777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16778 else
16779 allow_undefined_flag=' -expect_unresolved \*'
16780 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'
16781 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~
16782 $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'
16784 # Both c and cxx compiler support -rpath directly
16785 hardcode_libdir_flag_spec='-rpath $libdir'
16787 archive_cmds_need_lc='no'
16788 hardcode_libdir_separator=:
16791 solaris*)
16792 no_undefined_flag=' -z defs'
16793 if test "$GCC" = yes; then
16794 wlarc='${wl}'
16795 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16797 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16798 else
16799 case `$CC -V 2>&1` in
16800 *"Compilers 5.0"*)
16801 wlarc=''
16802 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16803 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16804 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16807 wlarc='${wl}'
16808 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16810 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16812 esac
16814 hardcode_libdir_flag_spec='-R$libdir'
16815 hardcode_shlibpath_var=no
16816 case $host_os in
16817 solaris2.[0-5] | solaris2.[0-5].*) ;;
16819 # The compiler driver will combine and reorder linker options,
16820 # but understands `-z linker_flag'. GCC discards it without `$wl',
16821 # but is careful enough not to reorder.
16822 # Supported since Solaris 2.6 (maybe 2.5.1?)
16823 if test "$GCC" = yes; then
16824 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16825 else
16826 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16829 esac
16830 link_all_deplibs=yes
16833 sunos4*)
16834 if test "x$host_vendor" = xsequent; then
16835 # Use $CC to link under sequent, because it throws in some extra .o
16836 # files that make .init and .fini sections work.
16837 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16838 else
16839 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_libdir_flag_spec='-L$libdir'
16842 hardcode_direct=yes
16843 hardcode_minus_L=yes
16844 hardcode_shlibpath_var=no
16847 sysv4)
16848 case $host_vendor in
16849 sni)
16850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851 hardcode_direct=yes # is this really true???
16853 siemens)
16854 ## LD is ld it makes a PLAMLIB
16855 ## CC just makes a GrossModule.
16856 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16857 reload_cmds='$CC -r -o $output$reload_objs'
16858 hardcode_direct=no
16860 motorola)
16861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16862 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16864 esac
16865 runpath_var='LD_RUN_PATH'
16866 hardcode_shlibpath_var=no
16869 sysv4.3*)
16870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_shlibpath_var=no
16872 export_dynamic_flag_spec='-Bexport'
16875 sysv4*MP*)
16876 if test -d /usr/nec; then
16877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878 hardcode_shlibpath_var=no
16879 runpath_var=LD_RUN_PATH
16880 hardcode_runpath_var=yes
16881 ld_shlibs=yes
16885 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16886 no_undefined_flag='${wl}-z,text'
16887 archive_cmds_need_lc=no
16888 hardcode_shlibpath_var=no
16889 runpath_var='LD_RUN_PATH'
16891 if test "$GCC" = yes; then
16892 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16893 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16894 else
16895 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 sysv5* | sco3.2v5* | sco5v6*)
16901 # Note: We can NOT use -z defs as we might desire, because we do not
16902 # link with -lc, and that would cause any symbols used from libc to
16903 # always be unresolved, which means just about no library would
16904 # ever link correctly. If we're not using GNU ld we use -z text
16905 # though, which does catch some bad symbols but isn't as heavy-handed
16906 # as -z defs.
16907 no_undefined_flag='${wl}-z,text'
16908 allow_undefined_flag='${wl}-z,nodefs'
16909 archive_cmds_need_lc=no
16910 hardcode_shlibpath_var=no
16911 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16912 hardcode_libdir_separator=':'
16913 link_all_deplibs=yes
16914 export_dynamic_flag_spec='${wl}-Bexport'
16915 runpath_var='LD_RUN_PATH'
16917 if test "$GCC" = yes; then
16918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16920 else
16921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 uts4*)
16927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928 hardcode_libdir_flag_spec='-L$libdir'
16929 hardcode_shlibpath_var=no
16933 ld_shlibs=no
16935 esac
16937 if test x$host_vendor = xsni; then
16938 case $host in
16939 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16940 export_dynamic_flag_spec='${wl}-Blargedynsym'
16942 esac
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16947 $as_echo "$ld_shlibs" >&6; }
16948 test "$ld_shlibs" = no && can_build_shared=no
16950 with_gnu_ld=$with_gnu_ld
16967 # Do we need to explicitly link libc?
16969 case "x$archive_cmds_need_lc" in
16970 x|xyes)
16971 # Assume -lc should be added
16972 archive_cmds_need_lc=yes
16974 if test "$enable_shared" = yes && test "$GCC" = yes; then
16975 case $archive_cmds in
16976 *'~'*)
16977 # FIXME: we may have to deal with multi-command sequences.
16979 '$CC '*)
16980 # Test whether the compiler implicitly links with -lc since on some
16981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16982 # to ld, don't add -lc before -lgcc.
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16985 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16986 $as_echo_n "(cached) " >&6
16987 else
16988 $RM conftest*
16989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16992 (eval $ac_compile) 2>&5
16993 ac_status=$?
16994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16995 test $ac_status = 0; } 2>conftest.err; then
16996 soname=conftest
16997 lib=conftest
16998 libobjs=conftest.$ac_objext
16999 deplibs=
17000 wl=$lt_prog_compiler_wl
17001 pic_flag=$lt_prog_compiler_pic
17002 compiler_flags=-v
17003 linker_flags=-v
17004 verstring=
17005 output_objdir=.
17006 libname=conftest
17007 lt_save_allow_undefined_flag=$allow_undefined_flag
17008 allow_undefined_flag=
17009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17010 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17011 ac_status=$?
17012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17013 test $ac_status = 0; }
17014 then
17015 lt_cv_archive_cmds_need_lc=no
17016 else
17017 lt_cv_archive_cmds_need_lc=yes
17019 allow_undefined_flag=$lt_save_allow_undefined_flag
17020 else
17021 cat conftest.err 1>&5
17023 $RM conftest*
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17027 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17028 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17030 esac
17033 esac
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17194 if test "$GCC" = yes; then
17195 case $host_os in
17196 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17197 *) lt_awk_arg="/^libraries:/" ;;
17198 esac
17199 case $host_os in
17200 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17201 *) lt_sed_strip_eq="s,=/,/,g" ;;
17202 esac
17203 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17204 case $lt_search_path_spec in
17205 *\;*)
17206 # if the path contains ";" then we assume it to be the separator
17207 # otherwise default to the standard path separator (i.e. ":") - it is
17208 # assumed that no part of a normal pathname contains ";" but that should
17209 # okay in the real world where ";" in dirpaths is itself problematic.
17210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17215 esac
17216 # Ok, now we have the path, separated by spaces, we can step through it
17217 # and add multilib dir if necessary.
17218 lt_tmp_lt_search_path_spec=
17219 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17220 for lt_sys_path in $lt_search_path_spec; do
17221 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17223 else
17224 test -d "$lt_sys_path" && \
17225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17227 done
17228 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17229 BEGIN {RS=" "; FS="/|\n";} {
17230 lt_foo="";
17231 lt_count=0;
17232 for (lt_i = NF; lt_i > 0; lt_i--) {
17233 if ($lt_i != "" && $lt_i != ".") {
17234 if ($lt_i == "..") {
17235 lt_count++;
17236 } else {
17237 if (lt_count == 0) {
17238 lt_foo="/" $lt_i lt_foo;
17239 } else {
17240 lt_count--;
17245 if (lt_foo != "") { lt_freq[lt_foo]++; }
17246 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17248 # AWK program above erroneously prepends '/' to C:/dos/paths
17249 # for these hosts.
17250 case $host_os in
17251 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17252 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17253 esac
17254 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17255 else
17256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17258 library_names_spec=
17259 libname_spec='lib$name'
17260 soname_spec=
17261 shrext_cmds=".so"
17262 postinstall_cmds=
17263 postuninstall_cmds=
17264 finish_cmds=
17265 finish_eval=
17266 shlibpath_var=
17267 shlibpath_overrides_runpath=unknown
17268 version_type=none
17269 dynamic_linker="$host_os ld.so"
17270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17271 need_lib_prefix=unknown
17272 hardcode_into_libs=no
17274 # when you set need_version to no, make sure it does not cause -set_version
17275 # flags to be left without arguments
17276 need_version=unknown
17278 case $host_os in
17279 aix3*)
17280 version_type=linux
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17282 shlibpath_var=LIBPATH
17284 # AIX 3 has no versioning support, so we append a major version to the name.
17285 soname_spec='${libname}${release}${shared_ext}$major'
17288 aix[4-9]*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 hardcode_into_libs=yes
17293 if test "$host_cpu" = ia64; then
17294 # AIX 5 supports IA64
17295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 else
17298 # With GCC up to 2.95.x, collect2 would create an import file
17299 # for dependence libraries. The import file would start with
17300 # the line `#! .'. This would cause the generated library to
17301 # depend on `.', always an invalid library. This was fixed in
17302 # development snapshots of GCC prior to 3.0.
17303 case $host_os in
17304 aix4 | aix4.[01] | aix4.[01].*)
17305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17306 echo ' yes '
17307 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17309 else
17310 can_build_shared=no
17313 esac
17314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17315 # soname into executable. Probably we can add versioning support to
17316 # collect2, so additional links can be useful in future.
17317 if test "$aix_use_runtimelinking" = yes; then
17318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17319 # instead of lib<name>.a to let people know that these are not
17320 # typical AIX shared libraries.
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 else
17323 # We preserve .a as extension for shared libraries through AIX4.2
17324 # and later when we are not doing run time linking.
17325 library_names_spec='${libname}${release}.a $libname.a'
17326 soname_spec='${libname}${release}${shared_ext}$major'
17328 shlibpath_var=LIBPATH
17332 amigaos*)
17333 case $host_cpu in
17334 powerpc)
17335 # Since July 2007 AmigaOS4 officially supports .so libraries.
17336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 m68k)
17340 library_names_spec='$libname.ixlibrary $libname.a'
17341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17342 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'
17344 esac
17347 beos*)
17348 library_names_spec='${libname}${shared_ext}'
17349 dynamic_linker="$host_os ld.so"
17350 shlibpath_var=LIBRARY_PATH
17353 bsdi[45]*)
17354 version_type=linux
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17362 # the default ld.so.conf also contains /usr/contrib/lib and
17363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17364 # libtool to hard-code these into programs
17367 cygwin* | mingw* | pw32* | cegcc*)
17368 version_type=windows
17369 shrext_cmds=".dll"
17370 need_version=no
17371 need_lib_prefix=no
17373 case $GCC,$host_os in
17374 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17375 library_names_spec='$libname.dll.a'
17376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17377 postinstall_cmds='base_file=`basename \${file}`~
17378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17379 dldir=$destdir/`dirname \$dlpath`~
17380 test -d \$dldir || mkdir -p \$dldir~
17381 $install_prog $dir/$dlname \$dldir/$dlname~
17382 chmod a+x \$dldir/$dlname~
17383 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17384 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17387 dlpath=$dir/\$dldll~
17388 $RM \$dlpath'
17389 shlibpath_overrides_runpath=yes
17391 case $host_os in
17392 cygwin*)
17393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17396 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17398 mingw* | cegcc*)
17399 # MinGW DLLs use traditional 'lib' prefix
17400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17402 pw32*)
17403 # pw32 DLLs use 'pw' prefix rather than 'lib'
17404 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 esac
17410 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17412 esac
17413 dynamic_linker='Win32 ld.exe'
17414 # FIXME: first we should search . and the directory the executable is in
17415 shlibpath_var=PATH
17418 darwin* | rhapsody*)
17419 dynamic_linker="$host_os dyld"
17420 version_type=darwin
17421 need_lib_prefix=no
17422 need_version=no
17423 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17424 soname_spec='${libname}${release}${major}$shared_ext'
17425 shlibpath_overrides_runpath=yes
17426 shlibpath_var=DYLD_LIBRARY_PATH
17427 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17433 dgux*)
17434 version_type=linux
17435 need_lib_prefix=no
17436 need_version=no
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17442 freebsd* | dragonfly*)
17443 # DragonFly does not have aout. When/if they implement a new
17444 # versioning mechanism, adjust this.
17445 if test -x /usr/bin/objformat; then
17446 objformat=`/usr/bin/objformat`
17447 else
17448 case $host_os in
17449 freebsd[23].*) objformat=aout ;;
17450 *) objformat=elf ;;
17451 esac
17453 version_type=freebsd-$objformat
17454 case $version_type in
17455 freebsd-elf*)
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17457 need_version=no
17458 need_lib_prefix=no
17460 freebsd-*)
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17462 need_version=yes
17464 esac
17465 shlibpath_var=LD_LIBRARY_PATH
17466 case $host_os in
17467 freebsd2.*)
17468 shlibpath_overrides_runpath=yes
17470 freebsd3.[01]* | freebsdelf3.[01]*)
17471 shlibpath_overrides_runpath=yes
17472 hardcode_into_libs=yes
17474 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17475 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17476 shlibpath_overrides_runpath=no
17477 hardcode_into_libs=yes
17479 *) # from 4.6 on, and DragonFly
17480 shlibpath_overrides_runpath=yes
17481 hardcode_into_libs=yes
17483 esac
17486 gnu*)
17487 version_type=linux
17488 need_lib_prefix=no
17489 need_version=no
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 shlibpath_var=LD_LIBRARY_PATH
17493 hardcode_into_libs=yes
17496 haiku*)
17497 version_type=linux
17498 need_lib_prefix=no
17499 need_version=no
17500 dynamic_linker="$host_os runtime_loader"
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 shlibpath_var=LIBRARY_PATH
17504 shlibpath_overrides_runpath=yes
17505 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17506 hardcode_into_libs=yes
17509 hpux9* | hpux10* | hpux11*)
17510 # Give a soname corresponding to the major version so that dld.sl refuses to
17511 # link against other versions.
17512 version_type=sunos
17513 need_lib_prefix=no
17514 need_version=no
17515 case $host_cpu in
17516 ia64*)
17517 shrext_cmds='.so'
17518 hardcode_into_libs=yes
17519 dynamic_linker="$host_os dld.so"
17520 shlibpath_var=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 if test "X$HPUX_IA64_MODE" = X32; then
17525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17526 else
17527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17531 hppa*64*)
17532 shrext_cmds='.sl'
17533 hardcode_into_libs=yes
17534 dynamic_linker="$host_os dld.sl"
17535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17543 shrext_cmds='.sl'
17544 dynamic_linker="$host_os dld.sl"
17545 shlibpath_var=SHLIB_PATH
17546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17550 esac
17551 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17552 postinstall_cmds='chmod 555 $lib'
17553 # or fails outright, so override atomically:
17554 install_override_mode=555
17557 interix[3-9]*)
17558 version_type=linux
17559 need_lib_prefix=no
17560 need_version=no
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath=no
17566 hardcode_into_libs=yes
17569 irix5* | irix6* | nonstopux*)
17570 case $host_os in
17571 nonstopux*) version_type=nonstopux ;;
17573 if test "$lt_cv_prog_gnu_ld" = yes; then
17574 version_type=linux
17575 else
17576 version_type=irix
17577 fi ;;
17578 esac
17579 need_lib_prefix=no
17580 need_version=no
17581 soname_spec='${libname}${release}${shared_ext}$major'
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17583 case $host_os in
17584 irix5* | nonstopux*)
17585 libsuff= shlibsuff=
17588 case $LD in # libtool.m4 will add one of these switches to LD
17589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17590 libsuff= shlibsuff= libmagic=32-bit;;
17591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17592 libsuff=32 shlibsuff=N32 libmagic=N32;;
17593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17595 *) libsuff= shlibsuff= libmagic=never-match;;
17596 esac
17598 esac
17599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17600 shlibpath_overrides_runpath=no
17601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17603 hardcode_into_libs=yes
17606 # No shared lib support for Linux oldld, aout, or coff.
17607 linux*oldld* | linux*aout* | linux*coff*)
17608 dynamic_linker=no
17611 # This must be Linux ELF.
17612 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17613 version_type=linux
17614 need_lib_prefix=no
17615 need_version=no
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=no
17622 # Some binutils ld are patched to set DT_RUNPATH
17623 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17625 else
17626 lt_cv_shlibpath_overrides_runpath=no
17627 save_LDFLAGS=$LDFLAGS
17628 save_libdir=$libdir
17629 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17630 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17635 main ()
17639 return 0;
17641 _ACEOF
17642 if ac_fn_c_try_link "$LINENO"; then :
17643 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17644 lt_cv_shlibpath_overrides_runpath=yes
17647 rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17649 LDFLAGS=$save_LDFLAGS
17650 libdir=$save_libdir
17654 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17656 # This implies no fast_install, which is unacceptable.
17657 # Some rework will be needed to allow for fast_install
17658 # before this can be enabled.
17659 hardcode_into_libs=yes
17661 # Append ld.so.conf contents to the search path
17662 if test -f /etc/ld.so.conf; then
17663 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' ' '`
17664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17667 # We used to test for /lib/ld.so.1 and disable shared libraries on
17668 # powerpc, because MkLinux only supported shared libraries with the
17669 # GNU dynamic linker. Since this was broken with cross compilers,
17670 # most powerpc-linux boxes support dynamic linking these days and
17671 # people can always --disable-shared, the test was removed, and we
17672 # assume the GNU/Linux dynamic linker is in use.
17673 dynamic_linker='GNU/Linux ld.so'
17676 netbsd*)
17677 version_type=sunos
17678 need_lib_prefix=no
17679 need_version=no
17680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17683 dynamic_linker='NetBSD (a.out) ld.so'
17684 else
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 dynamic_linker='NetBSD ld.elf_so'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=yes
17691 hardcode_into_libs=yes
17694 newsos6)
17695 version_type=linux
17696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath=yes
17701 *nto* | *qnx*)
17702 version_type=qnx
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=no
17709 hardcode_into_libs=yes
17710 dynamic_linker='ldqnx.so'
17713 openbsd*)
17714 version_type=sunos
17715 sys_lib_dlsearch_path_spec="/usr/lib"
17716 need_lib_prefix=no
17717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17718 case $host_os in
17719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17720 *) need_version=no ;;
17721 esac
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17724 shlibpath_var=LD_LIBRARY_PATH
17725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17726 case $host_os in
17727 openbsd2.[89] | openbsd2.[89].*)
17728 shlibpath_overrides_runpath=no
17731 shlibpath_overrides_runpath=yes
17733 esac
17734 else
17735 shlibpath_overrides_runpath=yes
17739 os2*)
17740 libname_spec='$name'
17741 shrext_cmds=".dll"
17742 need_lib_prefix=no
17743 library_names_spec='$libname${shared_ext} $libname.a'
17744 dynamic_linker='OS/2 ld.exe'
17745 shlibpath_var=LIBPATH
17748 osf3* | osf4* | osf5*)
17749 version_type=osf
17750 need_lib_prefix=no
17751 need_version=no
17752 soname_spec='${libname}${release}${shared_ext}$major'
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17759 rdos*)
17760 dynamic_linker=no
17763 solaris*)
17764 version_type=linux
17765 need_lib_prefix=no
17766 need_version=no
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath=yes
17771 hardcode_into_libs=yes
17772 # ldd complains unless libraries are executable
17773 postinstall_cmds='chmod +x $lib'
17776 sunos4*)
17777 version_type=sunos
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 shlibpath_overrides_runpath=yes
17782 if test "$with_gnu_ld" = yes; then
17783 need_lib_prefix=no
17785 need_version=yes
17788 sysv4 | sysv4.3*)
17789 version_type=linux
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 case $host_vendor in
17794 sni)
17795 shlibpath_overrides_runpath=no
17796 need_lib_prefix=no
17797 runpath_var=LD_RUN_PATH
17799 siemens)
17800 need_lib_prefix=no
17802 motorola)
17803 need_lib_prefix=no
17804 need_version=no
17805 shlibpath_overrides_runpath=no
17806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17808 esac
17811 sysv4*MP*)
17812 if test -d /usr/nec ;then
17813 version_type=linux
17814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17815 soname_spec='$libname${shared_ext}.$major'
17816 shlibpath_var=LD_LIBRARY_PATH
17820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17821 version_type=freebsd-elf
17822 need_lib_prefix=no
17823 need_version=no
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17825 soname_spec='${libname}${release}${shared_ext}$major'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=yes
17828 hardcode_into_libs=yes
17829 if test "$with_gnu_ld" = yes; then
17830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17831 else
17832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17833 case $host_os in
17834 sco3.2v5*)
17835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17837 esac
17839 sys_lib_dlsearch_path_spec='/usr/lib'
17842 tpf*)
17843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=no
17850 hardcode_into_libs=yes
17853 uts4*)
17854 version_type=linux
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 shlibpath_var=LD_LIBRARY_PATH
17861 dynamic_linker=no
17863 esac
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17865 $as_echo "$dynamic_linker" >&6; }
17866 test "$dynamic_linker" = no && can_build_shared=no
17868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17869 if test "$GCC" = yes; then
17870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17873 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17874 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17876 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17877 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17972 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17973 hardcode_action=
17974 if test -n "$hardcode_libdir_flag_spec" ||
17975 test -n "$runpath_var" ||
17976 test "X$hardcode_automatic" = "Xyes" ; then
17978 # We can hardcode non-existent directories.
17979 if test "$hardcode_direct" != no &&
17980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17981 # have to relink, otherwise we might link with an installed library
17982 # when we should be linking with a yet-to-be-installed one
17983 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17984 test "$hardcode_minus_L" != no; then
17985 # Linking always hardcodes the temporary library directory.
17986 hardcode_action=relink
17987 else
17988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17989 hardcode_action=immediate
17991 else
17992 # We cannot hardcode anything, or else we can only hardcode existing
17993 # directories.
17994 hardcode_action=unsupported
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17997 $as_echo "$hardcode_action" >&6; }
17999 if test "$hardcode_action" = relink ||
18000 test "$inherit_rpath" = yes; then
18001 # Fast installation is not supported
18002 enable_fast_install=no
18003 elif test "$shlibpath_overrides_runpath" = yes ||
18004 test "$enable_shared" = no; then
18005 # Fast installation is not necessary
18006 enable_fast_install=needless
18014 if test "x$enable_dlopen" != xyes; then
18015 enable_dlopen=unknown
18016 enable_dlopen_self=unknown
18017 enable_dlopen_self_static=unknown
18018 else
18019 lt_cv_dlopen=no
18020 lt_cv_dlopen_libs=
18022 case $host_os in
18023 beos*)
18024 lt_cv_dlopen="load_add_on"
18025 lt_cv_dlopen_libs=
18026 lt_cv_dlopen_self=yes
18029 mingw* | pw32* | cegcc*)
18030 lt_cv_dlopen="LoadLibrary"
18031 lt_cv_dlopen_libs=
18034 cygwin*)
18035 lt_cv_dlopen="dlopen"
18036 lt_cv_dlopen_libs=
18039 darwin*)
18040 # if libdl is installed we need to link against it
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18042 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 ac_check_lib_save_LIBS=$LIBS
18047 LIBS="-ldl $LIBS"
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 char dlopen ();
18059 main ()
18061 return dlopen ();
18063 return 0;
18065 _ACEOF
18066 if ac_fn_c_try_link "$LINENO"; then :
18067 ac_cv_lib_dl_dlopen=yes
18068 else
18069 ac_cv_lib_dl_dlopen=no
18071 rm -f core conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
18073 LIBS=$ac_check_lib_save_LIBS
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18076 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18077 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18079 else
18081 lt_cv_dlopen="dyld"
18082 lt_cv_dlopen_libs=
18083 lt_cv_dlopen_self=yes
18090 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18091 if test "x$ac_cv_func_shl_load" = x""yes; then :
18092 lt_cv_dlopen="shl_load"
18093 else
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18095 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18096 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18097 $as_echo_n "(cached) " >&6
18098 else
18099 ac_check_lib_save_LIBS=$LIBS
18100 LIBS="-ldld $LIBS"
18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18104 /* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18107 #ifdef __cplusplus
18108 extern "C"
18109 #endif
18110 char shl_load ();
18112 main ()
18114 return shl_load ();
18116 return 0;
18118 _ACEOF
18119 if ac_fn_c_try_link "$LINENO"; then :
18120 ac_cv_lib_dld_shl_load=yes
18121 else
18122 ac_cv_lib_dld_shl_load=no
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126 LIBS=$ac_check_lib_save_LIBS
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18129 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18130 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18131 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18132 else
18133 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18134 if test "x$ac_cv_func_dlopen" = x""yes; then :
18135 lt_cv_dlopen="dlopen"
18136 else
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-ldl $LIBS"
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char dlopen ();
18155 main ()
18157 return dlopen ();
18159 return 0;
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 ac_cv_lib_dl_dlopen=yes
18164 else
18165 ac_cv_lib_dl_dlopen=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18173 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18175 else
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18177 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18178 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18180 else
18181 ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-lsvld $LIBS"
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 char dlopen ();
18194 main ()
18196 return dlopen ();
18198 return 0;
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 ac_cv_lib_svld_dlopen=yes
18203 else
18204 ac_cv_lib_svld_dlopen=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18211 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18212 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18214 else
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18216 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18217 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 ac_check_lib_save_LIBS=$LIBS
18221 LIBS="-ldld $LIBS"
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char dld_link ();
18233 main ()
18235 return dld_link ();
18237 return 0;
18239 _ACEOF
18240 if ac_fn_c_try_link "$LINENO"; then :
18241 ac_cv_lib_dld_dld_link=yes
18242 else
18243 ac_cv_lib_dld_dld_link=no
18245 rm -f core conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18250 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18251 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18252 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18271 esac
18273 if test "x$lt_cv_dlopen" != xno; then
18274 enable_dlopen=yes
18275 else
18276 enable_dlopen=no
18279 case $lt_cv_dlopen in
18280 dlopen)
18281 save_CPPFLAGS="$CPPFLAGS"
18282 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18284 save_LDFLAGS="$LDFLAGS"
18285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18287 save_LIBS="$LIBS"
18288 LIBS="$lt_cv_dlopen_libs $LIBS"
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18291 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18292 if test "${lt_cv_dlopen_self+set}" = set; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295 if test "$cross_compiling" = yes; then :
18296 lt_cv_dlopen_self=cross
18297 else
18298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18299 lt_status=$lt_dlunknown
18300 cat > conftest.$ac_ext <<_LT_EOF
18301 #line 18301 "configure"
18302 #include "confdefs.h"
18304 #if HAVE_DLFCN_H
18305 #include <dlfcn.h>
18306 #endif
18308 #include <stdio.h>
18310 #ifdef RTLD_GLOBAL
18311 # define LT_DLGLOBAL RTLD_GLOBAL
18312 #else
18313 # ifdef DL_GLOBAL
18314 # define LT_DLGLOBAL DL_GLOBAL
18315 # else
18316 # define LT_DLGLOBAL 0
18317 # endif
18318 #endif
18320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18321 find out it does not work in some platform. */
18322 #ifndef LT_DLLAZY_OR_NOW
18323 # ifdef RTLD_LAZY
18324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18325 # else
18326 # ifdef DL_LAZY
18327 # define LT_DLLAZY_OR_NOW DL_LAZY
18328 # else
18329 # ifdef RTLD_NOW
18330 # define LT_DLLAZY_OR_NOW RTLD_NOW
18331 # else
18332 # ifdef DL_NOW
18333 # define LT_DLLAZY_OR_NOW DL_NOW
18334 # else
18335 # define LT_DLLAZY_OR_NOW 0
18336 # endif
18337 # endif
18338 # endif
18339 # endif
18340 #endif
18342 /* When -fvisbility=hidden is used, assume the code has been annotated
18343 correspondingly for the symbols needed. */
18344 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18345 void fnord () __attribute__((visibility("default")));
18346 #endif
18348 void fnord () { int i=42; }
18349 int main ()
18351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18352 int status = $lt_dlunknown;
18354 if (self)
18356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18357 else
18359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18360 else puts (dlerror ());
18362 /* dlclose (self); */
18364 else
18365 puts (dlerror ());
18367 return status;
18369 _LT_EOF
18370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18371 (eval $ac_link) 2>&5
18372 ac_status=$?
18373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18374 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18375 (./conftest; exit; ) >&5 2>/dev/null
18376 lt_status=$?
18377 case x$lt_status in
18378 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18379 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18380 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18381 esac
18382 else :
18383 # compilation failed
18384 lt_cv_dlopen_self=no
18387 rm -fr conftest*
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18392 $as_echo "$lt_cv_dlopen_self" >&6; }
18394 if test "x$lt_cv_dlopen_self" = xyes; then
18395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18397 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18398 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18399 $as_echo_n "(cached) " >&6
18400 else
18401 if test "$cross_compiling" = yes; then :
18402 lt_cv_dlopen_self_static=cross
18403 else
18404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18405 lt_status=$lt_dlunknown
18406 cat > conftest.$ac_ext <<_LT_EOF
18407 #line 18407 "configure"
18408 #include "confdefs.h"
18410 #if HAVE_DLFCN_H
18411 #include <dlfcn.h>
18412 #endif
18414 #include <stdio.h>
18416 #ifdef RTLD_GLOBAL
18417 # define LT_DLGLOBAL RTLD_GLOBAL
18418 #else
18419 # ifdef DL_GLOBAL
18420 # define LT_DLGLOBAL DL_GLOBAL
18421 # else
18422 # define LT_DLGLOBAL 0
18423 # endif
18424 #endif
18426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18427 find out it does not work in some platform. */
18428 #ifndef LT_DLLAZY_OR_NOW
18429 # ifdef RTLD_LAZY
18430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18431 # else
18432 # ifdef DL_LAZY
18433 # define LT_DLLAZY_OR_NOW DL_LAZY
18434 # else
18435 # ifdef RTLD_NOW
18436 # define LT_DLLAZY_OR_NOW RTLD_NOW
18437 # else
18438 # ifdef DL_NOW
18439 # define LT_DLLAZY_OR_NOW DL_NOW
18440 # else
18441 # define LT_DLLAZY_OR_NOW 0
18442 # endif
18443 # endif
18444 # endif
18445 # endif
18446 #endif
18448 /* When -fvisbility=hidden is used, assume the code has been annotated
18449 correspondingly for the symbols needed. */
18450 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18451 void fnord () __attribute__((visibility("default")));
18452 #endif
18454 void fnord () { int i=42; }
18455 int main ()
18457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18458 int status = $lt_dlunknown;
18460 if (self)
18462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18463 else
18465 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18466 else puts (dlerror ());
18468 /* dlclose (self); */
18470 else
18471 puts (dlerror ());
18473 return status;
18475 _LT_EOF
18476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18477 (eval $ac_link) 2>&5
18478 ac_status=$?
18479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18480 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18481 (./conftest; exit; ) >&5 2>/dev/null
18482 lt_status=$?
18483 case x$lt_status in
18484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18487 esac
18488 else :
18489 # compilation failed
18490 lt_cv_dlopen_self_static=no
18493 rm -fr conftest*
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18498 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18501 CPPFLAGS="$save_CPPFLAGS"
18502 LDFLAGS="$save_LDFLAGS"
18503 LIBS="$save_LIBS"
18505 esac
18507 case $lt_cv_dlopen_self in
18508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18509 *) enable_dlopen_self=unknown ;;
18510 esac
18512 case $lt_cv_dlopen_self_static in
18513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18514 *) enable_dlopen_self_static=unknown ;;
18515 esac
18534 striplib=
18535 old_striplib=
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18537 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18538 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18539 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18540 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18542 $as_echo "yes" >&6; }
18543 else
18544 # FIXME - insert some real tests, host_os isn't really good enough
18545 case $host_os in
18546 darwin*)
18547 if test -n "$STRIP" ; then
18548 striplib="$STRIP -x"
18549 old_striplib="$STRIP -S"
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18551 $as_echo "yes" >&6; }
18552 else
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559 $as_echo "no" >&6; }
18561 esac
18575 # Report which library types will actually be built
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18577 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18579 $as_echo "$can_build_shared" >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18582 $as_echo_n "checking whether to build shared libraries... " >&6; }
18583 test "$can_build_shared" = "no" && enable_shared=no
18585 # On AIX, shared libraries and static libraries use the same namespace, and
18586 # are all built from PIC.
18587 case $host_os in
18588 aix3*)
18589 test "$enable_shared" = yes && enable_static=no
18590 if test -n "$RANLIB"; then
18591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18592 postinstall_cmds='$RANLIB $lib'
18596 aix[4-9]*)
18597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18598 test "$enable_shared" = yes && enable_static=no
18601 esac
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18603 $as_echo "$enable_shared" >&6; }
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18606 $as_echo_n "checking whether to build static libraries... " >&6; }
18607 # Make sure either enable_shared or enable_static is yes.
18608 test "$enable_shared" = yes || enable_static=yes
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18610 $as_echo "$enable_static" >&6; }
18616 ac_ext=cpp
18617 ac_cpp='$CXXCPP $CPPFLAGS'
18618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18622 CC="$lt_save_CC"
18624 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18625 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18626 (test "X$CXX" != "Xg++"))) ; then
18627 ac_ext=cpp
18628 ac_cpp='$CXXCPP $CPPFLAGS'
18629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18633 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18634 if test -z "$CXXCPP"; then
18635 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18636 $as_echo_n "(cached) " >&6
18637 else
18638 # Double quotes because CXXCPP needs to be expanded
18639 for CXXCPP in "$CXX -E" "/lib/cpp"
18641 ac_preproc_ok=false
18642 for ac_cxx_preproc_warn_flag in '' yes
18644 # Use a header file that comes with gcc, so configuring glibc
18645 # with a fresh cross-compiler works.
18646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18647 # <limits.h> exists even on freestanding compilers.
18648 # On the NeXT, cc -E runs the code through the compiler's parser,
18649 # not just through cpp. "Syntax error" is here to catch this case.
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18652 #ifdef __STDC__
18653 # include <limits.h>
18654 #else
18655 # include <assert.h>
18656 #endif
18657 Syntax error
18658 _ACEOF
18659 if ac_fn_cxx_try_cpp "$LINENO"; then :
18661 else
18662 # Broken: fails on valid input.
18663 continue
18665 rm -f conftest.err conftest.$ac_ext
18667 # OK, works on sane cases. Now check whether nonexistent headers
18668 # can be detected and how.
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 #include <ac_nonexistent.h>
18672 _ACEOF
18673 if ac_fn_cxx_try_cpp "$LINENO"; then :
18674 # Broken: success on invalid input.
18675 continue
18676 else
18677 # Passes both tests.
18678 ac_preproc_ok=:
18679 break
18681 rm -f conftest.err conftest.$ac_ext
18683 done
18684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18685 rm -f conftest.err conftest.$ac_ext
18686 if $ac_preproc_ok; then :
18687 break
18690 done
18691 ac_cv_prog_CXXCPP=$CXXCPP
18694 CXXCPP=$ac_cv_prog_CXXCPP
18695 else
18696 ac_cv_prog_CXXCPP=$CXXCPP
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18699 $as_echo "$CXXCPP" >&6; }
18700 ac_preproc_ok=false
18701 for ac_cxx_preproc_warn_flag in '' yes
18703 # Use a header file that comes with gcc, so configuring glibc
18704 # with a fresh cross-compiler works.
18705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18706 # <limits.h> exists even on freestanding compilers.
18707 # On the NeXT, cc -E runs the code through the compiler's parser,
18708 # not just through cpp. "Syntax error" is here to catch this case.
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #ifdef __STDC__
18712 # include <limits.h>
18713 #else
18714 # include <assert.h>
18715 #endif
18716 Syntax error
18717 _ACEOF
18718 if ac_fn_cxx_try_cpp "$LINENO"; then :
18720 else
18721 # Broken: fails on valid input.
18722 continue
18724 rm -f conftest.err conftest.$ac_ext
18726 # OK, works on sane cases. Now check whether nonexistent headers
18727 # can be detected and how.
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18730 #include <ac_nonexistent.h>
18731 _ACEOF
18732 if ac_fn_cxx_try_cpp "$LINENO"; then :
18733 # Broken: success on invalid input.
18734 continue
18735 else
18736 # Passes both tests.
18737 ac_preproc_ok=:
18738 break
18740 rm -f conftest.err conftest.$ac_ext
18742 done
18743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18744 rm -f conftest.err conftest.$ac_ext
18745 if $ac_preproc_ok; then :
18747 else
18748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18750 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18751 See \`config.log' for more details." "$LINENO" 5; }
18754 ac_ext=cpp
18755 ac_cpp='$CXXCPP $CPPFLAGS'
18756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18760 else
18761 _lt_caught_CXX_error=yes
18764 ac_ext=cpp
18765 ac_cpp='$CXXCPP $CPPFLAGS'
18766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18770 archive_cmds_need_lc_CXX=no
18771 allow_undefined_flag_CXX=
18772 always_export_symbols_CXX=no
18773 archive_expsym_cmds_CXX=
18774 compiler_needs_object_CXX=no
18775 export_dynamic_flag_spec_CXX=
18776 hardcode_direct_CXX=no
18777 hardcode_direct_absolute_CXX=no
18778 hardcode_libdir_flag_spec_CXX=
18779 hardcode_libdir_flag_spec_ld_CXX=
18780 hardcode_libdir_separator_CXX=
18781 hardcode_minus_L_CXX=no
18782 hardcode_shlibpath_var_CXX=unsupported
18783 hardcode_automatic_CXX=no
18784 inherit_rpath_CXX=no
18785 module_cmds_CXX=
18786 module_expsym_cmds_CXX=
18787 link_all_deplibs_CXX=unknown
18788 old_archive_cmds_CXX=$old_archive_cmds
18789 reload_flag_CXX=$reload_flag
18790 reload_cmds_CXX=$reload_cmds
18791 no_undefined_flag_CXX=
18792 whole_archive_flag_spec_CXX=
18793 enable_shared_with_static_runtimes_CXX=no
18795 # Source file extension for C++ test sources.
18796 ac_ext=cpp
18798 # Object file extension for compiled C++ test sources.
18799 objext=o
18800 objext_CXX=$objext
18802 # No sense in running all these tests if we already determined that
18803 # the CXX compiler isn't working. Some variables (like enable_shared)
18804 # are currently assumed to apply to all compilers on this platform,
18805 # and will be corrupted by setting them based on a non-working compiler.
18806 if test "$_lt_caught_CXX_error" != yes; then
18807 # Code to be used in simple compile tests
18808 lt_simple_compile_test_code="int some_variable = 0;"
18810 # Code to be used in simple link tests
18811 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18820 # If no C compiler was specified, use CC.
18821 LTCC=${LTCC-"$CC"}
18823 # If no C compiler flags were specified, use CFLAGS.
18824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18826 # Allow CC to be a program name with arguments.
18827 compiler=$CC
18830 # save warnings/boilerplate of simple test code
18831 ac_outfile=conftest.$ac_objext
18832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18834 _lt_compiler_boilerplate=`cat conftest.err`
18835 $RM conftest*
18837 ac_outfile=conftest.$ac_objext
18838 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18840 _lt_linker_boilerplate=`cat conftest.err`
18841 $RM -r conftest*
18844 # Allow CC to be a program name with arguments.
18845 lt_save_CC=$CC
18846 lt_save_LD=$LD
18847 lt_save_GCC=$GCC
18848 GCC=$GXX
18849 lt_save_with_gnu_ld=$with_gnu_ld
18850 lt_save_path_LD=$lt_cv_path_LD
18851 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18852 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18853 else
18854 $as_unset lt_cv_prog_gnu_ld
18856 if test -n "${lt_cv_path_LDCXX+set}"; then
18857 lt_cv_path_LD=$lt_cv_path_LDCXX
18858 else
18859 $as_unset lt_cv_path_LD
18861 test -z "${LDCXX+set}" || LD=$LDCXX
18862 CC=${CXX-"c++"}
18863 compiler=$CC
18864 compiler_CXX=$CC
18865 for cc_temp in $compiler""; do
18866 case $cc_temp in
18867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18869 \-*) ;;
18870 *) break;;
18871 esac
18872 done
18873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18876 if test -n "$compiler"; then
18877 # We don't want -fno-exception when compiling C++ code, so set the
18878 # no_builtin_flag separately
18879 if test "$GXX" = yes; then
18880 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18881 else
18882 lt_prog_compiler_no_builtin_flag_CXX=
18885 if test "$GXX" = yes; then
18886 # Set up default GNU C++ configuration
18890 # Check whether --with-gnu-ld was given.
18891 if test "${with_gnu_ld+set}" = set; then :
18892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18893 else
18894 with_gnu_ld=no
18897 ac_prog=ld
18898 if test "$GCC" = yes; then
18899 # Check if gcc -print-prog-name=ld gives a path.
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18901 $as_echo_n "checking for ld used by $CC... " >&6; }
18902 case $host in
18903 *-*-mingw*)
18904 # gcc leaves a trailing carriage return which upsets mingw
18905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18908 esac
18909 case $ac_prog in
18910 # Accept absolute paths.
18911 [\\/]* | ?:[\\/]*)
18912 re_direlt='/[^/][^/]*/\.\./'
18913 # Canonicalize the pathname of ld
18914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18917 done
18918 test -z "$LD" && LD="$ac_prog"
18921 # If it fails, then pretend we aren't using GCC.
18922 ac_prog=ld
18925 # If it is relative, then search for the first ld in PATH.
18926 with_gnu_ld=unknown
18928 esac
18929 elif test "$with_gnu_ld" = yes; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18931 $as_echo_n "checking for GNU ld... " >&6; }
18932 else
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18934 $as_echo_n "checking for non-GNU ld... " >&6; }
18936 if test "${lt_cv_path_LD+set}" = set; then :
18937 $as_echo_n "(cached) " >&6
18938 else
18939 if test -z "$LD"; then
18940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18941 for ac_dir in $PATH; do
18942 IFS="$lt_save_ifs"
18943 test -z "$ac_dir" && ac_dir=.
18944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18945 lt_cv_path_LD="$ac_dir/$ac_prog"
18946 # Check to see if the program is GNU ld. I'd rather use --version,
18947 # but apparently some variants of GNU ld only accept -v.
18948 # Break only if it was the GNU/non-GNU ld that we prefer.
18949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18950 *GNU* | *'with BFD'*)
18951 test "$with_gnu_ld" != no && break
18954 test "$with_gnu_ld" != yes && break
18956 esac
18958 done
18959 IFS="$lt_save_ifs"
18960 else
18961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18965 LD="$lt_cv_path_LD"
18966 if test -n "$LD"; then
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18968 $as_echo "$LD" >&6; }
18969 else
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18971 $as_echo "no" >&6; }
18973 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18976 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18977 $as_echo_n "(cached) " >&6
18978 else
18979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18980 case `$LD -v 2>&1 </dev/null` in
18981 *GNU* | *'with BFD'*)
18982 lt_cv_prog_gnu_ld=yes
18985 lt_cv_prog_gnu_ld=no
18987 esac
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18990 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18991 with_gnu_ld=$lt_cv_prog_gnu_ld
18999 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19000 # archiving commands below assume that GNU ld is being used.
19001 if test "$with_gnu_ld" = yes; then
19002 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19003 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'
19005 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19008 # If archive_cmds runs LD, not CC, wlarc should be empty
19009 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19010 # investigate it a little bit more. (MM)
19011 wlarc='${wl}'
19013 # ancient GNU ld didn't support --whole-archive et. al.
19014 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19015 $GREP 'no-whole-archive' > /dev/null; then
19016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19017 else
19018 whole_archive_flag_spec_CXX=
19020 else
19021 with_gnu_ld=no
19022 wlarc=
19024 # A generic and very simple default shared library creation
19025 # command for GNU C++ for the case where it uses the native
19026 # linker, instead of GNU ld. If possible, this setting should
19027 # overridden to take advantage of the native linker features on
19028 # the platform it is being used on.
19029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19032 # Commands to make compiler produce verbose output that lists
19033 # what "hidden" libraries, object files and flags are used when
19034 # linking a shared library.
19035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19037 else
19038 GXX=no
19039 with_gnu_ld=no
19040 wlarc=
19043 # PORTME: fill in a description of your system's C++ link characteristics
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19046 ld_shlibs_CXX=yes
19047 case $host_os in
19048 aix3*)
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19052 aix[4-9]*)
19053 if test "$host_cpu" = ia64; then
19054 # On IA64, the linker does run time linking by default, so we don't
19055 # have to do anything special.
19056 aix_use_runtimelinking=no
19057 exp_sym_flag='-Bexport'
19058 no_entry_flag=""
19059 else
19060 aix_use_runtimelinking=no
19062 # Test if we are trying to use run time linking or normal
19063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19064 # need to do runtime linking.
19065 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19066 for ld_flag in $LDFLAGS; do
19067 case $ld_flag in
19068 *-brtl*)
19069 aix_use_runtimelinking=yes
19070 break
19072 esac
19073 done
19075 esac
19077 exp_sym_flag='-bexport'
19078 no_entry_flag='-bnoentry'
19081 # When large executables or shared objects are built, AIX ld can
19082 # have problems creating the table of contents. If linking a library
19083 # or program results in "error TOC overflow" add -mminimal-toc to
19084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19087 archive_cmds_CXX=''
19088 hardcode_direct_CXX=yes
19089 hardcode_direct_absolute_CXX=yes
19090 hardcode_libdir_separator_CXX=':'
19091 link_all_deplibs_CXX=yes
19092 file_list_spec_CXX='${wl}-f,'
19094 if test "$GXX" = yes; then
19095 case $host_os in aix4.[012]|aix4.[012].*)
19096 # We only want to do this on AIX 4.2 and lower, the check
19097 # below for broken collect2 doesn't work under 4.3+
19098 collect2name=`${CC} -print-prog-name=collect2`
19099 if test -f "$collect2name" &&
19100 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19101 then
19102 # We have reworked collect2
19104 else
19105 # We have old collect2
19106 hardcode_direct_CXX=unsupported
19107 # It fails to find uninstalled libraries when the uninstalled
19108 # path is not listed in the libpath. Setting hardcode_minus_L
19109 # to unsupported forces relinking
19110 hardcode_minus_L_CXX=yes
19111 hardcode_libdir_flag_spec_CXX='-L$libdir'
19112 hardcode_libdir_separator_CXX=
19114 esac
19115 shared_flag='-shared'
19116 if test "$aix_use_runtimelinking" = yes; then
19117 shared_flag="$shared_flag "'${wl}-G'
19119 else
19120 # not using gcc
19121 if test "$host_cpu" = ia64; then
19122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19123 # chokes on -Wl,-G. The following line is correct:
19124 shared_flag='-G'
19125 else
19126 if test "$aix_use_runtimelinking" = yes; then
19127 shared_flag='${wl}-G'
19128 else
19129 shared_flag='${wl}-bM:SRE'
19134 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19135 # It seems that -bexpall does not export symbols beginning with
19136 # underscore (_), so it is better to generate a list of symbols to
19137 # export.
19138 always_export_symbols_CXX=yes
19139 if test "$aix_use_runtimelinking" = yes; then
19140 # Warning - without using the other runtime loading flags (-brtl),
19141 # -berok will link without error, but may produce a broken library.
19142 allow_undefined_flag_CXX='-berok'
19143 # Determine the default libpath from the value encoded in an empty
19144 # executable.
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19149 main ()
19153 return 0;
19155 _ACEOF
19156 if ac_fn_cxx_try_link "$LINENO"; then :
19158 lt_aix_libpath_sed='
19159 /Import File Strings/,/^$/ {
19160 /^0/ {
19161 s/^0 *\(.*\)$/\1/
19165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19166 # Check for a 64-bit object if we didn't find anything.
19167 if test -z "$aix_libpath"; then
19168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19171 rm -f core conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19175 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19177 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"
19178 else
19179 if test "$host_cpu" = ia64; then
19180 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19181 allow_undefined_flag_CXX="-z nodefs"
19182 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"
19183 else
19184 # Determine the default libpath from the value encoded in an
19185 # empty executable.
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h. */
19190 main ()
19194 return 0;
19196 _ACEOF
19197 if ac_fn_cxx_try_link "$LINENO"; then :
19199 lt_aix_libpath_sed='
19200 /Import File Strings/,/^$/ {
19201 /^0/ {
19202 s/^0 *\(.*\)$/\1/
19206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19207 # Check for a 64-bit object if we didn't find anything.
19208 if test -z "$aix_libpath"; then
19209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19217 # Warning - without using the other run time loading flags,
19218 # -berok will link without error, but may produce a broken library.
19219 no_undefined_flag_CXX=' ${wl}-bernotok'
19220 allow_undefined_flag_CXX=' ${wl}-berok'
19221 if test "$with_gnu_ld" = yes; then
19222 # We only use this code for GNU lds that support --whole-archive.
19223 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19224 else
19225 # Exported symbols can be pulled into shared objects from archives
19226 whole_archive_flag_spec_CXX='$convenience'
19228 archive_cmds_need_lc_CXX=yes
19229 # This is similar to how AIX traditionally builds its shared
19230 # libraries.
19231 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'
19236 beos*)
19237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19238 allow_undefined_flag_CXX=unsupported
19239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19240 # support --undefined. This deserves some investigation. FIXME
19241 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19242 else
19243 ld_shlibs_CXX=no
19247 chorus*)
19248 case $cc_basename in
19250 # FIXME: insert proper C++ library support
19251 ld_shlibs_CXX=no
19253 esac
19256 cygwin* | mingw* | pw32* | cegcc*)
19257 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19258 # as there is no search path for DLLs.
19259 hardcode_libdir_flag_spec_CXX='-L$libdir'
19260 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19261 allow_undefined_flag_CXX=unsupported
19262 always_export_symbols_CXX=no
19263 enable_shared_with_static_runtimes_CXX=yes
19265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19266 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'
19267 # If the export-symbols file already is a .def file (1st line
19268 # is EXPORTS), use it as is; otherwise, prepend...
19269 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19270 cp $export_symbols $output_objdir/$soname.def;
19271 else
19272 echo EXPORTS > $output_objdir/$soname.def;
19273 cat $export_symbols >> $output_objdir/$soname.def;
19275 $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'
19276 else
19277 ld_shlibs_CXX=no
19280 darwin* | rhapsody*)
19283 archive_cmds_need_lc_CXX=no
19284 hardcode_direct_CXX=no
19285 hardcode_automatic_CXX=yes
19286 hardcode_shlibpath_var_CXX=unsupported
19287 if test "$lt_cv_ld_force_load" = "yes"; then
19288 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\"`'
19289 else
19290 whole_archive_flag_spec_CXX=''
19292 link_all_deplibs_CXX=yes
19293 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19294 case $cc_basename in
19295 ifort*) _lt_dar_can_shared=yes ;;
19296 *) _lt_dar_can_shared=$GCC ;;
19297 esac
19298 if test "$_lt_dar_can_shared" = "yes"; then
19299 output_verbose_link_cmd=func_echo_all
19300 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}"
19301 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19302 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}"
19303 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}"
19304 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19305 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}"
19306 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}"
19309 else
19310 ld_shlibs_CXX=no
19315 dgux*)
19316 case $cc_basename in
19317 ec++*)
19318 # FIXME: insert proper C++ library support
19319 ld_shlibs_CXX=no
19321 ghcx*)
19322 # Green Hills C++ Compiler
19323 # FIXME: insert proper C++ library support
19324 ld_shlibs_CXX=no
19327 # FIXME: insert proper C++ library support
19328 ld_shlibs_CXX=no
19330 esac
19333 freebsd2.*)
19334 # C++ shared libraries reported to be fairly broken before
19335 # switch to ELF
19336 ld_shlibs_CXX=no
19339 freebsd-elf*)
19340 archive_cmds_need_lc_CXX=no
19343 freebsd* | dragonfly*)
19344 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19345 # conventions
19346 ld_shlibs_CXX=yes
19349 gnu*)
19352 haiku*)
19353 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19354 link_all_deplibs_CXX=yes
19357 hpux9*)
19358 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19359 hardcode_libdir_separator_CXX=:
19360 export_dynamic_flag_spec_CXX='${wl}-E'
19361 hardcode_direct_CXX=yes
19362 hardcode_minus_L_CXX=yes # Not in the search PATH,
19363 # but as the default
19364 # location of the library.
19366 case $cc_basename in
19367 CC*)
19368 # FIXME: insert proper C++ library support
19369 ld_shlibs_CXX=no
19371 aCC*)
19372 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'
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19377 # There doesn't appear to be a way to prevent this compiler from
19378 # explicitly linking system object files so we need to strip them
19379 # from the output so that they don't get included in the library
19380 # dependencies.
19381 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"'
19384 if test "$GXX" = yes; then
19385 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'
19386 else
19387 # FIXME: insert proper C++ library support
19388 ld_shlibs_CXX=no
19391 esac
19394 hpux10*|hpux11*)
19395 if test $with_gnu_ld = no; then
19396 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19397 hardcode_libdir_separator_CXX=:
19399 case $host_cpu in
19400 hppa*64*|ia64*)
19403 export_dynamic_flag_spec_CXX='${wl}-E'
19405 esac
19407 case $host_cpu in
19408 hppa*64*|ia64*)
19409 hardcode_direct_CXX=no
19410 hardcode_shlibpath_var_CXX=no
19413 hardcode_direct_CXX=yes
19414 hardcode_direct_absolute_CXX=yes
19415 hardcode_minus_L_CXX=yes # Not in the search PATH,
19416 # but as the default
19417 # location of the library.
19419 esac
19421 case $cc_basename in
19422 CC*)
19423 # FIXME: insert proper C++ library support
19424 ld_shlibs_CXX=no
19426 aCC*)
19427 case $host_cpu in
19428 hppa*64*)
19429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19431 ia64*)
19432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19437 esac
19438 # Commands to make compiler produce verbose output that lists
19439 # what "hidden" libraries, object files and flags are used when
19440 # linking a shared library.
19442 # There doesn't appear to be a way to prevent this compiler from
19443 # explicitly linking system object files so we need to strip them
19444 # from the output so that they don't get included in the library
19445 # dependencies.
19446 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"'
19449 if test "$GXX" = yes; then
19450 if test $with_gnu_ld = no; then
19451 case $host_cpu in
19452 hppa*64*)
19453 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19455 ia64*)
19456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19459 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'
19461 esac
19463 else
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19468 esac
19471 interix[3-9]*)
19472 hardcode_direct_CXX=no
19473 hardcode_shlibpath_var_CXX=no
19474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19475 export_dynamic_flag_spec_CXX='${wl}-E'
19476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19477 # Instead, shared libraries are loaded at an image base (0x10000000 by
19478 # default) and relocated if they conflict, which is a slow very memory
19479 # consuming and fragmenting process. To avoid this, we pick a random,
19480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19481 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19482 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'
19483 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'
19485 irix5* | irix6*)
19486 case $cc_basename in
19487 CC*)
19488 # SGI C++
19489 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'
19491 # Archives containing C++ object files must be created using
19492 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19493 # necessary to make sure instantiated templates are included
19494 # in the archive.
19495 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19498 if test "$GXX" = yes; then
19499 if test "$with_gnu_ld" = no; then
19500 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'
19501 else
19502 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'
19505 link_all_deplibs_CXX=yes
19507 esac
19508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19509 hardcode_libdir_separator_CXX=:
19510 inherit_rpath_CXX=yes
19513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19514 case $cc_basename in
19515 KCC*)
19516 # Kuck and Associates, Inc. (KAI) C++ Compiler
19518 # KCC will only create a shared library if the output file
19519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19520 # to its proper name (with version) after linking.
19521 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'
19522 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'
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19530 # dependencies.
19531 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"'
19533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19536 # Archives containing C++ object files must be created using
19537 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19538 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19540 icpc* | ecpc* )
19541 # Intel C++
19542 with_gnu_ld=yes
19543 # version 8.0 and above of icpc choke on multiply defined symbols
19544 # if we add $predep_objects and $postdep_objects, however 7.1 and
19545 # earlier do not add the objects themselves.
19546 case `$CC -V 2>&1` in
19547 *"Version 7."*)
19548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19549 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'
19551 *) # Version 8.0 or newer
19552 tmp_idyn=
19553 case $host_cpu in
19554 ia64*) tmp_idyn=' -i_dynamic';;
19555 esac
19556 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19557 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'
19559 esac
19560 archive_cmds_need_lc_CXX=no
19561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19563 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19565 pgCC* | pgcpp*)
19566 # Portland Group C++ compiler
19567 case `$CC -V` in
19568 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19569 prelink_cmds_CXX='tpldir=Template.dir~
19570 rm -rf $tpldir~
19571 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19572 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19573 old_archive_cmds_CXX='tpldir=Template.dir~
19574 rm -rf $tpldir~
19575 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19576 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19577 $RANLIB $oldlib'
19578 archive_cmds_CXX='tpldir=Template.dir~
19579 rm -rf $tpldir~
19580 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19581 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19582 archive_expsym_cmds_CXX='tpldir=Template.dir~
19583 rm -rf $tpldir~
19584 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19585 $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'
19587 *) # Version 6 and above use weak symbols
19588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19589 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'
19591 esac
19593 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19595 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'
19597 cxx*)
19598 # Compaq C++
19599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19600 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'
19602 runpath_var=LD_RUN_PATH
19603 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19604 hardcode_libdir_separator_CXX=:
19606 # Commands to make compiler produce verbose output that lists
19607 # what "hidden" libraries, object files and flags are used when
19608 # linking a shared library.
19610 # There doesn't appear to be a way to prevent this compiler from
19611 # explicitly linking system object files so we need to strip them
19612 # from the output so that they don't get included in the library
19613 # dependencies.
19614 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'
19616 xl* | mpixl* | bgxl*)
19617 # IBM XL 8.0 on PPC, with GNU ld
19618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19620 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19621 if test "x$supports_anon_versioning" = xyes; then
19622 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19624 echo "local: *; };" >> $output_objdir/$libname.ver~
19625 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19629 case `$CC -V 2>&1 | sed 5q` in
19630 *Sun\ C*)
19631 # Sun C++ 5.9
19632 no_undefined_flag_CXX=' -zdefs'
19633 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19634 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'
19635 hardcode_libdir_flag_spec_CXX='-R$libdir'
19636 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'
19637 compiler_needs_object_CXX=yes
19639 # Not sure whether something based on
19640 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19641 # would be better.
19642 output_verbose_link_cmd='func_echo_all'
19644 # Archives containing C++ object files must be created using
19645 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19646 # necessary to make sure instantiated templates are included
19647 # in the archive.
19648 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19650 esac
19652 esac
19655 lynxos*)
19656 # FIXME: insert proper C++ library support
19657 ld_shlibs_CXX=no
19660 m88k*)
19661 # FIXME: insert proper C++ library support
19662 ld_shlibs_CXX=no
19665 mvs*)
19666 case $cc_basename in
19667 cxx*)
19668 # FIXME: insert proper C++ library support
19669 ld_shlibs_CXX=no
19672 # FIXME: insert proper C++ library support
19673 ld_shlibs_CXX=no
19675 esac
19678 netbsd*)
19679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19680 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19681 wlarc=
19682 hardcode_libdir_flag_spec_CXX='-R$libdir'
19683 hardcode_direct_CXX=yes
19684 hardcode_shlibpath_var_CXX=no
19686 # Workaround some broken pre-1.5 toolchains
19687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19690 *nto* | *qnx*)
19691 ld_shlibs_CXX=yes
19694 openbsd2*)
19695 # C++ shared libraries are fairly broken
19696 ld_shlibs_CXX=no
19699 openbsd*)
19700 if test -f /usr/libexec/ld.so; then
19701 hardcode_direct_CXX=yes
19702 hardcode_shlibpath_var_CXX=no
19703 hardcode_direct_absolute_CXX=yes
19704 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19707 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19708 export_dynamic_flag_spec_CXX='${wl}-E'
19709 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19711 output_verbose_link_cmd=func_echo_all
19712 else
19713 ld_shlibs_CXX=no
19717 osf3* | osf4* | osf5*)
19718 case $cc_basename in
19719 KCC*)
19720 # Kuck and Associates, Inc. (KAI) C++ Compiler
19722 # KCC will only create a shared library if the output file
19723 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19724 # to its proper name (with version) after linking.
19725 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'
19727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19728 hardcode_libdir_separator_CXX=:
19730 # Archives containing C++ object files must be created using
19731 # the KAI C++ compiler.
19732 case $host in
19733 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19734 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19735 esac
19737 RCC*)
19738 # Rational C++ 2.4.1
19739 # FIXME: insert proper C++ library support
19740 ld_shlibs_CXX=no
19742 cxx*)
19743 case $host in
19744 osf3*)
19745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19746 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'
19747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19750 allow_undefined_flag_CXX=' -expect_unresolved \*'
19751 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'
19752 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19753 echo "-hidden">> $lib.exp~
19754 $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~
19755 $RM $lib.exp'
19756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19758 esac
19760 hardcode_libdir_separator_CXX=:
19762 # Commands to make compiler produce verbose output that lists
19763 # what "hidden" libraries, object files and flags are used when
19764 # linking a shared library.
19766 # There doesn't appear to be a way to prevent this compiler from
19767 # explicitly linking system object files so we need to strip them
19768 # from the output so that they don't get included in the library
19769 # dependencies.
19770 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"'
19773 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19774 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19775 case $host in
19776 osf3*)
19777 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'
19780 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'
19782 esac
19784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19785 hardcode_libdir_separator_CXX=:
19787 # Commands to make compiler produce verbose output that lists
19788 # what "hidden" libraries, object files and flags are used when
19789 # linking a shared library.
19790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19792 else
19793 # FIXME: insert proper C++ library support
19794 ld_shlibs_CXX=no
19797 esac
19800 psos*)
19801 # FIXME: insert proper C++ library support
19802 ld_shlibs_CXX=no
19805 sunos4*)
19806 case $cc_basename in
19807 CC*)
19808 # Sun C++ 4.x
19809 # FIXME: insert proper C++ library support
19810 ld_shlibs_CXX=no
19812 lcc*)
19813 # Lucid
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19818 # FIXME: insert proper C++ library support
19819 ld_shlibs_CXX=no
19821 esac
19824 solaris*)
19825 case $cc_basename in
19826 CC*)
19827 # Sun C++ 4.2, 5.x and Centerline C++
19828 archive_cmds_need_lc_CXX=yes
19829 no_undefined_flag_CXX=' -zdefs'
19830 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19831 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19832 $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'
19834 hardcode_libdir_flag_spec_CXX='-R$libdir'
19835 hardcode_shlibpath_var_CXX=no
19836 case $host_os in
19837 solaris2.[0-5] | solaris2.[0-5].*) ;;
19839 # The compiler driver will combine and reorder linker options,
19840 # but understands `-z linker_flag'.
19841 # Supported since Solaris 2.6 (maybe 2.5.1?)
19842 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19844 esac
19845 link_all_deplibs_CXX=yes
19847 output_verbose_link_cmd='func_echo_all'
19849 # Archives containing C++ object files must be created using
19850 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19851 # necessary to make sure instantiated templates are included
19852 # in the archive.
19853 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19855 gcx*)
19856 # Green Hills C++ Compiler
19857 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19859 # The C++ compiler must be used to create the archive.
19860 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19863 # GNU C++ compiler with Solaris linker
19864 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19865 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19866 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19867 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19868 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19869 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19871 # Commands to make compiler produce verbose output that lists
19872 # what "hidden" libraries, object files and flags are used when
19873 # linking a shared library.
19874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19875 else
19876 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19877 # platform.
19878 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19879 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19880 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19882 # Commands to make compiler produce verbose output that lists
19883 # what "hidden" libraries, object files and flags are used when
19884 # linking a shared library.
19885 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19888 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19889 case $host_os in
19890 solaris2.[0-5] | solaris2.[0-5].*) ;;
19892 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19894 esac
19897 esac
19900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19901 no_undefined_flag_CXX='${wl}-z,text'
19902 archive_cmds_need_lc_CXX=no
19903 hardcode_shlibpath_var_CXX=no
19904 runpath_var='LD_RUN_PATH'
19906 case $cc_basename in
19907 CC*)
19908 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19909 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19912 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19913 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19915 esac
19918 sysv5* | sco3.2v5* | sco5v6*)
19919 # Note: We can NOT use -z defs as we might desire, because we do not
19920 # link with -lc, and that would cause any symbols used from libc to
19921 # always be unresolved, which means just about no library would
19922 # ever link correctly. If we're not using GNU ld we use -z text
19923 # though, which does catch some bad symbols but isn't as heavy-handed
19924 # as -z defs.
19925 no_undefined_flag_CXX='${wl}-z,text'
19926 allow_undefined_flag_CXX='${wl}-z,nodefs'
19927 archive_cmds_need_lc_CXX=no
19928 hardcode_shlibpath_var_CXX=no
19929 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19930 hardcode_libdir_separator_CXX=':'
19931 link_all_deplibs_CXX=yes
19932 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19933 runpath_var='LD_RUN_PATH'
19935 case $cc_basename in
19936 CC*)
19937 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19938 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19939 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19940 '"$old_archive_cmds_CXX"
19941 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19942 '"$reload_cmds_CXX"
19945 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19946 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19948 esac
19951 tandem*)
19952 case $cc_basename in
19953 NCC*)
19954 # NonStop-UX NCC 3.20
19955 # FIXME: insert proper C++ library support
19956 ld_shlibs_CXX=no
19959 # FIXME: insert proper C++ library support
19960 ld_shlibs_CXX=no
19962 esac
19965 vxworks*)
19966 # FIXME: insert proper C++ library support
19967 ld_shlibs_CXX=no
19971 # FIXME: insert proper C++ library support
19972 ld_shlibs_CXX=no
19974 esac
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19977 $as_echo "$ld_shlibs_CXX" >&6; }
19978 test "$ld_shlibs_CXX" = no && can_build_shared=no
19980 GCC_CXX="$GXX"
19981 LD_CXX="$LD"
19983 ## CAVEAT EMPTOR:
19984 ## There is no encapsulation within the following macros, do not change
19985 ## the running order or otherwise move them around unless you know exactly
19986 ## what you are doing...
19987 # Dependencies to place before and after the object being linked:
19988 predep_objects_CXX=
19989 postdep_objects_CXX=
19990 predeps_CXX=
19991 postdeps_CXX=
19992 compiler_lib_search_path_CXX=
19994 cat > conftest.$ac_ext <<_LT_EOF
19995 class Foo
19997 public:
19998 Foo (void) { a = 0; }
19999 private:
20000 int a;
20002 _LT_EOF
20004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20005 (eval $ac_compile) 2>&5
20006 ac_status=$?
20007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20008 test $ac_status = 0; }; then
20009 # Parse the compiler output and extract the necessary
20010 # objects, libraries and library flags.
20012 # Sentinel used to keep track of whether or not we are before
20013 # the conftest object file.
20014 pre_test_object_deps_done=no
20016 for p in `eval "$output_verbose_link_cmd"`; do
20017 case $p in
20019 -L* | -R* | -l*)
20020 # Some compilers place space between "-{L,R}" and the path.
20021 # Remove the space.
20022 if test $p = "-L" ||
20023 test $p = "-R"; then
20024 prev=$p
20025 continue
20026 else
20027 prev=
20030 if test "$pre_test_object_deps_done" = no; then
20031 case $p in
20032 -L* | -R*)
20033 # Internal compiler library paths should come after those
20034 # provided the user. The postdeps already come after the
20035 # user supplied libs so there is no need to process them.
20036 if test -z "$compiler_lib_search_path_CXX"; then
20037 compiler_lib_search_path_CXX="${prev}${p}"
20038 else
20039 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20042 # The "-l" case would never come before the object being
20043 # linked, so don't bother handling this case.
20044 esac
20045 else
20046 if test -z "$postdeps_CXX"; then
20047 postdeps_CXX="${prev}${p}"
20048 else
20049 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20054 *.$objext)
20055 # This assumes that the test object file only shows up
20056 # once in the compiler output.
20057 if test "$p" = "conftest.$objext"; then
20058 pre_test_object_deps_done=yes
20059 continue
20062 if test "$pre_test_object_deps_done" = no; then
20063 if test -z "$predep_objects_CXX"; then
20064 predep_objects_CXX="$p"
20065 else
20066 predep_objects_CXX="$predep_objects_CXX $p"
20068 else
20069 if test -z "$postdep_objects_CXX"; then
20070 postdep_objects_CXX="$p"
20071 else
20072 postdep_objects_CXX="$postdep_objects_CXX $p"
20077 *) ;; # Ignore the rest.
20079 esac
20080 done
20082 # Clean up.
20083 rm -f a.out a.exe
20084 else
20085 echo "libtool.m4: error: problem compiling CXX test program"
20088 $RM -f confest.$objext
20090 # PORTME: override above test on systems where it is broken
20091 case $host_os in
20092 interix[3-9]*)
20093 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20094 # hack all around it, let's just trust "g++" to DTRT.
20095 predep_objects_CXX=
20096 postdep_objects_CXX=
20097 postdeps_CXX=
20100 linux*)
20101 case `$CC -V 2>&1 | sed 5q` in
20102 *Sun\ C*)
20103 # Sun C++ 5.9
20105 # The more standards-conforming stlport4 library is
20106 # incompatible with the Cstd library. Avoid specifying
20107 # it if it's in CXXFLAGS. Ignore libCrun as
20108 # -library=stlport4 depends on it.
20109 case " $CXX $CXXFLAGS " in
20110 *" -library=stlport4 "*)
20111 solaris_use_stlport4=yes
20113 esac
20115 if test "$solaris_use_stlport4" != yes; then
20116 postdeps_CXX='-library=Cstd -library=Crun'
20119 esac
20122 solaris*)
20123 case $cc_basename in
20124 CC*)
20125 # The more standards-conforming stlport4 library is
20126 # incompatible with the Cstd library. Avoid specifying
20127 # it if it's in CXXFLAGS. Ignore libCrun as
20128 # -library=stlport4 depends on it.
20129 case " $CXX $CXXFLAGS " in
20130 *" -library=stlport4 "*)
20131 solaris_use_stlport4=yes
20133 esac
20135 # Adding this requires a known-good setup of shared libraries for
20136 # Sun compiler versions before 5.6, else PIC objects from an old
20137 # archive will be linked into the output, leading to subtle bugs.
20138 if test "$solaris_use_stlport4" != yes; then
20139 postdeps_CXX='-library=Cstd -library=Crun'
20142 esac
20144 esac
20147 case " $postdeps_CXX " in
20148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20149 esac
20150 compiler_lib_search_dirs_CXX=
20151 if test -n "${compiler_lib_search_path_CXX}"; then
20152 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20185 lt_prog_compiler_wl_CXX=
20186 lt_prog_compiler_pic_CXX=
20187 lt_prog_compiler_static_CXX=
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20192 # C++ specific cases for pic, static, wl, etc.
20193 if test "$GXX" = yes; then
20194 lt_prog_compiler_wl_CXX='-Wl,'
20195 lt_prog_compiler_static_CXX='-static'
20197 case $host_os in
20198 aix*)
20199 # All AIX code is PIC.
20200 if test "$host_cpu" = ia64; then
20201 # AIX 5 now supports IA64 processor
20202 lt_prog_compiler_static_CXX='-Bstatic'
20204 lt_prog_compiler_pic_CXX='-fPIC'
20207 amigaos*)
20208 case $host_cpu in
20209 powerpc)
20210 # see comment about AmigaOS4 .so support
20211 lt_prog_compiler_pic_CXX='-fPIC'
20213 m68k)
20214 # FIXME: we need at least 68020 code to build shared libraries, but
20215 # adding the `-m68020' flag to GCC prevents building anything better,
20216 # like `-m68040'.
20217 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20219 esac
20222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20223 # PIC is the default for these OSes.
20225 mingw* | cygwin* | os2* | pw32* | cegcc*)
20226 # This hack is so that the source file can tell whether it is being
20227 # built for inclusion in a dll (and should export symbols for example).
20228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20229 # (--disable-auto-import) libraries
20230 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20232 darwin* | rhapsody*)
20233 # PIC is the default on this platform
20234 # Common symbols not allowed in MH_DYLIB files
20235 lt_prog_compiler_pic_CXX='-fno-common'
20237 *djgpp*)
20238 # DJGPP does not support shared libraries at all
20239 lt_prog_compiler_pic_CXX=
20241 haiku*)
20242 # PIC is the default for Haiku.
20243 # The "-static" flag exists, but is broken.
20244 lt_prog_compiler_static_CXX=
20246 interix[3-9]*)
20247 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20248 # Instead, we relocate shared libraries at runtime.
20250 sysv4*MP*)
20251 if test -d /usr/nec; then
20252 lt_prog_compiler_pic_CXX=-Kconform_pic
20255 hpux*)
20256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20258 # sets the default TLS model and affects inlining.
20259 case $host_cpu in
20260 hppa*64*)
20263 lt_prog_compiler_pic_CXX='-fPIC'
20265 esac
20267 *qnx* | *nto*)
20268 # QNX uses GNU C++, but need to define -shared option too, otherwise
20269 # it will coredump.
20270 lt_prog_compiler_pic_CXX='-fPIC -shared'
20273 lt_prog_compiler_pic_CXX='-fPIC'
20275 esac
20276 else
20277 case $host_os in
20278 aix[4-9]*)
20279 # All AIX code is PIC.
20280 if test "$host_cpu" = ia64; then
20281 # AIX 5 now supports IA64 processor
20282 lt_prog_compiler_static_CXX='-Bstatic'
20283 else
20284 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20287 chorus*)
20288 case $cc_basename in
20289 cxch68*)
20290 # Green Hills C++ Compiler
20291 # _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"
20293 esac
20295 dgux*)
20296 case $cc_basename in
20297 ec++*)
20298 lt_prog_compiler_pic_CXX='-KPIC'
20300 ghcx*)
20301 # Green Hills C++ Compiler
20302 lt_prog_compiler_pic_CXX='-pic'
20306 esac
20308 freebsd* | dragonfly*)
20309 # FreeBSD uses GNU C++
20311 hpux9* | hpux10* | hpux11*)
20312 case $cc_basename in
20313 CC*)
20314 lt_prog_compiler_wl_CXX='-Wl,'
20315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20316 if test "$host_cpu" != ia64; then
20317 lt_prog_compiler_pic_CXX='+Z'
20320 aCC*)
20321 lt_prog_compiler_wl_CXX='-Wl,'
20322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20323 case $host_cpu in
20324 hppa*64*|ia64*)
20325 # +Z the default
20328 lt_prog_compiler_pic_CXX='+Z'
20330 esac
20334 esac
20336 interix*)
20337 # This is c89, which is MS Visual C++ (no shared libs)
20338 # Anyone wants to do a port?
20340 irix5* | irix6* | nonstopux*)
20341 case $cc_basename in
20342 CC*)
20343 lt_prog_compiler_wl_CXX='-Wl,'
20344 lt_prog_compiler_static_CXX='-non_shared'
20345 # CC pic flag -KPIC is the default.
20349 esac
20351 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20352 case $cc_basename in
20353 KCC*)
20354 # KAI C++ Compiler
20355 lt_prog_compiler_wl_CXX='--backend -Wl,'
20356 lt_prog_compiler_pic_CXX='-fPIC'
20358 ecpc* )
20359 # old Intel C++ for x86_64 which still supported -KPIC.
20360 lt_prog_compiler_wl_CXX='-Wl,'
20361 lt_prog_compiler_pic_CXX='-KPIC'
20362 lt_prog_compiler_static_CXX='-static'
20364 icpc* )
20365 # Intel C++, used to be incompatible with GCC.
20366 # ICC 10 doesn't accept -KPIC any more.
20367 lt_prog_compiler_wl_CXX='-Wl,'
20368 lt_prog_compiler_pic_CXX='-fPIC'
20369 lt_prog_compiler_static_CXX='-static'
20371 pgCC* | pgcpp*)
20372 # Portland Group C++ compiler
20373 lt_prog_compiler_wl_CXX='-Wl,'
20374 lt_prog_compiler_pic_CXX='-fpic'
20375 lt_prog_compiler_static_CXX='-Bstatic'
20377 cxx*)
20378 # Compaq C++
20379 # Make sure the PIC flag is empty. It appears that all Alpha
20380 # Linux and Compaq Tru64 Unix objects are PIC.
20381 lt_prog_compiler_pic_CXX=
20382 lt_prog_compiler_static_CXX='-non_shared'
20384 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20385 # IBM XL 8.0, 9.0 on PPC and BlueGene
20386 lt_prog_compiler_wl_CXX='-Wl,'
20387 lt_prog_compiler_pic_CXX='-qpic'
20388 lt_prog_compiler_static_CXX='-qstaticlink'
20391 case `$CC -V 2>&1 | sed 5q` in
20392 *Sun\ C*)
20393 # Sun C++ 5.9
20394 lt_prog_compiler_pic_CXX='-KPIC'
20395 lt_prog_compiler_static_CXX='-Bstatic'
20396 lt_prog_compiler_wl_CXX='-Qoption ld '
20398 esac
20400 esac
20402 lynxos*)
20404 m88k*)
20406 mvs*)
20407 case $cc_basename in
20408 cxx*)
20409 lt_prog_compiler_pic_CXX='-W c,exportall'
20413 esac
20415 netbsd*)
20417 *qnx* | *nto*)
20418 # QNX uses GNU C++, but need to define -shared option too, otherwise
20419 # it will coredump.
20420 lt_prog_compiler_pic_CXX='-fPIC -shared'
20422 osf3* | osf4* | osf5*)
20423 case $cc_basename in
20424 KCC*)
20425 lt_prog_compiler_wl_CXX='--backend -Wl,'
20427 RCC*)
20428 # Rational C++ 2.4.1
20429 lt_prog_compiler_pic_CXX='-pic'
20431 cxx*)
20432 # Digital/Compaq C++
20433 lt_prog_compiler_wl_CXX='-Wl,'
20434 # Make sure the PIC flag is empty. It appears that all Alpha
20435 # Linux and Compaq Tru64 Unix objects are PIC.
20436 lt_prog_compiler_pic_CXX=
20437 lt_prog_compiler_static_CXX='-non_shared'
20441 esac
20443 psos*)
20445 solaris*)
20446 case $cc_basename in
20447 CC*)
20448 # Sun C++ 4.2, 5.x and Centerline C++
20449 lt_prog_compiler_pic_CXX='-KPIC'
20450 lt_prog_compiler_static_CXX='-Bstatic'
20451 lt_prog_compiler_wl_CXX='-Qoption ld '
20453 gcx*)
20454 # Green Hills C++ Compiler
20455 lt_prog_compiler_pic_CXX='-PIC'
20459 esac
20461 sunos4*)
20462 case $cc_basename in
20463 CC*)
20464 # Sun C++ 4.x
20465 lt_prog_compiler_pic_CXX='-pic'
20466 lt_prog_compiler_static_CXX='-Bstatic'
20468 lcc*)
20469 # Lucid
20470 lt_prog_compiler_pic_CXX='-pic'
20474 esac
20476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20477 case $cc_basename in
20478 CC*)
20479 lt_prog_compiler_wl_CXX='-Wl,'
20480 lt_prog_compiler_pic_CXX='-KPIC'
20481 lt_prog_compiler_static_CXX='-Bstatic'
20483 esac
20485 tandem*)
20486 case $cc_basename in
20487 NCC*)
20488 # NonStop-UX NCC 3.20
20489 lt_prog_compiler_pic_CXX='-KPIC'
20493 esac
20495 vxworks*)
20498 lt_prog_compiler_can_build_shared_CXX=no
20500 esac
20503 case $host_os in
20504 # For platforms which do not support PIC, -DPIC is meaningless:
20505 *djgpp*)
20506 lt_prog_compiler_pic_CXX=
20509 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20511 esac
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20513 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20518 # Check to make sure the PIC flag actually works.
20520 if test -n "$lt_prog_compiler_pic_CXX"; then
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20522 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20523 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20524 $as_echo_n "(cached) " >&6
20525 else
20526 lt_cv_prog_compiler_pic_works_CXX=no
20527 ac_outfile=conftest.$ac_objext
20528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20529 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20530 # Insert the option either (1) after the last *FLAGS variable, or
20531 # (2) before a word containing "conftest.", or (3) at the end.
20532 # Note that $ac_compile itself does not contain backslashes and begins
20533 # with a dollar sign (not a hyphen), so the echo should work correctly.
20534 # The option is referenced via a variable to avoid confusing sed.
20535 lt_compile=`echo "$ac_compile" | $SED \
20536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20538 -e 's:$: $lt_compiler_flag:'`
20539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20540 (eval "$lt_compile" 2>conftest.err)
20541 ac_status=$?
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 if (exit $ac_status) && test -s "$ac_outfile"; then
20545 # The compiler can only warn and ignore the option if not recognized
20546 # So say no if there are warnings other than the usual output.
20547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20549 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20550 lt_cv_prog_compiler_pic_works_CXX=yes
20553 $RM conftest*
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20557 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20559 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20560 case $lt_prog_compiler_pic_CXX in
20561 "" | " "*) ;;
20562 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20563 esac
20564 else
20565 lt_prog_compiler_pic_CXX=
20566 lt_prog_compiler_can_build_shared_CXX=no
20574 # Check to make sure the static flag actually works.
20576 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20578 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20579 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20580 $as_echo_n "(cached) " >&6
20581 else
20582 lt_cv_prog_compiler_static_works_CXX=no
20583 save_LDFLAGS="$LDFLAGS"
20584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20585 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20587 # The linker can only warn and ignore the option if not recognized
20588 # So say no if there are warnings
20589 if test -s conftest.err; then
20590 # Append any errors to the config.log.
20591 cat conftest.err 1>&5
20592 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20594 if diff conftest.exp conftest.er2 >/dev/null; then
20595 lt_cv_prog_compiler_static_works_CXX=yes
20597 else
20598 lt_cv_prog_compiler_static_works_CXX=yes
20601 $RM -r conftest*
20602 LDFLAGS="$save_LDFLAGS"
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20606 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20608 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20610 else
20611 lt_prog_compiler_static_CXX=
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20619 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20620 $as_echo_n "(cached) " >&6
20621 else
20622 lt_cv_prog_compiler_c_o_CXX=no
20623 $RM -r conftest 2>/dev/null
20624 mkdir conftest
20625 cd conftest
20626 mkdir out
20627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20629 lt_compiler_flag="-o out/conftest2.$ac_objext"
20630 # Insert the option either (1) after the last *FLAGS variable, or
20631 # (2) before a word containing "conftest.", or (3) at the end.
20632 # Note that $ac_compile itself does not contain backslashes and begins
20633 # with a dollar sign (not a hyphen), so the echo should work correctly.
20634 lt_compile=`echo "$ac_compile" | $SED \
20635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20637 -e 's:$: $lt_compiler_flag:'`
20638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20639 (eval "$lt_compile" 2>out/conftest.err)
20640 ac_status=$?
20641 cat out/conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20644 then
20645 # The compiler can only warn and ignore the option if not recognized
20646 # So say no if there are warnings
20647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20650 lt_cv_prog_compiler_c_o_CXX=yes
20653 chmod u+w . 2>&5
20654 $RM conftest*
20655 # SGI C++ compiler will create directory out/ii_files/ for
20656 # template instantiation
20657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20658 $RM out/* && rmdir out
20659 cd ..
20660 $RM -r conftest
20661 $RM conftest*
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20665 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20671 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 lt_cv_prog_compiler_c_o_CXX=no
20675 $RM -r conftest 2>/dev/null
20676 mkdir conftest
20677 cd conftest
20678 mkdir out
20679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20681 lt_compiler_flag="-o out/conftest2.$ac_objext"
20682 # Insert the option either (1) after the last *FLAGS variable, or
20683 # (2) before a word containing "conftest.", or (3) at the end.
20684 # Note that $ac_compile itself does not contain backslashes and begins
20685 # with a dollar sign (not a hyphen), so the echo should work correctly.
20686 lt_compile=`echo "$ac_compile" | $SED \
20687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20689 -e 's:$: $lt_compiler_flag:'`
20690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20691 (eval "$lt_compile" 2>out/conftest.err)
20692 ac_status=$?
20693 cat out/conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20696 then
20697 # The compiler can only warn and ignore the option if not recognized
20698 # So say no if there are warnings
20699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20702 lt_cv_prog_compiler_c_o_CXX=yes
20705 chmod u+w . 2>&5
20706 $RM conftest*
20707 # SGI C++ compiler will create directory out/ii_files/ for
20708 # template instantiation
20709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20710 $RM out/* && rmdir out
20711 cd ..
20712 $RM -r conftest
20713 $RM conftest*
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20717 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20722 hard_links="nottested"
20723 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20724 # do not overwrite the value of need_locks provided by the user
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20726 $as_echo_n "checking if we can lock with hard links... " >&6; }
20727 hard_links=yes
20728 $RM conftest*
20729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20730 touch conftest.a
20731 ln conftest.a conftest.b 2>&5 || hard_links=no
20732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20734 $as_echo "$hard_links" >&6; }
20735 if test "$hard_links" = no; then
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20737 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20738 need_locks=warn
20740 else
20741 need_locks=no
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20747 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20749 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20750 case $host_os in
20751 aix[4-9]*)
20752 # If we're using GNU nm, then we don't want the "-C" option.
20753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20754 # Also, AIX nm treats weak defined symbols like other global defined
20755 # symbols, whereas GNU nm marks them as "W".
20756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20757 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'
20758 else
20759 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'
20762 pw32*)
20763 export_symbols_cmds_CXX="$ltdll_cmds"
20765 cygwin* | mingw* | cegcc*)
20766 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'
20769 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20771 esac
20772 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20775 $as_echo "$ld_shlibs_CXX" >&6; }
20776 test "$ld_shlibs_CXX" = no && can_build_shared=no
20778 with_gnu_ld_CXX=$with_gnu_ld
20786 # Do we need to explicitly link libc?
20788 case "x$archive_cmds_need_lc_CXX" in
20789 x|xyes)
20790 # Assume -lc should be added
20791 archive_cmds_need_lc_CXX=yes
20793 if test "$enable_shared" = yes && test "$GCC" = yes; then
20794 case $archive_cmds_CXX in
20795 *'~'*)
20796 # FIXME: we may have to deal with multi-command sequences.
20798 '$CC '*)
20799 # Test whether the compiler implicitly links with -lc since on some
20800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20801 # to ld, don't add -lc before -lgcc.
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20803 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20804 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20807 $RM conftest*
20808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20811 (eval $ac_compile) 2>&5
20812 ac_status=$?
20813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20814 test $ac_status = 0; } 2>conftest.err; then
20815 soname=conftest
20816 lib=conftest
20817 libobjs=conftest.$ac_objext
20818 deplibs=
20819 wl=$lt_prog_compiler_wl_CXX
20820 pic_flag=$lt_prog_compiler_pic_CXX
20821 compiler_flags=-v
20822 linker_flags=-v
20823 verstring=
20824 output_objdir=.
20825 libname=conftest
20826 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20827 allow_undefined_flag_CXX=
20828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20829 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20830 ac_status=$?
20831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20832 test $ac_status = 0; }
20833 then
20834 lt_cv_archive_cmds_need_lc_CXX=no
20835 else
20836 lt_cv_archive_cmds_need_lc_CXX=yes
20838 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20839 else
20840 cat conftest.err 1>&5
20842 $RM conftest*
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20846 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20847 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20849 esac
20852 esac
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20918 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20920 library_names_spec=
20921 libname_spec='lib$name'
20922 soname_spec=
20923 shrext_cmds=".so"
20924 postinstall_cmds=
20925 postuninstall_cmds=
20926 finish_cmds=
20927 finish_eval=
20928 shlibpath_var=
20929 shlibpath_overrides_runpath=unknown
20930 version_type=none
20931 dynamic_linker="$host_os ld.so"
20932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20933 need_lib_prefix=unknown
20934 hardcode_into_libs=no
20936 # when you set need_version to no, make sure it does not cause -set_version
20937 # flags to be left without arguments
20938 need_version=unknown
20940 case $host_os in
20941 aix3*)
20942 version_type=linux
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20944 shlibpath_var=LIBPATH
20946 # AIX 3 has no versioning support, so we append a major version to the name.
20947 soname_spec='${libname}${release}${shared_ext}$major'
20950 aix[4-9]*)
20951 version_type=linux
20952 need_lib_prefix=no
20953 need_version=no
20954 hardcode_into_libs=yes
20955 if test "$host_cpu" = ia64; then
20956 # AIX 5 supports IA64
20957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20958 shlibpath_var=LD_LIBRARY_PATH
20959 else
20960 # With GCC up to 2.95.x, collect2 would create an import file
20961 # for dependence libraries. The import file would start with
20962 # the line `#! .'. This would cause the generated library to
20963 # depend on `.', always an invalid library. This was fixed in
20964 # development snapshots of GCC prior to 3.0.
20965 case $host_os in
20966 aix4 | aix4.[01] | aix4.[01].*)
20967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20968 echo ' yes '
20969 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20971 else
20972 can_build_shared=no
20975 esac
20976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20977 # soname into executable. Probably we can add versioning support to
20978 # collect2, so additional links can be useful in future.
20979 if test "$aix_use_runtimelinking" = yes; then
20980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20981 # instead of lib<name>.a to let people know that these are not
20982 # typical AIX shared libraries.
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20984 else
20985 # We preserve .a as extension for shared libraries through AIX4.2
20986 # and later when we are not doing run time linking.
20987 library_names_spec='${libname}${release}.a $libname.a'
20988 soname_spec='${libname}${release}${shared_ext}$major'
20990 shlibpath_var=LIBPATH
20994 amigaos*)
20995 case $host_cpu in
20996 powerpc)
20997 # Since July 2007 AmigaOS4 officially supports .so libraries.
20998 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 m68k)
21002 library_names_spec='$libname.ixlibrary $libname.a'
21003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21004 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'
21006 esac
21009 beos*)
21010 library_names_spec='${libname}${shared_ext}'
21011 dynamic_linker="$host_os ld.so"
21012 shlibpath_var=LIBRARY_PATH
21015 bsdi[45]*)
21016 version_type=linux
21017 need_version=no
21018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21019 soname_spec='${libname}${release}${shared_ext}$major'
21020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21024 # the default ld.so.conf also contains /usr/contrib/lib and
21025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21026 # libtool to hard-code these into programs
21029 cygwin* | mingw* | pw32* | cegcc*)
21030 version_type=windows
21031 shrext_cmds=".dll"
21032 need_version=no
21033 need_lib_prefix=no
21035 case $GCC,$host_os in
21036 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21037 library_names_spec='$libname.dll.a'
21038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21039 postinstall_cmds='base_file=`basename \${file}`~
21040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21041 dldir=$destdir/`dirname \$dlpath`~
21042 test -d \$dldir || mkdir -p \$dldir~
21043 $install_prog $dir/$dlname \$dldir/$dlname~
21044 chmod a+x \$dldir/$dlname~
21045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21049 dlpath=$dir/\$dldll~
21050 $RM \$dlpath'
21051 shlibpath_overrides_runpath=yes
21053 case $host_os in
21054 cygwin*)
21055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21059 mingw* | cegcc*)
21060 # MinGW DLLs use traditional 'lib' prefix
21061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21063 pw32*)
21064 # pw32 DLLs use 'pw' prefix rather than 'lib'
21065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21067 esac
21071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21073 esac
21074 dynamic_linker='Win32 ld.exe'
21075 # FIXME: first we should search . and the directory the executable is in
21076 shlibpath_var=PATH
21079 darwin* | rhapsody*)
21080 dynamic_linker="$host_os dyld"
21081 version_type=darwin
21082 need_lib_prefix=no
21083 need_version=no
21084 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21085 soname_spec='${libname}${release}${major}$shared_ext'
21086 shlibpath_overrides_runpath=yes
21087 shlibpath_var=DYLD_LIBRARY_PATH
21088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21093 dgux*)
21094 version_type=linux
21095 need_lib_prefix=no
21096 need_version=no
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21098 soname_spec='${libname}${release}${shared_ext}$major'
21099 shlibpath_var=LD_LIBRARY_PATH
21102 freebsd* | dragonfly*)
21103 # DragonFly does not have aout. When/if they implement a new
21104 # versioning mechanism, adjust this.
21105 if test -x /usr/bin/objformat; then
21106 objformat=`/usr/bin/objformat`
21107 else
21108 case $host_os in
21109 freebsd[23].*) objformat=aout ;;
21110 *) objformat=elf ;;
21111 esac
21113 version_type=freebsd-$objformat
21114 case $version_type in
21115 freebsd-elf*)
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21117 need_version=no
21118 need_lib_prefix=no
21120 freebsd-*)
21121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21122 need_version=yes
21124 esac
21125 shlibpath_var=LD_LIBRARY_PATH
21126 case $host_os in
21127 freebsd2.*)
21128 shlibpath_overrides_runpath=yes
21130 freebsd3.[01]* | freebsdelf3.[01]*)
21131 shlibpath_overrides_runpath=yes
21132 hardcode_into_libs=yes
21134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21136 shlibpath_overrides_runpath=no
21137 hardcode_into_libs=yes
21139 *) # from 4.6 on, and DragonFly
21140 shlibpath_overrides_runpath=yes
21141 hardcode_into_libs=yes
21143 esac
21146 gnu*)
21147 version_type=linux
21148 need_lib_prefix=no
21149 need_version=no
21150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21151 soname_spec='${libname}${release}${shared_ext}$major'
21152 shlibpath_var=LD_LIBRARY_PATH
21153 hardcode_into_libs=yes
21156 haiku*)
21157 version_type=linux
21158 need_lib_prefix=no
21159 need_version=no
21160 dynamic_linker="$host_os runtime_loader"
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21162 soname_spec='${libname}${release}${shared_ext}$major'
21163 shlibpath_var=LIBRARY_PATH
21164 shlibpath_overrides_runpath=yes
21165 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21166 hardcode_into_libs=yes
21169 hpux9* | hpux10* | hpux11*)
21170 # Give a soname corresponding to the major version so that dld.sl refuses to
21171 # link against other versions.
21172 version_type=sunos
21173 need_lib_prefix=no
21174 need_version=no
21175 case $host_cpu in
21176 ia64*)
21177 shrext_cmds='.so'
21178 hardcode_into_libs=yes
21179 dynamic_linker="$host_os dld.so"
21180 shlibpath_var=LD_LIBRARY_PATH
21181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 soname_spec='${libname}${release}${shared_ext}$major'
21184 if test "X$HPUX_IA64_MODE" = X32; then
21185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21186 else
21187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21191 hppa*64*)
21192 shrext_cmds='.sl'
21193 hardcode_into_libs=yes
21194 dynamic_linker="$host_os dld.sl"
21195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198 soname_spec='${libname}${release}${shared_ext}$major'
21199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21203 shrext_cmds='.sl'
21204 dynamic_linker="$host_os dld.sl"
21205 shlibpath_var=SHLIB_PATH
21206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21208 soname_spec='${libname}${release}${shared_ext}$major'
21210 esac
21211 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21212 postinstall_cmds='chmod 555 $lib'
21213 # or fails outright, so override atomically:
21214 install_override_mode=555
21217 interix[3-9]*)
21218 version_type=linux
21219 need_lib_prefix=no
21220 need_version=no
21221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21222 soname_spec='${libname}${release}${shared_ext}$major'
21223 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21224 shlibpath_var=LD_LIBRARY_PATH
21225 shlibpath_overrides_runpath=no
21226 hardcode_into_libs=yes
21229 irix5* | irix6* | nonstopux*)
21230 case $host_os in
21231 nonstopux*) version_type=nonstopux ;;
21233 if test "$lt_cv_prog_gnu_ld" = yes; then
21234 version_type=linux
21235 else
21236 version_type=irix
21237 fi ;;
21238 esac
21239 need_lib_prefix=no
21240 need_version=no
21241 soname_spec='${libname}${release}${shared_ext}$major'
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21243 case $host_os in
21244 irix5* | nonstopux*)
21245 libsuff= shlibsuff=
21248 case $LD in # libtool.m4 will add one of these switches to LD
21249 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21250 libsuff= shlibsuff= libmagic=32-bit;;
21251 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21252 libsuff=32 shlibsuff=N32 libmagic=N32;;
21253 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21254 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21255 *) libsuff= shlibsuff= libmagic=never-match;;
21256 esac
21258 esac
21259 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21260 shlibpath_overrides_runpath=no
21261 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21262 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21263 hardcode_into_libs=yes
21266 # No shared lib support for Linux oldld, aout, or coff.
21267 linux*oldld* | linux*aout* | linux*coff*)
21268 dynamic_linker=no
21271 # This must be Linux ELF.
21272 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21273 version_type=linux
21274 need_lib_prefix=no
21275 need_version=no
21276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21279 shlibpath_var=LD_LIBRARY_PATH
21280 shlibpath_overrides_runpath=no
21282 # Some binutils ld are patched to set DT_RUNPATH
21283 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21284 $as_echo_n "(cached) " >&6
21285 else
21286 lt_cv_shlibpath_overrides_runpath=no
21287 save_LDFLAGS=$LDFLAGS
21288 save_libdir=$libdir
21289 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21290 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21295 main ()
21299 return 0;
21301 _ACEOF
21302 if ac_fn_cxx_try_link "$LINENO"; then :
21303 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21304 lt_cv_shlibpath_overrides_runpath=yes
21307 rm -f core conftest.err conftest.$ac_objext \
21308 conftest$ac_exeext conftest.$ac_ext
21309 LDFLAGS=$save_LDFLAGS
21310 libdir=$save_libdir
21314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21316 # This implies no fast_install, which is unacceptable.
21317 # Some rework will be needed to allow for fast_install
21318 # before this can be enabled.
21319 hardcode_into_libs=yes
21321 # Append ld.so.conf contents to the search path
21322 if test -f /etc/ld.so.conf; then
21323 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' ' '`
21324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21327 # We used to test for /lib/ld.so.1 and disable shared libraries on
21328 # powerpc, because MkLinux only supported shared libraries with the
21329 # GNU dynamic linker. Since this was broken with cross compilers,
21330 # most powerpc-linux boxes support dynamic linking these days and
21331 # people can always --disable-shared, the test was removed, and we
21332 # assume the GNU/Linux dynamic linker is in use.
21333 dynamic_linker='GNU/Linux ld.so'
21336 netbsd*)
21337 version_type=sunos
21338 need_lib_prefix=no
21339 need_version=no
21340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21343 dynamic_linker='NetBSD (a.out) ld.so'
21344 else
21345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21346 soname_spec='${libname}${release}${shared_ext}$major'
21347 dynamic_linker='NetBSD ld.elf_so'
21349 shlibpath_var=LD_LIBRARY_PATH
21350 shlibpath_overrides_runpath=yes
21351 hardcode_into_libs=yes
21354 newsos6)
21355 version_type=linux
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357 shlibpath_var=LD_LIBRARY_PATH
21358 shlibpath_overrides_runpath=yes
21361 *nto* | *qnx*)
21362 version_type=qnx
21363 need_lib_prefix=no
21364 need_version=no
21365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 shlibpath_var=LD_LIBRARY_PATH
21368 shlibpath_overrides_runpath=no
21369 hardcode_into_libs=yes
21370 dynamic_linker='ldqnx.so'
21373 openbsd*)
21374 version_type=sunos
21375 sys_lib_dlsearch_path_spec="/usr/lib"
21376 need_lib_prefix=no
21377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21378 case $host_os in
21379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21380 *) need_version=no ;;
21381 esac
21382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21384 shlibpath_var=LD_LIBRARY_PATH
21385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21386 case $host_os in
21387 openbsd2.[89] | openbsd2.[89].*)
21388 shlibpath_overrides_runpath=no
21391 shlibpath_overrides_runpath=yes
21393 esac
21394 else
21395 shlibpath_overrides_runpath=yes
21399 os2*)
21400 libname_spec='$name'
21401 shrext_cmds=".dll"
21402 need_lib_prefix=no
21403 library_names_spec='$libname${shared_ext} $libname.a'
21404 dynamic_linker='OS/2 ld.exe'
21405 shlibpath_var=LIBPATH
21408 osf3* | osf4* | osf5*)
21409 version_type=osf
21410 need_lib_prefix=no
21411 need_version=no
21412 soname_spec='${libname}${release}${shared_ext}$major'
21413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21414 shlibpath_var=LD_LIBRARY_PATH
21415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21419 rdos*)
21420 dynamic_linker=no
21423 solaris*)
21424 version_type=linux
21425 need_lib_prefix=no
21426 need_version=no
21427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21428 soname_spec='${libname}${release}${shared_ext}$major'
21429 shlibpath_var=LD_LIBRARY_PATH
21430 shlibpath_overrides_runpath=yes
21431 hardcode_into_libs=yes
21432 # ldd complains unless libraries are executable
21433 postinstall_cmds='chmod +x $lib'
21436 sunos4*)
21437 version_type=sunos
21438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21440 shlibpath_var=LD_LIBRARY_PATH
21441 shlibpath_overrides_runpath=yes
21442 if test "$with_gnu_ld" = yes; then
21443 need_lib_prefix=no
21445 need_version=yes
21448 sysv4 | sysv4.3*)
21449 version_type=linux
21450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21451 soname_spec='${libname}${release}${shared_ext}$major'
21452 shlibpath_var=LD_LIBRARY_PATH
21453 case $host_vendor in
21454 sni)
21455 shlibpath_overrides_runpath=no
21456 need_lib_prefix=no
21457 runpath_var=LD_RUN_PATH
21459 siemens)
21460 need_lib_prefix=no
21462 motorola)
21463 need_lib_prefix=no
21464 need_version=no
21465 shlibpath_overrides_runpath=no
21466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21468 esac
21471 sysv4*MP*)
21472 if test -d /usr/nec ;then
21473 version_type=linux
21474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21475 soname_spec='$libname${shared_ext}.$major'
21476 shlibpath_var=LD_LIBRARY_PATH
21480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21481 version_type=freebsd-elf
21482 need_lib_prefix=no
21483 need_version=no
21484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21485 soname_spec='${libname}${release}${shared_ext}$major'
21486 shlibpath_var=LD_LIBRARY_PATH
21487 shlibpath_overrides_runpath=yes
21488 hardcode_into_libs=yes
21489 if test "$with_gnu_ld" = yes; then
21490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21491 else
21492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21493 case $host_os in
21494 sco3.2v5*)
21495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21497 esac
21499 sys_lib_dlsearch_path_spec='/usr/lib'
21502 tpf*)
21503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21504 version_type=linux
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 shlibpath_var=LD_LIBRARY_PATH
21509 shlibpath_overrides_runpath=no
21510 hardcode_into_libs=yes
21513 uts4*)
21514 version_type=linux
21515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21516 soname_spec='${libname}${release}${shared_ext}$major'
21517 shlibpath_var=LD_LIBRARY_PATH
21521 dynamic_linker=no
21523 esac
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21525 $as_echo "$dynamic_linker" >&6; }
21526 test "$dynamic_linker" = no && can_build_shared=no
21528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21529 if test "$GCC" = yes; then
21530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21579 hardcode_action_CXX=
21580 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21581 test -n "$runpath_var_CXX" ||
21582 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21584 # We can hardcode non-existent directories.
21585 if test "$hardcode_direct_CXX" != no &&
21586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21587 # have to relink, otherwise we might link with an installed library
21588 # when we should be linking with a yet-to-be-installed one
21589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21590 test "$hardcode_minus_L_CXX" != no; then
21591 # Linking always hardcodes the temporary library directory.
21592 hardcode_action_CXX=relink
21593 else
21594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21595 hardcode_action_CXX=immediate
21597 else
21598 # We cannot hardcode anything, or else we can only hardcode existing
21599 # directories.
21600 hardcode_action_CXX=unsupported
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21603 $as_echo "$hardcode_action_CXX" >&6; }
21605 if test "$hardcode_action_CXX" = relink ||
21606 test "$inherit_rpath_CXX" = yes; then
21607 # Fast installation is not supported
21608 enable_fast_install=no
21609 elif test "$shlibpath_overrides_runpath" = yes ||
21610 test "$enable_shared" = no; then
21611 # Fast installation is not necessary
21612 enable_fast_install=needless
21621 fi # test -n "$compiler"
21623 CC=$lt_save_CC
21624 LDCXX=$LD
21625 LD=$lt_save_LD
21626 GCC=$lt_save_GCC
21627 with_gnu_ld=$lt_save_with_gnu_ld
21628 lt_cv_path_LDCXX=$lt_cv_path_LD
21629 lt_cv_path_LD=$lt_save_path_LD
21630 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21631 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21632 fi # test "$_lt_caught_CXX_error" != yes
21634 ac_ext=cpp
21635 ac_cpp='$CXXCPP $CPPFLAGS'
21636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21655 # Only expand once:
21661 # Identify the assembler which will work hand-in-glove with the newly
21662 # built GCC, so that we can examine its features. This is the assembler
21663 # which will be driven by the driver program.
21665 # If build != host, and we aren't building gas in-tree, we identify a
21666 # build->target assembler and hope that it will have the same features
21667 # as the host->target assembler we'll be using.
21668 gcc_cv_gas_major_version=
21669 gcc_cv_gas_minor_version=
21670 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21672 if test "${gcc_cv_as+set}" = set; then :
21674 else
21676 if test -x "$DEFAULT_ASSEMBLER"; then
21677 gcc_cv_as="$DEFAULT_ASSEMBLER"
21678 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21679 && test -f ../gas/Makefile \
21680 && test x$build = x$host; then
21681 gcc_cv_as=../gas/as-new$build_exeext
21682 elif test -x as$build_exeext; then
21683 # Build using assembler in the current directory.
21684 gcc_cv_as=./as$build_exeext
21685 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21686 gcc_cv_as="$AS_FOR_TARGET"
21687 else
21688 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21689 set dummy $AS_FOR_TARGET; ac_word=$2
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21691 $as_echo_n "checking for $ac_word... " >&6; }
21692 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 case $gcc_cv_as in
21696 [\\/]* | ?:[\\/]*)
21697 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21701 for as_dir in $PATH
21703 IFS=$as_save_IFS
21704 test -z "$as_dir" && as_dir=.
21705 for ac_exec_ext in '' $ac_executable_extensions; do
21706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21707 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21709 break 2
21711 done
21712 done
21713 IFS=$as_save_IFS
21716 esac
21718 gcc_cv_as=$ac_cv_path_gcc_cv_as
21719 if test -n "$gcc_cv_as"; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21721 $as_echo "$gcc_cv_as" >&6; }
21722 else
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21724 $as_echo "no" >&6; }
21731 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21733 case "$ORIGINAL_AS_FOR_TARGET" in
21734 ./as | ./as$build_exeext) ;;
21735 *) ac_config_files="$ac_config_files as:exec-tool.in"
21737 esac
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21740 $as_echo_n "checking what assembler to use... " >&6; }
21741 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21742 # Single tree build which includes gas. We want to prefer it
21743 # over whatever linker top-level may have detected, since
21744 # we'll use what we're building after installation anyway.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21746 $as_echo "newly built gas" >&6; }
21747 in_tree_gas=yes
21748 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21749 for f in $gcc_cv_as_bfd_srcdir/configure \
21750 $gcc_cv_as_gas_srcdir/configure \
21751 $gcc_cv_as_gas_srcdir/configure.in \
21752 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21753 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21754 if test x$gcc_cv_gas_version != x; then
21755 break
21757 done
21758 case $gcc_cv_gas_version in
21759 VERSION=[0-9]*) ;;
21760 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21761 esac
21762 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21763 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21764 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21765 case $gcc_cv_gas_patch_version in
21766 "") gcc_cv_gas_patch_version="0" ;;
21767 esac
21768 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21769 + $gcc_cv_gas_minor_version \) \* 1000 \
21770 + $gcc_cv_gas_patch_version`
21772 in_tree_gas_is_elf=no
21773 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21774 || (grep 'obj_format = multi' ../gas/Makefile \
21775 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21776 then
21777 in_tree_gas_is_elf=yes
21779 else
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21781 $as_echo "$gcc_cv_as" >&6; }
21782 in_tree_gas=no
21785 default_ld=
21786 # Check whether --enable-ld was given.
21787 if test "${enable_ld+set}" = set; then :
21788 enableval=$enable_ld; case "${enableval}" in
21790 default_ld=ld.gold
21792 esac
21796 install_gold_as_default=no
21797 # Check whether --enable-gold was given.
21798 if test "${enable_gold+set}" = set; then :
21799 enableval=$enable_gold; case "${enableval}" in
21800 default)
21801 install_gold_as_default=yes
21803 yes)
21804 if test x${default_ld} != x; then
21805 install_gold_as_default=yes
21811 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21813 esac
21817 # Identify the linker which will work hand-in-glove with the newly
21818 # built GCC, so that we can examine its features. This is the linker
21819 # which will be driven by the driver program.
21821 # If build != host, and we aren't building gas in-tree, we identify a
21822 # build->target linker and hope that it will have the same features
21823 # as the host->target linker we'll be using.
21824 gcc_cv_gld_major_version=
21825 gcc_cv_gld_minor_version=
21826 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21827 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21828 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21830 if test "${gcc_cv_ld+set}" = set; then :
21832 else
21834 if test -x "$DEFAULT_LINKER"; then
21835 gcc_cv_ld="$DEFAULT_LINKER"
21836 elif test $install_gold_as_default = yes \
21837 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21838 && test -f ../gold/Makefile \
21839 && test x$build = x$host; then
21840 gcc_cv_ld=../gold/ld-new$build_exeext
21841 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21842 && test -f ../ld/Makefile \
21843 && test x$build = x$host; then
21844 gcc_cv_ld=../ld/ld-new$build_exeext
21845 elif test -x collect-ld$build_exeext; then
21846 # Build using linker in the current directory.
21847 gcc_cv_ld=./collect-ld$build_exeext
21848 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21849 gcc_cv_ld="$LD_FOR_TARGET"
21850 else
21851 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21852 set dummy $LD_FOR_TARGET; ac_word=$2
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21854 $as_echo_n "checking for $ac_word... " >&6; }
21855 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21857 else
21858 case $gcc_cv_ld in
21859 [\\/]* | ?:[\\/]*)
21860 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21866 IFS=$as_save_IFS
21867 test -z "$as_dir" && as_dir=.
21868 for ac_exec_ext in '' $ac_executable_extensions; do
21869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21870 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21872 break 2
21874 done
21875 done
21876 IFS=$as_save_IFS
21879 esac
21881 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21882 if test -n "$gcc_cv_ld"; then
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21884 $as_echo "$gcc_cv_ld" >&6; }
21885 else
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 $as_echo "no" >&6; }
21894 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21895 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21896 # if the PLUGIN_LD is set ld-new, just have it as ld
21897 # as that is the installed named.
21898 if test x$PLUGIN_LD_SUFFIX = xld-new \
21899 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21900 PLUGIN_LD_SUFFIX=ld
21903 # Check whether --with-plugin-ld was given.
21904 if test "${with_plugin_ld+set}" = set; then :
21905 withval=$with_plugin_ld; if test x"$withval" != x; then
21906 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21907 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21913 cat >>confdefs.h <<_ACEOF
21914 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21915 _ACEOF
21918 # Check to see if we are using gold instead of ld
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21920 $as_echo_n "checking whether we are using gold... " >&6; }
21921 ld_is_gold=no
21922 if test x$gcc_cv_ld != x; then
21923 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21924 | grep "GNU gold" > /dev/null; then
21925 ld_is_gold=yes
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21929 $as_echo "$ld_is_gold" >&6; }
21931 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21933 case "$ORIGINAL_LD_FOR_TARGET" in
21934 ./collect-ld | ./collect-ld$build_exeext) ;;
21935 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21937 esac
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21940 $as_echo_n "checking what linker to use... " >&6; }
21941 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21942 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21943 # Single tree build which includes ld. We want to prefer it
21944 # over whatever linker top-level may have detected, since
21945 # we'll use what we're building after installation anyway.
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21947 $as_echo "newly built ld" >&6; }
21948 in_tree_ld=yes
21949 in_tree_ld_is_elf=no
21950 if (grep 'EMUL = .*elf' ../ld/Makefile \
21951 || grep 'EMUL = .*linux' ../ld/Makefile \
21952 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21953 in_tree_ld_is_elf=yes
21954 elif test "$ld_is_gold" = yes; then
21955 in_tree_ld_is_elf=yes
21957 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
21959 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21960 if test x$gcc_cv_gld_version != x; then
21961 break
21963 done
21964 case $gcc_cv_gld_version in
21965 VERSION=[0-9]*) ;;
21966 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21967 esac
21968 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21969 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21970 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21971 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21972 else
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21974 $as_echo "$gcc_cv_ld" >&6; }
21975 in_tree_ld=no
21976 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21977 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21978 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21984 # Figure out what nm we will be using.
21985 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21986 if test "${gcc_cv_nm+set}" = set; then :
21988 else
21990 if test -f $gcc_cv_binutils_srcdir/configure.in \
21991 && test -f ../binutils/Makefile \
21992 && test x$build = x$host; then
21993 gcc_cv_nm=../binutils/nm-new$build_exeext
21994 elif test -x nm$build_exeext; then
21995 gcc_cv_nm=./nm$build_exeext
21996 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21997 gcc_cv_nm="$NM_FOR_TARGET"
21998 else
21999 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22000 set dummy $NM_FOR_TARGET; ac_word=$2
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22002 $as_echo_n "checking for $ac_word... " >&6; }
22003 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 case $gcc_cv_nm in
22007 [\\/]* | ?:[\\/]*)
22008 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22012 for as_dir in $PATH
22014 IFS=$as_save_IFS
22015 test -z "$as_dir" && as_dir=.
22016 for ac_exec_ext in '' $ac_executable_extensions; do
22017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22018 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22020 break 2
22022 done
22023 done
22024 IFS=$as_save_IFS
22027 esac
22029 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22030 if test -n "$gcc_cv_nm"; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22032 $as_echo "$gcc_cv_nm" >&6; }
22033 else
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22043 $as_echo_n "checking what nm to use... " >&6; }
22044 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22045 # Single tree build which includes binutils.
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22047 $as_echo "newly built nm" >&6; }
22048 in_tree_nm=yes
22049 else
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22051 $as_echo "$gcc_cv_nm" >&6; }
22052 in_tree_nm=no
22055 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22057 case "$ORIGINAL_NM_FOR_TARGET" in
22058 ./nm | ./nm$build_exeext) ;;
22059 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22061 esac
22064 # Figure out what objdump we will be using.
22065 if test "${gcc_cv_objdump+set}" = set; then :
22067 else
22069 if test -f $gcc_cv_binutils_srcdir/configure.in \
22070 && test -f ../binutils/Makefile \
22071 && test x$build = x$host; then
22072 # Single tree build which includes binutils.
22073 gcc_cv_objdump=../binutils/objdump$build_exeext
22074 elif test -x objdump$build_exeext; then
22075 gcc_cv_objdump=./objdump$build_exeext
22076 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22077 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22078 else
22079 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22080 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22082 $as_echo_n "checking for $ac_word... " >&6; }
22083 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22085 else
22086 case $gcc_cv_objdump in
22087 [\\/]* | ?:[\\/]*)
22088 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22092 for as_dir in $PATH
22094 IFS=$as_save_IFS
22095 test -z "$as_dir" && as_dir=.
22096 for ac_exec_ext in '' $ac_executable_extensions; do
22097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22098 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22100 break 2
22102 done
22103 done
22104 IFS=$as_save_IFS
22107 esac
22109 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22110 if test -n "$gcc_cv_objdump"; then
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22112 $as_echo "$gcc_cv_objdump" >&6; }
22113 else
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22115 $as_echo "no" >&6; }
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22123 $as_echo_n "checking what objdump to use... " >&6; }
22124 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22125 # Single tree build which includes binutils.
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22127 $as_echo "newly built objdump" >&6; }
22128 elif test x$gcc_cv_objdump = x; then
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22130 $as_echo "not found" >&6; }
22131 else
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22133 $as_echo "$gcc_cv_objdump" >&6; }
22136 # Figure out what readelf we will be using.
22137 if test "${gcc_cv_readelf+set}" = set; then :
22139 else
22141 if test -f $gcc_cv_binutils_srcdir/configure.in \
22142 && test -f ../binutils/Makefile \
22143 && test x$build = x$host; then
22144 # Single tree build which includes binutils.
22145 gcc_cv_readelf=../binutils/readelf$build_exeext
22146 elif test -x readelf$build_exeext; then
22147 gcc_cv_readelf=./readelf$build_exeext
22148 else
22149 # Extract the first word of "readelf", so it can be a program name with args.
22150 set dummy readelf; ac_word=$2
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22152 $as_echo_n "checking for $ac_word... " >&6; }
22153 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 case $gcc_cv_readelf in
22157 [\\/]* | ?:[\\/]*)
22158 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22162 for as_dir in $PATH
22164 IFS=$as_save_IFS
22165 test -z "$as_dir" && as_dir=.
22166 for ac_exec_ext in '' $ac_executable_extensions; do
22167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22168 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22170 break 2
22172 done
22173 done
22174 IFS=$as_save_IFS
22177 esac
22179 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22180 if test -n "$gcc_cv_readelf"; then
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22182 $as_echo "$gcc_cv_readelf" >&6; }
22183 else
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185 $as_echo "no" >&6; }
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22193 $as_echo_n "checking what readelf to use... " >&6; }
22194 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22195 # Single tree build which includes binutils.
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22197 $as_echo "newly built readelf" >&6; }
22198 elif test x$gcc_cv_readelf = x; then
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22200 $as_echo "not found" >&6; }
22201 else
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22203 $as_echo "$gcc_cv_readelf" >&6; }
22206 # Figure out what assembler alignment features are present.
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22208 $as_echo_n "checking assembler flags... " >&6; }
22209 if test "${gcc_cv_as_flags+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22211 else
22212 case "$target" in
22213 i[34567]86-*-linux*)
22214 gcc_cv_as_flags=--32
22216 x86_64-*-linux-gnux32)
22217 gcc_cv_as_flags=--x32
22219 x86_64-*-linux*)
22220 gcc_cv_as_flags=--64
22222 powerpc*-*-darwin*)
22223 gcc_cv_as_flags="-arch ppc"
22226 gcc_cv_as_flags=" "
22228 esac
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22231 $as_echo "$gcc_cv_as_flags" >&6; }
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22234 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22235 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22237 else
22238 gcc_cv_as_balign_and_p2align=no
22239 if test $in_tree_gas = yes; then
22240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22241 then gcc_cv_as_balign_and_p2align=yes
22243 elif test x$gcc_cv_as != x; then
22244 $as_echo '.balign 4
22245 .p2align 2' > conftest.s
22246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22251 test $ac_status = 0; }; }
22252 then
22253 gcc_cv_as_balign_and_p2align=yes
22254 else
22255 echo "configure: failed program was" >&5
22256 cat conftest.s >&5
22258 rm -f conftest.o conftest.s
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22262 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22263 if test $gcc_cv_as_balign_and_p2align = yes; then
22265 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22270 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22271 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22273 else
22274 gcc_cv_as_max_skip_p2align=no
22275 if test $in_tree_gas = yes; then
22276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22277 then gcc_cv_as_max_skip_p2align=yes
22279 elif test x$gcc_cv_as != x; then
22280 $as_echo '.p2align 4,,7' > conftest.s
22281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22286 test $ac_status = 0; }; }
22287 then
22288 gcc_cv_as_max_skip_p2align=yes
22289 else
22290 echo "configure: failed program was" >&5
22291 cat conftest.s >&5
22293 rm -f conftest.o conftest.s
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22297 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22298 if test $gcc_cv_as_max_skip_p2align = yes; then
22300 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22305 $as_echo_n "checking assembler for .literal16... " >&6; }
22306 if test "${gcc_cv_as_literal16+set}" = set; then :
22307 $as_echo_n "(cached) " >&6
22308 else
22309 gcc_cv_as_literal16=no
22310 if test $in_tree_gas = yes; then
22311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22312 then gcc_cv_as_literal16=yes
22314 elif test x$gcc_cv_as != x; then
22315 $as_echo '.literal16' > conftest.s
22316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22321 test $ac_status = 0; }; }
22322 then
22323 gcc_cv_as_literal16=yes
22324 else
22325 echo "configure: failed program was" >&5
22326 cat conftest.s >&5
22328 rm -f conftest.o conftest.s
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22332 $as_echo "$gcc_cv_as_literal16" >&6; }
22333 if test $gcc_cv_as_literal16 = yes; then
22335 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22340 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22341 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22342 $as_echo_n "(cached) " >&6
22343 else
22344 gcc_cv_as_subsection_m1=no
22345 if test $in_tree_gas = yes; then
22346 if test $in_tree_gas_is_elf = yes \
22347 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22348 then gcc_cv_as_subsection_m1=yes
22350 elif test x$gcc_cv_as != x; then
22351 $as_echo 'conftest_label1: .word 0
22352 .subsection -1
22353 conftest_label2: .word 0
22354 .previous' > conftest.s
22355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22360 test $ac_status = 0; }; }
22361 then
22362 if test x$gcc_cv_nm != x; then
22363 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22364 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22365 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22366 then :
22367 else gcc_cv_as_subsection_m1=yes
22369 rm -f conftest.nm1 conftest.nm2
22371 else
22372 echo "configure: failed program was" >&5
22373 cat conftest.s >&5
22375 rm -f conftest.o conftest.s
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22379 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22380 if test $gcc_cv_as_subsection_m1 = yes; then
22382 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22387 $as_echo_n "checking assembler for .weak... " >&6; }
22388 if test "${gcc_cv_as_weak+set}" = set; then :
22389 $as_echo_n "(cached) " >&6
22390 else
22391 gcc_cv_as_weak=no
22392 if test $in_tree_gas = yes; then
22393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22394 then gcc_cv_as_weak=yes
22396 elif test x$gcc_cv_as != x; then
22397 $as_echo ' .weak foobar' > conftest.s
22398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; }
22404 then
22405 gcc_cv_as_weak=yes
22406 else
22407 echo "configure: failed program was" >&5
22408 cat conftest.s >&5
22410 rm -f conftest.o conftest.s
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22414 $as_echo "$gcc_cv_as_weak" >&6; }
22415 if test $gcc_cv_as_weak = yes; then
22417 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22422 $as_echo_n "checking assembler for .weakref... " >&6; }
22423 if test "${gcc_cv_as_weakref+set}" = set; then :
22424 $as_echo_n "(cached) " >&6
22425 else
22426 gcc_cv_as_weakref=no
22427 if test $in_tree_gas = yes; then
22428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22429 then gcc_cv_as_weakref=yes
22431 elif test x$gcc_cv_as != x; then
22432 $as_echo ' .weakref foobar, barfnot' > conftest.s
22433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438 test $ac_status = 0; }; }
22439 then
22440 gcc_cv_as_weakref=yes
22441 else
22442 echo "configure: failed program was" >&5
22443 cat conftest.s >&5
22445 rm -f conftest.o conftest.s
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22449 $as_echo "$gcc_cv_as_weakref" >&6; }
22450 if test $gcc_cv_as_weakref = yes; then
22452 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22457 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22458 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22460 else
22461 gcc_cv_as_nsubspa_comdat=no
22462 if test $in_tree_gas = yes; then
22463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22464 then gcc_cv_as_nsubspa_comdat=yes
22466 elif test x$gcc_cv_as != x; then
22467 $as_echo ' .SPACE $TEXT$
22468 .NSUBSPA $CODE$,COMDAT' > conftest.s
22469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22471 (eval $ac_try) 2>&5
22472 ac_status=$?
22473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22474 test $ac_status = 0; }; }
22475 then
22476 gcc_cv_as_nsubspa_comdat=yes
22477 else
22478 echo "configure: failed program was" >&5
22479 cat conftest.s >&5
22481 rm -f conftest.o conftest.s
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22485 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22486 if test $gcc_cv_as_nsubspa_comdat = yes; then
22488 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22492 # .hidden needs to be supported in both the assembler and the linker,
22493 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22494 # This is irritatingly difficult to feature test for; we have to check the
22495 # date string after the version number. If we've got an in-tree
22496 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22497 # to be safe.
22498 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22500 $as_echo_n "checking assembler for .hidden... " >&6; }
22501 if test "${gcc_cv_as_hidden+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22503 else
22504 gcc_cv_as_hidden=no
22505 if test $in_tree_gas = yes; then
22506 if test $in_tree_gas_is_elf = yes \
22507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22508 then gcc_cv_as_hidden=yes
22510 elif test x$gcc_cv_as != x; then
22511 $as_echo ' .hidden foobar
22512 foobar:' > conftest.s
22513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22518 test $ac_status = 0; }; }
22519 then
22520 gcc_cv_as_hidden=yes
22521 else
22522 echo "configure: failed program was" >&5
22523 cat conftest.s >&5
22525 rm -f conftest.o conftest.s
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22529 $as_echo "$gcc_cv_as_hidden" >&6; }
22531 case "${target}" in
22532 *-*-darwin*)
22533 # Darwin as has some visibility support, though with a different syntax.
22534 gcc_cv_as_hidden=yes
22536 esac
22538 # gnu_indirect_function type is an extension proposed at
22539 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22540 # selection of function implementation
22541 # Check whether --enable-gnu-indirect-function was given.
22542 if test "${enable_gnu_indirect_function+set}" = set; then :
22543 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22544 yes | no) ;;
22545 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22546 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22547 esac
22548 else
22549 enable_gnu_indirect_function="$default_gnu_indirect_function"
22553 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22557 _ACEOF
22561 if test $in_tree_ld != yes ; then
22562 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22563 if echo "$ld_ver" | grep GNU > /dev/null; then
22564 if test x"$ld_is_gold" = xyes; then
22565 # GNU gold --version looks like this:
22567 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22569 # We extract the binutils version which is more familiar and specific
22570 # than the gold version.
22571 ld_vers=`echo $ld_ver | sed -n \
22572 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22573 else
22574 # GNU ld --version looks like this:
22576 # GNU ld (GNU Binutils) 2.21.51.20110225
22577 ld_vers=`echo $ld_ver | sed -n \
22578 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22580 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'`
22581 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22582 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22583 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22584 else
22585 case "${target}" in
22586 *-*-solaris2*)
22587 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22588 # format.
22590 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22591 # /usr/ccs/bin/ld has been configured.
22592 ld_ver=`$gcc_cv_ld -V 2>&1`
22593 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22594 ld_vers=`echo $ld_ver | sed -n \
22595 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22596 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22597 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22600 esac
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22605 $as_echo_n "checking linker for .hidden support... " >&6; }
22606 if test "${gcc_cv_ld_hidden+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 if test $in_tree_ld = yes ; then
22610 gcc_cv_ld_hidden=no
22611 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 \
22612 && test $in_tree_ld_is_elf = yes; then
22613 gcc_cv_ld_hidden=yes
22615 else
22616 gcc_cv_ld_hidden=yes
22617 if test x"$ld_is_gold" = xyes; then
22619 elif echo "$ld_ver" | grep GNU > /dev/null; then
22620 case "${target}" in
22621 mmix-knuth-mmixware)
22622 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22623 gcc_cv_ld_hidden=no
22625 esac
22626 if test 0"$ld_date" -lt 20020404; then
22627 if test -n "$ld_date"; then
22628 # If there was date string, but was earlier than 2002-04-04, fail
22629 gcc_cv_ld_hidden=no
22630 elif test -z "$ld_vers"; then
22631 # If there was no date string nor ld version number, something is wrong
22632 gcc_cv_ld_hidden=no
22633 else
22634 test -z "$ld_vers_patch" && ld_vers_patch=0
22635 if test "$ld_vers_major" -lt 2; then
22636 gcc_cv_ld_hidden=no
22637 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22638 gcc_cv_ld_hidden="no"
22639 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22640 gcc_cv_ld_hidden=no
22644 else
22645 case "${target}" in
22646 *-*-darwin*)
22647 # Darwin ld has some visibility support.
22648 gcc_cv_ld_hidden=yes
22650 hppa64*-*-hpux* | ia64*-*-hpux*)
22651 gcc_cv_ld_hidden=yes
22653 *-*-solaris2.1[0-9]*)
22654 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22655 # .symbolic was only added in Solaris 9 12/02.
22656 gcc_cv_ld_hidden=yes
22659 gcc_cv_ld_hidden=no
22661 esac
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22666 $as_echo "$gcc_cv_ld_hidden" >&6; }
22667 libgcc_visibility=no
22670 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22671 libgcc_visibility=yes
22673 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22678 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22679 gcc_cv_ld_ro_rw_mix=unknown
22680 if test $in_tree_ld = yes ; then
22681 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 \
22682 && test $in_tree_ld_is_elf = yes; then
22683 gcc_cv_ld_ro_rw_mix=read-write
22685 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22686 echo '.section myfoosect, "a"' > conftest1.s
22687 echo '.section myfoosect, "aw"' > conftest2.s
22688 echo '.byte 1' >> conftest2.s
22689 echo '.section myfoosect, "a"' > conftest3.s
22690 echo '.byte 0' >> conftest3.s
22691 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22692 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22693 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22694 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22695 conftest2.o conftest3.o > /dev/null 2>&1; then
22696 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22697 | sed -e '/myfoosect/!d' -e N`
22698 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22699 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22700 gcc_cv_ld_ro_rw_mix=read-only
22701 else
22702 gcc_cv_ld_ro_rw_mix=read-write
22706 rm -f conftest.* conftest[123].*
22708 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22710 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22714 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22716 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22717 case "${target}" in
22718 *-*-solaris2*)
22720 # Solaris 2 ld -V output looks like this for a regular version:
22722 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22724 # but test versions add stuff at the end:
22726 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22728 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22729 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22730 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22731 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22732 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22733 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22736 esac
22739 # Check whether --enable-initfini-array was given.
22740 if test "${enable_initfini_array+set}" = set; then :
22741 enableval=$enable_initfini_array;
22742 else
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22745 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22746 if test "${gcc_cv_initfini_array+set}" = set; then :
22747 $as_echo_n "(cached) " >&6
22748 else
22749 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22750 case "${target}" in
22751 ia64-*)
22752 if test "$cross_compiling" = yes; then :
22753 gcc_cv_initfini_array=no
22754 else
22755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756 /* end confdefs.h. */
22758 #ifndef __ELF__
22759 #error Not an ELF OS
22760 #endif
22761 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22762 if it can be used. */
22763 static int x = -1;
22764 int main (void) { return x; }
22765 int foo (void) { x = 0; }
22766 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22768 _ACEOF
22769 if ac_fn_cxx_try_run "$LINENO"; then :
22770 gcc_cv_initfini_array=yes
22771 else
22772 gcc_cv_initfini_array=no
22774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22775 conftest.$ac_objext conftest.beam conftest.$ac_ext
22779 gcc_cv_initfini_array=no
22780 if test $in_tree_ld = yes ; then
22781 if test "$gcc_cv_gld_major_version" -eq 2 \
22782 -a "$gcc_cv_gld_minor_version" -ge 22 \
22783 -o "$gcc_cv_gld_major_version" -gt 2 \
22784 && test $in_tree_ld_is_elf = yes; then
22785 gcc_cv_initfini_array=yes
22787 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22788 cat > conftest.s <<\EOF
22789 .section .dtors,"a",%progbits
22790 .balign 4
22791 .byte 'A', 'A', 'A', 'A'
22792 .section .ctors,"a",%progbits
22793 .balign 4
22794 .byte 'B', 'B', 'B', 'B'
22795 .section .fini_array.65530,"a",%progbits
22796 .balign 4
22797 .byte 'C', 'C', 'C', 'C'
22798 .section .init_array.65530,"a",%progbits
22799 .balign 4
22800 .byte 'D', 'D', 'D', 'D'
22801 .section .dtors.64528,"a",%progbits
22802 .balign 4
22803 .byte 'E', 'E', 'E', 'E'
22804 .section .ctors.64528,"a",%progbits
22805 .balign 4
22806 .byte 'F', 'F', 'F', 'F'
22807 .section .fini_array.01005,"a",%progbits
22808 .balign 4
22809 .byte 'G', 'G', 'G', 'G'
22810 .section .init_array.01005,"a",%progbits
22811 .balign 4
22812 .byte 'H', 'H', 'H', 'H'
22813 .text
22814 .globl _start
22815 _start:
22817 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22818 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22819 && $gcc_cv_objdump -s -j .init_array conftest \
22820 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22821 && $gcc_cv_objdump -s -j .fini_array conftest \
22822 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22823 gcc_cv_initfini_array=yes
22825 rm -f conftest conftest.*
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h. */
22830 #ifndef __ELF__
22831 # error Not an ELF OS
22832 #endif
22833 #include <stdlib.h>
22834 #if defined __GLIBC_PREREQ
22835 # if __GLIBC_PREREQ (2, 4)
22836 # else
22837 # error GLIBC 2.4 required
22838 # endif
22839 #else
22840 # if defined __sun__ && defined __svr4__
22841 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22842 # else
22843 # error The C library not known to support .init_array/.fini_array
22844 # endif
22845 #endif
22847 _ACEOF
22848 if ac_fn_cxx_try_cpp "$LINENO"; then :
22850 else
22851 gcc_cv_initfini_array=no
22853 rm -f conftest.err conftest.$ac_ext;;
22854 esac
22855 else
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22857 $as_echo_n "checking cross compile... guessing... " >&6; }
22858 gcc_cv_initfini_array=no
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22862 $as_echo "$gcc_cv_initfini_array" >&6; }
22863 enable_initfini_array=$gcc_cv_initfini_array
22867 if test $enable_initfini_array = yes; then
22869 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22873 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22875 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22876 if test "${gcc_cv_as_leb128+set}" = set; then :
22877 $as_echo_n "(cached) " >&6
22878 else
22879 gcc_cv_as_leb128=no
22880 if test $in_tree_gas = yes; then
22881 if test $in_tree_gas_is_elf = yes \
22882 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22883 then gcc_cv_as_leb128=yes
22885 elif test x$gcc_cv_as != x; then
22886 $as_echo ' .data
22887 .uleb128 L2 - L1
22889 .uleb128 1280
22890 .sleb128 -1010
22891 L2:' > conftest.s
22892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22897 test $ac_status = 0; }; }
22898 then
22899 # GAS versions before 2.11 do not support uleb128,
22900 # despite appearing to.
22901 # ??? There exists an elf-specific test that will crash
22902 # the assembler. Perhaps it's better to figure out whether
22903 # arbitrary sections are supported and try the test.
22904 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22905 if echo "$as_ver" | grep GNU > /dev/null; then
22906 as_vers=`echo $as_ver | sed -n \
22907 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22908 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22909 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22910 if test $as_major -eq 2 && test $as_minor -lt 11
22911 then :
22912 else gcc_cv_as_leb128=yes
22915 else
22916 echo "configure: failed program was" >&5
22917 cat conftest.s >&5
22919 rm -f conftest.o conftest.s
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22923 $as_echo "$gcc_cv_as_leb128" >&6; }
22924 if test $gcc_cv_as_leb128 = yes; then
22926 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22930 # Check if we have assembler support for unwind directives.
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22932 $as_echo_n "checking assembler for cfi directives... " >&6; }
22933 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22934 $as_echo_n "(cached) " >&6
22935 else
22936 gcc_cv_as_cfi_directive=no
22937 if test x$gcc_cv_as != x; then
22938 $as_echo ' .text
22939 .cfi_startproc
22940 .cfi_offset 0, 0
22941 .cfi_same_value 1
22942 .cfi_def_cfa 1, 2
22943 .cfi_escape 1, 2, 3, 4, 5
22944 .cfi_endproc' > conftest.s
22945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22950 test $ac_status = 0; }; }
22951 then
22952 case "$target" in
22953 *-*-solaris*)
22954 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22955 # read-only and read-write sections, we need to make sure that the
22956 # assembler used emits read-write .eh_frame sections.
22957 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22958 if test "x$gcc_cv_objdump" != x; then
22959 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22960 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22961 gcc_cv_as_cfi_directive=no
22962 else
22963 case "$target" in
22964 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22965 # On Solaris/x86, make sure that GCC and assembler agree on using
22966 # read-only .eh_frame sections for 64-bit.
22967 if test x$gas = xyes; then
22968 as_ix86_64_opt="--64"
22969 else
22970 as_ix86_64_opt="-xarch=amd64"
22972 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22973 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22974 sed -e /.eh_frame/!d -e N | \
22975 grep READONLY > /dev/null; then
22976 gcc_cv_as_cfi_directive=yes
22977 else
22978 gcc_cv_as_cfi_directive=no
22982 gcc_cv_as_cfi_directive=yes
22984 esac
22986 else
22987 # no objdump, err on the side of caution
22988 gcc_cv_as_cfi_directive=no
22990 else
22991 gcc_cv_as_cfi_directive=yes
22994 *-*-*)
22995 gcc_cv_as_cfi_directive=yes
22997 esac
22998 else
22999 echo "configure: failed program was" >&5
23000 cat conftest.s >&5
23002 rm -f conftest.o conftest.s
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23006 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23008 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23010 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23011 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 gcc_cv_as_cfi_advance_working=no
23015 if test x$gcc_cv_as != x; then
23016 $as_echo ' .text
23017 .cfi_startproc
23018 .cfi_adjust_cfa_offset 64
23019 .skip 75040, 0
23020 .cfi_adjust_cfa_offset 128
23021 .cfi_endproc' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23030 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23031 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23032 gcc_cv_as_cfi_advance_working=yes
23035 else
23036 echo "configure: failed program was" >&5
23037 cat conftest.s >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23043 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23045 else
23046 # no objdump, err on the side of caution
23047 gcc_cv_as_cfi_advance_working=no
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23053 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23054 _ACEOF
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23059 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23060 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 gcc_cv_as_cfi_personality_directive=no
23064 if test x$gcc_cv_as != x; then
23065 $as_echo ' .text
23066 .cfi_startproc
23067 .cfi_personality 0, symbol
23068 .cfi_endproc' > conftest.s
23069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23074 test $ac_status = 0; }; }
23075 then
23076 gcc_cv_as_cfi_personality_directive=yes
23077 else
23078 echo "configure: failed program was" >&5
23079 cat conftest.s >&5
23081 rm -f conftest.o conftest.s
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23085 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23088 cat >>confdefs.h <<_ACEOF
23089 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23090 then echo 1; else echo 0; fi`
23091 _ACEOF
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23095 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23096 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23099 gcc_cv_as_cfi_sections_directive=no
23100 if test x$gcc_cv_as != x; then
23101 $as_echo ' .text
23102 .cfi_sections .debug_frame, .eh_frame
23103 .cfi_startproc
23104 .cfi_endproc' > conftest.s
23105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; }
23111 then
23112 case $target_os in
23113 win32 | pe | cygwin* | mingw32* | uwin*)
23114 # Need to check that we generated the correct relocation for the
23115 # .debug_frame section. This was fixed for binutils 2.21.
23116 gcc_cv_as_cfi_sections_directive=no
23117 if test "x$gcc_cv_objdump" != x; then
23118 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23119 grep secrel > /dev/null; then
23120 gcc_cv_as_cfi_sections_directive=yes
23125 gcc_cv_as_cfi_sections_directive=yes
23127 esac
23128 else
23129 echo "configure: failed program was" >&5
23130 cat conftest.s >&5
23132 rm -f conftest.o conftest.s
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23136 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23140 cat >>confdefs.h <<_ACEOF
23141 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23142 then echo 1; else echo 0; fi`
23143 _ACEOF
23146 # GAS versions up to and including 2.11.0 may mis-optimize
23147 # .eh_frame data.
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23149 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23150 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23151 $as_echo_n "(cached) " >&6
23152 else
23153 gcc_cv_as_eh_frame=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_eh_frame=yes
23159 elif test x$gcc_cv_as != x; then
23160 $as_echo ' .text
23161 .LFB1:
23162 .4byte 0
23163 .L1:
23164 .4byte 0
23165 .LFE1:
23166 .section .eh_frame,"aw",@progbits
23167 __FRAME_BEGIN__:
23168 .4byte .LECIE1-.LSCIE1
23169 .LSCIE1:
23170 .4byte 0x0
23171 .byte 0x1
23172 .ascii "z\0"
23173 .byte 0x1
23174 .byte 0x78
23175 .byte 0x1a
23176 .byte 0x0
23177 .byte 0x4
23178 .4byte 1
23179 .p2align 1
23180 .LECIE1:
23181 .LSFDE1:
23182 .4byte .LEFDE1-.LASFDE1
23183 .LASFDE1:
23184 .4byte .LASFDE1-__FRAME_BEGIN__
23185 .4byte .LFB1
23186 .4byte .LFE1-.LFB1
23187 .byte 0x4
23188 .4byte .LFE1-.LFB1
23189 .byte 0x4
23190 .4byte .L1-.LFB1
23191 .LEFDE1:' > conftest.s
23192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23197 test $ac_status = 0; }; }
23198 then
23199 cat > conftest.lit <<EOF
23200 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23201 0010 01000000 12000000 18000000 00000000 ................
23202 0020 08000000 04080000 0044 .........D
23204 cat > conftest.big <<EOF
23205 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23206 0010 00000001 00000012 00000018 00000000 ................
23207 0020 00000008 04000000 0844 .........D
23209 # If the assembler didn't choke, and we can objdump,
23210 # and we got the correct data, then succeed.
23211 # The text in the here-document typically retains its unix-style line
23212 # endings, while the output of objdump will use host line endings.
23213 # Therefore, use diff -b for the comparisons.
23214 if test x$gcc_cv_objdump != x \
23215 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23216 | tail -3 > conftest.got \
23217 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23218 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23219 then
23220 gcc_cv_as_eh_frame=yes
23221 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23226 test $ac_status = 0; }; }; then
23227 gcc_cv_as_eh_frame=buggy
23228 else
23229 # Uh oh, what do we do now?
23230 gcc_cv_as_eh_frame=no
23232 else
23233 echo "configure: failed program was" >&5
23234 cat conftest.s >&5
23236 rm -f conftest.o conftest.s
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23240 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23243 if test $gcc_cv_as_eh_frame = buggy; then
23245 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23250 $as_echo_n "checking assembler for section merging support... " >&6; }
23251 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23252 $as_echo_n "(cached) " >&6
23253 else
23254 gcc_cv_as_shf_merge=no
23255 if test $in_tree_gas = yes; then
23256 if test $in_tree_gas_is_elf = yes \
23257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23258 then gcc_cv_as_shf_merge=yes
23260 elif test x$gcc_cv_as != x; then
23261 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23267 test $ac_status = 0; }; }
23268 then
23269 gcc_cv_as_shf_merge=yes
23270 else
23271 echo "configure: failed program was" >&5
23272 cat conftest.s >&5
23274 rm -f conftest.o conftest.s
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23278 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23280 if test $gcc_cv_as_shf_merge = no; then
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23282 $as_echo_n "checking assembler for section merging support... " >&6; }
23283 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23284 $as_echo_n "(cached) " >&6
23285 else
23286 gcc_cv_as_shf_merge=no
23287 if test $in_tree_gas = yes; then
23288 if test $in_tree_gas_is_elf = yes \
23289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23290 then gcc_cv_as_shf_merge=yes
23292 elif test x$gcc_cv_as != x; then
23293 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299 test $ac_status = 0; }; }
23300 then
23301 gcc_cv_as_shf_merge=yes
23302 else
23303 echo "configure: failed program was" >&5
23304 cat conftest.s >&5
23306 rm -f conftest.o conftest.s
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23310 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23316 _ACEOF
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23320 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23321 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23322 $as_echo_n "(cached) " >&6
23323 else
23324 gcc_cv_as_comdat_group=no
23325 if test $in_tree_gas = yes; then
23326 if test $in_tree_gas_is_elf = yes \
23327 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23328 then gcc_cv_as_comdat_group=yes
23330 elif test x$gcc_cv_as != x; then
23331 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 gcc_cv_as_comdat_group=yes
23340 else
23341 echo "configure: failed program was" >&5
23342 cat conftest.s >&5
23344 rm -f conftest.o conftest.s
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23348 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23350 if test $gcc_cv_as_comdat_group = yes; then
23351 gcc_cv_as_comdat_group_percent=no
23352 gcc_cv_as_comdat_group_group=no
23353 else
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23355 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23356 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 gcc_cv_as_comdat_group_percent=no
23360 if test $in_tree_gas = yes; then
23361 if test $in_tree_gas_is_elf = yes \
23362 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23363 then gcc_cv_as_comdat_group_percent=yes
23365 elif test x$gcc_cv_as != x; then
23366 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23373 then
23374 gcc_cv_as_comdat_group_percent=yes
23375 else
23376 echo "configure: failed program was" >&5
23377 cat conftest.s >&5
23379 rm -f conftest.o conftest.s
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23383 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23385 if test $gcc_cv_as_comdat_group_percent = yes; then
23386 gcc_cv_as_comdat_group_group=no
23387 else
23388 case "${target}" in
23389 # Sun as uses a completely different syntax.
23390 *-*-solaris2*)
23391 case "${target}" in
23392 sparc*-*-solaris2*)
23393 conftest_s='
23394 .group foo,".text%foo",#comdat
23395 .section ".text%foo", #alloc,#execinstr,#progbits
23396 .globl foo
23397 foo:
23400 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23401 conftest_s='
23402 .group foo,.text%foo,#comdat
23403 .section .text%foo, "ax", @progbits
23404 .globl foo
23405 foo:
23408 esac
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23410 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23411 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23412 $as_echo_n "(cached) " >&6
23413 else
23414 gcc_cv_as_comdat_group_group=no
23415 if test x$gcc_cv_as != x; then
23416 $as_echo "$conftest_s" > conftest.s
23417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; }
23423 then
23424 gcc_cv_as_comdat_group_group=yes
23425 else
23426 echo "configure: failed program was" >&5
23427 cat conftest.s >&5
23429 rm -f conftest.o conftest.s
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23433 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23436 esac
23437 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23438 gcc_cv_as_comdat_group_group=no
23442 if test x"$ld_is_gold" = xyes; then
23443 comdat_group=yes
23444 elif test $in_tree_ld = yes ; then
23445 comdat_group=no
23446 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 \
23447 && test $in_tree_ld_is_elf = yes; then
23448 comdat_group=yes
23450 elif echo "$ld_ver" | grep GNU > /dev/null; then
23451 comdat_group=yes
23452 if test 0"$ld_date" -lt 20050308; then
23453 if test -n "$ld_date"; then
23454 # If there was date string, but was earlier than 2005-03-08, fail
23455 comdat_group=no
23456 elif test "$ld_vers_major" -lt 2; then
23457 comdat_group=no
23458 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23459 comdat_group=no
23462 else
23463 case "${target}" in
23464 *-*-solaris2.1[1-9]*)
23465 comdat_group=no
23466 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23467 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23468 # version 1.688.
23470 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23471 # least ld version 1.2267.
23472 if test "$ld_vers_major" -gt 1; then
23473 comdat_group=yes
23474 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23475 comdat_group=yes
23476 elif test "$ld_vers_minor" -ge 2267; then
23477 comdat_group=yes
23481 # Assume linkers other than GNU ld don't support COMDAT group.
23482 comdat_group=no
23484 esac
23486 # Allow overriding the automatic COMDAT group tests above.
23487 # Check whether --enable-comdat was given.
23488 if test "${enable_comdat+set}" = set; then :
23489 enableval=$enable_comdat; comdat_group="$enable_comdat"
23492 if test $comdat_group = no; then
23493 gcc_cv_as_comdat_group=no
23494 gcc_cv_as_comdat_group_percent=no
23495 gcc_cv_as_comdat_group_group=no
23498 cat >>confdefs.h <<_ACEOF
23499 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23500 || test $gcc_cv_as_comdat_group_percent = yes \
23501 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23502 _ACEOF
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23506 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23507 if test "${gcc_cv_as_discriminator+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 gcc_cv_as_discriminator=no
23511 if test $in_tree_gas = yes; then
23512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23513 then gcc_cv_as_discriminator=yes
23515 elif test x$gcc_cv_as != x; then
23516 $as_echo ' .text
23517 .file 1 "conf.c"
23518 .loc 1 1 0 discriminator 1' > conftest.s
23519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23522 ac_status=$?
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23525 then
23526 gcc_cv_as_discriminator=yes
23527 else
23528 echo "configure: failed program was" >&5
23529 cat conftest.s >&5
23531 rm -f conftest.o conftest.s
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23535 $as_echo "$gcc_cv_as_discriminator" >&6; }
23536 if test $gcc_cv_as_discriminator = yes; then
23538 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23542 # Thread-local storage - the check is heavily parameterized.
23543 conftest_s=
23544 tls_first_major=
23545 tls_first_minor=
23546 tls_as_opt=
23547 case "$target" in
23548 alpha*-*-*)
23549 conftest_s='
23550 .section ".tdata","awT",@progbits
23551 foo: .long 25
23552 .text
23553 ldq $27,__tls_get_addr($29) !literal!1
23554 lda $16,foo($29) !tlsgd!1
23555 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23556 ldq $27,__tls_get_addr($29) !literal!2
23557 lda $16,foo($29) !tlsldm!2
23558 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23559 ldq $1,foo($29) !gotdtprel
23560 ldah $2,foo($29) !dtprelhi
23561 lda $3,foo($2) !dtprello
23562 lda $4,foo($29) !dtprel
23563 ldq $1,foo($29) !gottprel
23564 ldah $2,foo($29) !tprelhi
23565 lda $3,foo($2) !tprello
23566 lda $4,foo($29) !tprel'
23567 tls_first_major=2
23568 tls_first_minor=13
23569 tls_as_opt=--fatal-warnings
23571 cris-*-*|crisv32-*-*)
23572 conftest_s='
23573 .section ".tdata","awT",@progbits
23574 x: .long 25
23575 .text
23576 move.d x:IE,$r10
23577 nop'
23578 tls_first_major=2
23579 tls_first_minor=20
23580 tls_as_opt=--fatal-warnings
23582 frv*-*-*)
23583 conftest_s='
23584 .section ".tdata","awT",@progbits
23585 x: .long 25
23586 .text
23587 call #gettlsoff(x)'
23588 tls_first_major=2
23589 tls_first_minor=14
23591 hppa*-*-linux*)
23592 conftest_s='
23593 t1: .reg %r20
23594 t2: .reg %r21
23595 gp: .reg %r19
23596 .section ".tdata","awT",@progbits
23597 foo: .long 25
23598 .text
23599 .align 4
23600 addil LT%foo-$tls_gdidx$,gp
23601 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23602 b __tls_get_addr
23604 addil LT%foo-$tls_ldidx$,gp
23605 b __tls_get_addr
23606 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23607 addil LR%foo-$tls_dtpoff$,%ret0
23608 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23609 mfctl %cr27,%t1
23610 addil LT%foo-$tls_ieoff$,gp
23611 ldw RT%foo-$tls_ieoff$(%r1),%t2
23612 add %t1,%t2,%t3
23613 mfctl %cr27,%t1
23614 addil LR%foo-$tls_leoff$,%t1
23615 ldo RR%foo-$tls_leoff$(%r1),%t2'
23616 tls_first_major=2
23617 tls_first_minor=15
23618 tls_as_opt=--fatal-warnings
23620 arm*-*-*)
23621 conftest_s='
23622 .section ".tdata","awT",%progbits
23623 foo: .long 25
23624 .text
23625 .word foo(gottpoff)
23626 .word foo(tpoff)
23627 .word foo(tlsgd)
23628 .word foo(tlsldm)
23629 .word foo(tlsldo)'
23630 tls_first_major=2
23631 tls_first_minor=17
23633 i[34567]86-*-* | x86_64-*-*)
23634 case "$target" in
23635 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23636 on_solaris=yes
23639 on_solaris=no
23641 esac
23642 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23643 conftest_s='
23644 .section .tdata,"awt",@progbits'
23645 tls_first_major=0
23646 tls_first_minor=0
23647 tls_section_flag=t
23649 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23651 else
23652 conftest_s='
23653 .section ".tdata","awT",@progbits'
23654 tls_first_major=2
23655 tls_first_minor=14
23656 tls_section_flag=T
23657 tls_as_opt="--fatal-warnings"
23659 case "$target" in
23660 i[34567]86-*-*)
23661 conftest_s="$conftest_s
23662 foo: .long 25
23663 .text
23664 movl %gs:0, %eax
23665 leal foo@tlsgd(,%ebx,1), %eax
23666 leal foo@tlsldm(%ebx), %eax
23667 leal foo@dtpoff(%eax), %edx
23668 movl foo@gottpoff(%ebx), %eax
23669 subl foo@gottpoff(%ebx), %eax
23670 addl foo@gotntpoff(%ebx), %eax
23671 movl foo@indntpoff, %eax
23672 movl \$foo@tpoff, %eax
23673 subl \$foo@tpoff, %eax
23674 leal foo@ntpoff(%ecx), %eax"
23676 x86_64-*-*)
23677 if test x$on_solaris = xyes; then
23678 case $gas_flag in
23679 yes) tls_as_opt="$tls_as_opt --64" ;;
23680 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23681 esac
23683 conftest_s="$conftest_s
23684 foo: .long 25
23685 .text
23686 movq %fs:0, %rax
23687 leaq foo@tlsgd(%rip), %rdi
23688 leaq foo@tlsld(%rip), %rdi
23689 leaq foo@dtpoff(%rax), %rdx
23690 movq foo@gottpoff(%rip), %rax
23691 movq \$foo@tpoff, %rax"
23693 esac
23695 ia64-*-*)
23696 conftest_s='
23697 .section ".tdata","awT",@progbits
23698 foo: data8 25
23699 .text
23700 addl r16 = @ltoff(@dtpmod(foo#)), gp
23701 addl r17 = @ltoff(@dtprel(foo#)), gp
23702 addl r18 = @ltoff(@tprel(foo#)), gp
23703 addl r19 = @dtprel(foo#), gp
23704 adds r21 = @dtprel(foo#), r13
23705 movl r23 = @dtprel(foo#)
23706 addl r20 = @tprel(foo#), gp
23707 adds r22 = @tprel(foo#), r13
23708 movl r24 = @tprel(foo#)'
23709 tls_first_major=2
23710 tls_first_minor=13
23711 tls_as_opt=--fatal-warnings
23713 microblaze*-*-*)
23714 conftest_s='
23715 .section .tdata,"awT",@progbits
23717 .word 2
23718 .text
23719 addik r5,r20,x@TLSGD
23720 addik r5,r20,x@TLSLDM'
23721 tls_first_major=2
23722 tls_first_minor=20
23723 tls_as_opt='--fatal-warnings'
23725 mips*-*-*)
23726 conftest_s='
23727 .section .tdata,"awT",@progbits
23729 .word 2
23730 .text
23731 addiu $4, $28, %tlsgd(x)
23732 addiu $4, $28, %tlsldm(x)
23733 lui $4, %dtprel_hi(x)
23734 addiu $4, $4, %dtprel_lo(x)
23735 lw $4, %gottprel(x)($28)
23736 lui $4, %tprel_hi(x)
23737 addiu $4, $4, %tprel_lo(x)'
23738 tls_first_major=2
23739 tls_first_minor=16
23740 tls_as_opt='-32 --fatal-warnings'
23742 m68k-*-*)
23743 conftest_s='
23744 .section .tdata,"awT",@progbits
23746 .word 2
23747 .text
23748 foo:
23749 move.l x@TLSGD(%a5),%a0
23750 move.l x@TLSLDM(%a5),%a0
23751 move.l x@TLSLDO(%a5),%a0
23752 move.l x@TLSIE(%a5),%a0
23753 move.l x@TLSLE(%a5),%a0'
23754 tls_first_major=2
23755 tls_first_minor=19
23756 tls_as_opt='--fatal-warnings'
23758 nios2-*-*)
23759 conftest_s='
23760 .section ".tdata","awT",@progbits'
23761 tls_first_major=2
23762 tls_first_minor=23
23763 tls_as_opt="--fatal-warnings"
23765 aarch64*-*-*)
23766 conftest_s='
23767 .section ".tdata","awT",%progbits
23768 foo: .long 25
23769 .text
23770 adrp x0, :tlsgd:x
23771 add x0, x0, #:tlsgd_lo12:x
23772 bl __tls_get_addr
23773 nop'
23774 tls_first_major=2
23775 tls_first_minor=20
23776 tls_as_opt='--fatal-warnings'
23778 powerpc-ibm-aix*)
23779 conftest_s='
23780 .extern __get_tpointer
23781 .toc
23782 LC..1:
23783 .tc a[TC],a[TL]@le
23784 .csect .text[PR]
23785 .tlstest:
23786 lwz 9,LC..1(2)
23787 bla __get_tpointer
23788 lwzx 3,9,3
23789 .globl a
23790 .csect a[TL],4
23792 .space 4'
23793 tls_first_major=0
23794 tls_first_minor=0
23796 powerpc64*-*-*)
23797 conftest_s='
23798 .section ".tdata","awT",@progbits
23799 .align 3
23800 ld0: .space 8
23801 ld1: .space 8
23802 x1: .space 8
23803 x2: .space 8
23804 x3: .space 8
23805 .text
23806 addi 3,2,ld0@got@tlsgd
23807 bl .__tls_get_addr
23809 addi 3,2,ld1@toc
23810 bl .__tls_get_addr
23812 addi 3,2,x1@got@tlsld
23813 bl .__tls_get_addr
23815 addi 9,3,x1@dtprel
23816 bl .__tls_get_addr
23818 addis 9,3,x2@dtprel@ha
23819 addi 9,9,x2@dtprel@l
23820 bl .__tls_get_addr
23822 ld 9,x3@got@dtprel(2)
23823 add 9,9,3
23824 bl .__tls_get_addr
23825 nop'
23826 tls_first_major=2
23827 tls_first_minor=14
23828 tls_as_opt="-a64 --fatal-warnings"
23830 powerpc*-*-*)
23831 conftest_s='
23832 .section ".tdata","awT",@progbits
23833 .align 2
23834 ld0: .space 4
23835 ld1: .space 4
23836 x1: .space 4
23837 x2: .space 4
23838 x3: .space 4
23839 .text
23840 addi 3,31,ld0@got@tlsgd
23841 bl __tls_get_addr
23842 addi 3,31,x1@got@tlsld
23843 bl __tls_get_addr
23844 addi 9,3,x1@dtprel
23845 addis 9,3,x2@dtprel@ha
23846 addi 9,9,x2@dtprel@l
23847 lwz 9,x3@got@tprel(31)
23848 add 9,9,x@tls
23849 addi 9,2,x1@tprel
23850 addis 9,2,x2@tprel@ha
23851 addi 9,9,x2@tprel@l'
23852 tls_first_major=2
23853 tls_first_minor=14
23854 tls_as_opt="-a32 --fatal-warnings"
23856 s390-*-*)
23857 conftest_s='
23858 .section ".tdata","awT",@progbits
23859 foo: .long 25
23860 .text
23861 .long foo@TLSGD
23862 .long foo@TLSLDM
23863 .long foo@DTPOFF
23864 .long foo@NTPOFF
23865 .long foo@GOTNTPOFF
23866 .long foo@INDNTPOFF
23867 l %r1,foo@GOTNTPOFF(%r12)
23868 l %r1,0(%r1):tls_load:foo
23869 bas %r14,0(%r1,%r13):tls_gdcall:foo
23870 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23871 tls_first_major=2
23872 tls_first_minor=14
23873 tls_as_opt="-m31 --fatal-warnings"
23875 s390x-*-*)
23876 conftest_s='
23877 .section ".tdata","awT",@progbits
23878 foo: .long 25
23879 .text
23880 .quad foo@TLSGD
23881 .quad foo@TLSLDM
23882 .quad foo@DTPOFF
23883 .quad foo@NTPOFF
23884 .quad foo@GOTNTPOFF
23885 lg %r1,foo@GOTNTPOFF(%r12)
23886 larl %r1,foo@INDNTPOFF
23887 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23888 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23889 tls_first_major=2
23890 tls_first_minor=14
23891 tls_as_opt="-m64 -Aesame --fatal-warnings"
23893 sh-*-* | sh[34]-*-*)
23894 conftest_s='
23895 .section ".tdata","awT",@progbits
23896 foo: .long 25
23897 .text
23898 .long foo@TLSGD
23899 .long foo@TLSLDM
23900 .long foo@DTPOFF
23901 .long foo@GOTTPOFF
23902 .long foo@TPOFF'
23903 tls_first_major=2
23904 tls_first_minor=13
23905 tls_as_opt=--fatal-warnings
23907 sparc*-*-*)
23908 case "$target" in
23909 sparc*-sun-solaris2.*)
23910 on_solaris=yes
23913 on_solaris=no
23915 esac
23916 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23917 conftest_s='
23918 .section ".tdata",#alloc,#write,#tls'
23919 tls_first_major=0
23920 tls_first_minor=0
23921 else
23922 conftest_s='
23923 .section ".tdata","awT",@progbits'
23924 tls_first_major=2
23925 tls_first_minor=14
23926 tls_as_opt="-32 --fatal-warnings"
23928 conftest_s="$conftest_s
23929 foo: .long 25
23930 .text
23931 sethi %tgd_hi22(foo), %o0
23932 add %o0, %tgd_lo10(foo), %o1
23933 add %l7, %o1, %o0, %tgd_add(foo)
23934 call __tls_get_addr, %tgd_call(foo)
23935 sethi %tldm_hi22(foo), %l1
23936 add %l1, %tldm_lo10(foo), %l2
23937 add %l7, %l2, %o0, %tldm_add(foo)
23938 call __tls_get_addr, %tldm_call(foo)
23939 sethi %tldo_hix22(foo), %l3
23940 xor %l3, %tldo_lox10(foo), %l4
23941 add %o0, %l4, %l5, %tldo_add(foo)
23942 sethi %tie_hi22(foo), %o3
23943 add %o3, %tie_lo10(foo), %o3
23944 ld [%l7 + %o3], %o2, %tie_ld(foo)
23945 add %g7, %o2, %o4, %tie_add(foo)
23946 sethi %tle_hix22(foo), %l1
23947 xor %l1, %tle_lox10(foo), %o5
23948 ld [%g7 + %o5], %o1"
23950 tilepro*-*-*)
23951 conftest_s='
23952 .section ".tdata","awT",@progbits
23953 foo: .long 25
23954 .text
23955 addli r0, zero, tls_gd(foo)
23956 auli r0, zero, tls_gd_ha16(foo)
23957 addli r0, r0, tls_gd_lo16(foo)
23958 jal __tls_get_addr
23959 addli r0, zero, tls_ie(foo)
23960 auli r0, r0, tls_ie_ha16(foo)
23961 addli r0, r0, tls_ie_lo16(foo)'
23962 tls_first_major=2
23963 tls_first_minor=22
23964 tls_as_opt="--fatal-warnings"
23966 tilegx*-*-*)
23967 conftest_s='
23968 .section ".tdata","awT",@progbits
23969 foo: .long 25
23970 .text
23971 shl16insli r0, zero, hw0_last_tls_gd(foo)
23972 shl16insli r0, zero, hw1_last_tls_gd(foo)
23973 shl16insli r0, r0, hw0_tls_gd(foo)
23974 jal __tls_get_addr
23975 shl16insli r0, zero, hw1_last_tls_ie(foo)
23976 shl16insli r0, r0, hw0_tls_ie(foo)'
23977 tls_first_major=2
23978 tls_first_minor=22
23979 tls_as_opt="--fatal-warnings"
23981 xtensa*-*-*)
23982 conftest_s='
23983 .section ".tdata","awT",@progbits
23984 foo: .long 25
23985 .text
23986 movi a8, foo@TLSFUNC
23987 movi a10, foo@TLSARG
23988 callx8.tls a8, foo@TLSCALL'
23989 tls_first_major=2
23990 tls_first_minor=19
23992 esac
23993 set_have_as_tls=no
23994 if test "x$enable_tls" = xno ; then
23995 : # TLS explicitly disabled.
23996 elif test "x$enable_tls" = xyes ; then
23997 set_have_as_tls=yes # TLS explicitly enabled.
23998 elif test -z "$tls_first_major"; then
23999 : # If we don't have a check, assume no support.
24000 else
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24002 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24003 if test "${gcc_cv_as_tls+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24005 else
24006 gcc_cv_as_tls=no
24007 if test $in_tree_gas = yes; then
24008 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24009 then gcc_cv_as_tls=yes
24011 elif test x$gcc_cv_as != x; then
24012 $as_echo "$conftest_s" > conftest.s
24013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24018 test $ac_status = 0; }; }
24019 then
24020 gcc_cv_as_tls=yes
24021 else
24022 echo "configure: failed program was" >&5
24023 cat conftest.s >&5
24025 rm -f conftest.o conftest.s
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24029 $as_echo "$gcc_cv_as_tls" >&6; }
24030 if test $gcc_cv_as_tls = yes; then
24031 set_have_as_tls=yes
24034 if test $set_have_as_tls = yes ; then
24036 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24040 # Target-specific assembler checks.
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24043 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24044 gcc_cv_ld_static_dynamic=no
24045 gcc_cv_ld_static_option='-Bstatic'
24046 gcc_cv_ld_dynamic_option='-Bdynamic'
24047 if test $in_tree_ld = yes ; then
24048 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
24049 gcc_cv_ld_static_dynamic=yes
24051 elif test x$gcc_cv_ld != x; then
24052 # Check if linker supports -Bstatic/-Bdynamic option
24053 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24054 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24055 gcc_cv_ld_static_dynamic=yes
24056 else
24057 case "$target" in
24058 # AIX ld uses -b flags
24059 *-*-aix4.[23]* | *-*-aix[5-9]*)
24060 gcc_cv_ld_static_dynamic=yes
24061 gcc_cv_ld_static_option="-bstatic"
24062 gcc_cv_ld_dynamic_option="-bdynamic"
24064 # HP-UX ld uses -a flags to select between shared and archive.
24065 *-*-hpux*)
24066 if test x"$gnu_ld" = xno; then
24067 gcc_cv_ld_static_dynamic=yes
24068 gcc_cv_ld_static_option="-aarchive_shared"
24069 gcc_cv_ld_dynamic_option="-adefault"
24072 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24073 *-*-solaris2*)
24074 gcc_cv_ld_static_dynamic=yes
24076 esac
24079 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24081 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24084 cat >>confdefs.h <<_ACEOF
24085 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24086 _ACEOF
24089 cat >>confdefs.h <<_ACEOF
24090 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24091 _ACEOF
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24095 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24097 if test x"$demangler_in_ld" = xyes; then
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24099 $as_echo_n "checking linker --demangle support... " >&6; }
24100 gcc_cv_ld_demangle=no
24101 if test $in_tree_ld = yes; then
24102 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 \
24103 gcc_cv_ld_demangle=yes
24105 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24106 # Check if the GNU linker supports --demangle option
24107 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24108 gcc_cv_ld_demangle=yes
24111 if test x"$gcc_cv_ld_demangle" = xyes; then
24113 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24117 $as_echo "$gcc_cv_ld_demangle" >&6; }
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24121 $as_echo_n "checking linker plugin support... " >&6; }
24122 gcc_cv_lto_plugin=0
24123 if test -f liblto_plugin.la; then
24124 save_ld_ver="$ld_ver"
24125 save_ld_vers_major="$ld_vers_major"
24126 save_ld_vers_minor="$ld_vers_minor"
24127 save_ld_is_gold="$ld_is_gold"
24129 ld_is_gold=no
24131 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24132 ld_ver="GNU ld"
24133 # FIXME: ld_is_gold?
24134 ld_vers_major="$gcc_cv_gld_major_version"
24135 ld_vers_minor="$gcc_cv_gld_minor_version"
24136 else
24137 # Determine plugin linker version.
24138 # FIXME: Partial duplicate from above, generalize.
24139 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24140 if echo "$ld_ver" | grep GNU > /dev/null; then
24141 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24142 ld_is_gold=yes
24143 ld_vers=`echo $ld_ver | sed -n \
24144 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24145 else
24146 ld_vers=`echo $ld_ver | sed -n \
24147 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24149 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24150 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24154 # Determine plugin support.
24155 if echo "$ld_ver" | grep GNU > /dev/null; then
24156 # Require GNU ld or gold 2.21+ for plugin support by default.
24157 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24158 gcc_cv_lto_plugin=2
24159 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24160 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24161 gcc_cv_lto_plugin=1
24165 ld_ver="$save_ld_ver"
24166 ld_vers_major="$save_ld_vers_major"
24167 ld_vers_minor="$save_ld_vers_minor"
24168 ld_is_gold="$save_ld_is_gold"
24171 cat >>confdefs.h <<_ACEOF
24172 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24173 _ACEOF
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24176 $as_echo "$gcc_cv_lto_plugin" >&6; }
24178 case "$target" in
24179 aarch64*-*-*)
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24181 $as_echo_n "checking assembler for -mabi option... " >&6; }
24182 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 gcc_cv_as_aarch64_mabi=no
24186 if test x$gcc_cv_as != x; then
24187 $as_echo '.text' > conftest.s
24188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190 (eval $ac_try) 2>&5
24191 ac_status=$?
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; }; }
24194 then
24195 gcc_cv_as_aarch64_mabi=yes
24196 else
24197 echo "configure: failed program was" >&5
24198 cat conftest.s >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24204 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24206 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24208 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24210 else
24211 if test x$with_abi = xilp32; then
24212 as_fn_error "Assembler does not support -mabi=ilp32.\
24213 Upgrade the Assembler." "$LINENO" 5
24215 if test x"$with_multilib_list" = xdefault; then
24216 TM_MULTILIB_CONFIG=lp64
24217 else
24218 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24219 for aarch64_multilib in ${aarch64_multilibs}; do
24220 case ${aarch64_multilib} in
24221 ilp32)
24222 as_fn_error "Assembler does not support -mabi=ilp32.\
24223 Upgrade the Assembler." "$LINENO" 5
24227 esac
24228 done
24231 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24232 # Check whether --enable-fix-cortex-a53-835769 was given.
24233 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24234 enableval=$enable_fix_cortex_a53_835769;
24235 case $enableval in
24236 yes)
24237 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24242 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24243 Valid choices are 'yes' and 'no'." "$LINENO" 5
24246 esac
24250 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24251 # Check whether --enable-fix-cortex-a53-843419 was given.
24252 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24253 enableval=$enable_fix_cortex_a53_843419;
24254 case $enableval in
24255 yes)
24256 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24261 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24262 Valid choices are 'yes' and 'no'." "$LINENO" 5
24265 esac
24271 # All TARGET_ABI_OSF targets.
24272 alpha*-*-linux* | alpha*-*-*bsd*)
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24274 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24275 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24276 $as_echo_n "(cached) " >&6
24277 else
24278 gcc_cv_as_alpha_explicit_relocs=no
24279 if test $in_tree_gas = yes; then
24280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24281 then gcc_cv_as_alpha_explicit_relocs=yes
24283 elif test x$gcc_cv_as != x; then
24284 $as_echo ' .set nomacro
24285 .text
24286 extbl $3, $2, $3 !lituse_bytoff!1
24287 ldq $2, a($29) !literal!1
24288 ldq $4, b($29) !literal!2
24289 ldq_u $3, 0($2) !lituse_base!1
24290 ldq $27, f($29) !literal!5
24291 jsr $26, ($27), f !lituse_jsr!5
24292 ldah $29, 0($26) !gpdisp!3
24293 lda $0, c($29) !gprel
24294 ldah $1, d($29) !gprelhigh
24295 lda $1, d($1) !gprellow
24296 lda $29, 0($29) !gpdisp!3' > conftest.s
24297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_alpha_explicit_relocs=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_alpha_explicit_relocs" >&5
24313 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24314 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24316 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24320 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24321 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24323 else
24324 gcc_cv_as_alpha_jsrdirect_relocs=no
24325 if test $in_tree_gas = yes; then
24326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24327 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24329 elif test x$gcc_cv_as != x; then
24330 $as_echo ' .set nomacro
24331 .text
24332 ldq $27, a($29) !literal!1
24333 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
24350 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24351 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24353 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24358 avr-*-*)
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24360 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24361 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_avr_mlink_relax=no
24365 if test x$gcc_cv_as != x; then
24366 $as_echo '.text' > conftest.s
24367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -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_avr_mlink_relax=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_avr_mlink_relax" >&5
24383 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24384 if test $gcc_cv_as_avr_mlink_relax = yes; then
24386 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24391 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24392 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24393 $as_echo_n "(cached) " >&6
24394 else
24395 gcc_cv_as_avr_mrmw=no
24396 if test x$gcc_cv_as != x; then
24397 $as_echo '.text' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 gcc_cv_as_avr_mrmw=yes
24406 else
24407 echo "configure: failed program was" >&5
24408 cat conftest.s >&5
24410 rm -f conftest.o conftest.s
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24414 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24415 if test $gcc_cv_as_avr_mrmw = yes; then
24417 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24422 cris-*-*)
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24424 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24425 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24426 $as_echo_n "(cached) " >&6
24427 else
24428 gcc_cv_as_cris_no_mul_bug=no
24429 if test $in_tree_gas = yes; then
24430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24431 then gcc_cv_as_cris_no_mul_bug=yes
24433 elif test x$gcc_cv_as != x; then
24434 $as_echo '.text' > conftest.s
24435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24440 test $ac_status = 0; }; }
24441 then
24442 gcc_cv_as_cris_no_mul_bug=yes
24443 else
24444 echo "configure: failed program was" >&5
24445 cat conftest.s >&5
24447 rm -f conftest.o conftest.s
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24451 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24452 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24454 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24459 sparc*-*-*)
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24461 $as_echo_n "checking assembler for .register... " >&6; }
24462 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24464 else
24465 gcc_cv_as_sparc_register_op=no
24466 if test x$gcc_cv_as != x; then
24467 $as_echo '.register %g2, #scratch' > conftest.s
24468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; }
24474 then
24475 gcc_cv_as_sparc_register_op=yes
24476 else
24477 echo "configure: failed program was" >&5
24478 cat conftest.s >&5
24480 rm -f conftest.o conftest.s
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24484 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24485 if test $gcc_cv_as_sparc_register_op = yes; then
24487 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24492 $as_echo_n "checking assembler for #nobits... " >&6; }
24493 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24495 else
24496 gcc_cv_as_sparc_nobits=no
24497 if test x$gcc_cv_as != x; then
24498 $as_echo '.section "nobits",#alloc,#write,#nobits
24499 .section "progbits",#alloc,#write,#progbits' > conftest.s
24500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24505 test $ac_status = 0; }; }
24506 then
24507 gcc_cv_as_sparc_nobits=yes
24508 else
24509 echo "configure: failed program was" >&5
24510 cat conftest.s >&5
24512 rm -f conftest.o conftest.s
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24516 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24519 cat >>confdefs.h <<_ACEOF
24520 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24521 _ACEOF
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24525 $as_echo_n "checking assembler for -relax option... " >&6; }
24526 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24527 $as_echo_n "(cached) " >&6
24528 else
24529 gcc_cv_as_sparc_relax=no
24530 if test x$gcc_cv_as != x; then
24531 $as_echo '.text' > conftest.s
24532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24538 then
24539 gcc_cv_as_sparc_relax=yes
24540 else
24541 echo "configure: failed program was" >&5
24542 cat conftest.s >&5
24544 rm -f conftest.o conftest.s
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24548 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24549 if test $gcc_cv_as_sparc_relax = yes; then
24551 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24556 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24557 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 gcc_cv_as_sparc_gotdata_op=no
24561 if test x$gcc_cv_as != x; then
24562 $as_echo '.text
24563 .align 4
24564 foo:
24566 bar:
24567 sethi %gdop_hix22(foo), %g1
24568 xor %g1, %gdop_lox10(foo), %g1
24569 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 if test x$gcc_cv_ld != x \
24578 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24579 if test x$gcc_cv_objdump != x; then
24580 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24581 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24582 gcc_cv_as_sparc_gotdata_op=no
24583 else
24584 gcc_cv_as_sparc_gotdata_op=yes
24588 rm -f conftest
24589 else
24590 echo "configure: failed program was" >&5
24591 cat conftest.s >&5
24593 rm -f conftest.o conftest.s
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24597 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24598 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24600 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24605 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24606 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24608 else
24609 gcc_cv_as_sparc_ua_pcrel=no
24610 if test x$gcc_cv_as != x; then
24611 $as_echo '.text
24612 foo:
24614 .data
24615 .align 4
24616 .byte 0
24617 .uaword %r_disp32(foo)' > conftest.s
24618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24623 test $ac_status = 0; }; }
24624 then
24625 if test x$gcc_cv_ld != x \
24626 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24627 gcc_cv_as_sparc_ua_pcrel=yes
24629 rm -f conftest
24630 else
24631 echo "configure: failed program was" >&5
24632 cat conftest.s >&5
24634 rm -f conftest.o conftest.s
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24638 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24639 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24641 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24645 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24646 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24648 else
24649 gcc_cv_as_sparc_ua_pcrel_hidden=no
24650 if test x$gcc_cv_as != x; then
24651 $as_echo '.data
24652 .align 4
24653 .byte 0x31
24654 .uaword %r_disp32(foo)
24655 .byte 0x32, 0x33, 0x34
24656 .global foo
24657 .hidden foo
24658 foo:
24659 .skip 4' > conftest.s
24660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24662 (eval $ac_try) 2>&5
24663 ac_status=$?
24664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24665 test $ac_status = 0; }; }
24666 then
24667 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24668 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24669 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24670 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24671 if $gcc_cv_objdump -R conftest 2> /dev/null \
24672 | grep 'DISP32' > /dev/null 2>&1; then
24674 else
24675 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24678 rm -f conftest
24679 else
24680 echo "configure: failed program was" >&5
24681 cat conftest.s >&5
24683 rm -f conftest.o conftest.s
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24687 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24688 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24690 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24694 fi # unaligned pcrel relocs
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24697 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24698 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24699 $as_echo_n "(cached) " >&6
24700 else
24701 gcc_cv_as_sparc_offsetable_lo10=no
24702 if test x$gcc_cv_as != x; then
24703 $as_echo '.text
24704 or %g1, %lo(ab) + 12, %g1
24705 or %g1, %lo(ab + 12), %g1' > conftest.s
24706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24708 (eval $ac_try) 2>&5
24709 ac_status=$?
24710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24711 test $ac_status = 0; }; }
24712 then
24713 if test x$gcc_cv_objdump != x \
24714 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24715 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24716 gcc_cv_as_sparc_offsetable_lo10=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24726 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24727 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24729 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24734 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24735 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24737 else
24738 gcc_cv_as_sparc_fmaf=no
24739 if test x$gcc_cv_as != x; then
24740 $as_echo '.text
24741 .register %g2, #scratch
24742 .register %g3, #scratch
24743 .align 4
24744 fmaddd %f0, %f2, %f4, %f6
24745 addxccc %g1, %g2, %g3
24746 fsrl32 %f2, %f4, %f8
24747 fnaddd %f10, %f12, %f14' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24751 ac_status=$?
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24754 then
24755 gcc_cv_as_sparc_fmaf=yes
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24764 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24765 if test $gcc_cv_as_sparc_fmaf = yes; then
24767 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24772 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24773 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 gcc_cv_as_sparc_sparc4=no
24777 if test x$gcc_cv_as != x; then
24778 $as_echo '.text
24779 .register %g2, #scratch
24780 .register %g3, #scratch
24781 .align 4
24782 cxbe %g2, %g3, 1f
24783 1: cwbneg %g2, %g3, 1f
24784 1: sha1
24786 aes_kexpand0 %f4, %f6, %f8
24787 des_round %f38, %f40, %f42, %f44
24788 camellia_f %f54, %f56, %f58, %f60
24789 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24796 then
24797 gcc_cv_as_sparc_sparc4=yes
24798 else
24799 echo "configure: failed program was" >&5
24800 cat conftest.s >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24806 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24807 if test $gcc_cv_as_sparc_sparc4 = yes; then
24809 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24814 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24815 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 gcc_cv_as_sparc_leon=no
24819 if test x$gcc_cv_as != x; then
24820 $as_echo '.text
24821 .register %g2, #scratch
24822 .register %g3, #scratch
24823 .align 4
24824 smac %g2, %g3, %g1
24825 umac %g2, %g3, %g1
24826 casa [%g2] 0xb, %g3, %g1' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 gcc_cv_as_sparc_leon=yes
24835 else
24836 echo "configure: failed program was" >&5
24837 cat conftest.s >&5
24839 rm -f conftest.o conftest.s
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24843 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24844 if test $gcc_cv_as_sparc_leon = yes; then
24846 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24851 i[34567]86-*-* | x86_64-*-*)
24852 case $target_os in
24853 cygwin*)
24854 # Full C++ conformance when using a shared libstdc++-v3 requires some
24855 # support from the Cygwin DLL, which in more recent versions exports
24856 # wrappers to aid in interposing and redirecting operators new, delete,
24857 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24858 # are configuring for a version of Cygwin that exports the wrappers.
24859 if test x$host = x$target && test x$host_cpu = xi686; then
24860 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24861 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24862 gcc_ac_cygwin_dll_wrappers=yes
24863 else
24864 gcc_ac_cygwin_dll_wrappers=no
24867 else
24868 # Can't check presence of libc functions during cross-compile, so
24869 # we just have to assume we're building for an up-to-date target.
24870 gcc_ac_cygwin_dll_wrappers=yes
24873 cat >>confdefs.h <<_ACEOF
24874 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24875 _ACEOF
24877 esac
24878 case $target_os in
24879 cygwin* | pe | mingw32* | interix*)
24880 # Recent binutils allows the three-operand form of ".comm" on PE. This
24881 # definition is used unconditionally to initialise the default state of
24882 # the target option variable that governs usage of the feature.
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24884 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24885 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24887 else
24888 gcc_cv_as_comm_has_align=no
24889 if test $in_tree_gas = yes; then
24890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24891 then gcc_cv_as_comm_has_align=yes
24893 elif test x$gcc_cv_as != x; then
24894 $as_echo '.comm foo,1,32' > conftest.s
24895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24897 (eval $ac_try) 2>&5
24898 ac_status=$?
24899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900 test $ac_status = 0; }; }
24901 then
24902 gcc_cv_as_comm_has_align=yes
24903 else
24904 echo "configure: failed program was" >&5
24905 cat conftest.s >&5
24907 rm -f conftest.o conftest.s
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24911 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24914 cat >>confdefs.h <<_ACEOF
24915 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24916 _ACEOF
24918 # Used for DWARF 2 in PE
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24920 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24921 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24922 $as_echo_n "(cached) " >&6
24923 else
24924 gcc_cv_as_ix86_pe_secrel32=no
24925 if test $in_tree_gas = yes; then
24926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24927 then gcc_cv_as_ix86_pe_secrel32=yes
24929 elif test x$gcc_cv_as != x; then
24930 $as_echo '.text
24931 foo: nop
24932 .data
24933 .secrel32 foo' > conftest.s
24934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24939 test $ac_status = 0; }; }
24940 then
24941 if test x$gcc_cv_ld != x \
24942 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24943 gcc_cv_as_ix86_pe_secrel32=yes
24945 rm -f conftest
24946 else
24947 echo "configure: failed program was" >&5
24948 cat conftest.s >&5
24950 rm -f conftest.o conftest.s
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24954 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24955 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24957 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24960 # Test if the assembler supports the extended form of the .section
24961 # directive that specifies section alignment. LTO support uses this,
24962 # but normally only after installation, so we warn but don't fail the
24963 # configure if LTO is enabled but the assembler does not support it.
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24965 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24966 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24967 $as_echo_n "(cached) " >&6
24968 else
24969 gcc_cv_as_section_has_align=no
24970 if test $in_tree_gas = yes; then
24971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24972 then gcc_cv_as_section_has_align=yes
24974 elif test x$gcc_cv_as != x; then
24975 $as_echo '.section lto_test,"dr0"' > conftest.s
24976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; }
24982 then
24983 gcc_cv_as_section_has_align=yes
24984 else
24985 echo "configure: failed program was" >&5
24986 cat conftest.s >&5
24988 rm -f conftest.o conftest.s
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24992 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24994 if test x$gcc_cv_as_section_has_align != xyes; then
24995 case ",$enable_languages," in
24996 *,lto,*)
24997 { $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
24998 $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;}
25000 esac
25003 esac
25005 # Test if the assembler supports the section flag 'e' for specifying
25006 # an excluded section.
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25008 $as_echo_n "checking assembler for .section with e... " >&6; }
25009 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 gcc_cv_as_section_has_e=no
25013 if test $in_tree_gas = yes; then
25014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25015 then gcc_cv_as_section_has_e=yes
25017 elif test x$gcc_cv_as != x; then
25018 $as_echo '.section foo1,"e"
25019 .byte 0,0,0,0' > conftest.s
25020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25026 then
25027 gcc_cv_as_section_has_e=yes
25028 else
25029 echo "configure: failed program was" >&5
25030 cat conftest.s >&5
25032 rm -f conftest.o conftest.s
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25036 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25039 cat >>confdefs.h <<_ACEOF
25040 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25041 _ACEOF
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25045 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25046 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_ix86_filds=no
25050 if test x$gcc_cv_as != x; then
25051 $as_echo 'filds mem; fists mem' > conftest.s
25052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057 test $ac_status = 0; }; }
25058 then
25059 gcc_cv_as_ix86_filds=yes
25060 else
25061 echo "configure: failed program was" >&5
25062 cat conftest.s >&5
25064 rm -f conftest.o conftest.s
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25068 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25069 if test $gcc_cv_as_ix86_filds = yes; then
25071 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25076 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25077 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25078 $as_echo_n "(cached) " >&6
25079 else
25080 gcc_cv_as_ix86_fildq=no
25081 if test x$gcc_cv_as != x; then
25082 $as_echo 'fildq mem; fistpq mem' > conftest.s
25083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085 (eval $ac_try) 2>&5
25086 ac_status=$?
25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088 test $ac_status = 0; }; }
25089 then
25090 gcc_cv_as_ix86_fildq=yes
25091 else
25092 echo "configure: failed program was" >&5
25093 cat conftest.s >&5
25095 rm -f conftest.o conftest.s
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25099 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25100 if test $gcc_cv_as_ix86_fildq = yes; then
25102 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25107 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25108 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 gcc_cv_as_ix86_cmov_sun_syntax=no
25112 if test x$gcc_cv_as != x; then
25113 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25119 test $ac_status = 0; }; }
25120 then
25121 gcc_cv_as_ix86_cmov_sun_syntax=yes
25122 else
25123 echo "configure: failed program was" >&5
25124 cat conftest.s >&5
25126 rm -f conftest.o conftest.s
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25130 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25131 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25133 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25138 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25139 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25140 $as_echo_n "(cached) " >&6
25141 else
25142 gcc_cv_as_ix86_ffreep=no
25143 if test x$gcc_cv_as != x; then
25144 $as_echo 'ffreep %st(1)' > conftest.s
25145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25150 test $ac_status = 0; }; }
25151 then
25152 gcc_cv_as_ix86_ffreep=yes
25153 else
25154 echo "configure: failed program was" >&5
25155 cat conftest.s >&5
25157 rm -f conftest.o conftest.s
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25161 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25162 if test $gcc_cv_as_ix86_ffreep = yes; then
25164 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25169 $as_echo_n "checking assembler for .quad directive... " >&6; }
25170 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25171 $as_echo_n "(cached) " >&6
25172 else
25173 gcc_cv_as_ix86_quad=no
25174 if test x$gcc_cv_as != x; then
25175 $as_echo '.quad 0' > conftest.s
25176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; }
25182 then
25183 gcc_cv_as_ix86_quad=yes
25184 else
25185 echo "configure: failed program was" >&5
25186 cat conftest.s >&5
25188 rm -f conftest.o conftest.s
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25192 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25193 if test $gcc_cv_as_ix86_quad = yes; then
25195 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25200 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25201 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 gcc_cv_as_ix86_sahf=no
25205 if test x$gcc_cv_as != x; then
25206 $as_echo '.code64
25207 sahf' > conftest.s
25208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25210 (eval $ac_try) 2>&5
25211 ac_status=$?
25212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25213 test $ac_status = 0; }; }
25214 then
25215 gcc_cv_as_ix86_sahf=yes
25216 else
25217 echo "configure: failed program was" >&5
25218 cat conftest.s >&5
25220 rm -f conftest.o conftest.s
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25224 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25225 if test $gcc_cv_as_ix86_sahf = yes; then
25227 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25232 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25233 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25235 else
25236 gcc_cv_as_ix86_interunit_movq=no
25237 if test x$gcc_cv_as != x; then
25238 $as_echo '.code64
25239 movq %mm0, %rax
25240 movq %rax, %xmm0' > conftest.s
25241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25247 then
25248 gcc_cv_as_ix86_interunit_movq=yes
25249 else
25250 echo "configure: failed program was" >&5
25251 cat conftest.s >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25257 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25260 cat >>confdefs.h <<_ACEOF
25261 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25262 _ACEOF
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25266 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25267 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_ix86_hle=no
25271 if test x$gcc_cv_as != x; then
25272 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 gcc_cv_as_ix86_hle=yes
25281 else
25282 echo "configure: failed program was" >&5
25283 cat conftest.s >&5
25285 rm -f conftest.o conftest.s
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25289 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25290 if test $gcc_cv_as_ix86_hle = yes; then
25292 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25297 $as_echo_n "checking assembler for swap suffix... " >&6; }
25298 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25299 $as_echo_n "(cached) " >&6
25300 else
25301 gcc_cv_as_ix86_swap=no
25302 if test x$gcc_cv_as != x; then
25303 $as_echo 'movl.s %esp, %ebp' > conftest.s
25304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306 (eval $ac_try) 2>&5
25307 ac_status=$?
25308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309 test $ac_status = 0; }; }
25310 then
25311 gcc_cv_as_ix86_swap=yes
25312 else
25313 echo "configure: failed program was" >&5
25314 cat conftest.s >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25320 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25321 if test $gcc_cv_as_ix86_swap = yes; then
25323 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25328 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25329 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25330 $as_echo_n "(cached) " >&6
25331 else
25332 gcc_cv_as_ix86_diff_sect_delta=no
25333 if test x$gcc_cv_as != x; then
25334 $as_echo '.section .rodata
25335 .L1:
25336 .long .L2-.L1
25337 .long .L3-.L1
25338 .text
25339 .L3: nop
25340 .L2: nop' > conftest.s
25341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25347 then
25348 gcc_cv_as_ix86_diff_sect_delta=yes
25349 else
25350 echo "configure: failed program was" >&5
25351 cat conftest.s >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25357 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25358 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25360 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25364 # These two are used unconditionally by i386.[ch]; it is to be defined
25365 # to 1 if the feature is present, 0 otherwise.
25366 as_ix86_gotoff_in_data_opt=
25367 if test x$gas = xyes; then
25368 as_ix86_gotoff_in_data_opt="--32"
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25371 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25372 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25373 $as_echo_n "(cached) " >&6
25374 else
25375 gcc_cv_as_ix86_gotoff_in_data=no
25376 if test $in_tree_gas = yes; then
25377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25378 then gcc_cv_as_ix86_gotoff_in_data=yes
25380 elif test x$gcc_cv_as != x; then
25381 $as_echo ' .text
25382 .L0:
25384 .data
25385 .long .L0@GOTOFF' > conftest.s
25386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25392 then
25393 gcc_cv_as_ix86_gotoff_in_data=yes
25394 else
25395 echo "configure: failed program was" >&5
25396 cat conftest.s >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25402 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25405 cat >>confdefs.h <<_ACEOF
25406 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25407 _ACEOF
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25411 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25412 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25414 else
25415 gcc_cv_as_ix86_rep_lock_prefix=no
25416 if test x$gcc_cv_as != x; then
25417 $as_echo 'rep movsl
25418 rep ret
25419 rep nop
25420 rep bsf %ecx, %eax
25421 rep bsr %ecx, %eax
25422 lock addl %edi, (%eax,%esi)
25423 lock orl $0, (%esp)' > conftest.s
25424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25429 test $ac_status = 0; }; }
25430 then
25431 gcc_cv_as_ix86_rep_lock_prefix=yes
25432 else
25433 echo "configure: failed program was" >&5
25434 cat conftest.s >&5
25436 rm -f conftest.o conftest.s
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25440 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25441 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25443 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25448 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25449 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25450 $as_echo_n "(cached) " >&6
25451 else
25452 gcc_cv_as_ix86_ud2=no
25453 if test x$gcc_cv_as != x; then
25454 $as_echo 'ud2' > conftest.s
25455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25461 then
25462 gcc_cv_as_ix86_ud2=yes
25463 else
25464 echo "configure: failed program was" >&5
25465 cat conftest.s >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25471 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25472 if test $gcc_cv_as_ix86_ud2 = yes; then
25474 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25479 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25480 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25482 else
25483 gcc_cv_as_ix86_tlsgdplt=no
25484 if test x$gcc_cv_as != x; then
25485 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25488 (eval $ac_try) 2>&5
25489 ac_status=$?
25490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25491 test $ac_status = 0; }; }
25492 then
25493 if test x$gcc_cv_ld != x \
25494 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25495 gcc_cv_as_ix86_tlsgdplt=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_tlsgdplt" >&5
25506 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25507 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25509 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25513 conftest_s='
25514 .section .tdata,"aw'$tls_section_flag'",@progbits
25515 tls_ld:
25516 .section .text,"ax",@progbits
25517 call tls_ld@tlsldmplt'
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25519 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25520 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25522 else
25523 gcc_cv_as_ix86_tlsldmplt=no
25524 if test x$gcc_cv_as != x; then
25525 $as_echo "$conftest_s" > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 if test x$gcc_cv_ld != x \
25534 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25535 gcc_cv_as_ix86_tlsldmplt=yes
25537 rm -f conftest
25538 else
25539 echo "configure: failed program was" >&5
25540 cat conftest.s >&5
25542 rm -f conftest.o conftest.s
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25546 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25549 cat >>confdefs.h <<_ACEOF
25550 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25551 _ACEOF
25554 # Enforce 32-bit output with gas and gld.
25555 if test x$gas = xyes; then
25556 as_ix86_tls_ldm_opt="--32"
25558 if echo "$ld_ver" | grep GNU > /dev/null; then
25559 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25560 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25561 else
25562 ld_ix86_tls_ldm_opt="-melf_i386"
25565 conftest_s='
25566 .section .text,"ax",@progbits
25567 .globl _start
25568 .type _start, @function
25569 _start:
25570 leal value@tlsldm(%ebx), %eax
25571 call ___tls_get_addr@plt
25573 .section .tdata,"aw'$tls_section_flag'",@progbits
25574 .type value, @object
25575 value:'
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25577 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25578 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25581 gcc_cv_as_ix86_tlsldm=no
25582 if test x$gcc_cv_as != x; then
25583 $as_echo "$conftest_s" > conftest.s
25584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25589 test $ac_status = 0; }; }
25590 then
25591 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25592 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25593 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25594 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25595 gcc_cv_as_ix86_tlsldm=yes
25598 rm -f conftest
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25607 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25610 cat >>confdefs.h <<_ACEOF
25611 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25612 _ACEOF
25617 ia64*-*-*)
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25619 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25620 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25621 $as_echo_n "(cached) " >&6
25622 else
25623 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25624 if test $in_tree_gas = yes; then
25625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25626 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25628 elif test x$gcc_cv_as != x; then
25629 $as_echo ' .text
25630 addl r15 = @ltoffx(x#), gp
25632 ld8.mov r16 = [r15], x#' > conftest.s
25633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25638 test $ac_status = 0; }; }
25639 then
25640 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25641 else
25642 echo "configure: failed program was" >&5
25643 cat conftest.s >&5
25645 rm -f conftest.o conftest.s
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25649 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25650 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25652 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25658 powerpc*-*-*)
25659 case $target in
25660 *-*-aix*) conftest_s=' .machine "pwr5"
25661 .csect .text[PR]
25662 mfcr 3,128';;
25663 *-*-darwin*)
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25665 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25666 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25667 $as_echo_n "(cached) " >&6
25668 else
25669 gcc_cv_as_machine_directive=no
25670 if test x$gcc_cv_as != x; then
25671 $as_echo ' .machine ppc7400' > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_machine_directive=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25684 rm -f conftest.o conftest.s
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25688 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25690 if test x$gcc_cv_as_machine_directive != xyes; then
25691 echo "*** This target requires an assembler supporting \".machine\"" >&2
25692 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25693 test x$build = x$target && exit 1
25695 conftest_s=' .text
25696 mfcr r3,128';;
25697 *) conftest_s=' .machine power4
25698 .text
25699 mfcr 3,128';;
25700 esac
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25703 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25704 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25706 else
25707 gcc_cv_as_powerpc_mfcrf=no
25708 if test $in_tree_gas = yes; then
25709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25710 then gcc_cv_as_powerpc_mfcrf=yes
25712 elif test x$gcc_cv_as != x; then
25713 $as_echo "$conftest_s" > conftest.s
25714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25720 then
25721 gcc_cv_as_powerpc_mfcrf=yes
25722 else
25723 echo "configure: failed program was" >&5
25724 cat conftest.s >&5
25726 rm -f conftest.o conftest.s
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25730 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25731 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25733 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25737 case $target in
25738 *-*-aix*) conftest_s=' .machine "pwr5"
25739 .csect .text[PR]
25740 popcntb 3,3';;
25741 *) conftest_s=' .machine power5
25742 .text
25743 popcntb 3,3';;
25744 esac
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25747 $as_echo_n "checking assembler for popcntb support... " >&6; }
25748 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25749 $as_echo_n "(cached) " >&6
25750 else
25751 gcc_cv_as_powerpc_popcntb=no
25752 if test $in_tree_gas = yes; then
25753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25754 then gcc_cv_as_powerpc_popcntb=yes
25756 elif test x$gcc_cv_as != x; then
25757 $as_echo "$conftest_s" > conftest.s
25758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25763 test $ac_status = 0; }; }
25764 then
25765 gcc_cv_as_powerpc_popcntb=yes
25766 else
25767 echo "configure: failed program was" >&5
25768 cat conftest.s >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25774 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25775 if test $gcc_cv_as_powerpc_popcntb = yes; then
25777 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25781 case $target in
25782 *-*-aix*) conftest_s=' .machine "pwr5x"
25783 .csect .text[PR]
25784 frin 1,1';;
25785 *) conftest_s=' .machine power5
25786 .text
25787 frin 1,1';;
25788 esac
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25791 $as_echo_n "checking assembler for fp round support... " >&6; }
25792 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_powerpc_fprnd=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25798 then gcc_cv_as_powerpc_fprnd=yes
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo "$conftest_s" > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 gcc_cv_as_powerpc_fprnd=yes
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25818 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25819 if test $gcc_cv_as_powerpc_fprnd = yes; then
25821 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25825 case $target in
25826 *-*-aix*) conftest_s=' .machine "pwr6"
25827 .csect .text[PR]
25828 mffgpr 1,3';;
25829 *) conftest_s=' .machine power6
25830 .text
25831 mffgpr 1,3';;
25832 esac
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25835 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25836 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 gcc_cv_as_powerpc_mfpgpr=no
25840 if test $in_tree_gas = yes; then
25841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25842 then gcc_cv_as_powerpc_mfpgpr=yes
25844 elif test x$gcc_cv_as != x; then
25845 $as_echo "$conftest_s" > conftest.s
25846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25851 test $ac_status = 0; }; }
25852 then
25853 gcc_cv_as_powerpc_mfpgpr=yes
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25858 rm -f conftest.o conftest.s
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25862 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25863 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25865 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25869 case $target in
25870 *-*-aix*) conftest_s=' .csect .text[PR]
25871 LCF..0:
25872 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25873 *-*-darwin*)
25874 conftest_s=' .text
25875 LCF0:
25876 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25877 *) conftest_s=' .text
25878 .LCF0:
25879 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25880 esac
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25883 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25884 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25885 $as_echo_n "(cached) " >&6
25886 else
25887 gcc_cv_as_powerpc_rel16=no
25888 if test $in_tree_gas = yes; then
25889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25890 then gcc_cv_as_powerpc_rel16=yes
25892 elif test x$gcc_cv_as != x; then
25893 $as_echo "$conftest_s" > conftest.s
25894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25896 (eval $ac_try) 2>&5
25897 ac_status=$?
25898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25899 test $ac_status = 0; }; }
25900 then
25901 gcc_cv_as_powerpc_rel16=yes
25902 else
25903 echo "configure: failed program was" >&5
25904 cat conftest.s >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25910 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25911 if test $gcc_cv_as_powerpc_rel16 = yes; then
25913 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25917 case $target in
25918 *-*-aix*) conftest_s=' .machine "pwr6"
25919 .csect .text[PR]
25920 cmpb 3,4,5';;
25921 *) conftest_s=' .machine power6
25922 .text
25923 cmpb 3,4,5';;
25924 esac
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25927 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25928 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25930 else
25931 gcc_cv_as_powerpc_cmpb=no
25932 if test $in_tree_gas = yes; then
25933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25934 then gcc_cv_as_powerpc_cmpb=yes
25936 elif test x$gcc_cv_as != x; then
25937 $as_echo "$conftest_s" > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_powerpc_cmpb=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25954 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25955 if test $gcc_cv_as_powerpc_cmpb = yes; then
25957 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25961 case $target in
25962 *-*-aix*) conftest_s=' .machine "pwr6"
25963 .csect .text[PR]
25964 dadd 1,2,3';;
25965 *) conftest_s=' .machine power6
25966 .text
25967 dadd 1,2,3';;
25968 esac
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25971 $as_echo_n "checking assembler for decimal float support... " >&6; }
25972 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_powerpc_dfp=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25978 then gcc_cv_as_powerpc_dfp=yes
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo "$conftest_s" > conftest.s
25982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984 (eval $ac_try) 2>&5
25985 ac_status=$?
25986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987 test $ac_status = 0; }; }
25988 then
25989 gcc_cv_as_powerpc_dfp=yes
25990 else
25991 echo "configure: failed program was" >&5
25992 cat conftest.s >&5
25994 rm -f conftest.o conftest.s
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25998 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25999 if test $gcc_cv_as_powerpc_dfp = yes; then
26001 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26005 case $target in
26006 *-*-aix*) conftest_s=' .machine "pwr7"
26007 .csect .text[PR]
26008 lxvd2x 1,2,3';;
26009 *) conftest_s=' .machine power7
26010 .text
26011 lxvd2x 1,2,3';;
26012 esac
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26015 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26016 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_powerpc_vsx=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26022 then gcc_cv_as_powerpc_vsx=yes
26024 elif test x$gcc_cv_as != x; then
26025 $as_echo "$conftest_s" > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26032 then
26033 gcc_cv_as_powerpc_vsx=yes
26034 else
26035 echo "configure: failed program was" >&5
26036 cat conftest.s >&5
26038 rm -f conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26042 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26043 if test $gcc_cv_as_powerpc_vsx = yes; then
26045 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26049 case $target in
26050 *-*-aix*) conftest_s=' .machine "pwr7"
26051 .csect .text[PR]
26052 popcntd 3,3';;
26053 *) conftest_s=' .machine power7
26054 .text
26055 popcntd 3,3';;
26056 esac
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26059 $as_echo_n "checking assembler for popcntd support... " >&6; }
26060 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26062 else
26063 gcc_cv_as_powerpc_popcntd=no
26064 if test $in_tree_gas = yes; then
26065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26066 then gcc_cv_as_powerpc_popcntd=yes
26068 elif test x$gcc_cv_as != x; then
26069 $as_echo "$conftest_s" > conftest.s
26070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26075 test $ac_status = 0; }; }
26076 then
26077 gcc_cv_as_powerpc_popcntd=yes
26078 else
26079 echo "configure: failed program was" >&5
26080 cat conftest.s >&5
26082 rm -f conftest.o conftest.s
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26086 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26087 if test $gcc_cv_as_powerpc_popcntd = yes; then
26089 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26093 case $target in
26094 *-*-aix*) conftest_s=' .machine "pwr8"
26095 .csect .text[PR]';;
26096 *) conftest_s=' .machine power8
26097 .text';;
26098 esac
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26101 $as_echo_n "checking assembler for power8 support... " >&6; }
26102 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26103 $as_echo_n "(cached) " >&6
26104 else
26105 gcc_cv_as_powerpc_power8=no
26106 if test $in_tree_gas = yes; then
26107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26108 then gcc_cv_as_powerpc_power8=yes
26110 elif test x$gcc_cv_as != x; then
26111 $as_echo "$conftest_s" > conftest.s
26112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26118 then
26119 gcc_cv_as_powerpc_power8=yes
26120 else
26121 echo "configure: failed program was" >&5
26122 cat conftest.s >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26128 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26129 if test $gcc_cv_as_powerpc_power8 = yes; then
26131 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26135 case $target in
26136 *-*-aix*) conftest_s=' .csect .text[PR]
26137 lwsync';;
26138 *) conftest_s=' .text
26139 lwsync';;
26140 esac
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26143 $as_echo_n "checking assembler for lwsync support... " >&6; }
26144 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26145 $as_echo_n "(cached) " >&6
26146 else
26147 gcc_cv_as_powerpc_lwsync=no
26148 if test $in_tree_gas = yes; then
26149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26150 then gcc_cv_as_powerpc_lwsync=yes
26152 elif test x$gcc_cv_as != x; then
26153 $as_echo "$conftest_s" > conftest.s
26154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26157 ac_status=$?
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; }
26160 then
26161 gcc_cv_as_powerpc_lwsync=yes
26162 else
26163 echo "configure: failed program was" >&5
26164 cat conftest.s >&5
26166 rm -f conftest.o conftest.s
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26170 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26171 if test $gcc_cv_as_powerpc_lwsync = yes; then
26173 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26177 case $target in
26178 *-*-aix*) conftest_s=' .machine "476"
26179 .csect .text[PR]
26180 dci 0';;
26181 *) conftest_s=' .machine "476"
26182 .text
26183 dci 0';;
26184 esac
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26187 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26188 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26189 $as_echo_n "(cached) " >&6
26190 else
26191 gcc_cv_as_powerpc_dci=no
26192 if test $in_tree_gas = yes; then
26193 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26194 then gcc_cv_as_powerpc_dci=yes
26196 elif test x$gcc_cv_as != x; then
26197 $as_echo "$conftest_s" > conftest.s
26198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26200 (eval $ac_try) 2>&5
26201 ac_status=$?
26202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26203 test $ac_status = 0; }; }
26204 then
26205 gcc_cv_as_powerpc_dci=yes
26206 else
26207 echo "configure: failed program was" >&5
26208 cat conftest.s >&5
26210 rm -f conftest.o conftest.s
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26214 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26215 if test $gcc_cv_as_powerpc_dci = yes; then
26217 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26222 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26223 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26225 else
26226 gcc_cv_as_powerpc_gnu_attribute=no
26227 if test $in_tree_gas = yes; then
26228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26229 then gcc_cv_as_powerpc_gnu_attribute=yes
26231 elif test x$gcc_cv_as != x; then
26232 $as_echo '.gnu_attribute 4,1' > conftest.s
26233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26238 test $ac_status = 0; }; }
26239 then
26240 gcc_cv_as_powerpc_gnu_attribute=yes
26241 else
26242 echo "configure: failed program was" >&5
26243 cat conftest.s >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26249 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26250 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26252 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26257 $as_echo_n "checking assembler for tls marker support... " >&6; }
26258 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_powerpc_tls_markers=no
26262 if test $in_tree_gas = yes; then
26263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26264 then gcc_cv_as_powerpc_tls_markers=yes
26266 elif test x$gcc_cv_as != x; then
26267 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26270 (eval $ac_try) 2>&5
26271 ac_status=$?
26272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; }
26274 then
26275 gcc_cv_as_powerpc_tls_markers=yes
26276 else
26277 echo "configure: failed program was" >&5
26278 cat conftest.s >&5
26280 rm -f conftest.o conftest.s
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26284 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26285 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26287 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26291 case $target in
26292 *-*-aix*)
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26294 $as_echo_n "checking assembler for .ref support... " >&6; }
26295 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26296 $as_echo_n "(cached) " >&6
26297 else
26298 gcc_cv_as_aix_ref=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26301 then gcc_cv_as_aix_ref=yes
26303 elif test x$gcc_cv_as != x; then
26304 $as_echo ' .csect stuff[rw]
26305 stuff:
26306 .long 1
26307 .extern sym
26308 .ref sym
26309 ' > conftest.s
26310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26316 then
26317 gcc_cv_as_aix_ref=yes
26318 else
26319 echo "configure: failed program was" >&5
26320 cat conftest.s >&5
26322 rm -f conftest.o conftest.s
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26326 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26327 if test $gcc_cv_as_aix_ref = yes; then
26329 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26333 esac
26336 mips*-*-*)
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26338 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26339 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26341 else
26342 gcc_cv_as_mips_explicit_relocs=no
26343 if test $in_tree_gas = yes; then
26344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26345 then gcc_cv_as_mips_explicit_relocs=yes
26347 elif test x$gcc_cv_as != x; then
26348 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26351 (eval $ac_try) 2>&5
26352 ac_status=$?
26353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26354 test $ac_status = 0; }; }
26355 then
26356 gcc_cv_as_mips_explicit_relocs=yes
26357 else
26358 echo "configure: failed program was" >&5
26359 cat conftest.s >&5
26361 rm -f conftest.o conftest.s
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26365 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26366 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26367 if test x$target_cpu_default = x
26368 then target_cpu_default=MASK_EXPLICIT_RELOCS
26369 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26373 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26374 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26375 $as_echo_n "(cached) " >&6
26376 else
26377 gcc_cv_as_mips_no_shared=no
26378 if test $in_tree_gas = yes; then
26379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26380 then gcc_cv_as_mips_no_shared=yes
26382 elif test x$gcc_cv_as != x; then
26383 $as_echo 'nop' > conftest.s
26384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389 test $ac_status = 0; }; }
26390 then
26391 gcc_cv_as_mips_no_shared=yes
26392 else
26393 echo "configure: failed program was" >&5
26394 cat conftest.s >&5
26396 rm -f conftest.o conftest.s
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26400 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26401 if test $gcc_cv_as_mips_no_shared = yes; then
26403 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26408 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26409 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_as_mips_gnu_attribute=no
26413 if test $in_tree_gas = yes; then
26414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26415 then gcc_cv_as_mips_gnu_attribute=yes
26417 elif test x$gcc_cv_as != x; then
26418 $as_echo '.gnu_attribute 4,1' > conftest.s
26419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26424 test $ac_status = 0; }; }
26425 then
26426 gcc_cv_as_mips_gnu_attribute=yes
26427 else
26428 echo "configure: failed program was" >&5
26429 cat conftest.s >&5
26431 rm -f conftest.o conftest.s
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26435 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26436 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26438 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26443 $as_echo_n "checking assembler for .module support... " >&6; }
26444 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_mips_dot_module=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo '.module mips2
26450 .module fp=xx' > conftest.s
26451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26456 test $ac_status = 0; }; }
26457 then
26458 gcc_cv_as_mips_dot_module=yes
26459 else
26460 echo "configure: failed program was" >&5
26461 cat conftest.s >&5
26463 rm -f conftest.o conftest.s
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26467 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26468 if test $gcc_cv_as_mips_dot_module = yes; then
26470 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26473 if test x$gcc_cv_as_mips_dot_module = xno \
26474 && test x$with_fp_32 != x; then
26475 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26479 $as_echo_n "checking assembler for .micromips support... " >&6; }
26480 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26481 $as_echo_n "(cached) " >&6
26482 else
26483 gcc_cv_as_micromips_support=no
26484 if test x$gcc_cv_as != x; then
26485 $as_echo '.set micromips' > conftest.s
26486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26491 test $ac_status = 0; }; }
26492 then
26493 gcc_cv_as_micromips_support=yes
26494 else
26495 echo "configure: failed program was" >&5
26496 cat conftest.s >&5
26498 rm -f conftest.o conftest.s
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26502 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26503 if test $gcc_cv_as_micromips_support = yes; then
26505 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26510 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26511 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26512 $as_echo_n "(cached) " >&6
26513 else
26514 gcc_cv_as_mips_dtprelword=no
26515 if test $in_tree_gas = yes; then
26516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26517 then gcc_cv_as_mips_dtprelword=yes
26519 elif test x$gcc_cv_as != x; then
26520 $as_echo '.section .tdata,"awT",@progbits
26522 .word 2
26523 .text
26524 .dtprelword x+0x8000' > conftest.s
26525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530 test $ac_status = 0; }; }
26531 then
26532 gcc_cv_as_mips_dtprelword=yes
26533 else
26534 echo "configure: failed program was" >&5
26535 cat conftest.s >&5
26537 rm -f conftest.o conftest.s
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26541 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26542 if test $gcc_cv_as_mips_dtprelword = yes; then
26544 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26549 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26550 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26551 $as_echo_n "(cached) " >&6
26552 else
26553 gcc_cv_as_mips_dspr1_mult=no
26554 if test x$gcc_cv_as != x; then
26555 $as_echo ' .set mips32r2
26556 .set nodspr2
26557 .set dsp
26558 madd $ac3,$4,$5
26559 maddu $ac3,$4,$5
26560 msub $ac3,$4,$5
26561 msubu $ac3,$4,$5
26562 mult $ac3,$4,$5
26563 multu $ac3,$4,$5' > conftest.s
26564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26569 test $ac_status = 0; }; }
26570 then
26571 gcc_cv_as_mips_dspr1_mult=yes
26572 else
26573 echo "configure: failed program was" >&5
26574 cat conftest.s >&5
26576 rm -f conftest.o conftest.s
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26580 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26581 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26583 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26588 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26589 gcc_cv_as_ld_jalr_reloc=no
26590 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26591 if test $in_tree_ld = yes ; then
26592 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 \
26593 && test $in_tree_ld_is_elf = yes; then
26594 gcc_cv_as_ld_jalr_reloc=yes
26596 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26597 echo ' .ent x' > conftest.s
26598 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26599 echo ' lw $25,%call16(y)($28)' >> conftest.s
26600 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26601 echo '1: jalr $25' >> conftest.s
26602 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26603 echo '1: jalr $25' >> conftest.s
26604 echo ' .end x' >> conftest.s
26605 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26606 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26607 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26608 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26609 gcc_cv_as_ld_jalr_reloc=yes
26612 rm -f conftest.*
26615 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26616 if test x$target_cpu_default = x; then
26617 target_cpu_default=MASK_RELAX_PIC_CALLS
26618 else
26619 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26623 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26626 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26627 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26628 $as_echo_n "(cached) " >&6
26629 else
26630 gcc_cv_ld_mips_personality_relaxation=no
26631 if test $in_tree_ld = yes ; then
26632 if test "$gcc_cv_gld_major_version" -eq 2 \
26633 -a "$gcc_cv_gld_minor_version" -ge 21 \
26634 -o "$gcc_cv_gld_major_version" -gt 2; then
26635 gcc_cv_ld_mips_personality_relaxation=yes
26637 elif test x$gcc_cv_as != x \
26638 -a x$gcc_cv_ld != x \
26639 -a x$gcc_cv_readelf != x ; then
26640 cat > conftest.s <<EOF
26641 .cfi_startproc
26642 .cfi_personality 0x80,indirect_ptr
26643 .ent test
26644 test:
26646 .end test
26647 .cfi_endproc
26649 .section .data,"aw",@progbits
26650 indirect_ptr:
26651 .dc.a personality
26653 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26654 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26655 if $gcc_cv_readelf -d conftest 2>&1 \
26656 | grep TEXTREL > /dev/null 2>&1; then
26658 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26659 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26661 else
26662 gcc_cv_ld_mips_personality_relaxation=yes
26666 rm -f conftest.s conftest.o conftest
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26669 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26670 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26672 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26677 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26678 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26680 else
26681 gcc_cv_as_mips_nan=no
26682 if test x$gcc_cv_as != x; then
26683 $as_echo '' > conftest.s
26684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26689 test $ac_status = 0; }; }
26690 then
26691 gcc_cv_as_mips_nan=yes
26692 else
26693 echo "configure: failed program was" >&5
26694 cat conftest.s >&5
26696 rm -f conftest.o conftest.s
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26700 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26701 if test $gcc_cv_as_mips_nan = yes; then
26703 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26706 if test x$gcc_cv_as_mips_nan = xno \
26707 && test x$with_nan != x; then
26708 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26711 esac
26713 # Mips and HP-UX need the GNU assembler.
26714 # Linux on IA64 might be able to use the Intel assembler.
26716 case "$target" in
26717 mips*-*-* | *-*-hpux* )
26718 if test x$gas_flag = xyes \
26719 || test x"$host" != x"$build" \
26720 || test ! -x "$gcc_cv_as" \
26721 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26723 else
26724 echo "*** This configuration requires the GNU assembler" >&2
26725 exit 1
26728 esac
26730 # ??? Not all targets support dwarf2 debug_line, even within a version
26731 # of gas. Moreover, we need to emit a valid instruction to trigger any
26732 # info to the output file. So, as supported targets are added to gas 2.11,
26733 # add some instruction here to (also) show we expect this might work.
26734 # ??? Once 2.11 is released, probably need to add first known working
26735 # version to the per-target configury.
26736 case "$cpu_type" in
26737 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26738 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26739 | visium | xstormy16 | xtensa)
26740 insn="nop"
26742 ia64 | s390)
26743 insn="nop 0"
26745 mmix)
26746 insn="swym 0"
26748 esac
26749 if test x"$insn" != x; then
26750 conftest_s="\
26751 .file 1 \"conftest.s\"
26752 .loc 1 3 0
26753 $insn"
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26755 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26756 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26757 $as_echo_n "(cached) " >&6
26758 else
26759 gcc_cv_as_dwarf2_debug_line=no
26760 if test $in_tree_gas = yes; then
26761 if test $in_tree_gas_is_elf = yes \
26762 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26763 then gcc_cv_as_dwarf2_debug_line=yes
26765 elif test x$gcc_cv_as != x; then
26766 $as_echo "$conftest_s" > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 if test x$gcc_cv_objdump != x \
26775 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26776 | grep debug_line > /dev/null 2>&1; then
26777 gcc_cv_as_dwarf2_debug_line=yes
26779 else
26780 echo "configure: failed program was" >&5
26781 cat conftest.s >&5
26783 rm -f conftest.o conftest.s
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26787 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26790 # The .debug_line file table must be in the exact order that
26791 # we specified the files, since these indices are also used
26792 # by DW_AT_decl_file. Approximate this test by testing if
26793 # the assembler bitches if the same index is assigned twice.
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26795 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26796 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26797 $as_echo_n "(cached) " >&6
26798 else
26799 gcc_cv_as_dwarf2_file_buggy=no
26800 if test x$gcc_cv_as != x; then
26801 $as_echo ' .file 1 "foo.s"
26802 .file 1 "bar.s"' > conftest.s
26803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26808 test $ac_status = 0; }; }
26809 then
26810 gcc_cv_as_dwarf2_file_buggy=yes
26811 else
26812 echo "configure: failed program was" >&5
26813 cat conftest.s >&5
26815 rm -f conftest.o conftest.s
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26819 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26822 if test $gcc_cv_as_dwarf2_debug_line = yes \
26823 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26825 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26830 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26831 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_as_gdwarf2_flag=no
26835 if test $in_tree_gas = yes; then
26836 if test $in_tree_gas_is_elf = yes \
26837 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26838 then gcc_cv_as_gdwarf2_flag=yes
26840 elif test x$gcc_cv_as != x; then
26841 $as_echo "$insn" > conftest.s
26842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26847 test $ac_status = 0; }; }
26848 then
26849 gcc_cv_as_gdwarf2_flag=yes
26850 else
26851 echo "configure: failed program was" >&5
26852 cat conftest.s >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26858 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26859 if test $gcc_cv_as_gdwarf2_flag = yes; then
26861 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26866 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26867 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26868 $as_echo_n "(cached) " >&6
26869 else
26870 gcc_cv_as_gstabs_flag=no
26871 if test $in_tree_gas = yes; then
26872 if test $in_tree_gas_is_elf = yes \
26873 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26874 then gcc_cv_as_gstabs_flag=yes
26876 elif test x$gcc_cv_as != x; then
26877 $as_echo "$insn" > conftest.s
26878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; }
26884 then
26885 gcc_cv_as_gstabs_flag=yes
26886 else
26887 echo "configure: failed program was" >&5
26888 cat conftest.s >&5
26890 rm -f conftest.o conftest.s
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26894 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26895 if test $gcc_cv_as_gstabs_flag = yes; then
26897 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26902 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26903 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26905 else
26906 gcc_cv_as_debug_prefix_map_flag=no
26907 if test $in_tree_gas = yes; then
26908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26909 then gcc_cv_as_debug_prefix_map_flag=yes
26911 elif test x$gcc_cv_as != x; then
26912 $as_echo "$insn" > conftest.s
26913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26918 test $ac_status = 0; }; }
26919 then
26920 gcc_cv_as_debug_prefix_map_flag=yes
26921 else
26922 echo "configure: failed program was" >&5
26923 cat conftest.s >&5
26925 rm -f conftest.o conftest.s
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26929 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26930 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26932 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26938 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26939 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_as_compress_debug=no
26943 if test x$gcc_cv_as != x; then
26944 $as_echo '' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 # gas compiled without zlib cannot compress debug sections and warns
26953 # about it, but still exits successfully. So check for this, too.
26954 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26955 then
26956 gcc_cv_as_compress_debug=0
26957 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26958 then
26959 gcc_cv_as_compress_debug=1
26960 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26961 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26962 else
26963 gcc_cv_as_compress_debug=0
26964 # FIXME: Future gas versions will support ELF gABI style via
26965 # --compress-debug-sections[=type].
26967 else
26968 echo "configure: failed program was" >&5
26969 cat conftest.s >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26975 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26978 cat >>confdefs.h <<_ACEOF
26979 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26980 _ACEOF
26983 cat >>confdefs.h <<_ACEOF
26984 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26985 _ACEOF
26988 cat >>confdefs.h <<_ACEOF
26989 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26990 _ACEOF
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26994 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26995 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26996 $as_echo_n "(cached) " >&6
26997 else
26998 gcc_cv_as_lcomm_with_alignment=no
26999 if test x$gcc_cv_as != x; then
27000 $as_echo '.lcomm bar,4,16' > conftest.s
27001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006 test $ac_status = 0; }; }
27007 then
27008 gcc_cv_as_lcomm_with_alignment=yes
27009 else
27010 echo "configure: failed program was" >&5
27011 cat conftest.s >&5
27013 rm -f conftest.o conftest.s
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27017 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27018 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27020 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27024 if test x$with_sysroot = x && test x$host = x$target \
27025 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27026 && test "$prefix" != "NONE"; then
27028 cat >>confdefs.h <<_ACEOF
27029 #define PREFIX_INCLUDE_DIR "$prefix/include"
27030 _ACEOF
27034 # Determine the version of glibc, if any, used on the target.
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27036 $as_echo_n "checking for target glibc version... " >&6; }
27038 # Check whether --with-glibc-version was given.
27039 if test "${with_glibc_version+set}" = set; then :
27040 withval=$with_glibc_version;
27041 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27042 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27043 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27044 else
27045 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27047 else
27049 glibc_version_major=0
27050 glibc_version_minor=0
27051 if test -f $target_header_dir/features.h \
27052 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27053 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27054 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27055 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27060 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27062 cat >>confdefs.h <<_ACEOF
27063 #define TARGET_GLIBC_MAJOR $glibc_version_major
27064 _ACEOF
27067 cat >>confdefs.h <<_ACEOF
27068 #define TARGET_GLIBC_MINOR $glibc_version_minor
27069 _ACEOF
27072 # Check whether --enable-gnu-unique-object was given.
27073 if test "${enable_gnu_unique_object+set}" = set; then :
27074 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27075 yes | no) ;;
27076 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27077 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27078 esac
27079 else
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27081 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27082 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27083 $as_echo_n "(cached) " >&6
27084 else
27085 gcc_cv_as_gnu_unique_object=no
27086 if test $in_tree_gas = yes; then
27087 if test $in_tree_gas_is_elf = yes \
27088 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27089 then gcc_cv_as_gnu_unique_object=yes
27091 elif test x$gcc_cv_as != x; then
27092 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; }
27099 then
27100 gcc_cv_as_gnu_unique_object=yes
27101 else
27102 echo "configure: failed program was" >&5
27103 cat conftest.s >&5
27105 rm -f conftest.o conftest.s
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27109 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27110 if test $gcc_cv_as_gnu_unique_object = yes; then
27111 # We need to unquote above to to use the definition from config.gcc.
27112 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27114 if test $glibc_version_major -gt 2 \
27115 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27116 enable_gnu_unique_object=yes
27122 if test x$enable_gnu_unique_object = xyes; then
27124 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27129 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27130 if test "${gcc_cv_as_line_zero+set}" = set; then :
27131 $as_echo_n "(cached) " >&6
27132 else
27133 gcc_cv_as_line_zero=no
27134 if test $in_tree_gas = yes; then
27135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27136 then gcc_cv_as_line_zero=yes
27138 elif test "x$gcc_cv_as" != x; then
27139 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27140 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27145 test $ac_status = 0; }; } &&
27146 test "x`cat conftest.out`" = x
27147 then
27148 gcc_cv_as_line_zero=yes
27149 else
27150 echo "configure: failed program was" >&5
27151 cat conftest.s >&5
27152 echo "configure: error output was" >&5
27153 cat conftest.out >&5
27155 rm -f conftest.o conftest.s conftest.out
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27159 $as_echo "$gcc_cv_as_line_zero" >&6; }
27160 if test "x$gcc_cv_as_line_zero" = xyes; then
27162 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27167 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27168 gcc_cv_ld_eh_frame_hdr=no
27169 if test $in_tree_ld = yes ; then
27170 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 \
27171 && test $in_tree_ld_is_elf = yes; then
27172 gcc_cv_ld_eh_frame_hdr=yes
27174 elif test x$gcc_cv_ld != x; then
27175 if echo "$ld_ver" | grep GNU > /dev/null; then
27176 # Check if linker supports --eh-frame-hdr option
27177 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27178 gcc_cv_ld_eh_frame_hdr=yes
27180 else
27181 case "$target" in
27182 *-*-solaris2*)
27183 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27184 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27185 gcc_cv_ld_eh_frame_hdr=yes
27188 esac
27192 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27194 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27198 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27201 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27202 gcc_cv_ld_eh_frame_ciev3=no
27203 if test $in_tree_ld = yes ; then
27204 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 \
27205 && test $in_tree_ld_is_elf = yes; then
27206 gcc_cv_ld_eh_frame_ciev3=yes
27208 elif test x$gcc_cv_ld != x; then
27209 if echo "$ld_ver" | grep GNU > /dev/null; then
27210 gcc_cv_ld_eh_frame_ciev3=yes
27211 if test 0"$ld_date" -lt 20040513; then
27212 if test -n "$ld_date"; then
27213 # If there was date string, but was earlier than 2004-05-13, fail
27214 gcc_cv_ld_eh_frame_ciev3=no
27215 elif test "$ld_vers_major" -lt 2; then
27216 gcc_cv_ld_eh_frame_ciev3=no
27217 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27218 gcc_cv_ld_eh_frame_ciev3=no
27221 else
27222 case "$target" in
27223 *-*-solaris2*)
27224 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27225 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27226 gcc_cv_ld_eh_frame_ciev3=yes
27229 esac
27233 cat >>confdefs.h <<_ACEOF
27234 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27235 _ACEOF
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27238 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27241 $as_echo_n "checking linker position independent executable support... " >&6; }
27242 gcc_cv_ld_pie=no
27243 if test $in_tree_ld = yes ; then
27244 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 \
27245 && test $in_tree_ld_is_elf = yes; then
27246 gcc_cv_ld_pie=yes
27248 elif test x$gcc_cv_ld != x; then
27249 # Check if linker supports -pie option
27250 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27251 gcc_cv_ld_pie=yes
27254 if test x"$gcc_cv_ld_pie" = xyes; then
27256 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27260 $as_echo "$gcc_cv_ld_pie" >&6; }
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27263 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27264 gcc_cv_ld_pie_copyreloc=no
27265 if test $gcc_cv_ld_pie = yes ; then
27266 if test $in_tree_ld = yes ; then
27267 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
27268 gcc_cv_ld_pie_copyreloc=yes
27270 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27271 # Check if linker supports -pie option with copy reloc
27272 case "$target" in
27273 i?86-*-linux* | x86_64-*-linux*)
27274 cat > conftest1.s <<EOF
27275 .globl a_glob
27276 .data
27277 .type a_glob, @object
27278 .size a_glob, 4
27279 a_glob:
27280 .long 2
27282 cat > conftest2.s <<EOF
27283 .text
27284 .globl main
27285 .type main, @function
27286 main:
27287 movl %eax, a_glob(%rip)
27288 .size main, .-main
27289 .globl ptr
27290 .section .data.rel,"aw",@progbits
27291 .type ptr, @object
27292 ptr:
27293 .quad a_glob
27295 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27296 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27297 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27298 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27299 gcc_cv_ld_pie_copyreloc=yes
27301 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27303 esac
27307 cat >>confdefs.h <<_ACEOF
27308 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27309 _ACEOF
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27312 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27315 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27316 gcc_cv_ld_eh_gc_sections=no
27317 if test $in_tree_ld = yes ; then
27318 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 \
27319 && test $in_tree_ld_is_elf = yes; then
27320 gcc_cv_ld_eh_gc_sections=yes
27322 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27323 cat > conftest.s <<EOF
27324 .section .text
27325 .globl _start
27326 .type _start, @function
27327 _start:
27328 .long foo
27329 .size _start, .-_start
27330 .section .text.foo,"ax",@progbits
27331 .type foo, @function
27332 foo:
27333 .long 0
27334 .size foo, .-foo
27335 .section .gcc_except_table.foo,"a",@progbits
27336 .L0:
27337 .long 0
27338 .section .eh_frame,"a",@progbits
27339 .long .L0
27341 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27342 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27343 | grep "gc-sections option ignored" > /dev/null; then
27344 gcc_cv_ld_eh_gc_sections=no
27345 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27346 | grep gcc_except_table > /dev/null; then
27347 gcc_cv_ld_eh_gc_sections=yes
27348 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27349 if test x$gcc_cv_as_comdat_group != xyes; then
27350 gcc_cv_ld_eh_gc_sections=no
27351 cat > conftest.s <<EOF
27352 .section .text
27353 .globl _start
27354 .type _start, @function
27355 _start:
27356 .long foo
27357 .size _start, .-_start
27358 .section .gnu.linkonce.t.foo,"ax",@progbits
27359 .type foo, @function
27360 foo:
27361 .long 0
27362 .size foo, .-foo
27363 .section .gcc_except_table.foo,"a",@progbits
27364 .L0:
27365 .long 0
27366 .section .eh_frame,"a",@progbits
27367 .long .L0
27369 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27370 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27371 | grep "gc-sections option ignored" > /dev/null; then
27372 gcc_cv_ld_eh_gc_sections=no
27373 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27374 | grep gcc_except_table > /dev/null; then
27375 gcc_cv_ld_eh_gc_sections=yes
27381 rm -f conftest.s conftest.o conftest
27383 case "$target" in
27384 hppa*-*-linux*)
27385 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27386 gcc_cv_ld_eh_gc_sections=no
27388 esac
27389 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27391 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27395 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27398 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27399 gcc_cv_ld_eh_gc_sections_bug=no
27400 if test $in_tree_ld = yes ; then
27401 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 \
27402 && test $in_tree_ld_is_elf = yes; then
27403 gcc_cv_ld_eh_gc_sections_bug=yes
27405 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
27406 gcc_cv_ld_eh_gc_sections_bug=yes
27407 cat > conftest.s <<EOF
27408 .section .text
27409 .globl _start
27410 .type _start, @function
27411 _start:
27412 .long foo
27413 .size _start, .-_start
27414 .section .text.startup.foo,"ax",@progbits
27415 .type foo, @function
27416 foo:
27417 .long 0
27418 .size foo, .-foo
27419 .section .gcc_except_table.foo,"a",@progbits
27420 .L0:
27421 .long 0
27422 .section .eh_frame,"a",@progbits
27423 .long .L0
27425 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27426 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27427 | grep "gc-sections option ignored" > /dev/null; then
27429 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27430 | grep gcc_except_table > /dev/null; then
27431 gcc_cv_ld_eh_gc_sections_bug=no
27434 rm -f conftest.s conftest.o conftest
27436 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27438 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27442 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27445 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27446 # gold/gld support compressed debug sections since binutils 2.19/2.21
27447 if test $in_tree_ld = yes ; then
27448 gcc_cv_ld_compress_debug=0
27449 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 \
27450 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27451 gcc_cv_ld_compress_debug=2
27452 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27453 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 \
27454 && test $in_tree_ld_is_elf = yes; then
27455 gcc_cv_ld_compress_debug=1
27457 elif echo "$ld_ver" | grep GNU > /dev/null; then
27458 gcc_cv_ld_compress_debug=1
27459 if test 0"$ld_date" -lt 20050308; then
27460 if test -n "$ld_date"; then
27461 # If there was date string, but was earlier than 2005-03-08, fail
27462 gcc_cv_ld_compress_debug=0
27463 elif test "$ld_vers_major" -lt 2; then
27464 gcc_cv_ld_compress_debug=0
27465 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27466 gcc_cv_ld_compress_debug=0
27469 if test $ld_is_gold = yes; then
27470 gcc_cv_ld_compress_debug=2
27471 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27473 else
27474 case "${target}" in
27475 *-*-solaris2*)
27476 # Introduced in Solaris 11.2.
27477 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27478 gcc_cv_ld_compress_debug=3
27479 gcc_cv_ld_compress_debug_option="-z compress-sections"
27480 else
27481 gcc_cv_ld_compress_debug=0
27485 # Assume linkers other than GNU ld don't support compessed debug
27486 # sections.
27487 gcc_cv_ld_compress_debug=0
27489 esac
27492 cat >>confdefs.h <<_ACEOF
27493 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27494 _ACEOF
27497 cat >>confdefs.h <<_ACEOF
27498 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27499 _ACEOF
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27502 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27504 # --------
27505 # UNSORTED
27506 # --------
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27509 $as_echo_n "checking linker --as-needed support... " >&6; }
27510 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27511 $as_echo_n "(cached) " >&6
27512 else
27513 gcc_cv_ld_as_needed=no
27514 gcc_cv_ld_as_needed_option='--as-needed'
27515 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27516 if test $in_tree_ld = yes ; then
27517 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 \
27518 && test $in_tree_ld_is_elf = yes; then
27519 gcc_cv_ld_as_needed=yes
27521 elif test x$gcc_cv_ld != x; then
27522 # Check if linker supports --as-needed and --no-as-needed options
27523 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27524 gcc_cv_ld_as_needed=yes
27525 else
27526 case "$target" in
27527 # Solaris 2 ld always supports -z ignore/-z record.
27528 *-*-solaris2*)
27529 gcc_cv_ld_as_needed=yes
27530 gcc_cv_ld_as_needed_option="-z ignore"
27531 gcc_cv_ld_no_as_needed_option="-z record"
27533 esac
27536 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27537 # dl_iterate_phdr, i.e. since Solaris 11.
27538 case "$target" in
27539 *-*-solaris2.1[1-9]*)
27540 case "$target" in
27541 i?86-*-* | x86_64-*-*)
27542 if echo "$ld_ver" | grep GNU > /dev/null; then
27543 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27544 gcc_cv_ld_as_needed=no
27547 esac
27549 *-*-solaris2*)
27550 gcc_cv_ld_as_needed=no
27552 esac
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27556 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27557 if test x"$gcc_cv_ld_as_needed" = xyes; then
27559 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27562 cat >>confdefs.h <<_ACEOF
27563 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27564 _ACEOF
27567 cat >>confdefs.h <<_ACEOF
27568 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27569 _ACEOF
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27574 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27575 saved_LDFLAGS="$LDFLAGS"
27576 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27577 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27579 /* end confdefs.h. */
27580 int main(void) {return 0;}
27581 _ACEOF
27582 if ac_fn_cxx_try_link "$LINENO"; then :
27583 gcc_cv_ld_clearcap=yes; break
27584 else
27585 gcc_cv_ld_clearcap=no
27587 rm -f core conftest.err conftest.$ac_objext \
27588 conftest$ac_exeext conftest.$ac_ext
27589 done
27590 LDFLAGS="$saved_LDFLAGS"
27591 if test "x$gcc_cv_ld_clearcap" = xyes; then
27593 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27595 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27599 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27601 case "$target:$tm_file" in
27602 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27603 case "$target" in
27604 *le-*-linux*)
27605 emul_name="-melf64lppc"
27607 *-*-linux*)
27608 emul_name="-melf64ppc"
27610 *-*-freebsd*)
27611 emul_name="-melf64ppc_fbsd"
27613 esac
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27615 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27616 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27617 $as_echo_n "(cached) " >&6
27618 else
27619 gcc_cv_ld_no_dot_syms=no
27620 if test x"$ld_is_gold" = xyes; then
27621 gcc_cv_ld_no_dot_syms=yes
27622 elif test $in_tree_ld = yes ; then
27623 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
27624 gcc_cv_ld_no_dot_syms=yes
27626 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27627 cat > conftest1.s <<EOF
27628 .text
27629 bl .foo
27631 cat > conftest2.s <<EOF
27632 .section ".opd","aw"
27633 .align 3
27634 .globl foo
27635 .type foo,@function
27636 foo:
27637 .quad .LEfoo,.TOC.@tocbase,0
27638 .text
27639 .LEfoo:
27641 .size foo,.-.LEfoo
27643 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27644 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27645 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27646 gcc_cv_ld_no_dot_syms=yes
27648 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27653 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27654 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27656 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27661 $as_echo_n "checking linker large toc support... " >&6; }
27662 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27663 $as_echo_n "(cached) " >&6
27664 else
27665 gcc_cv_ld_large_toc=no
27666 if test x"$ld_is_gold" = xyes; then
27667 gcc_cv_ld_large_toc=yes
27668 elif test $in_tree_ld = yes ; then
27669 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
27670 gcc_cv_ld_large_toc=yes
27672 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27673 cat > conftest.s <<EOF
27674 .section ".tbss","awT",@nobits
27675 .align 3
27676 ie0: .space 8
27677 .global _start
27678 .text
27679 _start:
27680 addis 9,13,ie0@got@tprel@ha
27681 ld 9,ie0@got@tprel@l(9)
27683 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27684 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27685 gcc_cv_ld_large_toc=yes
27687 rm -f conftest conftest.o conftest.s
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27692 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27693 if test x"$gcc_cv_ld_large_toc" = xyes; then
27695 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27700 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27701 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27702 $as_echo_n "(cached) " >&6
27703 else
27704 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27705 cat > conftest.s <<EOF
27706 .global _start
27707 .text
27708 _start:
27709 addis 9,2,x@got@ha
27710 .section .data.rel.ro,"aw",@progbits
27711 .p2align 16
27712 .space 32768
27713 x: .quad .TOC.
27715 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27716 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27717 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)) }'`
27719 rm -f conftest conftest.o conftest.s
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27724 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27725 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27727 cat >>confdefs.h <<_ACEOF
27728 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27729 _ACEOF
27733 esac
27735 case "$target" in
27736 *-*-aix*)
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27738 $as_echo_n "checking linker large toc support... " >&6; }
27739 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27740 $as_echo_n "(cached) " >&6
27741 else
27742 gcc_cv_ld_large_toc=no
27743 if test x$gcc_cv_as != x ; then
27744 cat > conftest.s <<EOF
27745 .toc
27746 LC..1:
27747 .tc a[TC],a[RW]
27748 .extern a[RW]
27749 .csect .text[PR]
27750 .largetoctest:
27751 addis 9,LC..1@u(2)
27752 ld 3,LC..1@l(9)
27754 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27755 gcc_cv_ld_large_toc=yes
27757 rm -f conftest conftest.o conftest.s
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27762 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27763 if test x"$gcc_cv_ld_large_toc" = xyes; then
27765 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27769 esac
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27772 $as_echo_n "checking linker --build-id support... " >&6; }
27773 if test "${gcc_cv_ld_buildid+set}" = set; then :
27774 $as_echo_n "(cached) " >&6
27775 else
27776 gcc_cv_ld_buildid=no
27777 if test $in_tree_ld = yes ; then
27778 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27779 "$gcc_cv_gld_minor_version" -ge 18 -o \
27780 "$gcc_cv_gld_major_version" -gt 2 \
27781 && test $in_tree_ld_is_elf = yes; then
27782 gcc_cv_ld_buildid=yes
27784 elif test x$gcc_cv_ld != x; then
27785 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27786 gcc_cv_ld_buildid=yes
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27791 $as_echo "$gcc_cv_ld_buildid" >&6; }
27792 if test x"$gcc_cv_ld_buildid" = xyes; then
27794 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27798 # Check whether --enable-linker-build-id was given.
27799 if test "${enable_linker_build_id+set}" = set; then :
27800 enableval=$enable_linker_build_id;
27801 else
27802 enable_linker_build_id=no
27806 if test x"$enable_linker_build_id" = xyes; then
27807 if test x"$gcc_cv_ld_buildid" = xyes; then
27809 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27811 else
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27813 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27817 # In binutils 2.21, GNU ld gained support for new emulations fully
27818 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27820 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27821 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27822 $as_echo_n "(cached) " >&6
27823 else
27824 gcc_cv_ld_sol2_emulation=no
27825 if test $in_tree_ld = yes ; then
27826 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27827 "$gcc_cv_gld_minor_version" -ge 21 -o \
27828 "$gcc_cv_gld_major_version" -gt 2 \
27829 && test $in_tree_ld_is_elf = yes; then
27830 gcc_cv_ld_sol2_emulation=yes
27832 elif test x$gcc_cv_ld != x; then
27833 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27834 grep _sol2 > /dev/null; then
27835 gcc_cv_ld_sol2_emulation=yes
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27840 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27841 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27843 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27848 $as_echo_n "checking linker --sysroot support... " >&6; }
27849 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27850 $as_echo_n "(cached) " >&6
27851 else
27852 gcc_cv_ld_sysroot=no
27853 if test $in_tree_ld = yes ; then
27854 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
27855 gcc_cv_ld_sysroot=yes
27857 elif test x$gcc_cv_ld != x; then
27858 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27859 gcc_cv_ld_sysroot=yes
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27864 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27865 if test x"$gcc_cv_ld_sysroot" = xyes; then
27867 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27871 # Test for stack protector support in target C library.
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27873 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27874 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27875 $as_echo_n "(cached) " >&6
27876 else
27877 gcc_cv_libc_provides_ssp=no
27878 case "$target" in
27879 *-*-musl*)
27880 # All versions of musl provide stack protector
27881 gcc_cv_libc_provides_ssp=yes;;
27882 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27883 # glibc 2.4 and later provides __stack_chk_fail and
27884 # either __stack_chk_guard, or TLS access to stack guard canary.
27886 if test $glibc_version_major -gt 2 \
27887 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27888 gcc_cv_libc_provides_ssp=yes
27889 else
27891 if test -f $target_header_dir/features.h \
27892 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27893 $target_header_dir/features.h > /dev/null; then
27894 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27895 $target_header_dir/features.h > /dev/null && \
27896 test -f $target_header_dir/bits/uClibc_config.h && \
27897 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27898 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27899 gcc_cv_libc_provides_ssp=yes
27901 # all versions of Bionic support stack protector
27902 elif test -f $target_header_dir/sys/cdefs.h \
27903 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27904 $target_header_dir/sys/cdefs.h > /dev/null; then
27905 gcc_cv_libc_provides_ssp=yes
27909 *-*-gnu*)
27910 # Avoid complicated tests (see
27911 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27912 # simply assert that glibc does provide this, which is true for all
27913 # realistically usable GNU/Hurd configurations.
27914 # All supported versions of musl provide it as well
27915 gcc_cv_libc_provides_ssp=yes;;
27916 *-*-darwin* | *-*-freebsd*)
27917 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27918 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27919 gcc_cv_libc_provides_ssp=yes
27920 else
27921 echo "no __stack_chk_fail on this target"
27925 *) gcc_cv_libc_provides_ssp=no ;;
27926 esac
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27929 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27931 if test x$gcc_cv_libc_provides_ssp = xyes; then
27933 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27937 # Test for <sys/sdt.h> on the target.
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27940 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27941 have_sys_sdt_h=no
27942 if test -f $target_header_dir/sys/sdt.h; then
27943 have_sys_sdt_h=yes
27945 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27949 $as_echo "$have_sys_sdt_h" >&6; }
27951 # Check if TFmode long double should be used by default or not.
27952 # Some glibc targets used DFmode long double, but with glibc 2.4
27953 # and later they can use TFmode.
27954 case "$target" in
27955 powerpc*-*-linux* | \
27956 sparc*-*-linux* | \
27957 s390*-*-linux* | \
27958 alpha*-*-linux*)
27960 # Check whether --with-long-double-128 was given.
27961 if test "${with_long_double_128+set}" = set; then :
27962 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27963 else
27965 if test $glibc_version_major -gt 2 \
27966 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27967 gcc_cv_target_ldbl128=yes
27968 else
27970 gcc_cv_target_ldbl128=no
27971 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27972 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27973 && gcc_cv_target_ldbl128=yes
27979 esac
27980 if test x$gcc_cv_target_ldbl128 = xyes; then
27982 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27987 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27988 gcc_cv_target_dl_iterate_phdr=unknown
27989 case "$target" in
27990 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27991 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27992 # libdl there, both complicating its use and breaking compatibility
27993 # between Solaris 10 updates.
27994 *-*-solaris2.1[1-9]*)
27995 # <link.h> needs both a dl_iterate_phdr declaration and support for
27996 # compilation with largefile support.
27997 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27998 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27999 gcc_cv_target_dl_iterate_phdr=yes
28000 else
28001 gcc_cv_target_dl_iterate_phdr=no
28004 *-*-dragonfly* | *-*-freebsd*)
28005 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28006 gcc_cv_target_dl_iterate_phdr=yes
28007 else
28008 gcc_cv_target_dl_iterate_phdr=no
28011 *-linux-musl*)
28012 gcc_cv_target_dl_iterate_phdr=yes
28014 esac
28016 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28018 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28022 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28024 # We no longer support different GC mechanisms. Emit an error if
28025 # the user configures with --with-gc.
28027 # Check whether --with-gc was given.
28028 if test "${with_gc+set}" = set; then :
28029 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28033 # Libraries to use on the host. This will normally be set by the top
28034 # level Makefile. Here we simply capture the value for our Makefile.
28035 if test -z "${HOST_LIBS+set}"; then
28036 HOST_LIBS=
28040 # Use the system's zlib library.
28041 zlibdir=-L../zlib
28042 zlibinc="-I\$(srcdir)/../zlib"
28044 # Check whether --with-system-zlib was given.
28045 if test "${with_system_zlib+set}" = set; then :
28046 withval=$with_system_zlib; zlibdir=
28047 zlibinc=
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28056 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28057 # Check whether --enable-maintainer-mode was given.
28058 if test "${enable_maintainer_mode+set}" = set; then :
28059 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28060 else
28061 maintainer_mode=no
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28066 $as_echo "$maintainer_mode" >&6; }
28068 if test "$maintainer_mode" = "yes"; then
28069 MAINT=''
28070 else
28071 MAINT='#'
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28076 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28077 # Check whether --enable-link-mutex was given.
28078 if test "${enable_link_mutex+set}" = set; then :
28079 enableval=$enable_link_mutex; do_link_mutex=$enableval
28080 else
28081 do_link_mutex=no
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28085 $as_echo "$do_link_mutex" >&6; }
28087 if test "$do_link_mutex" = "yes"; then
28088 DO_LINK_MUTEX=true
28089 else
28090 DO_LINK_MUTEX=false
28094 # --------------
28095 # Language hooks
28096 # --------------
28098 # Make empty files to contain the specs and options for each language.
28099 # Then add #include lines to for a compiler that has specs and/or options.
28101 subdirs=
28102 lang_opt_files=
28103 lang_specs_files=
28104 lang_tree_files=
28105 # These (without "all_") are set in each config-lang.in.
28106 # `language' must be a single word so is spelled singularly.
28107 all_languages=
28108 all_compilers=
28109 all_outputs='Makefile'
28110 # List of language makefile fragments.
28111 all_lang_makefrags=
28112 # Additional files for gengtype
28113 all_gtfiles="$target_gtfiles"
28115 # These are the languages that are set in --enable-languages,
28116 # and are available in the GCC tree.
28117 all_selected_languages=
28119 # Add the language fragments.
28120 # Languages are added via two mechanisms. Some information must be
28121 # recorded in makefile variables, these are defined in config-lang.in.
28122 # We accumulate them and plug them into the main Makefile.
28123 # The other mechanism is a set of hooks for each of the main targets
28124 # like `clean', `install', etc.
28126 language_hooks="Make-hooks"
28128 for lang in ${srcdir}/*/config-lang.in
28130 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28132 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28133 if test "x$lang_alias" = x
28134 then
28135 echo "$lang doesn't set \$language." 1>&2
28136 exit 1
28138 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28139 subdirs="$subdirs $subdir"
28141 # $gcc_subdir is where the gcc integration files are to be found
28142 # for a language, both for internal compiler purposes (compiler
28143 # sources implementing front-end to GCC tree converters), and for
28144 # build infrastructure purposes (Make-lang.in, etc.)
28146 # This will be <subdir> (relative to $srcdir) if a line like
28147 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28148 # is found in <langdir>/config-lang.in, and will remain <langdir>
28149 # otherwise.
28151 # Except for the language alias (fetched above), the regular
28152 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28153 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28154 # only this and the language alias.
28156 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28157 if [ "$gcc_subdir" = "" ]; then
28158 gcc_subdir="$subdir"
28161 case ",$enable_languages," in
28162 *,$lang_alias,*)
28163 all_selected_languages="$all_selected_languages $lang_alias"
28164 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28165 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28168 esac
28170 language=
28171 boot_language=
28172 compilers=
28173 outputs=
28174 gtfiles=
28175 subdir_requires=
28176 . ${srcdir}/$gcc_subdir/config-lang.in
28177 if test "x$language" = x
28178 then
28179 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28180 exit 1
28183 ok=:
28184 case ",$enable_languages," in
28185 *,$lang_alias,*) ;;
28187 for i in $subdir_requires; do
28188 test -f "${srcdir}/$i/config-lang.in" && continue
28189 ok=false
28190 break
28191 done
28193 esac
28194 $ok || continue
28196 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28197 if test -f $srcdir/$gcc_subdir/lang.opt; then
28198 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28199 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28201 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28202 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28204 all_languages="$all_languages $language"
28205 all_compilers="$all_compilers $compilers"
28206 all_outputs="$all_outputs $outputs"
28207 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28208 case ",$enable_languages," in
28209 *,lto,*)
28211 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28213 enable_lto=yes
28216 *) ;;
28217 esac
28218 done
28220 check_languages=
28221 for language in $all_selected_languages
28223 check_languages="$check_languages check-$language"
28224 done
28226 # We link each language in with a set of hooks, reached indirectly via
28227 # lang.${target}. Only do so for selected languages.
28229 rm -f Make-hooks
28230 touch Make-hooks
28231 target_list="all.cross start.encap rest.encap tags \
28232 install-common install-man install-info install-pdf install-html dvi \
28233 pdf html uninstall info man srcextra srcman srcinfo \
28234 mostlyclean clean distclean maintainer-clean install-plugin"
28236 for t in $target_list
28239 for lang in $all_selected_languages
28241 x="$x $lang.$t"
28242 done
28243 echo "lang.$t: $x" >> Make-hooks
28244 done
28246 # --------
28247 # Option include files
28248 # --------
28250 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28251 option_includes="option-includes.mk"
28254 # --------
28255 # UNSORTED
28256 # --------
28258 # Create .gdbinit.
28260 echo "dir ." > .gdbinit
28261 echo "dir ${srcdir}" >> .gdbinit
28262 if test x$gdb_needs_out_file_path = xyes
28263 then
28264 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28266 if test "x$subdirs" != x; then
28267 for s in $subdirs
28269 echo "dir ${srcdir}/$s" >> .gdbinit
28270 done
28272 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28273 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28275 # Put a breakpoint on __asan_report_error to help with debugging buffer
28276 # overflow.
28277 case "$CFLAGS" in
28278 *-fsanitize=address*)
28279 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28281 esac
28283 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28287 # Find a directory in which to install a shared libgcc.
28289 # Check whether --enable-version-specific-runtime-libs was given.
28290 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28291 enableval=$enable_version_specific_runtime_libs;
28295 # Substitute configuration variables
28358 # Echo link setup.
28359 if test x${build} = x${host} ; then
28360 if test x${host} = x${target} ; then
28361 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28362 else
28363 echo "Links are now set up to build a cross-compiler" 1>&2
28364 echo " from ${host} to ${target}." 1>&2
28366 else
28367 if test x${host} = x${target} ; then
28368 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28369 echo " for ${target}." 1>&2
28370 else
28371 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28372 echo " from ${host} to ${target}." 1>&2
28381 if test "x${ISLLIBS}" != "x" ; then
28383 $as_echo "#define HAVE_isl 1" >>confdefs.h
28387 # Check whether isl_schedule_constraints_compute_schedule is available;
28388 # it's new in ISL-0.13.
28389 if test "x${ISLLIBS}" != "x" ; then
28390 saved_CXXFLAGS="$CXXFLAGS"
28391 CXXFLAGS="$CXXFLAGS $ISLINC"
28392 saved_LIBS="$LIBS"
28393 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28396 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28398 /* end confdefs.h. */
28399 #include <isl/schedule.h>
28401 main ()
28403 isl_schedule_constraints_compute_schedule (NULL);
28405 return 0;
28407 _ACEOF
28408 if ac_fn_cxx_try_link "$LINENO"; then :
28409 ac_has_isl_schedule_constraints_compute_schedule=yes
28410 else
28411 ac_has_isl_schedule_constraints_compute_schedule=no
28413 rm -f core conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28416 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28418 LIBS="$saved_LIBS"
28419 CXXFLAGS="$saved_CXXFLAGS"
28421 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28423 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28428 # Check for plugin support
28429 # Check whether --enable-plugin was given.
28430 if test "${enable_plugin+set}" = set; then :
28431 enableval=$enable_plugin; enable_plugin=$enableval
28432 else
28433 enable_plugin=yes; default_plugin=yes
28437 pluginlibs=
28439 case "${host}" in
28440 *-*-darwin*)
28441 if test x$build = x$host; then
28442 export_sym_check="nm${exeext} -g"
28443 elif test x$host = x$target; then
28444 export_sym_check="$gcc_cv_nm -g"
28445 else
28446 export_sym_check=
28450 if test x$build = x$host; then
28451 export_sym_check="objdump${exeext} -T"
28452 elif test x$host = x$target; then
28453 export_sym_check="$gcc_cv_objdump -T"
28454 else
28455 export_sym_check=
28458 esac
28460 if test x"$enable_plugin" = x"yes"; then
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28463 $as_echo_n "checking for exported symbols... " >&6; }
28464 if test "x$export_sym_check" != x; then
28465 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28466 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28467 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28468 : # No need to use a flag
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28470 $as_echo "yes" >&6; }
28471 else
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28475 $as_echo_n "checking for -rdynamic... " >&6; }
28476 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28477 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28478 plugin_rdynamic=yes
28479 pluginlibs="-rdynamic"
28480 else
28481 plugin_rdynamic=no
28482 enable_plugin=no
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28485 $as_echo "$plugin_rdynamic" >&6; }
28487 else
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28489 $as_echo "unable to check" >&6; }
28492 # Check -ldl
28493 saved_LIBS="$LIBS"
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28495 $as_echo_n "checking for library containing dlopen... " >&6; }
28496 if test "${ac_cv_search_dlopen+set}" = set; then :
28497 $as_echo_n "(cached) " >&6
28498 else
28499 ac_func_search_save_LIBS=$LIBS
28500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28501 /* end confdefs.h. */
28503 /* Override any GCC internal prototype to avoid an error.
28504 Use char because int might match the return type of a GCC
28505 builtin and then its argument prototype would still apply. */
28506 #ifdef __cplusplus
28507 extern "C"
28508 #endif
28509 char dlopen ();
28511 main ()
28513 return dlopen ();
28515 return 0;
28517 _ACEOF
28518 for ac_lib in '' dl; do
28519 if test -z "$ac_lib"; then
28520 ac_res="none required"
28521 else
28522 ac_res=-l$ac_lib
28523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28525 if ac_fn_cxx_try_link "$LINENO"; then :
28526 ac_cv_search_dlopen=$ac_res
28528 rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext
28530 if test "${ac_cv_search_dlopen+set}" = set; then :
28531 break
28533 done
28534 if test "${ac_cv_search_dlopen+set}" = set; then :
28536 else
28537 ac_cv_search_dlopen=no
28539 rm conftest.$ac_ext
28540 LIBS=$ac_func_search_save_LIBS
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28543 $as_echo "$ac_cv_search_dlopen" >&6; }
28544 ac_res=$ac_cv_search_dlopen
28545 if test "$ac_res" != no; then :
28546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28550 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28551 pluginlibs="$pluginlibs -ldl"
28553 LIBS="$saved_LIBS"
28555 # Check that we can build shared objects with -fPIC -shared
28556 saved_LDFLAGS="$LDFLAGS"
28557 saved_CFLAGS="$CFLAGS"
28558 case "${host}" in
28559 *-*-darwin*)
28560 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28561 CFLAGS="$CFLAGS -fPIC"
28562 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28565 CFLAGS="$CFLAGS -fPIC"
28566 LDFLAGS="$LDFLAGS -fPIC -shared"
28568 esac
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28570 $as_echo_n "checking for -fPIC -shared... " >&6; }
28571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572 /* end confdefs.h. */
28573 extern int X;
28575 main ()
28577 return X == 0;
28579 return 0;
28581 _ACEOF
28582 if ac_fn_cxx_try_link "$LINENO"; then :
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28584 $as_echo "yes" >&6; }; have_pic_shared=yes
28585 else
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28587 $as_echo "no" >&6; }; have_pic_shared=no
28589 rm -f core conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
28591 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28592 pluginlibs=
28593 enable_plugin=no
28595 LDFLAGS="$saved_LDFLAGS"
28596 CFLAGS="$saved_CFLAGS"
28598 # If plugin support had been requested but not available, fail.
28599 if test x"$enable_plugin" = x"no" ; then
28600 if test x"$default_plugin" != x"yes"; then
28601 as_fn_error "
28602 Building GCC with plugin support requires a host that supports
28603 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28610 if test x"$enable_plugin" = x"yes"; then
28612 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28617 # Enable --enable-host-shared
28618 # Check whether --enable-host-shared was given.
28619 if test "${enable_host_shared+set}" = set; then :
28620 enableval=$enable_host_shared; PICFLAG=-fPIC
28621 else
28622 PICFLAG=
28629 # Check whether --enable-libquadmath-support was given.
28630 if test "${enable_libquadmath_support+set}" = set; then :
28631 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28632 else
28633 ENABLE_LIBQUADMATH_SUPPORT=yes
28636 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28638 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28643 # Specify what hash style to use by default.
28645 # Check whether --with-linker-hash-style was given.
28646 if test "${with_linker_hash_style+set}" = set; then :
28647 withval=$with_linker_hash_style; case x"$withval" in
28648 xsysv)
28649 LINKER_HASH_STYLE=sysv
28651 xgnu)
28652 LINKER_HASH_STYLE=gnu
28654 xboth)
28655 LINKER_HASH_STYLE=both
28658 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28660 esac
28661 else
28662 LINKER_HASH_STYLE=''
28665 if test x"${LINKER_HASH_STYLE}" != x; then
28667 cat >>confdefs.h <<_ACEOF
28668 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28669 _ACEOF
28673 # Specify what should be the default of -fdiagnostics-color option.
28675 # Check whether --with-diagnostics-color was given.
28676 if test "${with_diagnostics_color+set}" = set; then :
28677 withval=$with_diagnostics_color; case x"$withval" in
28678 xnever)
28679 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28681 xauto)
28682 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28684 xauto-if-env)
28685 DIAGNOSTICS_COLOR_DEFAULT=-1
28687 xalways)
28688 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28691 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28693 esac
28694 else
28695 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28699 cat >>confdefs.h <<_ACEOF
28700 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28701 _ACEOF
28704 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28705 # of jit/jit-playback.c.
28706 cat > gcc-driver-name.h <<EOF
28707 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28710 # Check whether --enable-default-pie was given.
28711 # Check whether --enable-default-pie was given.
28712 if test "${enable_default_pie+set}" = set; then :
28713 enableval=$enable_default_pie; enable_default_pie=$enableval
28714 else
28715 enable_default_pie=no
28718 if test x$enable_default_pie == xyes ; then
28720 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28725 # Check if -fno-PIE works.
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28727 $as_echo_n "checking for -fno-PIE option... " >&6; }
28728 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28729 $as_echo_n "(cached) " >&6
28730 else
28731 saved_CXXFLAGS="$CXXFLAGS"
28732 CXXFLAGS="$CXXFLAGS -fno-PIE"
28733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h. */
28735 int main(void) {return 0;}
28736 _ACEOF
28737 if ac_fn_cxx_try_compile "$LINENO"; then :
28738 gcc_cv_c_no_fpie=yes
28739 else
28740 gcc_cv_c_no_fpie=no
28742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28743 CXXFLAGS="$saved_CXXFLAGS"
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28746 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28747 if test "$gcc_cv_c_no_fpie" = "yes"; then
28748 NO_PIE_CFLAGS="-fno-PIE"
28752 # Check if -no-pie works.
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28754 $as_echo_n "checking for -no-pie option... " >&6; }
28755 if test "${gcc_cv_no_pie+set}" = set; then :
28756 $as_echo_n "(cached) " >&6
28757 else
28758 saved_LDFLAGS="$LDFLAGS"
28759 LDFLAGS="$LDFLAGS -no-pie"
28760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28761 /* end confdefs.h. */
28762 int main(void) {return 0;}
28763 _ACEOF
28764 if ac_fn_cxx_try_link "$LINENO"; then :
28765 gcc_cv_no_pie=yes
28766 else
28767 gcc_cv_no_pie=no
28769 rm -f core conftest.err conftest.$ac_objext \
28770 conftest$ac_exeext conftest.$ac_ext
28771 LDFLAGS="$saved_LDFLAGS"
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28774 $as_echo "$gcc_cv_no_pie" >&6; }
28775 if test "$gcc_cv_no_pie" = "yes"; then
28776 NO_PIE_FLAG="-no-pie"
28780 # Configure the subdirectories
28781 # AC_CONFIG_SUBDIRS($subdirs)
28783 # Create the Makefile
28784 # and configure language subdirectories
28785 ac_config_files="$ac_config_files $all_outputs"
28788 ac_config_commands="$ac_config_commands default"
28790 cat >confcache <<\_ACEOF
28791 # This file is a shell script that caches the results of configure
28792 # tests run on this system so they can be shared between configure
28793 # scripts and configure runs, see configure's option --config-cache.
28794 # It is not useful on other systems. If it contains results you don't
28795 # want to keep, you may remove or edit it.
28797 # config.status only pays attention to the cache file if you give it
28798 # the --recheck option to rerun configure.
28800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28802 # following values.
28804 _ACEOF
28806 # The following way of writing the cache mishandles newlines in values,
28807 # but we know of no workaround that is simple, portable, and efficient.
28808 # So, we kill variables containing newlines.
28809 # Ultrix sh set writes to stderr and can't be redirected directly,
28810 # and sets the high bit in the cache file unless we assign to the vars.
28812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28813 eval ac_val=\$$ac_var
28814 case $ac_val in #(
28815 *${as_nl}*)
28816 case $ac_var in #(
28817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28819 esac
28820 case $ac_var in #(
28821 _ | IFS | as_nl) ;; #(
28822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28823 *) { eval $ac_var=; unset $ac_var;} ;;
28824 esac ;;
28825 esac
28826 done
28828 (set) 2>&1 |
28829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28830 *${as_nl}ac_space=\ *)
28831 # `set' does not quote correctly, so add quotes: double-quote
28832 # substitution turns \\\\ into \\, and sed turns \\ into \.
28833 sed -n \
28834 "s/'/'\\\\''/g;
28835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28836 ;; #(
28838 # `set' quotes correctly as required by POSIX, so do not add quotes.
28839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28841 esac |
28842 sort
28844 sed '
28845 /^ac_cv_env_/b end
28846 t clear
28847 :clear
28848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28849 t end
28850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28851 :end' >>confcache
28852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28853 if test -w "$cache_file"; then
28854 test "x$cache_file" != "x/dev/null" &&
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28856 $as_echo "$as_me: updating cache $cache_file" >&6;}
28857 cat confcache >$cache_file
28858 else
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28863 rm -f confcache
28865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28866 # Let make expand exec_prefix.
28867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28869 DEFS=-DHAVE_CONFIG_H
28871 ac_libobjs=
28872 ac_ltlibobjs=
28873 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28874 # 1. Remove the extension, and $U if already installed.
28875 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28876 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28878 # will be set to the directory where LIBOBJS objects are built.
28879 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28880 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28881 done
28882 LIBOBJS=$ac_libobjs
28884 LTLIBOBJS=$ac_ltlibobjs
28889 : ${CONFIG_STATUS=./config.status}
28890 ac_write_fail=0
28891 ac_clean_files_save=$ac_clean_files
28892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28895 as_write_fail=0
28896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28897 #! $SHELL
28898 # Generated by $as_me.
28899 # Run this file to recreate the current configuration.
28900 # Compiler output produced by configure, useful for debugging
28901 # configure, is in config.log if it exists.
28903 debug=false
28904 ac_cs_recheck=false
28905 ac_cs_silent=false
28907 SHELL=\${CONFIG_SHELL-$SHELL}
28908 export SHELL
28909 _ASEOF
28910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28911 ## -------------------- ##
28912 ## M4sh Initialization. ##
28913 ## -------------------- ##
28915 # Be more Bourne compatible
28916 DUALCASE=1; export DUALCASE # for MKS sh
28917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28918 emulate sh
28919 NULLCMD=:
28920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28921 # is contrary to our usage. Disable this feature.
28922 alias -g '${1+"$@"}'='"$@"'
28923 setopt NO_GLOB_SUBST
28924 else
28925 case `(set -o) 2>/dev/null` in #(
28926 *posix*) :
28927 set -o posix ;; #(
28928 *) :
28930 esac
28934 as_nl='
28936 export as_nl
28937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28941 # Prefer a ksh shell builtin over an external printf program on Solaris,
28942 # but without wasting forks for bash or zsh.
28943 if test -z "$BASH_VERSION$ZSH_VERSION" \
28944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28945 as_echo='print -r --'
28946 as_echo_n='print -rn --'
28947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28948 as_echo='printf %s\n'
28949 as_echo_n='printf %s'
28950 else
28951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28953 as_echo_n='/usr/ucb/echo -n'
28954 else
28955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28956 as_echo_n_body='eval
28957 arg=$1;
28958 case $arg in #(
28959 *"$as_nl"*)
28960 expr "X$arg" : "X\\(.*\\)$as_nl";
28961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28962 esac;
28963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28965 export as_echo_n_body
28966 as_echo_n='sh -c $as_echo_n_body as_echo'
28968 export as_echo_body
28969 as_echo='sh -c $as_echo_body as_echo'
28972 # The user is always right.
28973 if test "${PATH_SEPARATOR+set}" != set; then
28974 PATH_SEPARATOR=:
28975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28977 PATH_SEPARATOR=';'
28982 # IFS
28983 # We need space, tab and new line, in precisely that order. Quoting is
28984 # there to prevent editors from complaining about space-tab.
28985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28986 # splitting by setting IFS to empty value.)
28987 IFS=" "" $as_nl"
28989 # Find who we are. Look in the path if we contain no directory separator.
28990 case $0 in #((
28991 *[\\/]* ) as_myself=$0 ;;
28992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28993 for as_dir in $PATH
28995 IFS=$as_save_IFS
28996 test -z "$as_dir" && as_dir=.
28997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28998 done
28999 IFS=$as_save_IFS
29002 esac
29003 # We did not find ourselves, most probably we were run as `sh COMMAND'
29004 # in which case we are not to be found in the path.
29005 if test "x$as_myself" = x; then
29006 as_myself=$0
29008 if test ! -f "$as_myself"; then
29009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29010 exit 1
29013 # Unset variables that we do not need and which cause bugs (e.g. in
29014 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29015 # suppresses any "Segmentation fault" message there. '((' could
29016 # trigger a bug in pdksh 5.2.14.
29017 for as_var in BASH_ENV ENV MAIL MAILPATH
29018 do eval test x\${$as_var+set} = xset \
29019 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29020 done
29021 PS1='$ '
29022 PS2='> '
29023 PS4='+ '
29025 # NLS nuisances.
29026 LC_ALL=C
29027 export LC_ALL
29028 LANGUAGE=C
29029 export LANGUAGE
29031 # CDPATH.
29032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29035 # as_fn_error ERROR [LINENO LOG_FD]
29036 # ---------------------------------
29037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29039 # script with status $?, using 1 if that was 0.
29040 as_fn_error ()
29042 as_status=$?; test $as_status -eq 0 && as_status=1
29043 if test "$3"; then
29044 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29047 $as_echo "$as_me: error: $1" >&2
29048 as_fn_exit $as_status
29049 } # as_fn_error
29052 # as_fn_set_status STATUS
29053 # -----------------------
29054 # Set $? to STATUS, without forking.
29055 as_fn_set_status ()
29057 return $1
29058 } # as_fn_set_status
29060 # as_fn_exit STATUS
29061 # -----------------
29062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29063 as_fn_exit ()
29065 set +e
29066 as_fn_set_status $1
29067 exit $1
29068 } # as_fn_exit
29070 # as_fn_unset VAR
29071 # ---------------
29072 # Portably unset VAR.
29073 as_fn_unset ()
29075 { eval $1=; unset $1;}
29077 as_unset=as_fn_unset
29078 # as_fn_append VAR VALUE
29079 # ----------------------
29080 # Append the text in VALUE to the end of the definition contained in VAR. Take
29081 # advantage of any shell optimizations that allow amortized linear growth over
29082 # repeated appends, instead of the typical quadratic growth present in naive
29083 # implementations.
29084 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29085 eval 'as_fn_append ()
29087 eval $1+=\$2
29089 else
29090 as_fn_append ()
29092 eval $1=\$$1\$2
29094 fi # as_fn_append
29096 # as_fn_arith ARG...
29097 # ------------------
29098 # Perform arithmetic evaluation on the ARGs, and store the result in the
29099 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29100 # must be portable across $(()) and expr.
29101 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29102 eval 'as_fn_arith ()
29104 as_val=$(( $* ))
29106 else
29107 as_fn_arith ()
29109 as_val=`expr "$@" || test $? -eq 1`
29111 fi # as_fn_arith
29114 if expr a : '\(a\)' >/dev/null 2>&1 &&
29115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29116 as_expr=expr
29117 else
29118 as_expr=false
29121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29122 as_basename=basename
29123 else
29124 as_basename=false
29127 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29128 as_dirname=dirname
29129 else
29130 as_dirname=false
29133 as_me=`$as_basename -- "$0" ||
29134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29135 X"$0" : 'X\(//\)$' \| \
29136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29137 $as_echo X/"$0" |
29138 sed '/^.*\/\([^/][^/]*\)\/*$/{
29139 s//\1/
29142 /^X\/\(\/\/\)$/{
29143 s//\1/
29146 /^X\/\(\/\).*/{
29147 s//\1/
29150 s/.*/./; q'`
29152 # Avoid depending upon Character Ranges.
29153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29156 as_cr_digits='0123456789'
29157 as_cr_alnum=$as_cr_Letters$as_cr_digits
29159 ECHO_C= ECHO_N= ECHO_T=
29160 case `echo -n x` in #(((((
29161 -n*)
29162 case `echo 'xy\c'` in
29163 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29164 xy) ECHO_C='\c';;
29165 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29166 ECHO_T=' ';;
29167 esac;;
29169 ECHO_N='-n';;
29170 esac
29172 rm -f conf$$ conf$$.exe conf$$.file
29173 if test -d conf$$.dir; then
29174 rm -f conf$$.dir/conf$$.file
29175 else
29176 rm -f conf$$.dir
29177 mkdir conf$$.dir 2>/dev/null
29179 if (echo >conf$$.file) 2>/dev/null; then
29180 if ln -s conf$$.file conf$$ 2>/dev/null; then
29181 as_ln_s='ln -s'
29182 # ... but there are two gotchas:
29183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29185 # In both cases, we have to default to `cp -p'.
29186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29187 as_ln_s='cp -p'
29188 elif ln conf$$.file conf$$ 2>/dev/null; then
29189 as_ln_s=ln
29190 else
29191 as_ln_s='cp -p'
29193 else
29194 as_ln_s='cp -p'
29196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29197 rmdir conf$$.dir 2>/dev/null
29200 # as_fn_mkdir_p
29201 # -------------
29202 # Create "$as_dir" as a directory, including parents if necessary.
29203 as_fn_mkdir_p ()
29206 case $as_dir in #(
29207 -*) as_dir=./$as_dir;;
29208 esac
29209 test -d "$as_dir" || eval $as_mkdir_p || {
29210 as_dirs=
29211 while :; do
29212 case $as_dir in #(
29213 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29214 *) as_qdir=$as_dir;;
29215 esac
29216 as_dirs="'$as_qdir' $as_dirs"
29217 as_dir=`$as_dirname -- "$as_dir" ||
29218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29219 X"$as_dir" : 'X\(//\)[^/]' \| \
29220 X"$as_dir" : 'X\(//\)$' \| \
29221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29222 $as_echo X"$as_dir" |
29223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29224 s//\1/
29227 /^X\(\/\/\)[^/].*/{
29228 s//\1/
29231 /^X\(\/\/\)$/{
29232 s//\1/
29235 /^X\(\/\).*/{
29236 s//\1/
29239 s/.*/./; q'`
29240 test -d "$as_dir" && break
29241 done
29242 test -z "$as_dirs" || eval "mkdir $as_dirs"
29243 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29246 } # as_fn_mkdir_p
29247 if mkdir -p . 2>/dev/null; then
29248 as_mkdir_p='mkdir -p "$as_dir"'
29249 else
29250 test -d ./-p && rmdir ./-p
29251 as_mkdir_p=false
29254 if test -x / >/dev/null 2>&1; then
29255 as_test_x='test -x'
29256 else
29257 if ls -dL / >/dev/null 2>&1; then
29258 as_ls_L_option=L
29259 else
29260 as_ls_L_option=
29262 as_test_x='
29263 eval sh -c '\''
29264 if test -d "$1"; then
29265 test -d "$1/.";
29266 else
29267 case $1 in #(
29268 -*)set "./$1";;
29269 esac;
29270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29271 ???[sx]*):;;*)false;;esac;fi
29272 '\'' sh
29275 as_executable_p=$as_test_x
29277 # Sed expression to map a string onto a valid CPP name.
29278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29280 # Sed expression to map a string onto a valid variable name.
29281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29284 exec 6>&1
29285 ## ----------------------------------- ##
29286 ## Main body of $CONFIG_STATUS script. ##
29287 ## ----------------------------------- ##
29288 _ASEOF
29289 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29292 # Save the log message, to keep $0 and so on meaningful, and to
29293 # report actual input values of CONFIG_FILES etc. instead of their
29294 # values after options handling.
29295 ac_log="
29296 This file was extended by $as_me, which was
29297 generated by GNU Autoconf 2.64. Invocation command line was
29299 CONFIG_FILES = $CONFIG_FILES
29300 CONFIG_HEADERS = $CONFIG_HEADERS
29301 CONFIG_LINKS = $CONFIG_LINKS
29302 CONFIG_COMMANDS = $CONFIG_COMMANDS
29303 $ $0 $@
29305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29308 _ACEOF
29310 case $ac_config_files in *"
29311 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29312 esac
29314 case $ac_config_headers in *"
29315 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29316 esac
29319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29320 # Files that config.status was made for.
29321 config_files="$ac_config_files"
29322 config_headers="$ac_config_headers"
29323 config_links="$ac_config_links"
29324 config_commands="$ac_config_commands"
29326 _ACEOF
29328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29329 ac_cs_usage="\
29330 \`$as_me' instantiates files and other configuration actions
29331 from templates according to the current configuration. Unless the files
29332 and actions are specified as TAGs, all are instantiated by default.
29334 Usage: $0 [OPTION]... [TAG]...
29336 -h, --help print this help, then exit
29337 -V, --version print version number and configuration settings, then exit
29338 -q, --quiet, --silent
29339 do not print progress messages
29340 -d, --debug don't remove temporary files
29341 --recheck update $as_me by reconfiguring in the same conditions
29342 --file=FILE[:TEMPLATE]
29343 instantiate the configuration file FILE
29344 --header=FILE[:TEMPLATE]
29345 instantiate the configuration header FILE
29347 Configuration files:
29348 $config_files
29350 Configuration headers:
29351 $config_headers
29353 Configuration links:
29354 $config_links
29356 Configuration commands:
29357 $config_commands
29359 Report bugs to the package provider."
29361 _ACEOF
29362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29363 ac_cs_version="\\
29364 config.status
29365 configured by $0, generated by GNU Autoconf 2.64,
29366 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29368 Copyright (C) 2009 Free Software Foundation, Inc.
29369 This config.status script is free software; the Free Software Foundation
29370 gives unlimited permission to copy, distribute and modify it."
29372 ac_pwd='$ac_pwd'
29373 srcdir='$srcdir'
29374 AWK='$AWK'
29375 test -n "\$AWK" || AWK=awk
29376 _ACEOF
29378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29379 # The default lists apply if the user does not specify any file.
29380 ac_need_defaults=:
29381 while test $# != 0
29383 case $1 in
29384 --*=*)
29385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29387 ac_shift=:
29390 ac_option=$1
29391 ac_optarg=$2
29392 ac_shift=shift
29394 esac
29396 case $ac_option in
29397 # Handling of the options.
29398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29399 ac_cs_recheck=: ;;
29400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29401 $as_echo "$ac_cs_version"; exit ;;
29402 --debug | --debu | --deb | --de | --d | -d )
29403 debug=: ;;
29404 --file | --fil | --fi | --f )
29405 $ac_shift
29406 case $ac_optarg in
29407 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29408 esac
29409 as_fn_append CONFIG_FILES " '$ac_optarg'"
29410 ac_need_defaults=false;;
29411 --header | --heade | --head | --hea )
29412 $ac_shift
29413 case $ac_optarg in
29414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29415 esac
29416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29417 ac_need_defaults=false;;
29418 --he | --h)
29419 # Conflict between --help and --header
29420 as_fn_error "ambiguous option: \`$1'
29421 Try \`$0 --help' for more information.";;
29422 --help | --hel | -h )
29423 $as_echo "$ac_cs_usage"; exit ;;
29424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29426 ac_cs_silent=: ;;
29428 # This is an error.
29429 -*) as_fn_error "unrecognized option: \`$1'
29430 Try \`$0 --help' for more information." ;;
29432 *) as_fn_append ac_config_targets " $1"
29433 ac_need_defaults=false ;;
29435 esac
29436 shift
29437 done
29439 ac_configure_extra_args=
29441 if $ac_cs_silent; then
29442 exec 6>/dev/null
29443 ac_configure_extra_args="$ac_configure_extra_args --silent"
29446 _ACEOF
29447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29448 if \$ac_cs_recheck; then
29449 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29450 shift
29451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29452 CONFIG_SHELL='$SHELL'
29453 export CONFIG_SHELL
29454 exec "\$@"
29457 _ACEOF
29458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29459 exec 5>>config.log
29461 echo
29462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29463 ## Running $as_me. ##
29464 _ASBOX
29465 $as_echo "$ac_log"
29466 } >&5
29468 _ACEOF
29469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29471 # INIT-COMMANDS
29473 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29474 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29475 subdirs='$subdirs'
29477 _ACEOF
29479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29481 # Handling of arguments.
29482 for ac_config_target in $ac_config_targets
29484 case $ac_config_target in
29485 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29486 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29487 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29488 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29489 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29490 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29491 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29492 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29493 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29495 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29496 esac
29497 done
29500 # If the user did not use the arguments to specify the items to instantiate,
29501 # then the envvar interface is used. Set only those that are not.
29502 # We use the long form for the default assignment because of an extremely
29503 # bizarre bug on SunOS 4.1.3.
29504 if $ac_need_defaults; then
29505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29507 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29511 # Have a temporary directory for convenience. Make it in the build tree
29512 # simply because there is no reason against having it here, and in addition,
29513 # creating and moving files from /tmp can sometimes cause problems.
29514 # Hook for its removal unless debugging.
29515 # Note that there is a small window in which the directory will not be cleaned:
29516 # after its creation but before its name has been assigned to `$tmp'.
29517 $debug ||
29519 tmp=
29520 trap 'exit_status=$?
29521 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29523 trap 'as_fn_exit 1' 1 2 13 15
29525 # Create a (secure) tmp directory for tmp files.
29528 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29529 test -n "$tmp" && test -d "$tmp"
29530 } ||
29532 tmp=./conf$$-$RANDOM
29533 (umask 077 && mkdir "$tmp")
29534 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29536 # Set up the scripts for CONFIG_FILES section.
29537 # No need to generate them if there are no CONFIG_FILES.
29538 # This happens for instance with `./config.status config.h'.
29539 if test -n "$CONFIG_FILES"; then
29541 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29542 ac_cs_awk_getline=:
29543 ac_cs_awk_pipe_init=
29544 ac_cs_awk_read_file='
29545 while ((getline aline < (F[key])) > 0)
29546 print(aline)
29547 close(F[key])'
29548 ac_cs_awk_pipe_fini=
29549 else
29550 ac_cs_awk_getline=false
29551 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29552 ac_cs_awk_read_file='
29553 print "|#_!!_#|"
29554 print "cat " F[key] " &&"
29555 '$ac_cs_awk_pipe_init
29556 # The final `:' finishes the AND list.
29557 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29559 ac_cr=`echo X | tr X '\015'`
29560 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29561 # But we know of no other shell where ac_cr would be empty at this
29562 # point, so we can use a bashism as a fallback.
29563 if test "x$ac_cr" = x; then
29564 eval ac_cr=\$\'\\r\'
29566 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29567 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29568 ac_cs_awk_cr='\r'
29569 else
29570 ac_cs_awk_cr=$ac_cr
29573 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29574 _ACEOF
29576 # Create commands to substitute file output variables.
29578 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29579 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29580 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29581 echo "_ACAWK" &&
29582 echo "_ACEOF"
29583 } >conf$$files.sh &&
29584 . ./conf$$files.sh ||
29585 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29586 rm -f conf$$files.sh
29589 echo "cat >conf$$subs.awk <<_ACEOF" &&
29590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29591 echo "_ACEOF"
29592 } >conf$$subs.sh ||
29593 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29595 ac_delim='%!_!# '
29596 for ac_last_try in false false false false false :; do
29597 . ./conf$$subs.sh ||
29598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29600 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29601 if test $ac_delim_n = $ac_delim_num; then
29602 break
29603 elif $ac_last_try; then
29604 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29605 else
29606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29608 done
29609 rm -f conf$$subs.sh
29611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29612 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29613 _ACEOF
29614 sed -n '
29616 s/^/S["/; s/!.*/"]=/
29619 s/^[^!]*!//
29620 :repl
29621 t repl
29622 s/'"$ac_delim"'$//
29623 t delim
29626 s/\(.\{148\}\).*/\1/
29627 t more1
29628 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29631 b repl
29632 :more1
29633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29636 s/.\{148\}//
29637 t nl
29638 :delim
29640 s/\(.\{148\}\).*/\1/
29641 t more2
29642 s/["\\]/\\&/g; s/^/"/; s/$/"/
29645 :more2
29646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29649 s/.\{148\}//
29650 t delim
29651 ' <conf$$subs.awk | sed '
29652 /^[^""]/{
29654 s/\n//
29656 ' >>$CONFIG_STATUS || ac_write_fail=1
29657 rm -f conf$$subs.awk
29658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29659 _ACAWK
29660 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29661 for (key in S) S_is_set[key] = 1
29662 FS = "\a"
29663 \$ac_cs_awk_pipe_init
29666 line = $ 0
29667 nfields = split(line, field, "@")
29668 substed = 0
29669 len = length(field[1])
29670 for (i = 2; i < nfields; i++) {
29671 key = field[i]
29672 keylen = length(key)
29673 if (S_is_set[key]) {
29674 value = S[key]
29675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29676 len += length(value) + length(field[++i])
29677 substed = 1
29678 } else
29679 len += 1 + keylen
29681 if (nfields == 3 && !substed) {
29682 key = field[2]
29683 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29684 \$ac_cs_awk_read_file
29685 next
29688 print line
29690 \$ac_cs_awk_pipe_fini
29691 _ACAWK
29692 _ACEOF
29693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29696 else
29698 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29699 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29700 _ACEOF
29702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29704 # trailing colons and then remove the whole line if VPATH becomes empty
29705 # (actually we leave an empty line to preserve line numbers).
29706 if test "x$srcdir" = x.; then
29707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29708 s/:*\$(srcdir):*/:/
29709 s/:*\${srcdir}:*/:/
29710 s/:*@srcdir@:*/:/
29711 s/^\([^=]*=[ ]*\):*/\1/
29712 s/:*$//
29713 s/^[^=]*=[ ]*$//
29717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29718 fi # test -n "$CONFIG_FILES"
29720 # Set up the scripts for CONFIG_HEADERS section.
29721 # No need to generate them if there are no CONFIG_HEADERS.
29722 # This happens for instance with `./config.status Makefile'.
29723 if test -n "$CONFIG_HEADERS"; then
29724 cat >"$tmp/defines.awk" <<\_ACAWK ||
29725 BEGIN {
29726 _ACEOF
29728 # Transform confdefs.h into an awk script `defines.awk', embedded as
29729 # here-document in config.status, that substitutes the proper values into
29730 # config.h.in to produce config.h.
29732 # Create a delimiter string that does not exist in confdefs.h, to ease
29733 # handling of long lines.
29734 ac_delim='%!_!# '
29735 for ac_last_try in false false :; do
29736 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29737 if test -z "$ac_t"; then
29738 break
29739 elif $ac_last_try; then
29740 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29741 else
29742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29744 done
29746 # For the awk script, D is an array of macro values keyed by name,
29747 # likewise P contains macro parameters if any. Preserve backslash
29748 # newline sequences.
29750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29751 sed -n '
29752 s/.\{148\}/&'"$ac_delim"'/g
29753 t rset
29754 :rset
29755 s/^[ ]*#[ ]*define[ ][ ]*/ /
29756 t def
29758 :def
29759 s/\\$//
29760 t bsnl
29761 s/["\\]/\\&/g
29762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29763 D["\1"]=" \3"/p
29764 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29766 :bsnl
29767 s/["\\]/\\&/g
29768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29769 D["\1"]=" \3\\\\\\n"\\/p
29770 t cont
29771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29772 t cont
29774 :cont
29776 s/.\{148\}/&'"$ac_delim"'/g
29777 t clear
29778 :clear
29779 s/\\$//
29780 t bsnlc
29781 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29783 :bsnlc
29784 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29785 b cont
29786 ' <confdefs.h | sed '
29787 s/'"$ac_delim"'/"\\\
29788 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29791 for (key in D) D_is_set[key] = 1
29792 FS = "\a"
29794 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29795 line = \$ 0
29796 split(line, arg, " ")
29797 if (arg[1] == "#") {
29798 defundef = arg[2]
29799 mac1 = arg[3]
29800 } else {
29801 defundef = substr(arg[1], 2)
29802 mac1 = arg[2]
29804 split(mac1, mac2, "(") #)
29805 macro = mac2[1]
29806 prefix = substr(line, 1, index(line, defundef) - 1)
29807 if (D_is_set[macro]) {
29808 # Preserve the white space surrounding the "#".
29809 print prefix "define", macro P[macro] D[macro]
29810 next
29811 } else {
29812 # Replace #undef with comments. This is necessary, for example,
29813 # in the case of _POSIX_SOURCE, which is predefined and required
29814 # on some systems where configure will not decide to define it.
29815 if (defundef == "undef") {
29816 print "/*", prefix defundef, macro, "*/"
29817 next
29821 { print }
29822 _ACAWK
29823 _ACEOF
29824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29825 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29826 fi # test -n "$CONFIG_HEADERS"
29829 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29830 shift
29831 for ac_tag
29833 case $ac_tag in
29834 :[FHLC]) ac_mode=$ac_tag; continue;;
29835 esac
29836 case $ac_mode$ac_tag in
29837 :[FHL]*:*);;
29838 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29839 :[FH]-) ac_tag=-:-;;
29840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29841 esac
29842 ac_save_IFS=$IFS
29843 IFS=:
29844 set x $ac_tag
29845 IFS=$ac_save_IFS
29846 shift
29847 ac_file=$1
29848 shift
29850 case $ac_mode in
29851 :L) ac_source=$1;;
29852 :[FH])
29853 ac_file_inputs=
29854 for ac_f
29856 case $ac_f in
29857 -) ac_f="$tmp/stdin";;
29858 *) # Look for the file first in the build tree, then in the source tree
29859 # (if the path is not absolute). The absolute path cannot be DOS-style,
29860 # because $ac_f cannot contain `:'.
29861 test -f "$ac_f" ||
29862 case $ac_f in
29863 [\\/$]*) false;;
29864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29865 esac ||
29866 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29867 esac
29868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29869 as_fn_append ac_file_inputs " '$ac_f'"
29870 done
29872 # Let's still pretend it is `configure' which instantiates (i.e., don't
29873 # use $as_me), people would be surprised to read:
29874 # /* config.h. Generated by config.status. */
29875 configure_input='Generated from '`
29876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29877 `' by configure.'
29878 if test x"$ac_file" != x-; then
29879 configure_input="$ac_file. $configure_input"
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29881 $as_echo "$as_me: creating $ac_file" >&6;}
29883 # Neutralize special characters interpreted by sed in replacement strings.
29884 case $configure_input in #(
29885 *\&* | *\|* | *\\* )
29886 ac_sed_conf_input=`$as_echo "$configure_input" |
29887 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29888 *) ac_sed_conf_input=$configure_input;;
29889 esac
29891 case $ac_tag in
29892 *:-:* | *:-) cat >"$tmp/stdin" \
29893 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29894 esac
29896 esac
29898 ac_dir=`$as_dirname -- "$ac_file" ||
29899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29900 X"$ac_file" : 'X\(//\)[^/]' \| \
29901 X"$ac_file" : 'X\(//\)$' \| \
29902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29903 $as_echo X"$ac_file" |
29904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29905 s//\1/
29908 /^X\(\/\/\)[^/].*/{
29909 s//\1/
29912 /^X\(\/\/\)$/{
29913 s//\1/
29916 /^X\(\/\).*/{
29917 s//\1/
29920 s/.*/./; q'`
29921 as_dir="$ac_dir"; as_fn_mkdir_p
29922 ac_builddir=.
29924 case "$ac_dir" in
29925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29928 # A ".." for each directory in $ac_dir_suffix.
29929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29930 case $ac_top_builddir_sub in
29931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29933 esac ;;
29934 esac
29935 ac_abs_top_builddir=$ac_pwd
29936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29937 # for backward compatibility:
29938 ac_top_builddir=$ac_top_build_prefix
29940 case $srcdir in
29941 .) # We are building in place.
29942 ac_srcdir=.
29943 ac_top_srcdir=$ac_top_builddir_sub
29944 ac_abs_top_srcdir=$ac_pwd ;;
29945 [\\/]* | ?:[\\/]* ) # Absolute name.
29946 ac_srcdir=$srcdir$ac_dir_suffix;
29947 ac_top_srcdir=$srcdir
29948 ac_abs_top_srcdir=$srcdir ;;
29949 *) # Relative name.
29950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29951 ac_top_srcdir=$ac_top_build_prefix$srcdir
29952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29953 esac
29954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29957 case $ac_mode in
29960 # CONFIG_FILE
29963 _ACEOF
29965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29966 # If the template does not know about datarootdir, expand it.
29967 # FIXME: This hack should be removed a few years after 2.60.
29968 ac_datarootdir_hack=; ac_datarootdir_seen=
29969 ac_sed_dataroot='
29970 /datarootdir/ {
29974 /@datadir@/p
29975 /@docdir@/p
29976 /@infodir@/p
29977 /@localedir@/p
29978 /@mandir@/p'
29979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29980 *datarootdir*) ac_datarootdir_seen=yes;;
29981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29984 _ACEOF
29985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29986 ac_datarootdir_hack='
29987 s&@datadir@&$datadir&g
29988 s&@docdir@&$docdir&g
29989 s&@infodir@&$infodir&g
29990 s&@localedir@&$localedir&g
29991 s&@mandir@&$mandir&g
29992 s&\\\${datarootdir}&$datarootdir&g' ;;
29993 esac
29994 _ACEOF
29996 # Neutralize VPATH when `$srcdir' = `.'.
29997 # Shell code in configure.ac might set extrasub.
29998 # FIXME: do we really want to maintain this feature?
29999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30000 ac_sed_extra="$ac_vpsub
30001 $extrasub
30002 _ACEOF
30003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30006 s|@configure_input@|$ac_sed_conf_input|;t t
30007 s&@top_builddir@&$ac_top_builddir_sub&;t t
30008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30009 s&@srcdir@&$ac_srcdir&;t t
30010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30011 s&@top_srcdir@&$ac_top_srcdir&;t t
30012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30013 s&@builddir@&$ac_builddir&;t t
30014 s&@abs_builddir@&$ac_abs_builddir&;t t
30015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30016 $ac_datarootdir_hack
30018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30019 if $ac_cs_awk_getline; then
30020 $AWK -f "$tmp/subs.awk"
30021 else
30022 $AWK -f "$tmp/subs.awk" | $SHELL
30023 fi >$tmp/out \
30024 || as_fn_error "could not create $ac_file" "$LINENO" 5
30026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30027 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30030 which seems to be undefined. Please make sure it is defined." >&5
30031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30032 which seems to be undefined. Please make sure it is defined." >&2;}
30034 rm -f "$tmp/stdin"
30035 case $ac_file in
30036 -) cat "$tmp/out" && rm -f "$tmp/out";;
30037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30038 esac \
30039 || as_fn_error "could not create $ac_file" "$LINENO" 5
30043 # CONFIG_HEADER
30045 if test x"$ac_file" != x-; then
30047 $as_echo "/* $configure_input */" \
30048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30049 } >"$tmp/config.h" \
30050 || as_fn_error "could not create $ac_file" "$LINENO" 5
30051 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30053 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30054 else
30055 rm -f "$ac_file"
30056 mv "$tmp/config.h" "$ac_file" \
30057 || as_fn_error "could not create $ac_file" "$LINENO" 5
30059 else
30060 $as_echo "/* $configure_input */" \
30061 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30062 || as_fn_error "could not create -" "$LINENO" 5
30067 # CONFIG_LINK
30070 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30072 else
30073 # Prefer the file from the source tree if names are identical.
30074 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30075 ac_source=$srcdir/$ac_source
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30079 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30081 if test ! -r "$ac_source"; then
30082 as_fn_error "$ac_source: file not found" "$LINENO" 5
30084 rm -f "$ac_file"
30086 # Try a relative symlink, then a hard link, then a copy.
30087 case $srcdir in
30088 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30089 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30090 esac
30091 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30092 ln "$ac_source" "$ac_file" 2>/dev/null ||
30093 cp -p "$ac_source" "$ac_file" ||
30094 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30097 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30098 $as_echo "$as_me: executing $ac_file commands" >&6;}
30100 esac
30103 case $ac_file$ac_mode in
30104 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30105 "gccdepdir":C)
30106 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30107 for lang in $subdirs c-family common
30109 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30110 done ;;
30111 "as":F) chmod +x as ;;
30112 "collect-ld":F) chmod +x collect-ld ;;
30113 "nm":F) chmod +x nm ;;
30114 "default":C)
30115 case ${CONFIG_HEADERS} in
30116 *auto-host.h:config.in*)
30117 echo > cstamp-h ;;
30118 esac
30119 # Make sure all the subdirs exist.
30120 for d in $subdirs doc build common c-family
30122 test -d $d || mkdir $d
30123 done
30126 esac
30127 done # for ac_tag
30130 as_fn_exit 0
30131 _ACEOF
30132 ac_clean_files=$ac_clean_files_save
30134 test $ac_write_fail = 0 ||
30135 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30138 # configure is writing to config.log, and then calls config.status.
30139 # config.status does its own redirection, appending to config.log.
30140 # Unfortunately, on DOS this fails, as config.log is still kept open
30141 # by configure, so config.status won't be able to write to it; its
30142 # output is simply discarded. So we exec the FD to /dev/null,
30143 # effectively closing config.log, so it can be properly (re)opened and
30144 # appended to by config.status. When coming back to configure, we
30145 # need to make the FD available again.
30146 if test "$no_create" != yes; then
30147 ac_cs_success=:
30148 ac_config_status_args=
30149 test "$silent" = yes &&
30150 ac_config_status_args="$ac_config_status_args --quiet"
30151 exec 5>/dev/null
30152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30153 exec 5>>config.log
30154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30155 # would make configure fail if this is the last instruction.
30156 $ac_cs_success || as_fn_exit $?
30158 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30160 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}